Changeset 29833 for trunk/ppImage/src/ppImageDetrendReadout.c
- Timestamp:
- Nov 25, 2010, 9:45:07 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
ppImage/src/ppImageDetrendReadout.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/czw_branch/20100817 (added) merged: 28947,29486,29678-29679,29813
- Property svn:mergeinfo changed
-
trunk/ppImage/src/ppImageDetrendReadout.c
r26653 r29833 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 // 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 } 60 72 61 73 // set up the dark and bias … … 77 89 } 78 90 79 // Bias , dark and overscan subtraction are allmerged.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)) { 82 94 psError(PS_ERR_UNKNOWN, false, "Unable to subtract bias."); 83 95 psFree(detview); … … 85 97 } 86 98 } 87 99 88 100 // Weight on the basis of pixel value needs to be done after the overscan has been subtracted 89 101 if (options->doVarianceBuild) {
Note:
See TracChangeset
for help on using the changeset viewer.
