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 Center および File ExchangeImages についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by