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 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 | function theta = totheta(idx) switch(idx) case 1 theta=0; case 2 theta=pi/12; case 3 theta=pi/6; case 4 theta=pi/4; case 5 theta=pi/3; case 6 theta=(5*pi)/12; case 7 theta=pi/2; case 8 theta=(7*pi)/12; case 9 theta=(2*pi)/3; case 10 theta=(3*pi)/4; case 11 theta=(5*pi)/6; case 12 theta=(11*pi)/12; case 13 theta=pi; case 14 theta=-(11*pi)/12; case 15 theta=-(5*pi)/6; case 16 theta=-(3*pi)/4; case 17 theta=-(2*pi)/3; case 18 theta=-(7*pi)/12; case 19 theta=-pi/2; case 20 theta=-(5*pi)/12; case 21 theta=-pi/3; case 22 theta=-pi/4; case 23 theta=-pi/6; case 24 theta=-pi/12; end end | cs |
'정보 보안 > 지문 & 홍채인식 프로젝트' 카테고리의 다른 글
minutiae_ext 함수 - 지문인식 (0) | 2020.02.05 |
---|---|
my_direction 함수 - 지문인식 (0) | 2020.02.05 |
toIdx 함수 - 지문인식 (0) | 2020.02.05 |
alignment 함수 - 지문인식 (0) | 2020.02.05 |
sw 보안 프로젝트 ppt 목록 (0) | 2019.12.27 |