資源簡介
在網(wǎng)上找到的可以正確使用的matlab指紋識別的程序

代碼片段和文件信息
%?This?m-file?demoes?the?usage?of?SIFT?functions.?It?generates?SIFT?keypionts?and?descriptors?for?one?input?image.?
%?Author:?Yantao?Zheng.?Nov?2006.??For?Project?of?CS5240
%?Add?subfolder?path.
main;?
clc;
clear;
img1_dir?=?‘demo-data\‘;
img1_file?=?‘beaver11.bmp‘;
I1=imreadbw([img1_dir?img1_file])?;?
I1_rgb?=?imread([img1_dir?img1_file])?;?
I1=imresize(I1?[240?320]);
I1_rgb?=imresize(I1_rgb?[240?320]);
I1=I1-min(I1(:))?;?%圖像插值縮放可能產(chǎn)生值超出0-1的范圍的像素
I1=I1/max(I1(:))?;?%這兩步重新歸一化圖像縮放后的數(shù)據(jù)
%fprintf(‘CS5240?--?SIFT:?Match?image:?Computing?frames?and?descriptors.\n‘)?;
[frames1descr1gss1dogss1?]?=?do_sift(?I1?‘Verbosity‘?1?‘NumOctaves‘?4?‘Threshold‘??0.1/3/2?)?;?%0.04/3/2
figure(1)?;?clf?;?plotss(dogss1)?;?colormap?gray?;
drawnow?;
figure(2)?;?clf?;
imshow(I1_rgb)?;?axis?image?;
hold?on?;
h=plotsiftframe(?frames1?)?;?set(h‘LineWidth‘1‘Color‘‘g‘)?;
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件????????402??2008-12-04?15:25??FingerPrint\A1.m
?????文件????????866??2009-05-27?17:20??FingerPrint\DistEuclidian.m
?????文件?????120054??2007-07-24?09:47??FingerPrint\Empreinte.bmp
-----------?---------??----------?-----??----
???????????????121322????????????????????3
評論
共有 條評論