Search for cropped and resized image within source image
Posted: 2010-05-19T09:50:48-07:00
Hi,
Am seeking a way to search in a source jpeg image for the top left and bottom right positioning of a cropped and resized sub-image.
For example: source image 3000px wide by 2000px tall. Sub image was cropped from top left 200px,350px to bottom right 1800px, 1900px and resized to be 50% smaller. NB these are all arbitrary figures I've used here, just wanted to illustrate what I'm talking about.
I've searched the site and found details on using the compare method to search for an sub-image within an image, but nothing I found seems to cover dealing with the sub-image being resized. There's a mention on this page http://www.imagemagick.org/Usage/compare/ to using Advanced FFT matching for matching resized sub-images (size independant) which sounds like exactly what I'm after.
If anyone has any pointers they could share I'd appreciate it.
Thanks,
Michael.
Am seeking a way to search in a source jpeg image for the top left and bottom right positioning of a cropped and resized sub-image.
For example: source image 3000px wide by 2000px tall. Sub image was cropped from top left 200px,350px to bottom right 1800px, 1900px and resized to be 50% smaller. NB these are all arbitrary figures I've used here, just wanted to illustrate what I'm talking about.
I've searched the site and found details on using the compare method to search for an sub-image within an image, but nothing I found seems to cover dealing with the sub-image being resized. There's a mention on this page http://www.imagemagick.org/Usage/compare/ to using Advanced FFT matching for matching resized sub-images (size independant) which sounds like exactly what I'm after.
If anyone has any pointers they could share I'd appreciate it.
Thanks,
Michael.