- Timestamp:
- Jul 27, 2013, 1:56:38 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ps2-tc3-20130727/ppImage/src/ppImageDetrendReadout.c
r35685 r35861 7 7 bool ppImageDetrendReadout(pmConfig *config, ppImageOptions *options, pmFPAview *view) 8 8 { 9 // psTimerStart("detrend.readout"); 10 9 11 // construct a view for the detrend images (which have only one readout) 10 12 pmFPAview *detview = pmFPAviewAlloc(0); … … 35 37 } 36 38 } 39 // psLogMsg ("ppImage", 6, "check gain: %f sec\n", psTimerMark ("detrend.readout")); 37 40 38 41 // Check to see if we're in a chip that contains video … … 56 59 } 57 60 done_video_check: 61 // psLogMsg ("ppImage", 6, "check video: %f sec\n", psTimerMark ("detrend.readout")); 58 62 59 63 // Masking on the basis of pixel value needs to be done before anything else, so the values are pristine. … … 62 66 psImageMaskType lowMask = options->doMaskLow ? options->lowMask : 0; 63 67 pmReadoutGenerateMask(input, satMask, lowMask); 68 // psLogMsg ("ppImage", 6, "generate mask: %f sec\n", psTimerMark ("detrend.readout")); 64 69 } 65 70 // apply the externally supplied mask to the input->mask pixels … … 73 78 } 74 79 pmMaskBadPixels(input, mask, options->maskValue); 80 // psLogMsg ("ppImage", 6, "apply mask: %f sec\n", psTimerMark ("detrend.readout")); 75 81 } 76 82 … … 79 85 // extern bool ppImageBurntoolApply(pmConfig *, ppImageOptions *, pmFPAview *, pmReadout *); 80 86 ppImageBurntoolApply(config, options, view, input); 87 // psLogMsg ("ppImage", 6, "apply burntool: %f sec\n", psTimerMark ("detrend.readout")); 81 88 } 82 89 … … 89 96 ppImageBurntoolMask(config,options,view,input); 90 97 } 98 // psLogMsg ("ppImage", 6, "apply burntool mask: %f sec\n", psTimerMark ("detrend.readout")); 91 99 } 92 100 … … 98 106 return false; 99 107 } 108 // psLogMsg ("ppImage", 6, "subtract overscan: %f sec\n", psTimerMark ("detrend.readout")); 100 109 } 101 110 … … 107 116 return(false); 108 117 } 118 // psLogMsg ("ppImage", 6, "nonlinear correction: %f sec\n", psTimerMark ("detrend.readout")); 109 119 } 110 120 … … 144 154 return false; 145 155 } 156 // psLogMsg ("ppImage", 6, "apply bias: %f sec\n", psTimerMark ("detrend.readout")); 146 157 } 147 158 … … 210 221 pmReadoutGenerateVariance(input, noiseImage, true); 211 222 psFree (noiseImage); 223 // psLogMsg ("ppImage", 6, "generate variance: %f sec\n", psTimerMark ("detrend.readout")); 212 224 } 213 225 … … 218 230 return false; 219 231 } 232 // psLogMsg ("ppImage", 6, "apply dark: %f sec\n", psTimerMark ("detrend.readout")); 220 233 } 221 234 … … 227 240 return false; 228 241 } 242 // psLogMsg ("ppImage", 6, "mask remnance: %f sec\n", psTimerMark ("detrend.readout")); 229 243 } 230 244 … … 236 250 return false; 237 251 } 252 // psLogMsg ("ppImage", 6, "shutter correction: %f sec\n", psTimerMark ("detrend.readout")); 238 253 } 239 254 … … 245 260 return false; 246 261 } 262 // psLogMsg ("ppImage", 6, "apply flat: %f sec\n", psTimerMark ("detrend.readout")); 247 263 } 248 264 … … 268 284 269 285 psBinaryOp(input->image, input->image, "*", psScalarAlloc(norm, PS_TYPE_F32)); 286 // psLogMsg ("ppImage", 6, "renormalize: %f sec\n", psTimerMark ("detrend.readout")); 270 287 } 271 288 … … 316 333 317 334 psFree (classID); 335 336 // psLogMsg ("ppImage", 6, "renormalize by class: %f sec\n", psTimerMark ("detrend.readout")); 318 337 } 319 338 # endif … … 325 344 return false; 326 345 } 346 // psLogMsg ("ppImage", 6, "measure fringe: %f sec\n", psTimerMark ("detrend.readout")); 327 347 } 328 348 329 349 ppImageMemoryDump("detrend"); 330 350 351 // psLogMsg ("ppImage", 5, "detrend readout: %f sec\n", psTimerMark ("detrend.readout")); 331 352 psFree(detview); 332 353 return true;
Note:
See TracChangeset
for help on using the changeset viewer.
