- 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
您可能关注的文档
最近下载
- 行政管理学(第五版)郭小聪-第8章.pptx VIP
- 大连鸿金机械燃煤锅炉改建生物质锅炉项目环境影响报告表.pdf VIP
- 人教版(新教材)小学美术六年级上册第一单元《第3课 丝路开繁花》精品课件.pptx VIP
- 海浮乐hydrostatic_guides.pdf VIP
- 土壤样品采集现场记录表.doc
- 王陆雅思听力807词.pdf VIP
- 欧洲规范-NF P98-532-1-中文.pdf VIP
- 赵2022年土地登记代理人题库700道(精选题).docx
- DL_T 1806-2018 油浸式电力变压器用绝缘纸板及绝缘件选用导则.docx VIP
- 2026年养老院服务质量标准化方案.docx VIP
原创力文档

文档评论(0)