Reputation: 927
I'm using ImageMagick compare to compare two images and get their diff. I have 2 questions:
Thanks!
Upvotes: 0
Views: 579
Reputation: 207425
Let's suppose you start with these two images:
convert -size 256x256 xc:black -fill white -draw "circle 100,100 120,100" a.png
and
convert -size 256x256 xc:black -fill white -draw "circle 120,120 140,140" b.png
Then you can get the differences in red on a transparent background like this:
compare a.png b.png -highlight-color red -lowlight-color none -compose src diff.png
I have overlaid it onto a checkerboard like Photoshop does so you can see the checkerboard through the transparency.
As regards your second question, I have no idea how you can get the difference between a single image? Difference from what?
Upvotes: 3