%import a set of images and convert to .mat format
%store in a 3D double matrix of grayscale values
%dec_img = zeros(576,576,32);
%zero pad by amount of K-start
% for K = 12 : 21
%   filename = sprintf('10x_800_G575_E189_Z1_Middle%d.tif', K-12);
%   I = zeros(576);
%   Ifake = imread(filename);
%   Ifake = rgb2gray(Ifake(:,:,1:3));
%   %scale image:
%   Ifake = imresize(Ifake, [512 518]);
% %   B = imresize(A, scale)
% %   B = imresize(A, [numrows numcols])
%   I(33:544,33:544) = Ifake(1:512,1:512);
%   dec_img(:,:,K) = I;
%   disp(K);
% end
[i,j,k] = size(dec_img);
for h=1:k
Ifake = imresize(dec_img(:,:,h),1.01);
dec_img(:,:,h) = Ifake(1:576,1:576);
h
end
save('stackRD1_02.mat', 'dec_img');
