This collection of M-files takes as input a close-up image of the human iris and returns as output the original image overlaid with circles corresponding to the pupil and iris boundaries. In addition, it returns the centre and radius coordinates of both boundaries in the variables ci and cp.Notes on the use of the function(s) are included in the .txt files. All the functions have to be on the search path for the code to work.
Unfortunately, I wrote this a long time ago (2007) and no longer have the time to support it. You are of course free to extend and reuse this if it helps you.

Hello, please help I don't understand the function each time I tried to run the program it gives me errors that function is invalid in the code and (I,C,r,n) that I should terminate with a code. Here is the code:
K = imread('brown eye.jpg);
I = rgb2gray(K);
figure,imshow(I);
r = 150;
C = int32([200 300 150]);
function [0] = drawcircle(I,C,r,n);
margin =3
Please tell me what I'm missing in this code. Thanks alot

Salemou 3laikom
Hello
I still confused to determine Rmin, Rmax, coordinate of center point, and number of side.
the size is exceed, how can i fix this??
I work with CASIA Iris-Syntetic V4, image dimensions is 640*480 (widht*hight)
how to calculate rminiris and rmaxiris ( the minimum and maximum values) of the iris radius.
Can you help me and thank you very much

works great! thanks Anirudh Sivaraman
for sharing.. big thnx to you too Rajasekhar Reddy for the suggestions. it also helps me in making the execution faster by altering the imgsize, rmin & rmax values w/ a proper scaling factor!

still confused to determine Rmin, Rmax, coordinate of center point, and number of side.. Plzz tell me! :'(
at search.m :
radius = maxrad(X,Y)
the size is exceed,, how can i fix this??
i work withh CASIA Iris-V4

it works great !! for those who uses CAsia interval or CASIA Iris-V3 you must to fix the min and the max Radius [95 150] respectively, and to apply the Enhace histog Equalization "histeq.m"
but if you use the Casia1 it works by fixing on [95 105] without histeq.
I've some prblm with the Classification step if someone could help I'll apreciate (wich method or Algorithm i should use to extract the features ..!!).
Good luck.

i have tried this m-files by using the CASIA iris database (version 1) and it works fine. But then when i run it by using CASIA interval iris database, it not really works well. Can i know how to solve this issue??

please people help me,I implement the code iris recognition for libor masek and I got an error coding project.
I put the image file(001_1_1.bmp) in same directory with createiristemplate.m when i call this function
createiriatemplate('001_1_1.bmp');
there was an error Error: File: createiristemplate.m Line: 21 Column: 47
Unexpected MATLAB expression.
I also already changed all the eyeimage_filename in createiristemplate to
('001_1_1.bmp'), but theres still error.
can you help me please and tell me what is are the steps i have to do to run the codes?

works perfect ! gr8 !
There is a little problem, the scale factor have to be 0.25 for correct estimation ( also It makes it fast by 10 times ! ) and the min iradius = 95 and max iris radius = 105.
thnx Anirudh.
It will be nice if u can give me code to unwrapp the image and remove the noise from unwrapped image .
thnx again

18 Aug 2008

lani karmila

I have tried your program with CASIA database, but I fail to get correct boundary iris and pupil. Can you help me to explain your program

05 Aug 2008

Tina Clair

Can u plz upload any image using this operator? I am trying to run it, but I think I'm not giving the correct rmin n rmax values, on the CASIA (version1) database. Guideline needed to run it, soon please.