- 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
您可能关注的文档
最近下载
- 2025年中山大学招聘真题(行政管理岗).docx VIP
- 工程计划管理培训课件.pptx VIP
- 2025年高考全国乙卷思想政治试卷及答案.docx VIP
- 合肥高新区2026年社区工作者(专职网格员)招聘考试试卷1-含答案和解析.docx VIP
- 武汉市市政基础设施工程施工统一规定用表[精选].doc VIP
- 保安员资格考试100题试题及答案.pdf
- 新通用大学英语视听说4-教师用书参考版.pdf VIP
- 湖南省长沙市长沙市一中教育集团联考2024-2025学年八年级下学期7月期末物理试题(含答案).pdf VIP
- 2024年全国统一考试甲卷高考政治+历史+地理试卷(真题+答案).pdf VIP
- 2026年执法单位市场监管执法实务应知应会题.docx VIP
原创力文档

文档评论(0)