[prev in list] [next in list] [prev in thread] [next in thread] 

List:       imagemagick-user
Subject:    Re: [magick-users] diff to images
From:       Bob Friesenhahn <bfriesen () simple ! dallas ! tx ! us>
Date:       2002-06-26 19:29:53
[Download RAW message or body]

On Wed, 26 Jun 2002, Achim Domma wrote:

> is there an easy way to compare to images, whether they are equal or not? I
> want this to write UnitTests, so I'm not interested in difference per pixel.
> I only need a function which decides whether the images are equal nor not.
> Magick++ calls would be prefered.

If you want to compare absolutely, the easiest way is to compute the
Image signature string via the image signature() method and compare
the signatures for both images to see if they are identical.  This is
how the PerlMagick tests work.

Bob
======================================
Bob Friesenhahn
bfriesen@simple.dallas.tx.us
http://www.simplesystems.org/users/bfriesen

_______________________________________________
Magick-users mailing list
Magick-users@imagemagick.org
http://studio.imagemagick.org/mailman/listinfo/magick-users
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic