source code for fingerprint alignment
조회 수: 2 (최근 30일)
이전 댓글 표시
Hi
I'm doing research on fingerprint identification. I need to align two fingerprints before doing the rest of matching processes. So now I'm in need of fingerprint alignment Matlab code.
My code is based on cross correlation. I cropped a small region of one image and try different rotation to get the maximum correlation between these two images. There are two main problems with my code:
1- trying different angles is very time consuming, empirically, I have to test different degrees from -90 to 90.
2- there is no reason to be sure the region I'm cropping is also available in the other image (there are some partial fingerprints in my data set).
here is the main part of my code.
T = -10;
for ang = -90: 1 : 90
IT = imrotate(im1,ang, 'crop');
cor = normxcorr2(im2,IT);
[Max, ~] = max(abs(cor(:)));
if Max > T
max_c = Max;
T = max_c;
Tang = ang;
end
end
Thanks
댓글 수: 0
채택된 답변
Image Analyst
2012년 9월 22일
Why don't you try imregister()?
댓글 수: 5
Image Analyst
2012년 9월 25일
Then look here for the examples: http://www.mathworks.com/help/images/ref/imregister.html They're in the third section, in bold type, called "Examples":
Examples
- Register 2–D Images from Same Capture Device
- Registering Multimodal MRI Images
추가 답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!