1 | initial version |
Since you are using the cvBlob, I'll suggest setting up an ROI corresponding to the blob. Invert the image in the ROI (using bitwise_not) and find the blobs on that. And then, you can get the area and other parameters on the newfound blobs.