首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >MSER特征匹配算法?

MSER特征匹配算法?
EN

Stack Overflow用户
提问于 2013-07-29 17:13:55
回答 1查看 5.5K关注 0票数 3

如何才能完成以下工作?

我正在寻找MSER特征点,然后将它们与matchFeatures函数配对。

代码语言:javascript
复制
% file1 = 'roofs1.jpg';
% file2 = 'roofs2.jpg';

file1 = 'cameraman.tif';


I1 = imread(file1);

%I2 = imread(file2);
I2 = imrotate(I1, 45);

% I1 = rgb2gray(I1);
% I2 = rgb2gray(I2);

% %Find the SURF features.
% points1 = detectSURFFeatures(I1);
% points2 = detectSURFFeatures(I2); 

points1 = detectMSERFeatures(I1);
points2 = detectMSERFeatures(I2); 

%Extract the features.
[f1, vpts1] = extractFeatures(I1, points1);
[f2, vpts2] = extractFeatures(I2, points2);

%Retrieve the locations of matched points. The SURF featurevectors are already normalized.
indexPairs = matchFeatures(f1, f2, 'Prenormalized', true) ;
matched_pts1 = vpts1(indexPairs(:, 1));
matched_pts2 = vpts2(indexPairs(:, 2));


figure; showMatchedFeatures(I1,I2,matched_pts1,matched_pts2,'montage');
legend('matched points 1','matched points 2');

很明显它很好用

但是它是怎样的呢?MSERRegions只包含椭圆。他们怎么能配对?这显然是不够的信息!

更新

我发现extractFeatures函数从MSER点返回SURF特征向量。因此,它比较了64维冲浪矢量。

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2013-10-17 19:45:20

在这种情况下,MSER区域的质心被简单地用作提取冲浪描述符的兴趣点。默认情况下,如果将MSERRegions传递给extractFeatures,您将获得冲浪描述符。然而,MSER区域可以用于其他事情,例如检测图像中的文本。

票数 3
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/17930134

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档