Possible bug compare -metric AE -fuzz

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Possible bug compare -metric AE -fuzz

Post 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.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Possible bug compare -metric AE -fuzz

Post 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.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Possible bug compare -metric AE -fuzz

Post 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
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Possible bug compare -metric AE -fuzz

Post 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
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Possible bug compare -metric AE -fuzz

Post 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.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Possible bug compare -metric AE -fuzz

Post by fmw42 »

It seems to be fixed in IM 6.9.9.12 as of today's beta. Thanks
Post Reply