IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 26, 2010, 10:47:07 AM (16 years ago)
Author:
eugene
Message:

updates from trunk (non-linearity correction)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20101103/ppImage/src/ppImageDetrendReadout.c

    r26653 r29851  
    5151    }
    5252
    53 
    54 # if 0
     53    // Subtract the overscan
     54    if (options->doOverscan) {
     55      if (!pmOverscanSubtract (input, options->overscan)) {
     56        psError(PS_ERR_UNKNOWN, false, "Unable to subtract overscan.");
     57        psFree(detview);
     58        return false;
     59      }
     60    }
     61
    5562    // Non-linearity correction
    5663    if (options->doNonLin) {
    57         ppImageDetrendNonLinear(detrend->input, input, options);
    58     }
    59 # endif
     64      if (!ppImageDetrendNonLinear(input,detview,config)) {
     65        psError(PS_ERR_UNKNOWN, false, "Unable to correct NonLinearity");
     66        psFree(detview);
     67        return(false);
     68      }
     69    }
    6070
    6171    // set up the dark and bias
     
    7787    }
    7888
    79     // Bias, dark and overscan subtraction are all merged.
    80     if (options->doBias || options->doOverscan) {
    81         if (!pmBiasSubtract(input, options->overscan, bias, oldDark, view)) {
     89    // Bias and temperature-independent-dark subtraction are merged.
     90    if (options->doBias) {
     91        if (!pmBiasSubtract(input, bias, oldDark, view)) {
    8292            psError(PS_ERR_UNKNOWN, false, "Unable to subtract bias.");
    8393            psFree(detview);
     
    8595        }
    8696    }
    87 
     97   
    8898    // Weight on the basis of pixel value needs to be done after the overscan has been subtracted
    8999    if (options->doVarianceBuild) {
Note: See TracChangeset for help on using the changeset viewer.