- 13
- 0
- 约3.47千字
- 约 5页
- 2017-12-20 发布于江西
- 举报
拼接图像matlab可执行的程序
图1 待拼接图像
图2 拼接后的图像
Matlab程序代码:
I1 = double(imread(left.bmp));
[h1 w1 d1] = size(I1);
I2 = double(imread(right.bmp));
[h2 w2 d2] = size(I2);
% show input images and prompt for correspondences
figure; subplot(1,2,1); image(I1/255); axis image; hold on;
title(first input image);
[X1 Y1] = ginput(2); % get two points from the usersubplot(1,2,2); image(I2/255); axis image; hold on;
title(second input image);
[X2 Y2] = ginput(2); % get two points from the user% estimate parameter vector (t)
Z = [ X2 Y2 ; Y2 -X2 ; 1 1 0 0 ; 0 0 1 1 ];
xp = [ X1 ; Y1 ];
t = Z \ xp; % solve the linear system
a
您可能关注的文档
最近下载
- 2026青岛科技大学综合评价《综合素质测试》笔试+面试模拟试题(三).docx
- 第七章中国的风物特产-织绣工艺品(课件)--《导游基础知识》(高教版)同步教学课件.pptx VIP
- 年产45万吨豆制品加工厂项目可行性研究报告写作模板-拿地备案.doc
- 火力发电企业设备设施风险分级管控清单(参考).docx VIP
- 2025年中国海油秋季校园招聘笔试参考题库附带答案详解.pdf
- 振荡电路与.ppt VIP
- DGTJ08-40-2010 上海市地基处理技术规范.pdf VIP
- 人保财险社会招聘测评笔试题目真题.pdf
- 中国老龄化与健康国家评估报告.pdf VIP
- (全)电气装置安装工程 电气设备交接试验标准.docx VIP
原创力文档

文档评论(0)