IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 36710 for trunk/ppStack/src


Ignore:
Timestamp:
Apr 30, 2014, 7:04:03 PM (12 years ago)
Author:
mhuber
Message:

adding option for minimum inputs per pixel in stack, default is 1

File:
1 edited

Legend:

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

    r36610 r36710  
    116116    bool useVariance = psMetadataLookupBool(&mdok, recipe, "VARIANCE"); // Use variance for rejection?
    117117    bool safe = psMetadataLookupBool(&mdok, recipe, "SAFE"); // Be safe when combining small numbers of pixels
     118   
     119    int nminpix = psMetadataLookupS32(&mdok, recipe, "NMINPIX"); // Minimum input per pixel to combine with
    118120
    119121    psMetadata *ppsub = psMetadataLookupMetadata(NULL, config->recipes, "PPSUB"); // PPSUB recipe
     
    161163
    162164    if (!pmStackCombine(outRO, NULL, stack, maskBad, maskSuspect, maskBlank, kernelSize, iter,
    163                         combineRej, combineSys, combineDiscard, useVariance, safe, false)) {
     165                        combineRej, combineSys, combineDiscard, useVariance, safe, nminpix, false)) {
    164166        psError(PS_ERR_UNKNOWN, false, "Unable to combine input readouts with rejection.");
    165167        psFree(stack);
     
    218220    bool useVariance = psMetadataLookupBool(&mdok, recipe, "VARIANCE"); // Use variance for rejection?
    219221    bool safe = psMetadataLookupBool(&mdok, recipe, "SAFE"); // Be safe when combining small numbers of pixels
     222
     223    int nminpix = psMetadataLookupS32(&mdok, recipe, "NMINPIX"); // Minimum input per pixel to combine with
    220224
    221225    psString maskBadStr = psMetadataLookupStr(NULL, recipe, "MASK.VAL"); // Name of bits to mask for bad
     
    275279
    276280    if (!pmStackCombine(outRO, expRO, stack, maskBad, maskSuspect, maskBlank, 0, iter, combineRej,
    277                         combineSys, combineDiscard, useVariance, safe, rejected)) {
     281                        combineSys, combineDiscard, useVariance, safe, nminpix, rejected)) {
    278282        psError(PS_ERR_UNKNOWN, false, "Unable to combine input readouts.");
    279283        psFree(stack);
Note: See TracChangeset for help on using the changeset viewer.