fid=fopen('E:\CMU\all.txt','r');
while 1
tline=fgetl(fid);
if ~ischar(tline),break;end
I = imread(fullfile('E:\阴影公用数据集\CMU\img',tline));
end
fclose(fid);
MATLAB实例2-读取txt图像名并处理图片
最新推荐文章于 2022-12-30 23:25:37 发布
fid=fopen('E:\CMU\all.txt','r');
while 1
tline=fgetl(fid);
if ~ischar(tline),break;end
I = imread(fullfile('E:\阴影公用数据集\CMU\img',tline));
end
fclose(fid);