Page 1 of 1

Compare two images without a region

Posted: 2018-09-16T15:02:56-07:00
by Freddie20000
Hi,

I'm using IM 7 and don't understand the command line of compare for two images ... but without a special region ( rectangle ).
I can use crop, but this actually defines a rectangle to compare... but I need the entire picture without a special rectangle that is not as high as the height ... hope you understand ...

Thanks

Re: Compare two images without a region

Posted: 2018-09-16T16:00:22-07:00
by snibgo
With the built-in IM operations, you can't exclude a region from the comparison. But you can paint that region with a colour that isn't in the reference image, eg pure red.

I don't really understand what you want. Can you link to some sample images?

Re: Compare two images without a region

Posted: 2018-09-16T16:45:44-07:00
by fmw42
I do not understand your request either.

See
https://imagemagick.org/script/compare.php
https://www.imagemagick.org/Usage/compare/

For IM 7 add magick before compare

Code: Select all

magick compare image1 image2 difference
or

Code: Select all

magick compare imag1 image2 null:
_____________


Please, always provide your IM version and platform when asking questions, since syntax may differ. Also provide your exact command line and if possible your images.

See the top-most post in this forum "IMPORTANT: Please Read This FIRST Before Posting" at http://www.imagemagick.org/discourse-se ... f=1&t=9620

If using Imagemagick 7, then see http://imagemagick.org/script/porting.php#cli


For novices, see

http://www.imagemagick.org/discourse-se ... f=1&t=9620
http://www.imagemagick.org/script/comma ... essing.php
http://www.imagemagick.org/Usage/reference.html
http://www.imagemagick.org/Usage/
https://github.com/ImageMagick/usage-markdown

Re: Compare two images without a region

Posted: 2018-09-17T14:09:37-07:00
by Freddie20000
Hey, snibgo has absolutely right... I want to exclude a region like the following one with the plus signs:

************************************++
************************************++
************************************++
************************************++
************************************++
***************************************
***************************************

Sorry... I don't know how to upload my image, but I think you know what I mean. So If there's no way to exclude an rectangle... what would be the command line to create colored regions that aren't compared ?

Thanks....

Re: Compare two images without a region

Posted: 2018-09-17T14:44:51-07:00
by fmw42
You can do that with a mask image in IM 7 only. See viewtopic.php?f=4&t=31053.

You can upload image to some free hosting service that will not change the format such as dropbox.com and put the URLs here. This forum does not allow image upload directly.