coding for color based segmentation

1 次查看(过去 30 天)
vibhu sharma
vibhu sharma 2011-11-28
i want to do matlab coding for segmenting the object on the basis of color based segmentation and the proposed color space is LAb color space...can anyone plsss help me out with this plsss...its really very urgent
  1 个评论
Sven
Sven 2011-11-28
duplicate from: http://www.mathworks.com/matlabcentral/answers/22462-hand-color-recognition-code
Vibhu, you can edit your original question rather than make a new one with the same topic. Also, please show us what you've done so far. Or show an image you want to segment. Or read this post (http://www.mathworks.com/matlabcentral/answers/6200-tutorial-how-to-ask-a-question-on-answers-and-get-a-fast-answer)

请先登录,再进行评论。

回答(1 个)

Image Analyst
Image Analyst 2011-11-28
MATLAB's demo of k-means clustering in LAB color space: http://www.mathworks.com/products/demos/image/color_seg_k/ipexhistology.html
My color segmentation demos in RGB space, HSV space, and LAB space: http://www.mathworks.com/matlabcentral/fileexchange/?term=authorid%3A31862
If Sven is right about you wanting to find hands/skin, hsv color space would be best for segmenting skin gamut. LAB or RGB color space would be no good. Even with HSV you can't simply go on hue, though that's the major component. You have to put in some curves to make the gamut "bow out" in the middle and come back in at the top and bottom so that you get the boomerang-shaped gamut characteristic of skin.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by