Changeset 5717 for trunk/pois/src/pois.h
- Timestamp:
- Dec 6, 2005, 6:43:52 PM (21 years ago)
- File:
-
- 1 edited
-
trunk/pois/src/pois.h (modified) (10 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/pois/src/pois.h
r3813 r5717 3 3 4 4 #include "pslib.h" 5 #include "poisErrorCodes.h"6 5 7 6 #define abs(x) ((x) >= 0 ? (x) : (-(x))) … … 21 20 int nsx, nsy; // Number of stamps in x and y 22 21 float refSat, inSat; // Saturation values for reference and input images 23 float bad; // Value below which pixels are bad22 float refBad, inBad; // Bad values for reference and input images 24 23 float background; // Value to add to the background in images to get above zero 25 24 int spatialOrder; // Order of spatial variations in the kernel … … 27 26 float sigmaRej; // Limit (in std dev) for rejection 28 27 float penalty; // Penalty value 28 char *stampFile; // Filename for file with stamps 29 bool reverse; // Reverse the subtraction? 30 bool mask; // Output the mask? 29 31 } poisConfig; 30 32 … … 64 66 void poisStampFree(poisStamp *stamp); 65 67 68 // Return true if the stamp is OK 69 bool poisCheckStamp(const psImage *image, // Image to check for threshold 70 const psImage *mask, // Mask to check for bad pixels 71 int x, int y, // Pixel coordinates 72 const poisConfig *config // Configuration 73 ); 74 66 75 /************************************************************************************************************/ 67 76 … … 78 87 79 88 // Print usage information 80 //void help(void);89 void help(void); 81 90 82 91 // Parse the command line arguments 83 poisConfig *restrict poisConfigAlloc(void);84 85 92 poisConfig *poisParseConfig(int argc, // Number of command-line arguments 86 93 char **argv // Command-line arguments … … 111 118 112 119 // Find stamps 113 psArray *poisFindStamps(psArray *stamps IO, // Existing list of stamps, or NULL120 psArray *poisFindStamps(psArray *stamps, // Existing list of stamps, or NULL 114 121 const psImage *image, // Image for which to find stamps 115 122 const psImage *mask, // Mask image … … 158 165 159 166 // Calculate deviations from the best fit for the stamps 160 psVector *poisCalculateDeviations(psVector *deviations IO,// Output array of deviations, or NULL167 psVector *poisCalculateDeviations(psVector *deviations, // Output array of deviations, or NULL 161 168 psArray *stamps, // Array of stamps 162 169 psImage *refImage, // Reference image … … 173 180 174 181 // Reject stamps, based on the deviations 175 psList *restrictpoisRejectStamps(psArray *stamps, // Array of stamps176 psImage *mask, // Mask image177 const psVector *deviations, // Vector of deviations for the stamps178 const poisConfig *config // Configuration182 bool poisRejectStamps(psArray *stamps, // Array of stamps 183 psImage *mask, // Mask image 184 const psVector *deviations, // Vector of deviations for the stamps 185 const poisConfig *config // Configuration 179 186 ); 180 187 … … 184 191 185 192 // Solve the matrix equation 186 psVector *poisSolveEquation(psVector *solution IO, // Solution vector, or NULL193 psVector *poisSolveEquation(psVector *solution, // Solution vector, or NULL 187 194 const psArray *stamps, // Array of stamps 188 195 const poisConfig *config … … 203 210 /************************************************************************************************************/ 204 211 205 psImage *poisImageSetVal(psImage *restrict IO, // Input image 206 const psC64 val // set to this value 207 ); 208 209 psImage *poisImageSetValInMask(psImage *IO, // Image to update, or NULL 210 const psImage *restrict in, // Input image 211 const psImage *mask, // mask for image 212 const psC64 val, // set to this value 213 const unsigned long bits // set pixels where mask & bits != 0 214 ); 212 // poisReadStamps.c 213 214 // Read stamps from a file 215 psArray *poisReadStamps(psArray *stamps,// Stamps 216 FILE **stampFP, // File pointer for stamps file 217 const psImage *image, // Image for which to find stamps 218 const psImage *mask, // Mask image 219 const poisConfig *config // Configuration 220 ); 221 222 /************************************************************************************************************/ 223 224 // poisCheckKernel.c 225 226 // Check kernel for power at large radii 227 bool poisCheckKernel(const psVector *solution,// Kernel solution 228 const psArray *kernels, // Kernel basis functions 229 const poisConfig *config // Configuration 230 ); 231 232 /************************************************************************************************************/ 215 233 216 234 #endif
Note:
See TracChangeset
for help on using the changeset viewer.
