Please help me to make segmentation for eye's image, i want to segment the sclera (Whites of the eyes)of eye.
9 views (last 30 days)
Show older comments
Please help me to make segmentation for eye's image, i want to segment the sclera (Whites of the eyes)of eye.
4 Comments
Abdul Rehman
on 1 May 2019
I=imread('K.jpg');
L=rgb2gray(I);
BW1 = edge(L,'Canny');
imshow(BW1);
radii = 78:1:92;
h = circle_hough(BW1, radii, 'same', 'normalise');
peaks = circle_houghpeaks(h, radii, 'nhoodxy', 15, 'nhoodr', 21, 'npeaks', 1);
imshow(I);
hold on;
for peak = peaks
[x, y] = circlepoints(peak(3));
plot(x+peak(1), y+peak(2), 'g-');
end
hold off
figure;
imshow(I);
a=peak(1);
b=peak(2);
c=peak(3);
% Customerlized Mask
m = zeros(size(I,1),size(I,2));
m(20:120,20:120) = 1;
% Built-in Mask
seg = chenvese(I,'small',1000,0.02,'chan'); % ability on gray image
%-- End
imshow(seg);
Answers (1)
Image Analyst
on 4 Apr 2014
Go here for robust algorithms: http://iris.usc.edu/Vision-Notes/bibliography/people898.html#Finding%20Facial%20Features,%20Eye%20Detection
6 Comments
Ahmad Almazloum
on 30 Dec 2014
Have got the code of the sclera detection (the white area)? Please if any body have the algorithm ou matlab code, please send it to me (my email; mrclick00@yahoo.com)...thanks in advance.
Image Analyst
on 30 Dec 2014
The algorithms are listed in the link I gave. Did you look at it? I don't have any of their code, but perhaps if you ask the authors they might be able to offer something.
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!