separate iris from eye
显示 更早的评论
i am doing a iris detection project,,,in that i have code to detect and plot circles around the iris but now i want to separate the iris part only from the eye image,,,i am trying to us e edge detection and imcrop techniques but not work suggest any way
9 个评论
Matt Kindig
2012-9-27
What is "not working" about edge detection techniques? Can you show us both your image as well as your Matlab code?
lakshmi
2012-9-27
编辑:Walter Roberson
2012-9-27
lakshmi
2012-9-27
编辑:Walter Roberson
2012-9-27
lakshmi
2012-9-27
lakshmi
2012-9-27
Image Analyst
2012-9-27
Looks like you got the iris, so all that's left to do is to crop it out. So use any() and find() to locate the top and bottom rows, and left and right columns, then use imcrop to crop it out. Demo code is in my tutorial.
lakshmi
2012-9-28
hi lakshmi may you please give me the code for detect the iris and pupil?
回答(1 个)
Image Analyst
2012-9-27
0 个投票
What is thresh() and the ci that it returns? But anyway, basically this looks just like simple thresholding, like I do in my Image Segmentation Tutorial to find coins in an image. I suggest you look at that demo. It does just like you are doing - threshold to find round objects, then crop them from the image to form small cropped sub-images. I think this is what you said you want to do.
As far as your edge detection code goes, you aren't doing anything with it. You simply get an edge image and then display it. Of course that would require lots of additional processing most likely since I envision all kinds of edges, like where the white of the eye hits the eyelids, where the eyelashes are, striations in the iris itself, etc.
Have you tried imfindcircle()?
7 个评论
lakshmi
2012-9-27
Image Analyst
2012-9-27
It's fairly new. What version of MATLAB do you have? See http://www.mathworks.com/help/images/ref/imfindcircles.html Make sure you expand the examples and look at them.
lakshmi
2012-9-28
Image Analyst
2012-9-28
I don't have the Neural Network toolbox - I use just standard methods.
lakshmi
2012-9-28
Image Analyst
2012-9-28
You haven't uploaded the image yet, just a screenshot. And why can't you upgrade to the latest MATLAB so you can use imfindcircle? Did you not get the maintenance agreement?
What you're trying to do (minus the neural network toolbox part) falls within the scope of this tutorial by Image Analyst.
You will not be able to create a circular image of just the iris, it will need to be square to fit into a matrix so Matlab can process it. The background will simply be a known value that you can disregard in further processing. Typically a background value of 0 works well.
类别
在 帮助中心 和 File Exchange 中查找有关 Object Analysis 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!