• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

修改matlab中的cvexShowMatches函数,使匹配结果更清楚

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

   

matlab 2011b中的函数cvexShowMatches()显示匹配图像是非常不爽。

执行如下代码:

I1 = imread('cameraman.tif');
I2 = imresize(imrotate(I1,-20), 1.2);
 
points1 = detectSURFFeatures(I1,'MetricThreshold',10000);
points2 = detectSURFFeatures(I2,'MetricThreshold',10000);
 
[f1, vpts1] = extractFeatures(I1, points1);
[f2, vpts2] = extractFeatures(I2, points2);
        
index_pairs = matchFeatures(f1, f2) ;
matched_pts1 = vpts1(index_pairs(:, 1));
matched_pts2 = vpts2(index_pairs(:, 2));

% Note that there are still several outliers present in the data, but
% otherwise you can clearly see the effects of rotation and scaling on
% the display of matched features.
  cvexShowMatches(I1,I2,matched_pts1,matched_pts2); % show matching points

   

显示的图像如下:

   

 这非常不方便,看起来一点都不清楚。

于是自己修改了cvexShowMatches() 这个函数,这样,就可以显示下面的图像了。是不是比较方便了?

修改好的函数在最后。请下载。

   

   

cvexShowMatches2()下载:http://dl.dropbox.com/u/48006175/cvexShowMatches2.m


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Rust异步之Future发布时间:2022-07-18
下一篇:
微软看上的Rust 语言,安全性真的很可靠吗发布时间:2022-07-18
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap