matlab两张图片合成一张

您所在的位置:网站首页 matlab如何将两张图合成一张 matlab两张图片合成一张

matlab两张图片合成一张

#matlab两张图片合成一张| 来源: 网络整理| 查看: 265

在一个文件夹中有上百张图片,每次一张一张的看比较累,在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 = im



【本文地址】


今日新闻


推荐新闻


CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3