IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 29, 2022, 3:03:37 PM (4 years ago)
Author:
eugene
Message:

add option to mask dead readouts (overscan < minValue)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20220316/ppImage/src/ppImageOptions.c

    r41918 r42148  
    217217        }
    218218
     219        bool mdok;
    219220        int boxcar = psMetadataLookupS32(NULL, recipe, "OVERSCAN.BOXCAR");
    220221        float gauss = psMetadataLookupF32(NULL, recipe, "OVERSCAN.GAUSS");
     222        float minValid = psMetadataLookupF32(&mdok, recipe, "OVERSCAN.MIN.VALID");
     223        if (!mdok) { minValid = 0.0; }
    221224
    222225        // Fill in the options
     
    226229        options->overscan->constant = psMetadataLookupBool(NULL, recipe, "OVERSCAN.CONSTANT");
    227230        options->overscan->value = psMetadataLookupF32(NULL, recipe, "OVERSCAN.VALUE");
     231        options->overscan->minValid = minValid;
     232        options->overscan->maskVal  = 0x0001;
    228233
    229234        psFree(overscanStats);
Note: See TracChangeset for help on using the changeset viewer.