how to recognize pupil using connected components

조회 수: 1 (최근 30일)
MANI MANI
MANI MANI 2013년 11월 5일
답변: Image Analyst 2013년 11월 5일
Assuming pupil is the largest area in an eye image, using the below code, bw=im2bw(i,0.20); [labeled,numObjects] = bwlabel(bw,4); data = regionprops(labeled,'basic'); maxArea = max([data.Area]);
gives me entire eye image.

답변 (1개)

Image Analyst
Image Analyst 2013년 11월 5일
Then you can't simply use a simple threshold algorithm like you did. You'll need something better. Go here: http://iris.usc.edu/Vision-Notes/bibliography/contents.html to find algorithms you can use.

카테고리

Help CenterFile Exchange에서 Images에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by