IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 13, 2022, 10:53:25 AM (4 years ago)
Author:
eugene
Message:

add PATTERN.DEAD.CELLS option; split ppImageDetrendPattern into separate functions for the 4 different options; functions like ppImageDetrendFringeApply and ppImageDetrendPatternApply now test the relevant option and return true if not selected (no need to check the option in the calling function)

File:
1 edited

Legend:

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

    r42166 r42167  
    171171        }
    172172
    173         // Apply the pattern correction
    174         // XX if (options->checkCellFailures) {
    175         // XX   if (!ppImageDetrendPatternCellFailures(config,chip,view,options)) {
    176         // XX     ESCAPE("Unable to apply pattern corrections");
    177         // XX   }
    178         // XX }
    179 
    180 
    181173        // Apply the fringe correction
    182         if (options->doFringe) {
    183             if (!ppImageDetrendFringeApply(config, chip, view, options)) {
    184                 ESCAPE("Unable to defringe");
    185             }
     174        if (!ppImageDetrendFringeApply(config, chip, view, options)) {
     175            ESCAPE("Unable to defringe");
    186176        }
    187177
     
    191181        }
    192182
    193         // Apply the pattern correction
    194         if (options->doPatternRow || options->doPatternCell || options->doPatternContinuity) {
    195           if (!ppImageDetrendPatternApply(config,chip,view,options)) {
    196             ESCAPE("Unable to apply pattern corrections");
    197           }
     183        // Apply the pattern correction (only done if requested)
     184        if (!ppImageDetrendPatternApply(config,chip,view,options)) {
     185            ESCAPE("Problem applying pattern corrections");
    198186        }
    199187
Note: See TracChangeset for help on using the changeset viewer.