IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 21042


Ignore:
Timestamp:
Dec 18, 2008, 4:04:59 PM (17 years ago)
Author:
bills
Message:

print out the number of pixels excised by streaks

File:
1 edited

Legend:

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

    r20943 r21042  
    8282    }
    8383
     84    int totalPixels = 0;
     85    int totalStreakPixels = 0;
     86
    8487    // Iterate through each component of the input (only one except for raw stage)
    8588    do {
     
    98101        }
    99102
     103        totalPixels += sfiles->inImage->numRows * sfiles->inImage->numCols;
     104
    100105        if (!exciseAll) {
    101106            // Identify pixels to mask because of streaks
     
    104109
    105110            StreakPixels *pixels = getStreakPixels(sfiles, streaks);
     111
    106112
    107113            printf("time to get streak pixels: %f\n", psTimerClear("GET_STREAK_PIXELS"));
     
    116122           
    117123            if (sfiles->inImage->image) {
     124                totalStreakPixels +=  psArrayLength(pixels);
    118125                psTimerStart("REMOVE_STREAKS");
    119126                for (int i = 0; i < psArrayLength (pixels); ++i) {
     
    143150    } while (streakFilesNextExtension(sfiles));
    144151
     152    printf("pixels: %ld streak pixels: %ld %4.2f%%\n", totalPixels, totalStreakPixels, 100. * totalStreakPixels / totalPixels);
    145153
    146154    psTimerStart("CLOSE_IMAGES");
Note: See TracChangeset for help on using the changeset viewer.