Is there a way to compare 2 regions of an image to see if they are identical?
Like rectangle1 10,20 30,50 and rectangle2 50,60 70,90 .
Compare 2 regions
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: Compare 2 regions
compare -metric rmse image1[WidthxHeight+X1+Y1] image2[WidthxHeight+X2+Y2] null:
WidthxHeight must be the same in both image subsections (describing the dimensions) and X1 and Y1 are the upper left corner coords for the subsection relative to the top left corner of the image. Similarly for image2 and its subsection.
see http://www.imagemagick.org/Usage/compare/#compare
http://www.imagemagick.org/script/comma ... essing.php
WidthxHeight must be the same in both image subsections (describing the dimensions) and X1 and Y1 are the upper left corner coords for the subsection relative to the top left corner of the image. Similarly for image2 and its subsection.
see http://www.imagemagick.org/Usage/compare/#compare
http://www.imagemagick.org/script/comma ... essing.php