- 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江铜集团德兴铜矿招聘22人笔试历年典型考点题库附带答案详解.docx VIP
- 财务报表分析和证-券估值 ,第五版 答案 Financial Statement Analysis and Security Valuation solution SOLUTIONS_MANUAL ,5e.doc VIP
- 新视野大学英语(第四版)视听说教程2(思政智慧版).pdf VIP
- 基于思维可视化的高中英语读后续写的课堂教学实践与探究 论文.docx VIP
- 《GB/T 223.18-2026钢铁及合金 铜含量的测定 碘量法和分光光度法》.pdf
- 02张卓澜-Agent让工作更简单,人人都是全栈产品经理-腾讯.pdf
- 《管子》体系研究综述.docx
- 潍柴国四国五(EDC17CV44)针脚图.pdf VIP
- 北锚锭基础止水帷幕导墙模板比选方案.docx VIP
- 铁路铁鞋使用培训课件.pptx VIP
原创力文档

文档评论(0)