資源簡介
圖像檢索中經(jīng)典的SIFT方法matlab實現(xiàn),由NTU的大牛撰寫,做了些批注。
代碼片段和文件信息
%?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;?
img1_dir?=?‘demo-data\‘;
img1_file?=?‘object0041.view03.png‘;
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(:))?;
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(11)?;?clf?;?plotss(dogss1)?;?colormap?gray?;
drawnow?;
figure(2)?;?clf?;
imshow(I1_rgb)?;?axis?image?;
hold?on?;
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2006-11-20?15:18??SIFT\
?????目錄???????????0??2006-11-21?10:12??SIFT\demo-data\
?????文件???????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\ob
?????文件??????574557??2003-04-25?15:36??SIFT\demo-data\ob
?????文件???????71680??2006-11-20?14:22??SIFT\demo-data\Thumbs.db
?????目錄???????????0??2006-11-20?14:31??SIFT\desc
?????文件????????5290??2006-11-17?16:25??SIFT\desc
?????文件?????????867??2006-11-20?14:14??SIFT\do_demo_1.m
?????文件????????2126??2006-11-20?13:20??SIFT\do_demo_2.asv
?????文件????????1189??2006-11-20?14:15??SIFT\do_demo_2.m
?????文件????????1171??2006-11-20?14:18??SIFT\do_demo_3.m
?????文件????????1186??2006-11-20?15:30??SIFT\do_demo_4.m
?????文件????????3972??2006-11-20?14:06??SIFT\do_sift.m
?????目錄???????????0??2006-11-17?20:23??SIFT\key-location\
?????文件????????3799??2006-11-15?17:16??SIFT\key-location\do_extrefine.m
?????文件????????1992??2006-11-17?20:23??SIFT\key-location\do_localmax.asv
?????文件????????1991??2006-11-17?20:26??SIFT\key-location\do_localmax.m
?????文件?????????140??2006-05-04?11:43??SIFT\main.m
?????目錄???????????0??2006-11-17?19:26??SIFT\match\
?????文件????????4748??2006-11-15?15:36??SIFT\match\do_match.asv
?????文件????????4879??2006-11-20?14:55??SIFT\match\do_match.m
?????目錄???????????0??2006-11-17?19:26??SIFT\orientation\
?????文件????????2366??2006-11-17?13:55??SIFT\orientation\do_orientation.m
?????文件????????2387??2006-11-20?14:33??SIFT\README.txt
?????文件????????2387??2006-11-20?14:11??SIFT\README.txt.bak
?????目錄???????????0??2006-11-17?19:26??SIFT\scale-space\
?????文件?????????464??2006-11-14?22:56??SIFT\scale-space\do_diffofg.m
?????文件????????2639??2006-11-14?22:58??SIFT\scale-space\do_gaussian.m
?????文件?????????215??2006-11-14?22:59??SIFT\scale-space\smooth.m
............此處省略8個文件信息
評論
共有 條評論