Problem with iradon in Matlab 2024b

15 次查看(过去 30 天)
Colin Mailer
Colin Mailer 2024-10-23,5:02
编辑: Walter Roberson 2024-10-23,20:59
I recently update Matlab 2023a to Matlab 2024b
I am using iradon in iterative image reconstruction from projections. The code requires that the iradon filter be 'None'. That is allowed according to the help on iradon. This worked perfectly in Matlab 2023a but failed in Matlab 2024b
Code is:
sens=iradon(sinogram_ones,azi_angles,'None',128);
Error message is:
Error using iradon>parse_inputs (line 249)
Unknown input string: none.
Error in iradon (line 99)
[p,theta,filter,d,interp,N] = parse_inputs(varargin{:});
Advice welcomed CM

回答(2 个)

Steven Lord
Steven Lord 2024-10-23,19:07
Can you confirm that you're using the iradon function included in Image Processing Toolbox? The error message indicates the failure occurs on line 99 in iradon.m but the iradon.m in this toolbox in release R2024b only has 83 lines. It also does not have a parse_inputs local function (and again, doesn't have a line 249.)
What does this show you when you run it in your installation?
which -all iradon
/MATLAB/toolbox/images/images/iradon.m /MATLAB/toolbox/images/images/@gpuArray/iradon.m % gpuArray method
I also checked and the gpuArray overload of iradon has a line 99, but it's in the help text block. That overload is also only 154 lines long and like the "regular" iradon.m does not have a local function named parse_inputs.

Taylor
Taylor 2024-10-23,19:08
Looks like you're just missing some inputs to iradon. The third input is "interp" which does not take "none" as an argument. You can either use a valid string or use [] to use the default value of "linear".

类别

Help CenterFile Exchange 中查找有关 Operators and Elementary Operations 的更多信息

标签

产品


版本

R2024b

Community Treasure Hunt

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

Start Hunting!

Translated by