Ifanbeam FanRotationIncrement wrong length error
3 次查看(过去 30 天)
显示 更早的评论
Hi I keep getting the error 'Error using fan2para>formMinimalThetaVector (line 298) Internal Problem: FanRotationAngles has the wrong length.' when this code is reached:
distSourceToDetector = dICOMREAD.DistanceSourceToDetector;
totalPixelLength = distSourceToDetector/pixelSize(1);
pixelsToCenter = totalPixelLength/2;
F1 = fanbeam(transverse(:,:,16),pixelsToCenter,'FanSensorGeometry', 'line');
finv2 = ifanbeam(F1,pixelsToCenter,'FanSensorGeometry', 'line',...
'FanCoverage','minimal','FanRotationIncrement',1);
Any Ideas please?
4 个评论
Arvind Narayanan
2018-3-1
Can you provide some sample data from dlCOMREAD so that we can test this script at our end for debugging purpose?
回答(1 个)
Arvind Narayanan
2018-3-5
编辑:Arvind Narayanan
2018-3-5
Okay. So I was able to get the script working on the test data you have provided. The change I made was to change the FanCoverage parameter at line 15 from "minimal" to "cycle". This change caused the rotation increment parameter to be taken properly and the calculation completed generating the images as needed. Maybe you should look at the input data you are feeding to the ifanbeam function to ensure that it is consistent and valid. Refer the documentation of ifanbeam for more details: link
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/179648/image.png)
0 个评论
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!