How to extract lip region from facial features
Afficher commentaires plus anciens
Hi,
I am newbie for matlab , from matlab forums i have tried to get lip region ,but exact shape i cannot get .so please let me know where i have make mistake let me know,below code followed?

YIQ = rgb2ntsc(hue1);
Y1 = YIQ(:,:,1);
I1 = YIQ(:,:,2);
Q = YIQ(:,:,3);
J = imadjust(Y1);
t = graythresh(blue_Image);
imCoin = (red_Image > hueThresholdHigh);
K = medfilt2(red_Image);
[level1 EM]= graythresh(K);
BW_lip = im2bw(red_Image);
Binary_Hue = red_Image > T;
level = graythresh(J);
binary_Image = im2bw(J,level);
[imx,imy]=size(binary_Image);
bw_Fill= imfill(binary_Image,'holes');
labeledImage = bwlabel(bw_Fill, 8);
blobMeasurements = regionprops(labeledImage, 'area');
areas = [blobMeasurements.Area];
[maxArea largestBlobIndex] = max(areas);
bw_area = bwareaopen(bw_Fill ,2500);
BWnobord = imclearborder(bw_area, 4);
seD = strel('disk',1);
% BWfinal = imerode(BWnobord,seD);
BWfinal = imerode(BWnobord,seD);
BWoutline = bwperim(bw_area);
Segout = mouthcrop;
Segout(BWoutline) = 255;
3 commentaires
SAMEER ahamed
le 2 Jan 2014
Modifié(e) : Walter Roberson
le 6 Jan 2014
Image Analyst
le 2 Jan 2014
I don't have the computer vision system toolbox so I can't try that code. The lips you're using are very dark and very low contrast. They're hardly any different in color than the surrounding skin so I'm not surprised that you're having trouble. You're not going to solve it with any simple code that's only a dozen lines long.
SAMEER ahamed
le 2 Jan 2014
Réponse acceptée
Plus de réponses (1)
banupriya saravanan
le 21 Nov 2014
0 votes
sir this is saravanan from chennai.. i need matlab code for extracting skin region from image using any filter
1 commentaire
Image Analyst
le 21 Nov 2014
See my File Exchange for color segmentation demos: http://www.mathworks.com/matlabcentral/fileexchange/?term=authorid%3A31862
Catégories
En savoir plus sur Image Segmentation dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!