Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Connected Component Labeling may be a good solution here. Take a look at this implementation.