First time here? Check out the FAQ!
answered 2014-05-23 11:59:43 -0600
Connected Component Labeling may be a good solution here. Take a look at this implementation.