資源簡介
matlab實現的sift算法,各個步驟的實現很清楚,運行可看效果。

代碼片段和文件信息
%?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(:))?;?%圖像插值縮放可能產生值超出0-1的范圍的像素
I1=I1/max(I1(:))?;?%這兩步重新歸一化圖像縮放后的數據
%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‘)?;
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件?????189956??2009-09-30?09:59??SIFT代碼\demo-data\beaver11.bmp
?????文件?????189956??2009-09-30?10:10??SIFT代碼\demo-data\beaver13.bmp
?????文件??????14060??2003-02-17?17:45??SIFT代碼\demo-data\image068.JPG
?????文件??????13579??2003-02-17?17:45??SIFT代碼\demo-data\image069.JPG
?????文件?????578897??2003-04-25?15:36??SIFT代碼\demo-data\view01.png
?????文件?????574557??2003-04-25?15:36??SIFT代碼\demo-data\view02.png
?????文件???????5423??2010-06-03?10:31??SIFT代碼\desc
?????文件???????5412??2010-06-03?10:53??SIFT代碼\desc
?????文件????????949??2010-05-30?10:22??SIFT代碼\do_demo_1.m
?????文件???????1156??2010-05-19?11:41??SIFT代碼\do_demo_2.m
?????文件???????1171??2006-11-20?14:18??SIFT代碼\do_demo_3.m
?????文件???????1168??2010-05-19?11:43??SIFT代碼\do_demo_4.m
?????文件???????3816??2010-06-03?15:10??SIFT代碼\do_sift.m
?????文件???????4330??2014-04-04?19:51??SIFT代碼\key-location\do_extrefine.asv
?????文件???????4322??2010-06-03?15:04??SIFT代碼\key-location\do_extrefine.m
?????文件???????2133??2010-05-30?16:30??SIFT代碼\key-location\do_localmax.m
?????文件????????140??2006-05-04?11:43??SIFT代碼\main.m
?????文件???????5001??2014-03-28?14:49??SIFT代碼\match\do_match.asv
?????文件???????5001??2014-03-28?14:59??SIFT代碼\match\do_match.m
?????文件???????2505??2010-05-31?16:43??SIFT代碼\orientation\do_orientation.m
?????文件???????2400??2014-03-28?14:49??SIFT代碼\README.asv
?????文件???????2400??2014-03-28?14:53??SIFT代碼\README.txt
?????文件????????464??2006-11-14?22:56??SIFT代碼\scale-space\do_diffofg.m
?????文件???????2964??2010-05-30?15:28??SIFT代碼\scale-space\do_gaussian.m
?????文件????????215??2006-11-14?22:59??SIFT代碼\scale-space\smooth.m
?????文件???????1698??2010-05-18?21:53??SIFT代碼\sift_demo.m
?????文件????????359??2006-11-15?13:53??SIFT代碼\util\appendimages.m
?????文件????????301??2006-11-16?14:07??SIFT代碼\util\imreadbw.m
?????文件???????1812??2010-06-03?15:22??SIFT代碼\util\plotsiftfr
?????文件????????640??2006-11-20?15:19??SIFT代碼\util\plotss.m
............此處省略12個文件信息
評論
共有 條評論