dynamic display of radon transform

3 ビュー (過去 30 日間)
LORENZO D'AMICO
LORENZO D'AMICO 2021 年 4 月 23 日
コメント済み: LORENZO D'AMICO 2021 年 4 月 24 日
Hi everyone I have a problem: I'm trying to do a dynamic display of a ct-reconstruction. Basically what I'd like to do is to display on the same image the iradon for different angles. My problem is the following:
im = imread('image');
p = radon(im,[0:180]);
imshow(iradon(p,[0:180],'none')
this displays all the projection in one figure and this projection are at different rotation. But I'd like to display them first the one at 0 then on the same image, keeping the ones at 0 and adding also the one at 1 degree and so one. I tried with the following code but I got a single figure for each angle:
figure,
for theta = 0:180
p = radon(im,theta);
imshow(iradon(p,theta,'non'),[]);
end
  2 件のコメント
Rik
Rik 2021 年 4 月 24 日
So you want to animate the backprojection? I believe iradon has optimizations making it impossible to see intermediate steps (similar to how conv works). You can implement something yourself.
LORENZO D'AMICO
LORENZO D'AMICO 2021 年 4 月 24 日
I solved the problem something like this:
theta = []
figure,
for i = 0:20:180
theta = [theta,i]
p = radon (im,theta)
imshow(iradon(p,theta,'none'))
end

サインインしてコメントする。

回答 (0 件)

製品


リリース

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by