How to get Real Time Lip Segmentation using Matlab R2013b
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
SAMEER ahamed
am 28 Dez. 2013
Kommentiert: Muluken Birara
am 26 Jul. 2017
I am new for Matlab newbie , actually with reference link i am trying to get lip detection like http://www.academia.edu/945274/A_Robust_Lip_Center_Detection_In_Cell_Phone_Environment i have implement code like i am not getting exact lip shape binary out put, please explain binarize lip region how to achieve i am confused.
YIQ = rgb2ntsc(hue1);
Y1 = YIQ(:,:,1);
I1 = YIQ(:,:,2);
Q = YIQ(:,:,3);
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/154207/image.bmp)
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;
1 Kommentar
Akzeptierte Antwort
Image Analyst
am 28 Dez. 2013
There is no algorithm there at all. It looks more or less like a random collection of lines from different image processing algorithms. There is no sensible algorithm there at all. Keep working on it.
2 Kommentare
Weitere Antworten (0)
Siehe auch
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!