Automatically comparing images

Step-by-Step descriptions of how to do things.
Post Reply
User avatar
^rooker
Site Admin
Posts: 1481
Joined: Fri Aug 29, 2003 8:39 pm

Automatically comparing images

Post by ^rooker »

I needed to visually compare throusands (!!) of exported image sequences from an analogue video source - so a manual comparison was not an option.
ImageMagick to the rescue!

A basic impage comparison is straightforward:

Code: Select all

compare bag_frame1.gif bag_frame2.gif compare.gif
Since the captured material came from an analogue source, it's necessary to do a "fuzzy" comparison that ignores small differences up to a certain degree.
For example:

Code: Select all

compare -metric AE -fuzz 5% bag_frame1.gif bag_frame1.jpg compare_fuzz.gif
Jumping out of an airplane is not a basic instinct. Neither is breathing underwater. But put the two together and you're traveling through space!
Post Reply