資源簡(jiǎn)介
SURF等5種特征點(diǎn)檢測(cè)代碼
matlab代碼
僅用于個(gè)人學(xué)習(xí),

代碼片段和文件信息
%?---------------------------------------
%?--------?matlab自帶BRISK函數(shù)示例?--------
%?---------------------------------------
clc
close?all
clear?all
tic;
%?--------?讀取圖像?--------
proportion?=?0.8;?%定義縮放比例
I1=?imread(‘../origin-pic/11.jpg‘);
I1=imresize(I1proportion);
I1=rgb2gray(I1);
I2=?imread(‘../origin-pic/22.jpg‘);
I2=imresize(I2proportion);
I2=rgb2gray(I2);
%?--------?顯示特征點(diǎn)?--------
points1?=?detectBRISKFeatures(I1);??
points2?=?detectBRISKFeatures(I2);??
%?--------?顯示特征點(diǎn)?--------
figure
imshow(I1);
hold?on
plot(points1);
figure
imshow(I2);
hold?on
plot(points2);
%?--------?計(jì)算描述向量?--------
[f1?vpts1]?=?extractFeatures(I1?points1);??
[f2?vpts2]?=?extractFeatures(I2?points2);??
%?--------?進(jìn)行匹配?--------
index_pairs?=?matchFeatures(f1?f2)?;??
matched_pts1?=?vpts1(index_pairs(:?1):);??
matched_pts2?=?vpts2(index_pairs(:?2):);??
%?--------?顯示匹配?--------
figure(‘name‘‘Harris匹配后的圖像‘);?
showMatchedFeatures(I1I2matched_pts1matched_pts2‘montage‘);??
legend(‘matched?points?1‘‘matched?points?2‘);??
toc;??
?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2017-10-21?15:04??code\
?????文件???????11631??2017-10-21?14:59??code\detectMSERFeatures.m
?????目錄???????????0??2018-10-10?09:37??__MACOSX\
?????目錄???????????0??2018-10-10?09:37??__MACOSX\code\
?????文件?????????266??2017-10-21?14:59??__MACOSX\code\._detectMSERFeatures.m
?????文件????????1080??2017-10-21?15:06??code\MSER.m
?????文件?????????266??2017-10-21?15:06??__MACOSX\code\._MSER.m
?????文件????????2176??2017-10-21?14:58??code\detectHarrisFeatures.m
?????文件?????????266??2017-10-21?14:58??__MACOSX\code\._detectHarrisFeatures.m
?????文件????????9005??2017-10-21?14:59??code\detectBRISKFeatures.m
?????文件?????????266??2017-10-21?14:59??__MACOSX\code\._detectBRISKFeatures.m
?????文件????????2240??2017-10-21?15:00??code\detectMinEigenFeatures.m
?????文件?????????266??2017-10-21?15:00??__MACOSX\code\._detectMinEigenFeatures.m
?????文件????????1092??2017-10-21?15:06??code\MinEigen.m
?????文件?????????266??2017-10-21?15:06??__MACOSX\code\._MinEigen.m
?????文件????????1088??2017-10-21?15:06??code\Harris.m
?????文件?????????266??2017-10-21?15:06??__MACOSX\code\._Harris.m
?????文件????????1071??2017-10-21?15:06??code\SURF.m
?????文件?????????266??2017-10-21?15:06??__MACOSX\code\._SURF.m
?????文件????????1080??2017-10-21?15:06??code\FAST.m
?????文件?????????266??2017-10-21?15:06??__MACOSX\code\._FAST.m
?????文件????????9862??2017-10-21?14:58??code\detectSURFFeatures.m
?????文件?????????266??2017-10-21?14:58??__MACOSX\code\._detectSURFFeatures.m
?????文件????????7480??2017-10-21?14:59??code\detectFASTFeatures.m
?????文件?????????266??2017-10-21?14:59??__MACOSX\code\._detectFASTFeatures.m
?????文件????????1083??2017-10-21?15:06??code\BRISK.m
?????文件?????????266??2017-10-21?15:06??__MACOSX\code\._BRISK.m
評(píng)論
共有 條評(píng)論