Changeset 15305 for trunk/psModules/src/imcombine/pmSubtractionMatch.c
- Timestamp:
- Oct 12, 2007, 1:00:37 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/imcombine/pmSubtractionMatch.c
r15285 r15305 98 98 int inner, int ringsOrder, int binning, bool optimum, const psVector *optFWHMs, 99 99 int optOrder, float optThreshold, int iter, float rej, psMaskType maskBad, 100 psMaskType maskBlank )100 psMaskType maskBlank, float badFrac) 101 101 { 102 102 PS_ASSERT_PTR_NON_NULL(convolved, false); … … 165 165 // Don't care about maskBad 166 166 // Don't care about maskBlank 167 if (isfinite(badFrac)) { 168 PS_ASSERT_FLOAT_LARGER_THAN(badFrac, 0.0, NULL); 169 PS_ASSERT_FLOAT_LESS_THAN_OR_EQUAL(badFrac, 1.0, NULL); 170 } 167 171 168 172 // If the stamp footprint is smaller than the kernel size, then we won't get much signal in the outer … … 219 223 memCheck("start"); 220 224 221 subMask = pmSubtractionMask(reference->mask, inMask, maskBad, size, footprint); 225 subMask = pmSubtractionMask(reference->mask, inMask, maskBad, size, footprint, badFrac); 226 if (subMask) { 227 psError(PS_ERR_UNKNOWN, false, "Unable to generate subtraction mask."); 228 return false; 229 } 222 230 223 231 memCheck("mask");
Note:
See TracChangeset
for help on using the changeset viewer.
