The compare option -mertic AE returns a list of the number of pixels that was different
between the images.
compare also has a -fuzz option which adjusts the number of modified pixels reported by the output image. However this factor does not modify the pixel count returned by the AE metric, it only effects the output image.
Can we have a TE metric added that returns the Threshold Error.
That is the number of pixels in the image that are NOT within the 'fuzz factor' threshold.
I don't actually care about the output image.
ASIDE: if the output image of compare is NULL: perhaps compare can avoid image mask processing and thus speed up its processing.
compare meric AE ignores fuzz factor
- anthony
- Posts: 8883
- Joined: 2004-05-31T19:27:03-07:00
- Authentication code: 8675308
- Location: Brisbane, Australia
compare meric AE ignores fuzz factor
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
https://imagemagick.org/Usage/
Re: compare meric AE ignores fuzz factor
AE respects -fuzz. We tried
- compare -fuzz 15% -metric ae rose: rose: null:
- anthony
- Posts: 8883
- Joined: 2004-05-31T19:27:03-07:00
- Authentication code: 8675308
- Location: Brisbane, Australia
Re: compare meric AE ignores fuzz factor
Strange when I tested that a few days ago it wasn't working! I must have been doing it wrong!
Only to AE Any two transparent colors are equal
compare -metric AE xc:#0000 xc:#FFF0 null:
0
But of course to RMSE they are different!
compare -metric RMSE xc:#0000 xc:#FFF0 null:
56755 (0.866025)
Though I do not understand why the distance is 86.7% of the distance between white and black!
That does not seem to make a lot of sense!
Only to AE Any two transparent colors are equal
compare -metric AE xc:#0000 xc:#FFF0 null:
0
But of course to RMSE they are different!
compare -metric RMSE xc:#0000 xc:#FFF0 null:
56755 (0.866025)
Though I do not understand why the distance is 86.7% of the distance between white and black!
That does not seem to make a lot of sense!
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
https://imagemagick.org/Usage/
- anthony
- Posts: 8883
- Joined: 2004-05-31T19:27:03-07:00
- Authentication code: 8675308
- Location: Brisbane, Australia
Re: compare meric AE ignores fuzz factor
Can we modify the code so that we get a Fuzz Factor 'distance' metric.
EG:
compare -metric Fuzz xc:Blue xc:Navy null:
16383.8 (0.25)
Note that this should return the same result for RMSE for fully-opaque colors.
However Fuzz results are different when transparency is involved. EG:
compare -metric Fuzz xc:#0000 xc:#FFF0 null:
0 (0.00000)
We may have a new fuzz factor formula soon. One that treats None to any opaque color as being the same.
EG:
compare -metric Fuzz xc:Blue xc:Navy null:
16383.8 (0.25)
Note that this should return the same result for RMSE for fully-opaque colors.
However Fuzz results are different when transparency is involved. EG:
compare -metric Fuzz xc:#0000 xc:#FFF0 null:
0 (0.00000)
We may have a new fuzz factor formula soon. One that treats None to any opaque color as being the same.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
https://imagemagick.org/Usage/
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: compare meric AE ignores fuzz factor
why not just a new parameter for compare such as -respect-transparency or something like that (or -channel rgba)
- anthony
- Posts: 8883
- Joined: 2004-05-31T19:27:03-07:00
- Authentication code: 8675308
- Location: Brisbane, Australia
Re: compare meric AE ignores fuzz factor
Because it should not effect other metrics!!!! It is a completely separate metric.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
https://imagemagick.org/Usage/
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: compare meric AE ignores fuzz factor
Yes, I agree. I thought about that over night and realized that it was only for rmse and your method would not affect the others, but mine would, if taken full course. My alternate suggestions are withdrawn.anthony wrote:Because it should not effect other metrics!!!! It is a completely separate metric.