Changeset 23810 for trunk/psastro/src/psastro.h
- Timestamp:
- Apr 10, 2009, 3:00:23 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/psastro/src/psastro.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psastro/src/psastro.h
r23688 r23810 45 45 } pmLumFunc; 46 46 #endif 47 48 /** 49 * this structure defines the parameters to describe a ghost 50 */ 51 typedef struct { 52 psPlane *srcFP; ///< location in FPA coords of the source star 53 psPlane *FP; ///< location in FPA coords of the ghost center 54 psPlane *chip; ///< location in chip coords of the ghost center 55 double Mag; ///< instrumental magnitude of source star 56 psEllipseAxes inner; ///< inner elliptical annulus boundary 57 psEllipseAxes outer; ///< outer elliptical annulus boundary 58 } psastroGhost; 59 60 psastroGhost *psastroGhostAlloc (void); 61 bool psastroLoadGhosts (pmConfig *config); 47 62 48 63 bool psastroDataSave (pmConfig *config, psMetadata *stats); … … 131 146 bool psastroZeroPointFromRecipe (float *zeropt, float *exptime, pmFPA *fpa, psMetadata *recipe); 132 147 148 // masking functions 149 pmCell *pmCellInChip (pmChip *chip, float x, float y); 150 bool pmCellCoordsForChip (float *xCell, float *yCell, pmCell *cell, float xChip, float yChip); 151 bool pmChipCoordsForCell (float *xChip, float *yChip, pmCell *cell, float xCell, float yCell); 152 153 bool psastroMaskCircle (psImage *mask, psImageMaskType value, float x0, float y0, float dX, float dY); 154 bool psastroMaskEllipse (psImage *mask, psImageMaskType value, float x0, float y0, psEllipseAxes axes); 155 bool psastroMaskEllipticalAnnulus (psImage *mask, psImageMaskType value, float x0, float y0, psEllipseAxes eInner, psEllipseAxes eOuter); 156 157 bool psastroMaskBox (psImage *mask, psImageMaskType value, float x0, float y0, float dL, float dW, float theta); 158 void psastroMaskLine (psImage *mask, psImageMaskType value, double x1, double y1, double x2, double y2, int dW); 159 void psastroMaskLineBresen (psImage *mask, psImageMaskType value, int X1, int Y1, int X2, int Y2, int dW, int swapcoords); 160 void psastroMaskRectangle (psImage *mask, psImageMaskType value, int x0, int y0, int x1, int y1); 161 162 pmChip *psastroFindChip (double *xChip, double *yChip, pmFPA *fpa, double xFPA, double yFPA); 163 bool psastroChipBounds (pmFPA *fpa); 164 133 165 // psastroExtract functions 134 166 bool psastroExtractAnalysis (pmConfig *config); 135 167 bool psastroExtractStars (pmConfig *config); 136 168 bool psastroExtractGhosts (pmConfig *config); 137 pmChip *psastroExtractFindChip (float *xChip, float *yChip, pmFPA *fpa, float xFPA, float yFPA);138 bool psastroExtractChipBounds (pmFPA *fpa);139 169 140 psImage *psastroExtractStar (psImage *input, float x, float y, float dX, floatdY);170 psImage *psastroExtractStar (psImage *input, double x, double y, double dX, double dY); 141 171 bool psastroExtractParseCamera (pmConfig *config); 142 172 bool psastroExtractDataLoad (pmConfig *config);
Note:
See TracChangeset
for help on using the changeset viewer.
