Changeset 37406 for trunk/ppImage/src/ppImageDetrendReadout.c
- Timestamp:
- Sep 19, 2014, 4:35:41 PM (12 years ago)
- File:
-
- 1 edited
-
trunk/ppImage/src/ppImageDetrendReadout.c (modified) (18 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppImage/src/ppImageDetrendReadout.c
r35917 r37406 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. … … 66 70 return false; 67 71 } 72 // psLogMsg ("ppImage", 6, "generate mask: %f sec\n", psTimerMark ("detrend.readout")); 68 73 } 69 74 // apply the externally supplied mask to the input->mask pixels … … 77 82 } 78 83 pmMaskBadPixels(input, mask, options->maskValue); 84 // psLogMsg ("ppImage", 6, "apply mask: %f sec\n", psTimerMark ("detrend.readout")); 79 85 } 80 86 … … 83 89 // extern bool ppImageBurntoolApply(pmConfig *, ppImageOptions *, pmFPAview *, pmReadout *); 84 90 ppImageBurntoolApply(config, options, view, input); 91 // psLogMsg ("ppImage", 6, "apply burntool: %f sec\n", psTimerMark ("detrend.readout")); 85 92 } 86 93 … … 93 100 ppImageBurntoolMask(config,options,view,input); 94 101 } 102 // psLogMsg ("ppImage", 6, "apply burntool mask: %f sec\n", psTimerMark ("detrend.readout")); 95 103 } 96 104 … … 102 110 return false; 103 111 } 112 // psLogMsg ("ppImage", 6, "subtract overscan: %f sec\n", psTimerMark ("detrend.readout")); 104 113 } 105 114 … … 111 120 return(false); 112 121 } 122 // psLogMsg ("ppImage", 6, "nonlinear correction: %f sec\n", psTimerMark ("detrend.readout")); 113 123 } 114 124 … … 148 158 return false; 149 159 } 160 // psLogMsg ("ppImage", 6, "apply bias: %f sec\n", psTimerMark ("detrend.readout")); 150 161 } 151 162 … … 218 229 } 219 230 psFree (noiseImage); 231 // psLogMsg ("ppImage", 6, "generate variance: %f sec\n", psTimerMark ("detrend.readout")); 220 232 } 221 233 … … 226 238 return false; 227 239 } 240 // psLogMsg ("ppImage", 6, "apply dark: %f sec\n", psTimerMark ("detrend.readout")); 228 241 } 229 242 … … 235 248 return false; 236 249 } 250 // psLogMsg ("ppImage", 6, "mask remnance: %f sec\n", psTimerMark ("detrend.readout")); 237 251 } 238 252 … … 244 258 return false; 245 259 } 260 // psLogMsg ("ppImage", 6, "shutter correction: %f sec\n", psTimerMark ("detrend.readout")); 246 261 } 247 262 … … 253 268 return false; 254 269 } 270 // psLogMsg ("ppImage", 6, "apply flat: %f sec\n", psTimerMark ("detrend.readout")); 255 271 } 256 272 … … 276 292 277 293 psBinaryOp(input->image, input->image, "*", psScalarAlloc(norm, PS_TYPE_F32)); 294 // psLogMsg ("ppImage", 6, "renormalize: %f sec\n", psTimerMark ("detrend.readout")); 278 295 } 279 296 … … 324 341 325 342 psFree (classID); 343 344 // psLogMsg ("ppImage", 6, "renormalize by class: %f sec\n", psTimerMark ("detrend.readout")); 326 345 } 327 346 # endif … … 333 352 return false; 334 353 } 354 // psLogMsg ("ppImage", 6, "measure fringe: %f sec\n", psTimerMark ("detrend.readout")); 335 355 } 336 356 337 357 ppImageMemoryDump("detrend"); 338 358 359 // psLogMsg ("ppImage", 5, "detrend readout: %f sec\n", psTimerMark ("detrend.readout")); 339 360 psFree(detview); 340 361 return true;
Note:
See TracChangeset
for help on using the changeset viewer.
