Truncate Sinogram across Central Detector Bin


/ Published in: MatLab
Save to your folder(s)

Truncate Sinogram across Central Detector Bin


Copy this code and paste it in your HTML
  1. I = phantom(512);
  2. theta = -90: 1: 90;
  3. P = radon(I, theta);
  4. Sino = P';
  5. Sino2 = truncSino(Sino, 0.3, 'ramp');
  6. Sino3 = truncSino(Sino, 0.3);
  7. m = 0; n = 150;
  8. subplot(3, 1, 1), imshow(Sino, [m, n]);
  9. title('Original sinogram', 'FontSize', 15); ylabel('View#', 'FontSize', 12); xlabel('Detector Bin#', 'FontSize', 12);
  10.  
  11. subplot(3, 1, 2), imshow(Sino2, [m, n]);
  12. title('Truncated sinogram with extrapolation by ramp function', 'FontSize', 15);
  13. ylabel('View#', 'FontSize', 12); xlabel('Detector Bin#', 'FontSize', 12);
  14.  
  15. subplot(3, 1, 3), imshow(Sino3, [m, n]);
  16. title('Truncated sinogram', 'FontSize', 15)
  17. xlabel('Detector Bin#');
  18. ylabel('View#', 'FontSize', 12); xlabel('Detector Bin#', 'FontSize', 12);

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.