Is the below still the case…Was wondering if the template matching can handle rotation or scale changes at all? (Was it improved to use a rolling integral image window?)
Template matching using something called an “integral image” to work.
Template matching works by having the camera look a like 32x32 image to find out of
a larger image (e.g. 320x240). That said, template matching doesn’t handle rotation
or scale changes at all. It just slides around the image you want to find on the
large image and then returns the point of best match. This means its very fragile.
This requires 4 bytes per pixel in the big image. So, 307200 bytes… plus the size
of the image itself which is 320x240x2 = 153600 bytes.
So, that’s 460800 in total. The M7 has about 350KB to play with.
We can improve template matching in the future using a rolling integral image window
which will fix this problem.
However, doing template matching in general requires a lot of CPU.
Thanks in Advance!