matlab两张图片合成一张_如何将多幅图合并在一起变成一张大图
matlab两张图⽚合成⼀张_如何将多幅图合并在⼀起变成⼀张
⼤图
在⼀个⽂件夹中有上百张图⽚,每次⼀张⼀张的看⽐较累,在matlab中有没有代码可以⼀次看多张图的程序或者可以将图⽚合并成⼤图⽐如4*4张合并为⼀张。我⽤了 subplot但效果不很好。[code]
clear;close all;clc
file_path =  'C:\Users\GUEST_002\Desktop\CIMA_OCM\20170728\ocm_Two_inter_0726_0728_4';% 图像⽂件夹路径
% img_path_list = dir(strcat(file_path,'\','*.jpeg'));%获取该⽂件夹中所有jpeg格式的图像
files = dir(strcat(file_path,'\','*.png'));
img_num = length(files)%获取图像总数量
%  image = imread(strcat(file_path,'\',files(54).name));
%  imshow(image)优秀教师颁奖词
I_1 = imread(strcat(file_path,'\',files(1).name));
I_2 = imread(strcat(file_path,'\',files(2).name));
I_3 = imread(strcat(file_path,'\',files(3).name));
I_4 = imread(strcat(file_path,'\',files(4).name));
I_5 = imread(strcat(file_path,'\',files(5).name));
I_6 = imread(strcat(file_path,'\',files(6).name));
I_7 = imread(strcat(file_path,'\',files(7).name));
I_8 = imread(strcat(file_path,'\',files(8).name));
I_9 = imread(strcat(file_path,'\',files(9).name));
杨幂 琉璃月figure;抢劫罪
版载千秋隐藏任务Picture = imresize(I_1,10);        subplot(3,3,1);  imshow(Picture);  clear Picture;
关于秋天的四字成语
Picture = imresize(I_2,4);        subplot(3,3,2);  imshow(Picture);  clear Picture;
Picture = imresize(I_3,4);        subplot(3,3,3);  imshow(Picture);  clear Picture;
Picture = imresize(I_4,4);        subplot(3,3,4);  imshow(Picture);  clear Picture;
Picture = imresize(I_5,4);        subplot(3,3,5);  imshow(Picture);  clear Picture;
Picture = imresize(I_6,4);        subplot(3,3,6);  imshow(Picture);  clear Picture;
如何下载歌曲到mp3Picture = imresize(I_7,4);        subplot(3,3,7);  imshow(Picture);  clear Picture;
Picture = imresize(I_8,4);        subplot(3,3,8);  imshow(Picture);  clear Picture;
Picture = imresize(I_9,4);        subplot(3,3,9);  imshow(Picture);  clear Picture;
[\code]
这程序很蠢,如果图少⽤这程序还⾏,可我有⼀百来张图。
20170729.png
(216.32 KB, 下载次数: 4)
2017-7-29 15:41 上传
为什么⾥⾯图这么⼩?

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。