putting an ellipse/ filtering out back noise in image

Hello I am stuck! I am attempting to just get a clear segmentation of my iris (the black circle) however I feel like what im trying isnt working if anyone can help with this that would be awesome. Alos putting an elipse around the circle. I have been stuck on this for days
eye=imread("niceeye.jpg");
eyeBW = imbinarize(eye,"adaptive");
filtersize= [1 1];
avg = fspecial('average',filtersize);
eyeavg = imfilter(eye,avg,"circular");
eyeavgBW = imbinarize(eyeavg,"adaptive","ForegroundPolarity","bright");
%circeye = imfindcircles(,eyeavgBW,5)
idkeye=bwareaopen(eyeavgBW,11000);
figure,axes,imshowpair(idkeye,eyeavgBW,'montage')
idkpt2 = imclearborder(idkeye,8);
edgeeye= (idkpt2)
imshowpair(edgeeye,idkpt2,'montage')

6 件のコメント

Matt J
Matt J 2022 年 7 月 27 日
We cannot Run the code since niceeye.jpg is not attached.
Jose
Jose 2022 年 7 月 28 日
Jose
Jose 2022 年 7 月 28 日
This is the file
Matt J
Matt J 2022 年 7 月 28 日
I see a screenshot but no file attachment. If we download the screenshot, it would not necessarily be the same as the file your are testing on.
Jose
Jose 2022 年 7 月 28 日
How about now!
Jose
Jose 2022 年 7 月 29 日

サインインしてコメントする。

その他の回答 (0 件)

質問済み:

2022 年 7 月 27 日

回答済み:

2022 年 7 月 29 日

Community Treasure Hunt

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

Start Hunting!

Translated by