IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 42161


Ignore:
Timestamp:
Apr 4, 2022, 4:42:49 PM (4 years ago)
Author:
eugene
Message:

add max valid overscan value

File:
1 edited

Legend:

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

    r42148 r42161  
    223223        if (!mdok) { minValid = 0.0; }
    224224
     225        float maxValid = psMetadataLookupF32(&mdok, recipe, "OVERSCAN.MAX.VALID");
     226        if (!mdok) { maxValid = (float) 0x10000; }
     227
    225228        // Fill in the options
    226229        options->overscan = pmOverscanOptionsAlloc(overscanSingle, overscanFit, overscanOrder,
     
    230233        options->overscan->value = psMetadataLookupF32(NULL, recipe, "OVERSCAN.VALUE");
    231234        options->overscan->minValid = minValid;
     235        options->overscan->maxValid = maxValid;
    232236        options->overscan->maskVal  = 0x0001;
    233237
Note: See TracChangeset for help on using the changeset viewer.