[magick-users] Fw: Re: Is there an option to tell Image Magick not to consider the intensity of the colors while comparing two images
vijay vaidya
vijayvaidya2000 at yahoo.com
Mon Jun 29 17:17:02 PDT 2009
People,
My Earlier mail contents was not correct, probably. I do not whether intensity varies or not (have tried your commands but the images still mismatch). But, the input and the output images differ only in the text written on them. One is having a thicker font and the other is having a lighter font. Is there a way to tell Image Magick not to consider the font sizes but compare the contents alone? Is there a possibility to tell IM to replace the font size of one image with the font size of the other image so that both of them becomes same.
Have attached the two images.
Please go through them and let me know the solution.
Thanks a lot for your time,
Vijay.
--- On Fri, 5/29/09, Anthony Thyssen <A.Thyssen at griffith.edu.au> wrote:
> From: Anthony Thyssen <A.Thyssen at griffith.edu.au>
> Subject: Re: [magick-users] Is there an option to tell Image Magick not to consider the intensity of the colors while comparing two images
> To: magick-users at imagemagick.org
> Date: Friday, May 29, 2009, 5:57 AM
> 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/
> _______________________________________________
> Magick-users mailing list
> Magick-users at imagemagick.org
> http://studio.imagemagick.org/mailman/listinfo/magick-users
>
More information about the Magick-users
mailing list