Changeset 23965 for trunk/magic/remove/src/streaksremove.c
- Timestamp:
- Apr 24, 2009, 2:19:31 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/magic/remove/src/streaksremove.c (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/magic/remove/src/streaksremove.c
r23936 r23965 34 34 } 35 35 36 streakFiles *sfiles = openFiles(config, true );36 streakFiles *sfiles = openFiles(config, true, argv[0]); 37 37 setupAstrometry(sfiles); 38 38 … … 65 65 } 66 66 psF64 cwp_t = psTimerClear("COMPUTE_WARPED_PIXELS"); 67 p rintf("time to compute warped pixels: %f\n", cwp_t);67 psLogMsg("streaksremove", PS_LOG_INFO, "time to compute warped pixels: %f\n", cwp_t); 68 68 } 69 69 … … 113 113 sfiles->inImage->numCols, sfiles->inImage->numRows); 114 114 115 p rintf("time to get streak pixels: %f\n", psTimerClear("GET_STREAK_PIXELS"));115 psLogMsg("streaksremove", PS_LOG_INFO, "time to get streak pixels: %f\n", psTimerClear("GET_STREAK_PIXELS")); 116 116 117 117 … … 124 124 exciseNonWarpedPixels(sfiles, maskStreak); 125 125 126 p rintf("time to excise non warped pixels: %f\n", psTimerClear("EXCISE_NON_WARPED"));126 psLogMsg("streaksremove", PS_LOG_INFO, "time to excise non warped pixels: %f\n", psTimerClear("EXCISE_NON_WARPED")); 127 127 } 128 128 totalStreakPixels += psArrayLength(pixels); … … 140 140 } 141 141 } 142 p rintf("time to remove streak pixels: %f\n", psTimerClear("REMOVE_STREAKS"));142 psLogMsg("streaksremove", PS_LOG_INFO, "time to remove streak pixels: %f\n", psTimerClear("REMOVE_STREAKS")); 143 143 144 144 if (nanForRelease) { … … 161 161 writeImages(sfiles, exciseImageCube); 162 162 163 p rintf("time to process component %d: %f\n", sfiles->extnum, psTimerClear("PROCESS_COMPONENT"));163 psLogMsg("streaksremove", PS_LOG_INFO, "time to process component %d: %f\n", sfiles->extnum, psTimerClear("PROCESS_COMPONENT")); 164 164 } while (streakFilesNextExtension(sfiles)); 165 165 166 166 psFree(streaks); 167 167 168 p rintf("pixels: %ld streak pixels: %ld %4.2f%%\n", totalPixels, totalStreakPixels, 100. * totalStreakPixels / totalPixels);168 psLogMsg("streaksremove", PS_LOG_INFO, "pixels: %ld streak pixels: %ld %4.2f%%\n", totalPixels, totalStreakPixels, 100. * totalStreakPixels / totalPixels); 169 169 170 170 psTimerStart("CLOSE_IMAGES"); 171 171 // close all files 172 172 closeImages(sfiles); 173 p rintf("time to close images: %f\n", psTimerClear("CLOSE_IMAGES"));173 psLogMsg("streaksremove", PS_LOG_INFO, "time to close images: %f\n", psTimerClear("CLOSE_IMAGES")); 174 174 175 175 // NOTE: from here on we can't just quit if something goes wrong. … … 218 218 streaksNebulousCleanup(); 219 219 pmConfigDone(); 220 p rintf("time to run streaksremove: %f\n", psTimerClear("STREAKSREMOVE"));220 psLogMsg("streaksremove", PS_LOG_INFO, "time to run streaksremove: %f\n", psTimerClear("STREAKSREMOVE")); 221 221 psLibFinalize(); 222 222
Note:
See TracChangeset
for help on using the changeset viewer.
