can anyone tell me where is the error?? i have a 3d image 128x128x128 and i want to divide it into [64,64],[64,64],[64,64] i wonder if this code is correct??

1 view (last 30 days)
because when i use cell2mat function to concatenate the submatrix conct=128x128x2??? i don't know exactly where is the problem??
if true
% code
end
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
end

Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!