广州到普吉岛飞机:建立matlab中的cvexShowMatches函数的类似函数
来源:百度文库 编辑:偶看新闻 时间:2024/05/13 13:57:16
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
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 显示的图像如下:
matlab中的一元回归
matlab中的warning问题
MATLAB中的迭代
matlab编程中的问题
MATLAB中的MATLAB Compiler怎么调用出来
怎样使用MATLAB建立BP神经网络?
matlab中的一个小问题
matlab在化学工程中的应用
[求助]matlab中的GUI问题
Matlab 中的syms用不了
matlab中的两段程序
求助建立三相电机分级变频的matlab仿真模型
哪里可以下载matlab中的dspblockset库啊
matlab的directory中的记录怎么删除?
Matlab数组中的实数找出来
matlab中的asamin工具箱怎么用呀?
请教MATLAB解方程中的一个问题
matlab中plot3在实际操作中的用法
寻求matlab 中的符号变量应用示例
Matlab工具箱中的ccslink是什么啊
用Matlab求矩阵中的未知数--求位姿矩阵逆解的Matlab方法
matlab中怎样对一个一维矩阵中的元素进行运算(求matlab高手)
怎样用MATLAB中的GUI做一个简单计算器
关于语种识别在Matlab中的程序案例,资料下载