- 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
您可能关注的文档
最近下载
- Unit+2+Section+B+1a-1f+Reading+2026-2027学年九年级英语上册同步实用课件(新教材人教版) - 已修复.pptx VIP
- 特殊人群用药指导特殊人群用药指导.pptx VIP
- 2026年战士留疆考试题及答案解析.docx VIP
- 学习通《人工智能》习题(含答案).docx VIP
- 欧式距离、曼哈顿距离、切比雪夫距离、余弦距离(详解版)【拜托了阿数】.pdf VIP
- 部编人教版《道德与法治》三年级上册精品教案(全册).docx VIP
- pmdg737ngxu-efb-eaip国内电子航行汇编部分1912 ad_zlll.pdf VIP
- 断桥铝金属窗施工工艺及方法.docx VIP
- 计算机网络技术专业调研报告.doc VIP
- 研题·进阶 34 新定义背景下的函数性质探究(2026年高考数学全国一卷第19题).docx VIP
原创力文档

文档评论(0)