【发布时间】:2016-08-11 19:39:09
【问题描述】:
img1 = imread('01.01.bmp');
img2 = imread('01.02.bmp');
feature1 = sift_f(img1);
feature2 = sift_f(img2);
indexPairs = matchFeatures(feature1,feature2) ;
matchedPoints1 = vpts1(indexPairs(:,1));
matchedPoints2 = vpts2(indexPairs(:,2));
figure; showMatchedFeatures(img1,img2,matchedPoints1,matchedPoints2);
legend('matched points 1','matched points 2');
矩阵 feature1 和 feature2 的大小不同。事实上,它们的列数不同。因此,matchFeatures() 函数不起作用。那我该如何匹配特征呢?
【问题讨论】:
-
这当然高度依赖于输入。尝试将初始图像的大小调整为相同的分辨率,然后它应该可以工作
-
矩阵的大小是多少?
标签: matlab image-processing feature-extraction matlab-cvst sift