Page 3 of 3

Re: Compare (subimage-search) rotated image without intermediary files

Posted: 2017-05-21T13:15:03-07:00
by fmw42
You need 7.0.5.7. Likely it would do the job faster, but probably not by much.

I ran the following 3 times:

Code: Select all

time magick compare -metric rmse -subimage-search -dissimilarity-threshold 1 \
\( 370669patch.png +repage -background black -alpha background \) \
\( 224977object4.png +repage -background black -alpha background +distort SRT 180 -trim +repage \) \
-alpha off null:
real 0m2.756s
real 0m2.731s
real 0m2.753s

Code: Select all

magick \
\( 370669patch.png +repage -background black -alpha background \) \
\( 224977object4.png +repage -background black -alpha background \
    -background none -virtual-pixel background -distort SRT 180 -trim +repage \) miff:- |\
magick compare -metric rmse -subimage-search -dissimilarity-threshold 1 - null:
real 0m3.009s
real 0m3.020s
real 0m3.026s

So the first command is about 9% faster.

Re: Compare (subimage-search) rotated image without intermediary files

Posted: 2017-05-21T13:19:17-07:00
by magick
fmw42 wrote: 2017-05-20T17:06:12-07:00 In IM 7.0.5.7, you need to turn alpha off at the end or the diff-1.png image will be transparent.
Thanks for the problem report. We can reproduce it and will have a patch to fix it in GIT master branch @ https://github.com/ImageMagick/ImageMagick later today. The patch will be available in the beta releases of ImageMagick @ http://www.imagemagick.org/download/beta/ by sometime tomorrow.

Re: Compare (subimage-search) rotated image without intermediary files

Posted: 2017-06-05T08:21:50-07:00
by cowboyzed
Otherwise I want to know if there is a way to easily install these latests versions of IM under windows. The latest version of PECL supports only IM 6.9.3.

Re: Compare (subimage-search) rotated image without intermediary files

Posted: 2017-06-05T09:55:27-07:00
by fmw42
cowboyzed wrote: 2017-06-05T08:21:50-07:00 Otherwise I want to know if there is a way to easily install these latests versions of IM under windows. The latest version of PECL supports only IM 6.9.3.
I think you will need to contact the Imagick developers. ImageMagick does not maintain Imagick nor did they develop Imagick.

Re: Compare (subimage-search) rotated image without intermediary files

Posted: 2017-06-07T08:28:23-07:00
by cowboyzed
Thanks for your reply ;)