Calculating and comparing an absolute error metric for images
Posted: 2015-03-27T21:33:44-07:00
So I'm using compare to compare two images using the AE metric:
What I don't know how to do now is to output a comparable "value" for each image. Currently, I am iterating through many combinations of the same image and running compare on each combination, which is taking a long time.
1. Can I first run through every image individually and get ImageMagick to output some sort of value/hash/whatever that I can save?
2. Can I then run through all the permutations of the images I have and simply use the output from 1 to more quickly compute a similarity percentage?
I was previously using pHash to output a hash for every image then used a script to compare all these hashes, which was super fast. However, I don't know how to do something similar using ImageMagick's absolute error comparison metric.
Code: Select all
compare -metric AE -fuzz 15% image1.png image2.png /dev/null
1. Can I first run through every image individually and get ImageMagick to output some sort of value/hash/whatever that I can save?
2. Can I then run through all the permutations of the images I have and simply use the output from 1 to more quickly compute a similarity percentage?
I was previously using pHash to output a hash for every image then used a script to compare all these hashes, which was super fast. However, I don't know how to do something similar using ImageMagick's absolute error comparison metric.