- Timestamp:
- Nov 26, 2010, 10:47:07 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20101103/ppImage/src/ppImageDetrendReadout.c
r26653 r29851 51 51 } 52 52 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 55 62 // Non-linearity correction 56 63 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 } 60 70 61 71 // set up the dark and bias … … 77 87 } 78 88 79 // Bias , dark and overscan subtraction are allmerged.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)) { 82 92 psError(PS_ERR_UNKNOWN, false, "Unable to subtract bias."); 83 93 psFree(detview); … … 85 95 } 86 96 } 87 97 88 98 // Weight on the basis of pixel value needs to be done after the overscan has been subtracted 89 99 if (options->doVarianceBuild) {
Note:
See TracChangeset
for help on using the changeset viewer.
