Changeset 14713 for trunk/psModules/src/imcombine/pmSubtractionMatch.c
- Timestamp:
- Aug 30, 2007, 12:12:12 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/imcombine/pmSubtractionMatch.c
r14701 r14713 212 212 } 213 213 214 // Putting important variable declarations here, since they are freed after a "goto" if there is an error. 215 psImage *subMask = NULL; // Mask for subtraction 216 psArray *stamps = NULL; // Stamps for matching PSF 217 psRegion *region = NULL; // Iso-kernel region 218 psString regionString = NULL; // String for region 219 psVector *solution = NULL; // Solution to match PSF 220 pmSubtractionKernels *kernels = NULL; // Kernel basis functions 221 214 222 // Read stamps from file 215 223 psArray *stampsData = NULL; // Stamps data read from file … … 240 248 memCheck("start"); 241 249 242 // Mask for subtraction 243 psImage *subMask = pmSubtractionMask(reference->mask, inMask, maskBad, size, footprint); 250 subMask = pmSubtractionMask(reference->mask, inMask, maskBad, size, footprint); 244 251 245 252 memCheck("mask"); 246 253 247 248 psArray *stamps = NULL; // Stamps for matching PSF249 250 pmSubtractionKernels *kernels = NULL; // Kernel basis functions251 254 if (optimum && (type == PM_SUBTRACTION_KERNEL_ISIS || type == PM_SUBTRACTION_KERNEL_GUNK)) { 252 255 if (!getStamps(&stamps, stampsData, reference, input, subMask, weight, NULL, … … 277 280 psMetadataAddPtr(convolved->analysis, PS_LIST_TAIL, "SUBTRACTION.KERNEL", PS_DATA_UNKNOWN, 278 281 "Subtraction kernels", kernels); 279 psVector *solution = NULL; // Solution to match PSF280 281 282 282 283 memCheck("kernels"); 283 284 285 // Get region of interest 284 286 int xRegions = 1, yRegions = 1; // Number of iso-kernel regions 285 287 float xRegionSize = 0, yRegionSize = 0; // Size of iso-kernel regions 286 psRegion *region = NULL; // Iso-kernel region287 psString regionString = NULL; // String for region288 288 if (isfinite(regionSize) && regionSize != 0.0) { 289 289 xRegions = numCols / regionSize + 1; … … 481 481 psFree(solution); 482 482 psFree(stampsData); 483 psFree(stamps); 483 484 return false; 484 485 }
Note:
See TracChangeset
for help on using the changeset viewer.
