diff options
author | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2011-03-29 00:21:34 +0000 |
---|---|---|
committer | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2011-03-29 00:21:34 +0000 |
commit | d85ab56d6b4c7e30a6ff90ca42bb2eb9893b63a3 (patch) | |
tree | 026f383539bf2a4f8c6490dda028c6275df1746f | |
parent | b471bdeab9d35c654d32dfca1a203261553e0e2e (diff) | |
download | netpbm-mirror-d85ab56d6b4c7e30a6ff90ca42bb2eb9893b63a3.tar.gz netpbm-mirror-d85ab56d6b4c7e30a6ff90ca42bb2eb9893b63a3.tar.xz netpbm-mirror-d85ab56d6b4c7e30a6ff90ca42bb2eb9893b63a3.zip |
fix bug: for PGM images, says they differ when they don't and vice versa
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@1445 9d0c8265-081b-0410-96cb-a4ca84ce46f8
-rw-r--r-- | analyzer/pnmpsnr.c | 2 | ||||
-rw-r--r-- | doc/HISTORY | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/analyzer/pnmpsnr.c b/analyzer/pnmpsnr.c index 88b2a981..c32f7d64 100644 --- a/analyzer/pnmpsnr.c +++ b/analyzer/pnmpsnr.c @@ -126,7 +126,7 @@ reportPsnr(struct pam const pam, else pm_message("Cr color component does not differ."); } else { - if (ySumSqDiff == 0) + if (ySumSqDiff > 0) pm_message("PSNR between %s and %s: %.2f dB", filespec1, filespec2, 10 * log10(yPsnr)); else diff --git a/doc/HISTORY b/doc/HISTORY index a3e872b0..54c62427 100644 --- a/doc/HISTORY +++ b/doc/HISTORY @@ -34,6 +34,9 @@ not yet BJH Release 10.54.00 pngtopam: fix bug: -verbose reports history chunk present when it's really a palette. + pnmpsnr: fix bug: says PGM images differ when they don't + and vice versa. + 10.12.30 BJH Release 10.53.00 Add pammosaicknit. Thanks Scott Pakin. |