Professional Documents
Culture Documents
1.0. Prerequisite
1. You should use matlab 6.5 version or later. 2. You should note that matlab code only accepts images from the CASIA database due to imaging sizes. Two images are included on the main folder.
1. If you look at the code for create iris template, the code spits out 2 arrays; one mask and one template. So first create an iris template and mask by typing in matlab command line: [template1, mask1] = createiristemplate('FILENAME'); 2. Once it is computed, next create another template and mask from a different file. [template2, mask2] = createiristemplate('FILENAME'); 3. Now you should have 2 different templates and masks for two different irises. To get the hamming distance between the two irises, you now have to use the gethammmingdistance() function as shown below. gethammingdistance(template1, mask1, template2, mask2, scale); 4. You can leave the scale at 0 if you would like. So your command would then look like this. gethammingdistance(template1, mask1, template2, mask2, 0);