[magick-users] Is there an option to tell Image Magick not to consider the intensity of the colors while comparing two images
Anthony Thyssen
A.Thyssen at griffith.edu.au
Thu May 28 17:27:59 PDT 2009
On Thu, 28 May 2009 13:17:12 -0700
Fred Weinhaus <fmw at alink.net> wrote:
| Replace the intensity channel in each of your two images with one of
| the other two channels. then do your compare?
|
| see http://www.imagemagick.org/Usage/channels/#channels
|
More specifically convert the image to HSL and replace the
luminance (or 'B') channel before comparing
convert image1.png image2.png -colorspace HSL \
-channel B -evaluate set 50% miff:- |\
compare - cmp_image.png
You can also use -compose difference too which will avoid the need
for the pipeline between the two commands, and let you do the processing
all in a single image.
See Difference Images
http://www.imagemagick.org/Usage/compare/#difference
Anthony Thyssen ( System Programmer ) <A.Thyssen at griffith.edu.au>
-----------------------------------------------------------------------------
Here's the thing about the Future...
Every time you look at it changes, because you looked at it...
And that changes everything else. -- Movie "Next"
-----------------------------------------------------------------------------
Anthony's Home is his Castle http://www.cit.gu.edu.au/~anthony/
More information about the Magick-users
mailing list