
Description
The project shows hair segmentation from photos. Important thing is to have an appropriate input image, where background and hair color must be different. Algorithm uses Mean Shift segmentation to segment input image into regions. Best regions are selected to be in the final image.
OpenCV function used
cvHaarDetectObjects, cvSplit, cvCalcHist, cvGetMinMaxHistValue, cvInRangeS
The process
- appropriate image selection
- face detection
- face segmentation (optional)
- Mean Shift image segmentation
- first region selection
- expansion of the first region
- final hair segmentation from image
Sample




