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:
magick compare -metric AE -fuzz 5% match1.png match2.png match_diff3_im7.png
219487
compare -metric AE -fuzz 5% match1.png match2.png match_diff3_im6.png
14133
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.
Possible bug compare -metric AE -fuzz
Re: Possible bug compare -metric AE -fuzz
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.
- 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
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
- 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
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
magick compare -metric AE -fuzz 5% -channel rgb match1.png match2.png match_diff3_im7.png
219487
match_diff3_im7.png
compare -metric AE -fuzz 5% -channel rgb match1.png match2.png match_diff3_im6.png
219487
match_diff3_im6.png
magick compare -metric AE -fuzz 5% -channel rgb match1.png match2.png match_diff3_im7.png
219487
match_diff3_im7.png
Re: Possible bug compare -metric AE -fuzz
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.
- 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
It seems to be fixed in IM 6.9.9.12 as of today's beta. Thanks