Question

I want to extract the white area of my binary image. Everywhere I check on the internet, I see stuff about cvBlob and cvBlobLib. I don't really know what these are since I am just working with openCV and C++. Do I need to install those extra things to extract the white area from my binary image. The white area is a person walking.

Was it helpful?

Solution

cvBlob is an "add-on" to OpenCV. If you want to extract contigous white area of your binary (thresholded) image, please have a look at the contours2.cpp example wich is provided with OpenCV. You can find it in OpenCV-2.3.1/samples/cpp/contours2.cpp

This file will show you how to find "blobs" in a thresholded image thanks to the OpenCV built in function cvFindContour.

I never try cvBlob, may be this library works better than cvFindContour, but it is very easy to try cvFindContour thanks to the sample "contours2.cpp"

OTHER TIPS

Cvblob would be better choice over others with its power on blob detecting and tracking them, but there isn't enough documentation and tutorials.

I have try to use cvBlob but seems it's not working for me. then, i choose cvBlobsLib instead. This link http://opencv.willowgarage.com/wiki/cvBlobsLib might help you. If you want to find the white pixel area, use CCL analysis. It will search for all the white blobs in the image. Use some criteria to eliminate the blobs that you might not want.

cvblob is much better than cvFindContour(hard) or cvBlobLib(outdated).

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top