I am looking for an effective way to find an object template in an array. Here is the problem I have to solve. I am writing a tangible interface application that collects data from a webcam, converts it into a black and white image, from which I create an array. The created array looks something like this:
1111111111111111111111111111 1111110001111111111000111111 1111100000111111110000011111 1111100000111111110000011111 1111110001111111111000111111 1111111111111111111111111111
Where zeros represent the color black in the image. I have about 32 (4 lines of 8 circles in each), and I need to find an effective way to find their coordinates. I donβt need the whole shape, just a set of coordinates for each circle.
Thanks for the help.
Sincerely, Theodor Stoyanov
source share