Changeset 27347
- Timestamp:
- Mar 18, 2010, 5:17:54 PM (16 years ago)
- File:
-
- 1 edited
-
trunk/magic/remove/src/streaksremove.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/magic/remove/src/streaksremove.c
r27222 r27347 216 216 217 217 psF64 streakFraction = (double) totalStreakPixels / totalPixels; 218 psLogMsg("streaksremove", PS_LOG_INFO, "pixels: %ld streak pixels: %ld %4.2f%%\n", totalPixels, totalStreakPixels, streakFraction * 100); 218 psLogMsg("streaksremove", PS_LOG_INFO, " total pixels: %8ld\n", totalPixels); 219 psLogMsg("streaksremove", PS_LOG_INFO, " streak pixels: %8ld %4.2f%%\n", totalStreakPixels, streakFraction * 100); 219 220 psMetadataAddF32(sfiles->stats, PS_LIST_TAIL, "STREAK_FRACTION", PS_META_REPLACE, "", streakFraction); 220 221 221 222 psF64 unDiffedFraction = (double) unDiffedPixels / totalPixels; 222 psLogMsg("streaksremove", PS_LOG_INFO, " pixels: %ld undiffed pixels: %ld %4.2f%%\n", totalPixels, unDiffedPixels, unDiffedFraction * 100);223 psLogMsg("streaksremove", PS_LOG_INFO, "undiffed pixels: %8ld %4.2f%%\n", unDiffedPixels, unDiffedFraction * 100); 223 224 psMetadataAddF32(sfiles->stats, PS_LIST_TAIL, "UNDIFFED_FRACTION", PS_META_REPLACE, "", unDiffedFraction); 224 225 … … 310 311 for (int x = 0; x < sfiles->inImage->numCols; x++) { 311 312 if (psImageGet(pixels, x, y)) { 312 ++streakPixels;313 313 if (!checkNonDiffedPixels || diffedPixel(sfiles, x, y)) { 314 ++streakPixels; 314 315 315 316 excisePixel(sfiles, x, y, true, maskStreak);
Note:
See TracChangeset
for help on using the changeset viewer.
