n=8;%n为读入图片数
I=cell(1,n); %cell:元胞数组
for i=1:n
imageName=strcat(‘G:\test’,num2str(i),’.img’); %num2str:数值转变成字符串
I{i} = readimg(imageName);%readimg为读入.img格式图像的函数,网上有专门读入ENVI图像的函数
figure(i),imshow(I(i));
end
n=8;%n为读入图片数
I=cell(1,n); %cell:元胞数组
for i=1:n
imageName=strcat(‘G:\test’,num2str(i),’.img’); %num2str:数值转变成字符串
I{i} = readimg(imageName);%readimg为读入.img格式图像的函数,网上有专门读入ENVI图像的函数
figure(i),imshow(I(i));
end