- 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
您可能关注的文档
最近下载
- 2022年土地登记代理人题库700道附答案【培优b卷】.docx
- 2023年GCP考试试卷(网校专用).docx
- 2022年土地登记代理人题库700道精品【满分必刷】.docx
- 第2课 自然语言描述算法 课件 五上信息科技浙教版(2023).pptx VIP
- 2024版CSOHNS慢性鼻窦炎诊断和治疗指南解读PPT课件.pptx VIP
- 2023年初级管理会计《专业知识》题库500道【学生专用】.docx
- 2023年初级管理会计《专业知识》题库附参考答案(满分必刷).docx
- 2023年施工员《设备安装施工专业管理实务》题库精品【名校卷】.docx
- 2023年初级管理会计《专业知识》题库附参考答案(考试直接用).docx
- DGTJ08-2445-2024城镇排水管渠在线监测技术标准.pdf VIP
原创力文档

文档评论(0)