IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 8, 2023, 11:57:40 AM (3 years ago)
Author:
eugene
Message:

merge from eam_branches/ipp-20220316. add code for PatternDeadCells, fix organization of DetrendPattern, handle psphotModelBackground failure

Location:
trunk/ppImage
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppImage

  • trunk/ppImage/src/ppImageOptions.c

    r42340 r42382  
    226226        }
    227227
     228        bool mdok;
    228229        int boxcar = psMetadataLookupS32(NULL, recipe, "OVERSCAN.BOXCAR");
    229230        float gauss = psMetadataLookupF32(NULL, recipe, "OVERSCAN.GAUSS");
     231        float minValid = psMetadataLookupF32(&mdok, recipe, "OVERSCAN.MIN.VALID");
     232        if (!mdok) { minValid = 0.0; }
     233
     234        float maxValid = psMetadataLookupF32(&mdok, recipe, "OVERSCAN.MAX.VALID");
     235        if (!mdok) { maxValid = (float) 0x10000; }
    230236
    231237        // Fill in the options
     
    235241        options->overscan->constant = psMetadataLookupBool(NULL, recipe, "OVERSCAN.CONSTANT");
    236242        options->overscan->value = psMetadataLookupF32(NULL, recipe, "OVERSCAN.VALUE");
     243        options->overscan->minValid = minValid;
     244        options->overscan->maxValid = maxValid;
     245        options->overscan->maskVal  = 0x0001;
    237246
    238247        psFree(overscanStats);
     
    290299    options->doPatternCell = psMetadataLookupBool(NULL, recipe, "PATTERN.CELL");
    291300    options->doPatternContinuity = psMetadataLookupBool(NULL, recipe, "PATTERN.CONTINUITY");
     301    options->doPatternDeadCells = psMetadataLookupBool(NULL, recipe, "PATTERN.DEAD.CELLS");
    292302
    293303    options->doMaskStats = psMetadataLookupBool(NULL, recipe, "MASK.STATS");
Note: See TracChangeset for help on using the changeset viewer.