IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 26457


Ignore:
Timestamp:
Dec 17, 2009, 12:18:21 PM (16 years ago)
Author:
bills
Message:

need to cast to double when calculating streakFraction (cleaning up code caused a bug)

File:
1 edited

Legend:

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

    r26446 r26457  
    207207    }
    208208
    209     psF64 streakFraction = totalStreakPixels / totalPixels;
     209    psF64 streakFraction = (double) totalStreakPixels / totalPixels;
    210210    psLogMsg("streaksremove", PS_LOG_INFO, "pixels: %ld streak pixels: %ld %4.2f%%\n", totalPixels, totalStreakPixels, streakFraction * 100);
    211211    psMetadataAddF32(sfiles->stats, PS_LIST_TAIL, "STREAK_FRACTION", PS_META_REPLACE, "", streakFraction);
Note: See TracChangeset for help on using the changeset viewer.