Skip to content Skip to navigation

Connexions

You are here: Home » Content » Iris Recognition: Gabor Filtering

Navigation

Lenses

What is a lens?

Definition of a lens

Lenses

A lens is a custom view of Connexions content. You can think of it as a fancy kind of list that will let you see Connexions through the eyes of organizations and people you trust.

What is in a lens?

Lens makers point to Connexions materials (modules and collections), creating a guide that includes their own comments and descriptive tags about the content.

Who can create a lens?

Any individual Connexions member, a community, or a respected organization.

What are tags? tag icon

Tags are descriptors added by lens makers to help label content, attaching a vocabulary that is meaningful in the context of the lens.

This content is ...

Affiliated with (What does "Affiliated with" mean?)

This content is either by members of the organizations listed or about topics related to the organizations listed. Click each link to see a list of all content affiliated with the organization.
  • Rice University ELEC 301 Projects

    This module is included inLens: Rice University ELEC 301 Project Lens
    By: Rice University ELEC 301As a part of collection:"ELEC 301 Projects Fall 2004"

    Click the "Rice University ELEC 301 Projects" link to see all content affiliated with them.

Recently Viewed

This feature requires Javascript to be enabled.

Iris Recognition: Gabor Filtering

Module by: David Carr. E-mail the author

User rating (How does the rating system work?)
Ratings

Ratings allow you to judge the quality of modules. If other users have ranked the module then its average rating is displayed below. Ratings are calculated on a scale from one star (Poor) to five stars (Excellent).

How to rate a module

Hover over the star that corresponds to the rating you wish to assign. Click on the star to add your rating. Your rating should be based on the quality of the content. You must have an account and be logged in to rate content.

:
(0 ratings)

Summary: Gabor wavelets, filtering and Hamming distance

Note: Your browser may not currently support MathML. See our browser support page for additional details. You can always view the correct math in the PDF version.

Gabor Wavelets

To understand the concept of Gabor filtering, we must first start with Gabor wavelets. Gabor wavelets are formed from two components, a complex sinusoidal carrier and a Gaussian envelope. g(x,y)=s(x,y)wr(x,y)g(x,y)=s(x,y)wr(x,y) The complex carrier takes the form: s(x,y)=ej(2π(u0x+v0y)+P)s(x,y)=ej(2π(u0x+v0y)+P) We can visualize the real and imaginary parts of this function seperately as shown in this figure.

Figure 1: Image Source
(a) Real Part(b) Imaginary Part
Figure 1(a) (real.png)Figure 1(b) (imag.png)
The real part of the function is given by: R e ( s ( x , y ) ) = cos ( 2 π ( u 0 x + v 0 y ) + P ) R e ( s ( x , y ) ) = cos ( 2 π ( u 0 x + v 0 y ) + P ) and the imaginary: I m ( s ( x , y ) ) = sin ( 2 π ( u 0 x + v 0 y ) + P ) I m ( s ( x , y ) ) = sin ( 2 π ( u 0 x + v 0 y ) + P ) The parameters u0u0 and v0v0 represent the frequency of the horizontal and vertical sinusoids respectively. PP respresents an arbitrary phase shift.

The second component of a gabor wavelet is its envelope. The resulting wavelet is the product of the sinusoidal carrier and this envelope. The envelope has a gaussian profile and is described by the following equation:

Figure 2: Gaussian Envelope
Figure 2 (gauss.png)
g ( x , y ) = K e - π ( a 2 ( x - x 0 ) r 2 + b 2 ( y - y 0 ) r 2 ) g ( x , y ) = K e - π ( a 2 ( x - x 0 ) r 2 + b 2 ( y - y 0 ) r 2 ) where: ( x - x 0 ) r = ( x - x 0 ) cos ( θ ) + ( y - y 0 ) sin ( θ ) ( x - x 0 ) r = ( x - x 0 ) cos ( θ ) + ( y - y 0 ) sin ( θ ) ( y - y 0 ) r = - ( x - x 0 ) sin ( θ ) + ( y - y 0 ) cos ( θ ) ( y - y 0 ) r = - ( x - x 0 ) sin ( θ ) + ( y - y 0 ) cos ( θ ) The parameters used above are KK - a scaling constant (a,b)(a,b) - envelope axis scaling constants, θθ - envelope rotation constant, (x0,y0 )(x0,y0 ) - Gausian envelope peak.

