"Radon Transform": why the output image is (N,NxNumber of processors) despite the input image is NxN?? in the parallel computing on matlab?? thank you
Show older comments
if true
% clc,clear,close all;
f=phantom(256);
theta=0:179;
tic;
matlabpool(4)
x=distributed(f);
spmd
wx=getLocalPart(x);
g=radon(wx,theta);
g=iradon(g,theta,1,256);
% g=uint8(g);
end
g = gather(g);
conct=[g{:}];
matlabpool close;
toc;
subplot(2,1,1), imshow(conct);title('Fileterd backprojection');
subplot(2,1,2), imshow(f);title('Original image');
end
Accepted Answer
More Answers (0)
Categories
Find more on Image Transforms in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!