Return to Snippet

Revision: 60879
at November 15, 2012 07:00 by kritisen


Initial Code
I = phantom(512);
theta = -90: 1: 90;
P = radon(I, theta);
Sino = P';     
Sino2 = truncSino(Sino, 0.3, 'ramp');
Sino3 = truncSino(Sino, 0.3);
m = 0; n = 150;
figure, 
subplot(3, 1, 1), imshow(Sino, [m, n]); 
title('Original sinogram', 'FontSize', 15); ylabel('View#', 'FontSize', 12); xlabel('Detector Bin#', 'FontSize', 12);

subplot(3, 1, 2), imshow(Sino2, [m, n]); 
title('Truncated sinogram with extrapolation by ramp function', 'FontSize', 15); 
ylabel('View#', 'FontSize', 12); xlabel('Detector Bin#', 'FontSize', 12);

subplot(3, 1, 3), imshow(Sino3, [m, n]); 
title('Truncated sinogram', 'FontSize', 15)
xlabel('Detector Bin#');
ylabel('View#', 'FontSize', 12); xlabel('Detector Bin#', 'FontSize', 12);

Initial URL


Initial Description
Truncate Sinogram across Central Detector Bin

Initial Title
Truncate Sinogram across Central Detector Bin

Initial Tags


Initial Language
MatLab