IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 12, 2007, 12:29:09 PM (19 years ago)
Author:
Paul Price
Message:

Putting in mechanism to toss out image with insufficient good pixels.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppStack/src/ppStackMatch.c

    r14840 r15303  
    3636    psMaskType maskBlank = pmConfigMask(psMetadataLookupStr(NULL, recipe, "MASK.BLANK"),
    3737                                        config); // Mask for blank reg.
     38    float badFrac = psMetadataLookupF32(NULL, recipe, "BADFRAC"); // Maximum bad fraction
    3839    bool optimum = psMetadataLookupBool(&mdok, recipe, "OPTIMUM"); // Derive optimum parameters?
    3940    float optMin = psMetadataLookupF32(&mdok, recipe, "OPTIMUM.MIN"); // Minimum width for search
     
    6162                            stampsName, target, type, size, order, widths, orders, inner, ringsOrder,
    6263                            binning, optimum, optWidths, optOrder, optThresh, iter, rej, maskBad,
    63                             maskBlank)) {
     64                            maskBlank, badFrac)) {
    6465        psError(PS_ERR_UNKNOWN, false, "Unable to match images.");
     66        psFree(optWidths);
    6567        return false;
    6668    }
     69    psFree(optWidths);
    6770
    6871    return true;
Note: See TracChangeset for help on using the changeset viewer.