matlab如何批量读取图片
1、指定路径下 单个文件夹data中所有图像,file_path = '.\data\';% 图像文件夹路径,img_path_list = dir(strcat(file_path,'*.jpg'));%获取该文件夹中所有jpg格式的图像。

2、img_num = length(img_path_list);%获取图像总数量,if img_num > 0 %有咫圄虍咻满足条件的图像,for j = 1:img_num %逐一读取图像,image_name = img_path_list(j).name;% 图像名,image = imread(strcat(file_path,image_name));



6、img_num = length(img_path_list); %该文件夹中图像数量,if img_num > 0,for j = 1:img_num,image_name = img_path_list(j).name;% 图像名,image = imread(strcat(file_path,image_name));
