sift
2016-05-03 14:41
323 查看
I = imread('image.jpg');
I = single(rgb2gray(I));
O=imread('image2.jpg');
O = single(rgb2gray(O));
P=imread('image4.jpg');
P = single(rgb2gray(P));
Q = imread('image3.jpg');
Q = single(rgb2gray(Q));
[fa, da] = vl_sift(I);
[fb, db] = vl_sift(O);
[fc, dc] = vl_sift(P);
[fd, dd] = vl_sift(P);
%matches 返回二维的位置向量
%scores 返回距离
t0 = cputime;
tic;
[matches1, scores1] = vl_ubcmatch(da, db);
[matches2, scores2] = vl_ubcmatch(da, dc);
[matches3, scores3] = vl_ubcmatch(dd, dd);
toc;
t0=clock;
time = etime(clock,t0);
欧式平方距离(Squared Euclidean distance)测距方法
I = single(rgb2gray(I));
O=imread('image2.jpg');
O = single(rgb2gray(O));
P=imread('image4.jpg');
P = single(rgb2gray(P));
Q = imread('image3.jpg');
Q = single(rgb2gray(Q));
[fa, da] = vl_sift(I);
[fb, db] = vl_sift(O);
[fc, dc] = vl_sift(P);
[fd, dd] = vl_sift(P);
%matches 返回二维的位置向量
%scores 返回距离
t0 = cputime;
tic;
[matches1, scores1] = vl_ubcmatch(da, db);
[matches2, scores2] = vl_ubcmatch(da, dc);
[matches3, scores3] = vl_ubcmatch(dd, dd);
toc;
t0=clock;
time = etime(clock,t0);
欧式平方距离(Squared Euclidean distance)测距方法
相关文章推荐
- 十年学会程序设计
- 常见的几种vs2012调试技巧
- php设置编码格式的程序
- citytech摄像头 opencv+rtsp获得图像
- sourcetree下回退
- git初使用
- Android File类 根据官方文档理解
- C#可变变量Params,out,ref
- mysql查询某月每一天的数据总和
- leetcode 217
- eclipse中设置.abc--xyz触发提示输入时,提示This compilation unit is not on the build path of java project 异常如何解决?
- 免安装版本tomcat的变量配置
- 怎样快速学会ZBrush 中的移动笔刷的运用
- Android 开发环境一键式管理工具AndroidWorks
- 短信修改器核心代码
- Android公钥私钥及代码详细解读
- MATLAB的iptchecknargin函数详解!
- Adobe Photoshop CC2015 下载-安装-注册机破解
- Spring中@Autowired注解、@Resource注解的区别
- Mac下打开eclipse 始终提示 你需要安装Java SE 6 Runtime