in reply to Re: Image processing in perl
in thread Image processing in perl

You might be wrong about ImageMagick. See the last example with -subimage-search at http://www.imagemagick.org/script/compare.php. The similarity image seems to be what he wants, even though the gif file isn't exactly the data structure a perl programmer wants

Replies are listed 'Best First'.
Re^3: Image processing in perl
by marto (Cardinal) on Feb 02, 2011 at 10:26 UTC

    You may be right, I'm no ImageMagick expert. OP seems to want a count of the occurances of subimage in the source image. The output from compare with it's -subimage-search method is the best match ofset and another image, which presents OP with another problem as this only seems to work for the first match. Also, I don't think it's output is limited to gif files, that could just be an example. I think the solutions offered by others, Image::Match with it's match method and possibly Imager::Search are more along the lines of what OP requires.