Page 1 of 1

Possible bug compare -metric AE -fuzz

Posted: 2017-08-29T17:31:16-07:00
by fmw42
I am seeing quite a difference between compare -metric AE -fuzz in IM 6.9.9.10 Q16 (non-hdri) and IM 7.0.6.10 Q16 HDRI. Not only are the difference images not the same, but the counts are different.

Input pair:

Image

Image


magick compare -metric AE -fuzz 5% match1.png match2.png match_diff3_im7.png
219487

Image



compare -metric AE -fuzz 5% match1.png match2.png match_diff3_im6.png
14133

Image

I believe the bug is in IM 6, since if I increase the fuzz value, I see less red in IM 7 result, but still all red in the IM 6 result.

Re: Possible bug compare -metric AE -fuzz

Posted: 2017-08-30T04:07:51-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.

Re: Possible bug compare -metric AE -fuzz

Posted: 2017-08-30T09:46:42-07:00
by fmw42
I do not get any difference from before by using

Code: Select all

magick compare -metric AE -fuzz 5% -channel rgb match1.png match2.png match_diff3_im7.png

compare -metric AE -fuzz 5% -channel rgb match1.png match2.png match_diff3_im6.png

Re: Possible bug compare -metric AE -fuzz

Posted: 2017-09-05T10:27:43-07:00
by fmw42
In IM 7.0.7.0 Q16 and IM 6.9.9.10, the counts are now the same, but the resulting difference images are still different. The IM 6 result is completely red as above and the IM 7 result is not completely red. I think the IM 6 result might be wrong, since increase the fuzz value does not reduce the amount of red in the difference image.

compare -metric AE -fuzz 5% -channel rgb match1.png match2.png match_diff3_im6.png
219487

match_diff3_im6.png
Image


magick compare -metric AE -fuzz 5% -channel rgb match1.png match2.png match_diff3_im7.png
219487

match_diff3_im7.png
Image

Re: Possible bug compare -metric AE -fuzz

Posted: 2017-09-05T15:43:27-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 @ https://www.imagemagick.org/download/beta/ by sometime tomorrow.

Re: Possible bug compare -metric AE -fuzz

Posted: 2017-09-06T19:35:34-07:00
by fmw42
It seems to be fixed in IM 6.9.9.12 as of today's beta. Thanks