CIE-LCH colorspace range for skin color detection

조회 수: 4 (최근 30일)
Ahmed El Sheikh
Ahmed El Sheikh 2016년 9월 30일
답변: Image Analyst 2016년 10월 21일
I am working on image segmentation depending upon color detection, a code was sent to me including a certain range of color tones it does not work well. and I am searching for help right now.
if true
(C >= 11.64 && C <= 27.82) && (H >= 36.17 && H <= 64.17) && (L >= 32.49 && L <= 73.46)
end

답변 (2개)

David Verrelli
David Verrelli 2016년 10월 21일
The syntax looks wrong.
Try perhaps:
if (C >= 11.64 && C <= 27.82) && (H >= 36.17 && H <= 64.17) && (L >= 32.49 && L <= 73.46)
% Do stuff
else
% Do alternative stuff
end
.
  댓글 수: 1
Ahmed El Sheikh
Ahmed El Sheikh 2016년 10월 21일
syntax is not wrong, I wrote it that way to note the segmentation condition nothing else

댓글을 달려면 로그인하십시오.


Image Analyst
Image Analyst 2016년 10월 21일
Try the Color Thresholder on the Apps tab of the tool ribbon to find the values.
Or try the color segmentation demos in my File Exchange: http://www.mathworks.com/matlabcentral/fileexchange/?term=authorid%3A31862
and see the other attached demo that works for skin on the demo image that ships with MATLAB.
Finally, see the skin gamut with the skin_color.m demo (attached) to see why simple thresholding in any color space will not get you all skin colors for all Fitzpatrick skin types.

카테고리

Help CenterFile Exchange에서 Image Processing Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by