appendimages.m
来自「matlab编写的路标识别系统」· M 代码 · 共 20 行
M
20 行
% im = appendimages(image1, image2)%% Return a new image that appends the two images side-by-side.function im = appendimages(image1, image2)% Select the image with the fewest rows and fill in enough empty rows% to make it the same height as the other image.rows1 = size(image1,1); %返回image1的行数rows2 = size(image2,1); %返回image2的行数 if (rows1 < rows2) image1(rows2,1) = 0;else image2(rows1,1) = 0;end% Now append both images side-by-side.im = [image1 image2]; %将image1与image2连接起来生成一个大矩阵
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?