Changeset 3610 for trunk/stac/src/stac.h
- Timestamp:
- Mar 31, 2005, 5:07:12 PM (21 years ago)
- File:
-
- 1 edited
-
trunk/stac/src/stac.h (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/stac/src/stac.h
r2897 r3610 8 8 #define MAXCHAR 80 9 9 10 // Temporary implementation11 psPlaneTransform *psPlaneTransformAlloc(psS32 n1, psS32 n2);10 // Get the current time 11 double getTime(void); 12 12 13 13 /************************************************************************************************************/ … … 21 21 psArray *inputs; // Input file names 22 22 const char *output; // Output file name 23 bool saveShifts; // Save shifted images? 24 const char *starFile; // File with star coordinates 25 const char *starMapFile; // File with map for stars 23 26 int outnx, outny; // Size of output image 24 27 float xOffset, yOffset; // Offset to get lower-left corner at 0,0 25 float saturated; // Saturation level26 float bad; // Bad level28 psVector *saturated; // Saturation level for each image 29 psVector *bad; // Bad level for each image 27 30 float reject; // Rejection level 28 31 float frac; // Fraction of input pixel that must be masked before the pixel is … … 30 33 float grad; // Multiplier of the gradient 31 34 int nReject; // Number of rejection iterations 35 float xMapDiff, yMapDiff; // Difference between pure map and output image coordinates 36 float aper; // Aperture size (pixels) 32 37 } stacConfig; 33 38 … … 52 57 // Read the input files and return an array of images 53 58 psArray *stacReadImages(stacConfig *config); 59 60 // Read a file of coordinates (x,y) 61 psArray *stacReadCoords(const char *filename); 62 63 // Read a single map file and return the transformation 64 psPlaneTransform *stacReadMap(const char *filename); 54 65 55 66 // Read the map files and return an array of transformations … … 77 88 const psArray *masks, // Masks of input images 78 89 const psImage *region, // Region of interest for transformation 90 const psVector *scales, // Relative scales 91 const psVector *offsets, // Relative offsets 79 92 const stacConfig *config // Configuration 80 93 ); … … 181 194 /************************************************************************************************************/ 182 195 196 // stacScale.c 197 198 // Calculate the background in an image 199 float stacBackground(const psImage *image, // Image for which to get the background 200 int sample // Sample in increments of this value 201 ); 202 203 204 // Calculate the relative scales and offsets between the images 205 bool stacScales(psVector **scalesPtr, // Scales to return 206 psVector **offsetsPtr, // Offsets to return 207 const psArray *images, // Images on which to measure the scales and offsets 208 const stacConfig *config // Configuration 209 ); 210 211 // Rescale images 212 bool stacRescale(psArray *images, // Images to rescale 213 psArray *errImages, // Variance images to rescale 214 const psImage *mask, // Mask indicating which pixels to scale 215 const psVector *scales,// Scales for images 216 const psVector *offsets // Offsets for images 217 ); 218 183 219 #endif
Note:
See TracChangeset
for help on using the changeset viewer.
