-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathrunBaseMethod.m
38 lines (31 loc) · 1.19 KB
/
runBaseMethod.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
% Adam Czajka, Zhaoyuan Fang, Kevin W. Bowyer, "Iris Presentation Attack
% Detection Based on Photometric Stereo Features," IEEE Winter Conference
% on Applications of Computer Vision (WACV), Waikoloa Village, Hawaii, 2019
% (supplementary materials)
% -------------------------------------------------------------------------
% Version 1.0, November 16, 2018
clear all
% angular positions of the illuminators (LG4000)
slant = [15.00, 15.00];
tilt = [108.886, 81.52];
THR = 0.08;
% LG_slant = [15, 15];
% LG_tilt_left = [108.886, 81.52];
% LG_tilt_right = [71.114, 98.472];
% AD_slant = [-20, -12];
% AD_tilt_left = [115.887, 82.461];
% AD_tilt_right = [64.113, 97.539];
% test live / authentic samples:
[~, v] = PhotoStereo('./sample_data/nd1S04261sam1left',slant, tilt);
if (v > THR)
disp('nd1S04261sam1left.tiff: textured contact lens detected!')
else
disp('nd1S04261sam1left.tiff: no textured contact lens found')
end
% test samples with textured contact lens:
[~, v] = PhotoStereo('./sample_data/nd1S04261b1s1p1left',slant, tilt);
if (v > THR)
disp('nd1S04261b1s1p1left.tiff: textured contact lens detected!')
else
disp('nd1S04261b1s1p1left.tiff: no textured contact lens found')
end