I’m not sure where to start with this so some guidance would be good. What I need to achieve is, examine a large image (say 1280×1024) and check to see if another smaller image exists within it or not (maybe a 50×50 pixel image).
I tried doing this by comparing every pixel which is really slow and I may need to do it 100+ times so it doesn’t seem suitable. I’m just wondering if there is a better way?
Thanks
I was just working on something similar and the quick and dirty result I came up with is to use AForge.Net’s implementation of “ExhaustiveTemplateMatching” with images 1/4 of their size. 720p images at full size took a couple minutes but at 1/4 size it’s about a second on my puny computer.
You could also of course just check for tm.length > 0 and yes there are some unnecessary divides in there 😛