Page 1 of 1

v7 %[distortion]

Posted: 2016-05-15T14:52:02-07:00
by snibgo
On Windows, pre-built Q16 integer binaries.

v6.9.2-5 gives a correct result:

Code: Select all

%IM%convert rose: ( rose: -modulate 100,99,100 ) -metric RMSE -format "%[distortion]" -compare info:
0.00185604
v7.0.1-3 gives a wrong result:

Code: Select all

%IMG7%magick rose: ( rose: -modulate 100,99,100 ) -metric RMSE -format "%[distortion]" -compare info:
1.0003
(RMSE values should always be in the range 0.0 to 1.0, with 0.0 meaning perfect match and 1.0 meaning as far apart as they can get.)

v7 RMSE %[distortion] values are wrong. I haven't tested other metrics.

Re: v7 %[distortion]

Posted: 2016-05-15T14:55:02-07:00
by magick
We're using ImageMagick 7.0.1-4 (available tomorrow):
  • -> convert rose: \( rose: -modulate 100,99,100 \) -metric RMSE -format "%[distortion]" -compare info:
    0.00185611

Re: v7 %[distortion]

Posted: 2016-05-15T15:00:15-07:00
by snibgo
Great, thanks.

Re: v7 %[distortion]

Posted: 2016-07-23T04:23:56-07:00
by snibgo
This is wrong in v7.0.2-5 on Windows 8.1. Below, correct results are from v6.9.5-3.


%IM%convert rose: rose: -metric RMSE -format "%%[distortion]" -compare info:
0 <-- correct

%IMG7%magick rose: rose: -metric RMSE -format "%%[distortion]" -compare info:
1 <-- wrong


%IM%convert rose: ( rose: -modulate 100,99,100 ) -metric RMSE -format "%%[distortion]" -compare info:
0.00185604 <-- correct

%IMG7%magick rose: ( rose: -modulate 100,99,100 ) -metric RMSE -format "%%[distortion]" -compare info:
0.999985 <-- wrong

Re: v7 %[distortion]

Posted: 2016-07-23T15:57:21-07:00
by magick
Thanks for the problem report. We can reproduce it and will have a patch to fix it in GIT master branch @ https://github.com/ImageMagick/ImageMagick later today. The patch will be available in the beta releases of ImageMagick @ http://www.imagemagick.org/download/beta/ by sometime tomorrow.