资源简介
This is surf(Speeded Up Features Robust) matlab code for detection keypoint and construct descriptor and matching
代码片段和文件信息
clc
clear all
close all
tic
I1=imreadbw(‘data/img3.jpg‘) ;
I2=imreadbw(‘data/img5.jpg‘) ;
points1 = detectSURFFeatures(I1);
points2 = detectSURFFeatures(I2);
[f1 vpts1] = extractFeatures(I1 points1);
[f2 vpts2] = extractFeatures(I2 points2);
subplot(121)imshow(I1); hold on;
strongestPoints = vpts1.selectStrongest(2000);
strongestPoints.plot(‘showScale‘true);
subplot(122)imshow(I2); hold on;
strongestPoints = vpts2.selectStrongest(2000);
strongestPoints.plot(‘showScale‘true);
index_pairs = matchFeatures(f1 f2 ‘Prenormalized‘ false) ;
matched_pts1 = vpts1(index_pairs(: 1));
matched_pts2 = vpts2(index_pairs(: 2));
figure; showMatchedFeatures(I1I2matched_pts1matched_pts2‘montage‘);
toc
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2013-01-29 19:13 SURF\data\
文件 72310 2010-01-28 05:09 SURF\data\box.pgm
文件 233055 2010-01-28 05:09 SURF\data\box.sift
文件 10060 2010-01-28 05:09 SURF\data\circle.pgm
文件 1362 2010-01-28 05:09 SURF\data\circle.sift
文件 464954 2010-01-28 05:09 SURF\data\img3.jpg
文件 467808 2010-01-28 05:09 SURF\data\img5.jpg
文件 275111 2010-01-28 05:09 SURF\data\landscape-a.jpg
文件 304723 2010-01-28 05:09 SURF\data\landscape-b.jpg
文件 11101 2010-01-28 05:09 SURF\data\nest.png
文件 17462 2010-01-28 05:09 SURF\data\nest2.bmp
文件 337980 2010-01-28 05:09 SURF\data\vessel-1.pgm
文件 337980 2010-01-28 05:09 SURF\data\vessel-2.pgm
文件 730 2013-04-17 11:34 SURF\demo.m
文件 4822 2013-01-29 11:53 SURF\detectSURFFeatures.m
文件 9882 2011-08-30 23:03 SURF\extractFeatures.m
文件 2353 2013-01-29 19:20 SURF\imreadbw.m
文件 16335 2012-07-26 15:04 SURF\matchFeatures.m
文件 8823 2013-01-29 22:16 SURF\showMatchedFeatures.m
文件 35354 2013-01-29 20:45 SURF\SURFPoints.m
评论
共有 条评论