Error code using iradon

조회 수: 7 (최근 30일)
Ryan
Ryan 2021년 6월 21일
댓글: Ryan 2021년 6월 21일
I keep getting the error message in my script below when using iradon. How would I resolve this error?
I0 = 10^4;
noAngles = 590;
step = 180/noAngles;
theta = step:step:180;
Y = radon(whatisit,theta)/255;
NoisyRMphantom_Proj = -log(NoisyRMphantom_Trans./I0);
FBPnoisyRM = iradon(NoisyRMphantom_Proj,theta,'linear','Ram-Lak',1,751);
%Error using iradon>parse_inputs (line 346)
%THETA does not match the number of projections.
%Error in iradon (line 119)
%[p,theta,filter,d,interp,N] = parse_inputs(args{:});
  댓글 수: 2
Walter Roberson
Walter Roberson 2021년 6월 21일
What is size(NoisyRMphantom_Trans) ?
Ryan
Ryan 2021년 6월 21일
1017x360

댓글을 달려면 로그인하십시오.

채택된 답변

Walter Roberson
Walter Roberson 2021년 6월 21일
  • If theta is a vector, then specify R as a 2-D matrix in which each column is the Radon transform for one of the angles in theta.
Your theta is a vector, so your input R (first parameter) should be an array that has the same number of columns as theta has entries.
Your theta has 590 entries (noAngles), so your R should have 590 columns. But instead it has 360 columns.
  댓글 수: 1
Ryan
Ryan 2021년 6월 21일
Hi Walter, I've changed R colums to match. iradon is working now. Thanks so much!

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

제품


릴리스

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by