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