Closed dyang37 closed 2 years ago
I don't understand your comment. The number of channels in the sinogram should be independent to the image reconstruction size.
I don't understand your comment. The number of channels in the sinogram should be independent to the image reconstruction size.
I agree. In reality the detector and image sizes are independent.
I'm saying that we might need to detect whether the two sizes are roughly compatible. For example, if the detector size is significantly smaller than magnification*num_cols*delta_img
then we might need to through a warning.
Diyu, I think this is not a problem for SVMBIR, but we there may be a problem with mbircone that we can set arbitrary reconstructed image sizes. That could bit use when doing laminography. But I will close this issue for SVMBIR.
This issue is spotted thanks to Surogit. Currently,
num_channels
is used as an input to thesvmbir.project()
. For fan-beam geometry we might need to check that this input is compatible with the number of image columns and the geometry parameters. Without considering detector offsets, we should roughly havenum_channels*delta_channel ~= magnification*num_cols*delta_img
. For example, indemo_fanbeam.py,
changingnum_channels
from 256 to 128 would result in garbage reconstruction results due to mismatch between sinogram and image shapes, and this should be checked by the program. In mbircone, this is done by first calculating the correct image shape from the sinogram and geometry parameters, and comparing it with the input image shape.