IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 25, 2010, 9:45:07 PM (15 years ago)
Author:
watersc1
Message:

Merge of czw_branch/20100817 into trunk. This includes the non-linearity correction application code.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/ppImage/src/ppImageDetrendReadout.c

    r26653 r29833  
    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      //      linearity = pmFPAfileThisReadout(config->files, detview, "PPIMAGE.LINEARITY");
     65      if (!ppImageDetrendNonLinear(input,detview,config)) {
     66        psError(PS_ERR_UNKNOWN, false, "Unable to correct NonLinearity");
     67        psFree(detview);
     68        return(false);
     69      }
     70      /*       ppImageDetrendNonLinear(detrend->input, input, options); */
     71    }
    6072
    6173    // set up the dark and bias
     
    7789    }
    7890
    79     // Bias, dark and overscan subtraction are all merged.
    80     if (options->doBias || options->doOverscan) {
    81         if (!pmBiasSubtract(input, options->overscan, bias, oldDark, view)) {
     91    // Bias and temperature-independent-dark subtraction are merged.
     92    if (options->doBias) {
     93        if (!pmBiasSubtract(input, bias, oldDark, view)) {
    8294            psError(PS_ERR_UNKNOWN, false, "Unable to subtract bias.");
    8395            psFree(detview);
     
    8597        }
    8698    }
    87 
     99   
    88100    // Weight on the basis of pixel value needs to be done after the overscan has been subtracted
    89101    if (options->doVarianceBuild) {
Note: See TracChangeset for help on using the changeset viewer.