Fastest Comparison Method?

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
blue-j
Posts: 68
Joined: 2007-06-12T14:03:18-07:00

Fastest Comparison Method?

Post by blue-j »

I simply want to compare two images and know if they are visually different at all. (They will be the same size.)

I know of the AE compare metric, of IM image signatures... but what is the FASTEST method to do this?

Thanks for your consideration!

- J
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Fastest Comparison Method?

Post by fmw42 »

I believe that AE is the fastest compare metric.

Code: Select all

time compare -metric AE logo.png logox.png null:
0.108s

Code: Select all

time compare -metric PAE logo.png logox.png null:
0.113s

Code: Select all

time compare -metric rmse logo.png logox.png null:
0.113s

Code: Select all

time convert logo.png logox.png -compose difference -composite -format "%[fx:mean]" info:
0.132s
blue-j
Posts: 68
Joined: 2007-06-12T14:03:18-07:00

Re: Fastest Comparison Method?

Post by blue-j »

thanks so much! I didn't know of the "time" command! : )
Post Reply