Changeset 21042 for trunk/magic/remove/src/streaksremove.c
- Timestamp:
- Dec 18, 2008, 4:04:59 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/magic/remove/src/streaksremove.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/magic/remove/src/streaksremove.c
r20943 r21042 82 82 } 83 83 84 int totalPixels = 0; 85 int totalStreakPixels = 0; 86 84 87 // Iterate through each component of the input (only one except for raw stage) 85 88 do { … … 98 101 } 99 102 103 totalPixels += sfiles->inImage->numRows * sfiles->inImage->numCols; 104 100 105 if (!exciseAll) { 101 106 // Identify pixels to mask because of streaks … … 104 109 105 110 StreakPixels *pixels = getStreakPixels(sfiles, streaks); 111 106 112 107 113 printf("time to get streak pixels: %f\n", psTimerClear("GET_STREAK_PIXELS")); … … 116 122 117 123 if (sfiles->inImage->image) { 124 totalStreakPixels += psArrayLength(pixels); 118 125 psTimerStart("REMOVE_STREAKS"); 119 126 for (int i = 0; i < psArrayLength (pixels); ++i) { … … 143 150 } while (streakFilesNextExtension(sfiles)); 144 151 152 printf("pixels: %ld streak pixels: %ld %4.2f%%\n", totalPixels, totalStreakPixels, 100. * totalStreakPixels / totalPixels); 145 153 146 154 psTimerStart("CLOSE_IMAGES");
Note:
See TracChangeset
for help on using the changeset viewer.
