我有一个128x128x128的3d图像,我想把它分成8个相等的子矩阵写mat2cell(I,[64x64],[64x64],[64x64])
以供将来处理。我的问题是当我尝试连接子矩阵时,输出图像大小是128x128x2 ??任何人都可以给我一个
帮助??
> clc,clear,close all;
> f=phantom3d(128);
> theta=0:179;
> C=mat2cell(f,[64,64],[64,64],[64,64]);
> tic;
> matlabpool(2)
> parfor i=1:8
> wx=C{i};
> g=radon(wx,theta);
> g=iradon(g,theta,size(C{i},1));
> C{i}=g;
> end
> conct=cell2mat(C);
> matlabpool close
> Reconstruction_time=toc
> figure, imshow3D(conct,[]),title('Filtered Backprojection image');