IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 7, 2014, 5:36:39 AM (12 years ago)
Author:
eugene
Message:

merge changes from trunk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20140423/ppStack/src/ppStackReadout.c

    r36610 r36826  
    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.