I did the hard work by turning the iSight camera on my MacBook into an infrared camera, converted it, set a threshold, etc. and now has an image that looks something like this:
alt text
My problem is now; I need to know how many drops are in my image, grouping white pixels. I do not want to use cvBlob / cvBlobsLib , I would rather use what is already in OpenCV.
I can loop around the pixels and group them by checking the (threshold) touch of the white pixels, but I assume there is perhaps a very simple way to do this from OpenCV?
I assume that I can not use cvFindContours , as this will extract all white pixels in one large array, and not separate them into "groups". Can anyone recommend? (Please note that these are not circles, only the light emitted by the small IR LEDs)
Thank you very much in advance!
tommed
c image-processing opencv imaging video-processing
tommed
source share