To put it all together, we multiply s(x, y)s(x, y) by wr(x,y )wr(x,y ). This produces a wavelet like this one:

Figure 3: 1D Gabor Wavelet
Figure 3 (gabor.png)

Generating an Iris Code

Now that we have Gabor wavelets, lets do something interesting with them. Lets start with an image of an eye and then unroll it (map it to cartesian coordinates) so we have something like the following:

Figure 4
(a) Image of Eye(b) "Unrolled" Iris
Figure 4(a) (rolled.png)Figure 4(b) (unrolled.png)
What we want to do is somehow extract a set of unique features from this iris and then store them. That way if we are presented with an unknown iris, we can compare the stored features to the features in the unknown iris to see if they are the same. We'll call this set of features an "Iris Code."

Any given iris has a unique texture that is generated through a random process before birth. Filters based on Gabor wavelets turn out to be very good at detecting patterns in images. We'll use a fixed frequency 1D Gabor filter to look for patterns in our unrolled image. First, we'll take a one pixel wide column from our unrolled image and convolve it with a 1D Gabor wavelet. Because the Gabor filter is complex, the result will have a real and imaginary part which are treated seperately. We only want to store a small number of bits for each iris code, so the real and imaginary parts are each quantized. If a given value in the result vector is greater than zero, a one is stored; otherwise zero is stored. Once all the columns of the image have been filtered and quantized, we can form a new black and white image by putting all of the columns side by side. The real and imaginary parts of this image (a matrix), the iris code, are shown here:

Figure 5
(a) Real Part of Iris Code
Figure 5(a) (rcode.png)
(b) Imaginary Part of Iris Code
Figure 5(b) (icode.png)
Now that we have an iris code, we can store it in a database, file or even on a card. What happens though if we want to compare two iris codes and decide how similar they are?

Comparing Iris Codes

The problem of comparing iris codes arises when we want to authenticate a new user. The user's eye is photographed and the iris code produced from the image. It would be nice to be able to compare the new code to a database stored codes to see if this user is allowed or to see who they are. To perform this task, we'll attempt to measure the Hamming distance between two iris codes. The Hamming distance between any two equal length binary vectors is simply the number of bit positions in which they differ divided by the length of the vectors. This way, two identical vectors have distance 0 while two completely different vectors have distance 1. Its worth noting that on average two random vectors will differ in half their bits giving a Hamming distance of 0.5. The Hamming distance is mathematically defined in this equation: D = A B length(A) D= A B length(A)

In theory, two iris codes independently generated from the same iris will be exactly the same. In reality though, this doesn't happen vary often for reasons such as imperfect cameras, lighting or small rotational errors. To account for these slight inconsistencies, two iris codes are compared and if the distance between them is below a certain threshold we'll call them a match. This is based on the idea of statistical independance. The iris is random enough such that iris codes from different eyes will be statistically independent (ie: have a distance larger than the threshold) and therefore only iris codes of the same eye will fail the test of statisical independance. Empirical studies with millions of images have supported this assertion. In fact, when these studies used the threshold used in our method (.3) false positive rates fell below 1 in 10 million.

Content actions

Give Feedback:

E-mail the module author | Rate module ( How does the rating system work?)

Rating system

Ratings

Ratings allow you to judge the quality of modules. If other users have ranked the module then its average rating is displayed below. Ratings are calculated on a scale from one star (Poor) to five stars (Excellent).

How to rate a module

Hover over the star that corresponds to the rating you wish to assign. Click on the star to add your rating. Your rating should be based on the quality of the content. You must have an account and be logged in to rate content.

(0 ratings)

Download:

Add module to:

My Favorites (?)

'My Favorites' is a special kind of lens which you can use to bookmark modules and collections directly in Connexions. 'My Favorites' can only be seen by you, and collections saved in 'My Favorites' can remember the last module you were on. You need a Connexions account to use 'My Favorites'.

| A lens (?)

Definition of a lens

Lenses

A lens is a custom view of Connexions content. You can think of it as a fancy kind of list that will let you see Connexions through the eyes of organizations and people you trust.

What is in a lens?

Lens makers point to Connexions materials (modules and collections), creating a guide that includes their own comments and descriptive tags about the content.

Who can create a lens?

Any individual Connexions member, a community, or a respected organization.

What are tags? tag icon

Tags are descriptors added by lens makers to help label content, attaching a vocabulary that is meaningful in the context of the lens.

| External bookmarks