Why MATLAB function fan2para is not able to generate sinograms with odd number of views?

조회 수: 2 (최근 30일)
img = imread('example.jpg');
img = rgb2gray(img);
sino_fan = fanbeam(img, 538.52/0.710938, 'FanRotationIncrement', 360/1968, 'FanSensorGeometry', 'arc', ...
'FanSensorSpacing', (1.0239 * 912) / (946.746 * 2 * pi) * 360 / 912);
[sino_para, a, b] = fan2para(sino_fan, 538.52/0.710938, 'FanCoverage', 'cycle', 'FanRotationIncrement', 360/1968, ...
'FanSensorGeometry', 'arc', 'FanSensorSpacing', (1.0239 * 912) / (946.746 * 2 * pi) * 360 / 912, 'ParallelCoverage', 'cycle', ...
'ParallelRotationIncrement', 360/3, 'ParallelSensorSpacing', 1.0, 'Interpolation', 'pchip');
>> b
b =
0 180
For the above code, I am trying to convert the fan-beam sinogram to a 3-view parallel-beam sinogram with ParallelRotationIncrement 360/3 = 120 degrees. But it turns out that the increment is 180 degrees. Same thing happens to all odd number of view.
MATLAB version: '9.5.0.944444 (R2018b)'
Thank you.

답변 (0개)

카테고리

Help CenterFile Exchange에서 MATLAB Report Generator에 대해 자세히 알아보기

제품


릴리스

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by