Changeset 14805 for trunk/psModules/src/imcombine/pmSubtractionMatch.c
- Timestamp:
- Sep 10, 2007, 12:35:59 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/imcombine/pmSubtractionMatch.c
r14803 r14805 93 93 bool pmSubtractionMatch(pmReadout *convolved, const pmReadout *reference, const pmReadout *input, 94 94 int footprint, float regionSize, float stampSpacing, float threshold, 95 const char *stampsName, float targetWidth, pmSubtractionKernelsType type, 96 int size, int spatialOrder, const psVector *isisWidths, const psVector *isisOrders, 97 int inner, int ringsOrder, int binning, bool optimum, psVector *optFWHMs, 95 const psArray *sources, const char *stampsName, float targetWidth, 96 pmSubtractionKernelsType type, int size, int spatialOrder, 97 const psVector *isisWidths, const psVector *isisOrders, 98 int inner, int ringsOrder, int binning, bool optimum, const psVector *optFWHMs, 98 99 int optOrder, float optThreshold, int iter, float rej, psMaskType maskBad, 99 100 psMaskType maskBlank) … … 132 133 PS_ASSERT_FLOAT_LARGER_THAN(stampSpacing, 0.0, false); 133 134 // Don't care what threshold is 135 if (sources) { 136 PS_ASSERT_ARRAY_NON_NULL(sources, false); 137 } 134 138 // stampsName may be anything 135 139 // targetWidth can be just about anything (except maybe negative, but it can be NAN) … … 231 235 } 232 236 233 // Read stamps from file 234 if (stampsName && strlen(stampsName) > 0) { 237 if (sources) { 238 stamps = pmSubtractionStampsSetFromSources(sources, subMask, region, stampSpacing, 239 input ? 0 : 2 * footprint); 240 } else if (stampsName && strlen(stampsName) > 0) { 241 // Read stamps from file 235 242 psTrace("psModules.imcombine", 3, "Reading stamps from %s...\n", stampsName); 236 243 const char *stampFormat = input ? "%f %f" : "%f %f %f"; // Format for reading stamp file
Note:
See TracChangeset
for help on using the changeset viewer.
