- 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
您可能关注的文档
最近下载
- 浙教版九年级科学上册 (物质的酸碱性)新课件.pptx VIP
- 软件单元测试计划(模板)-GJB438C.docx VIP
- 冲压课程设计说明书双耳止动垫圈级进模.pdf VIP
- 老年人生理特点养老护理员93课件讲解.pptx VIP
- 进才中学历年度自招考试数学真题汇编(共4套,附答案).pdf VIP
- 国家开放大学电大《机械设计基础》机考网考题库及答案(4套).docx VIP
- (新教材)高中生物人教版选择性必修三课件:1.阶段复习课.ppt
- 2026年江苏省苏州市中考数学真题试卷含详解.docx VIP
- 法院人身安全培训课件.ppt VIP
- YB_T 4553-2017钢铁渣人工鱼礁.pdf
原创力文档

文档评论(0)