hi,

as far as i understand your problem, you want your program to automatically cut out the pupil!?! So it has to find it. Maybe you have to get in contact with OpenCV:

http://opencv.willowgarage.com/wiki/[^]

there is an wrapper for .net:

http://www.emgu.com/wiki/index.php/Main_Page[^]

hope this helps...

12,701,573 members (34,202 online)

Email

Password

Sign in with

here is the function:

% this function converts the localized iris image to a normailzed one

% the input arguments are localized image(gray scale),iris radius,Puble radius,Center x,Center y

% the output is the normailized image (gray scale)

function Nor=Normalize(Loc,Ri,Rp,Xo,Yo)

m=round(2*pi*Ri); %m,n are the sizes of the normailized image before resizing

n=Ri-Rp;

Y=ones(1,n);

X=ones(1,m);

for y=1:n-1

k=1;

step=((y+Rp)/(Ri*pi))*2;

for l=Yo-y-Rp:step:Yo+y+Rp

Y(k)=round(l);

Y(m-k+1)=round(l);

X(k)=round(Xo+sqrt((y+Rp)^2-(l-Yo)^2));

X(m-k+1)=round(Xo-sqrt((y+Rp)^2-(l-Yo)^2));

k=k+1;

end

for x=1:m

try

Nor(x,y)=Loc(X(x),Y(x));

catch

Nor(x,y)=0;

end

end

end

Nor=imresize(Nor,[512 64],'bilinear');%resizing the image to have the required dimensions.

Nor=imrotate(Nor,-90);

—SA