我正在从数据集中构造64张图像。
我必须通过(4*4(将它们划分为4个数字。
我刚刚在一个图中设法将它们划为64。
任何想法如何做到。
clear all,
close all;
clc;
load('ee.mat')
for i=1:64
s=ee(:,:,i);
s(:,:,i)=abs(s);
subplot(8,8,i); imshow(s(:,:,i),[]),title(['reconstructed Image' num2str(i)])
end
只需使用两个循环。
这只是为了生成EE,因为我没有ee.mat
cm = imread('cameraman.tif');
ee = repmat(cm, 1,1,64);
这是两个循环
counter = 1;
for nfigure=1:4
figure
for nimg = 1:16
subplot(4,4,nimg);
imshow(abs(ee(:,:,counter)));
title(['reconstructed Image' num2str(counter)]);
counter = counter + 1;
end
end
请注意,我已删除了线
s=ee(:,:,i);
s(:,:,i)=abs(s);