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)
Please help me to make segmentation for eye's image, i want to segment the sclera (Whites of the eyes)of eye.
  4 Comments
Malak s
Malak s on 4 Apr 2014
Edited: Malak s on 4 Apr 2014
i don't know how to write the code to segmented it, i want to segment many images like that, not just one image .
Abdul Rehman
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);

Sign in to comment.

Answers (1)

Image Analyst
Image Analyst on 4 Apr 2014
  6 Comments
Ahmad Almazloum
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
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.

Sign in to comment.

Tags

Community Treasure Hunt

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

Start Hunting!