Copy this code and paste it in your HTML
theta = -90: 1: 90;
Sino = P';
Sino2 = truncSino(Sino, 0.3, 'ramp');
Sino3 = truncSino(Sino, 0.3);
m = 0; n = 150;
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) ylabel('View#',
'FontSize',
12);
xlabel('Detector Bin#',
'FontSize',
12);