How does Iradon and radon work?

2 次查看(过去 30 天)
hasan alhussaini
hasan alhussaini 2017-9-13
回答: Rik 2017-9-13
Hi I'm a beginner, I've got a sinogram attach, and i'm not sure what i'm doing wrong with the following code, the data projections have been collected over 180 degrees. 1 degree per projection;
theta=0:1:179;
[R,xp]= radon(sinog_2,theta);
Dtheta=1;
filt=input( 'Filter?\n 1 = Gen-Hamming; 2 = Shepp-Logan; 3 = Ramp; 4 = none ');
switch( filt)
case 1
m_out=iradon(R,Dtheta,'Hamming');
case 2
m_out=iradon(R,Dtheta,'Shepp-Logan');
case 3
m_out=iradon(R,Dtheta,'Ram-Lak');
case 4
m_out=iradon(R,Dtheta,'none');
i feel like it is incomplete...
any help would be amazing Thanks!

回答(1 个)

Rik
Rik 2017-9-13
Dtheta shouldn't be just one angle. The theta you use in the radon function is the same you should use in iradon.
For future reference: Have a read here and here. It will greatly improve your chances of getting an answer. (for example, most tags you provided are either non-applicable (matlab coder) or too general (help))

Community Treasure Hunt

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

Start Hunting!

Translated by