Basic Segmentation Tutorial. Damiles Blog.
This source code is not for professional uses, this is for educational uses, and describe the common technics segment image in different blobs, and extract contours and features
For more info about this see: http://blog.damiles.com/2010/12/segmentation-and-feature-extraction-contours-and-blob-detection/
mkdir build cd build cmake ../ make
There are different images in img folder to test demo.