- Timestamp:
- Oct 9, 2014, 3:44:07 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20140904/Ohana/src/fakeastro/include/fakeastro.h
r37471 r37477 9 9 10 10 typedef struct { 11 int NfakeImage; 12 int NFAKEIMAGE; 13 Image *fakeImage; 14 15 int NtrueImage; 16 int NTRUEIMAGE; 17 Image *trueImage; 18 } ImageInfo; 19 20 typedef struct { 11 21 double R, D; 12 22 StarPar starpar; … … 16 26 17 27 typedef struct { 28 double Rref; // "reference" coordinate of the fake stars 29 double Dref; 18 30 Average average; 19 31 Measure measure; … … 21 33 int found; 22 34 } Stars; 35 36 // structure to hold coordinate fitting terms 37 typedef struct { 38 int Npts; 39 int Nterms; 40 int Norder; 41 int Nsums; 42 int Nelems; 43 double **sum; 44 double **xsum; 45 double **ysum; 46 double **xfit; 47 double **yfit; 48 } CoordFit; 23 49 24 50 /* used in find_matches, find_matches_refstars */ … … 33 59 # define DVO_MAX_PATH 1024 34 60 35 char ImageCat[DVO_MAX_PATH];36 61 char GSCFILE[DVO_MAX_PATH]; 37 62 char CATDIR[DVO_MAX_PATH]; … … 116 141 Image *make_fake_images (Image *image, int *nfakeImage); 117 142 118 Image *fakeastro_images_region (Image *image, int *nimage, int *NIMAGE, Image *refImage, int NrefImage, SkyTable *skyTableInput, SkyTable *skyTableOutput, SkyRegion *region);143 int fakeastro_images_region (ImageInfo *imageInfo, Image *refImage, int NrefImage, SkyTable *skyTableInput, SkyTable *skyTableOutput, SkyRegion *innerRegion); 119 144 120 145 SkyRegion *get_image_patch (Image *image); … … 135 160 float airmass (float secz_image, double ra, double dec, double st, double latitude); 136 161 float azimuth (double ha, double dec, double latitude); 162 163 int fit_fake_stars (Stars *stars, int Nstars, Image *image); 164 165 double **array_init (int Nx, int Ny); 166 void array_free (double **array, int Nx); 167 CoordFit *fit_init (int order); 168 void fit_free (CoordFit *fit); 169 void fit_add (CoordFit *fit, double x1, double y1, double x2, double y2, double wt); 170 int fit_eval (CoordFit *fit); 171 void fit_apply (CoordFit *fit, double *x2, double *y2, double x1, double y1); 172 double **poly2d_dx (double **poly, int Nx, int Ny); 173 double **poly2d_dy (double **poly, int Nx, int Ny); 174 double **poly2d_copy (double **poly, int Nx, int Ny); 175 double poly2d_eval (double **poly, int Nx, int Ny, double x, double y); 176 int fit_apply_coords (CoordFit *fit, Coords *coords, int keepRef); 177 178 int save_astrom_table (); 179 AstromOffsetTable *get_astrom_table ();
Note:
See TracChangeset
for help on using the changeset viewer.
