IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 18, 2010, 5:17:54 PM (16 years ago)
Author:
bills
Message:

don't include 'undiffed pixels' touched by streaks in the streak pixels count

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/magic/remove/src/streaksremove.c

    r27222 r27347  
    216216
    217217    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);
    219220    psMetadataAddF32(sfiles->stats, PS_LIST_TAIL, "STREAK_FRACTION", PS_META_REPLACE, "", streakFraction);
    220221
    221222    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);
    223224    psMetadataAddF32(sfiles->stats, PS_LIST_TAIL, "UNDIFFED_FRACTION", PS_META_REPLACE, "", unDiffedFraction);
    224225
     
    310311        for (int x = 0; x < sfiles->inImage->numCols; x++) {
    311312            if (psImageGet(pixels, x, y)) {
    312                 ++streakPixels;
    313313                if (!checkNonDiffedPixels || diffedPixel(sfiles, x, y)) {
     314                    ++streakPixels;
    314315
    315316                    excisePixel(sfiles, x, y, true, maskStreak);
Note: See TracChangeset for help on using the changeset viewer.