Blob extraction by colour segmentation
Hello everyone,
I made an application which detects objects of a set color in a webcam image. I implemented a simple segmentation using Mahalanobis distance (the said reference colour is "trained" from 10/20 images obtaining a mean vector and covariance matrix), and I obtained a binary image (a Mat in which pixel values are 255 or 0). How can I perform blob analysys using this binary image? Which classes/methods/functions can I use?
I'd like, for example, to determine the size of the biggest blob and ignore smaller blobs.
Thanks in advance.