IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 12, 2007, 1:00:37 PM (19 years ago)
Author:
Paul Price
Message:

Will fail without trying hard if there are not enough good pixels.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/imcombine/pmSubtractionMatch.c

    r15285 r15305  
    9898                        int inner, int ringsOrder, int binning, bool optimum, const psVector *optFWHMs,
    9999                        int optOrder, float optThreshold, int iter, float rej, psMaskType maskBad,
    100                         psMaskType maskBlank)
     100                        psMaskType maskBlank, float badFrac)
    101101{
    102102    PS_ASSERT_PTR_NON_NULL(convolved, false);
     
    165165    // Don't care about maskBad
    166166    // 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    }
    167171
    168172    // If the stamp footprint is smaller than the kernel size, then we won't get much signal in the outer
     
    219223    memCheck("start");
    220224
    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    }
    222230
    223231    memCheck("mask");
Note: See TracChangeset for help on using the changeset viewer.