MATLAB Answers

Harish
0

Detecting Iris from an image

Asked by Harish
on 31 Mar 2013
Hi I'm doing Iris Recognition project with a webcam. But for now I'm using images to find Iris. I'm using this http://www.mathworks.com/matlabcentral/fileexchange/25056 for detecting pupil center. With this pupil center I can find iris boundary by drawing concentric circles and having maximum variation of intensity.
Now my problem is in finding pupil center from above code which uses viola jones code for face detection.
Face is not getting detected if it is scaled down by this
pic2=double(rgb2gray(pic(1:scale:end,1:scale:end,:)));
but works without scaling down pic2=double(rgb2gray(pic)); but code is getting error
??? Index exceeds matrix dimensions.
Error in ==> getPoints at 48
[x
y]=getMouth((snapshot0(out(2,2):out(2,2)+out(2,4),out(2,1):out(2,1)+out(2,3),:)));
Error in ==> img3 at 7
[T] = getPoints(img);
If anyone can go through the code of getfeatures.m and getpoints.m here
and suggest me a change to detect pupil center.
This is the sample image I'm working on http://myopencv.files.wordpress.com/2008/04/lena.jpg
Regards

  0 Comments

Sign in to comment.

1 Answer

Answer by Image Analyst
on 31 Mar 2013

I doubt that's going to happen. Your best bet is to learn how to debug code yourself rather than relying on us to do it for you, especially when it requires us to download some File Exchange submission. Plus you'll be on your way much, much faster than having to wait hours or days in hopes that someone may actually want to do this for you.
You can go here to start to learn how to debug code:

  0 Comments

Sign in to comment.