Using ToMoBAR#
In Tutorials, we provide few examples how to reconstruct synthetic and real tomographic data collected with the parallel-beam geometry.
The general recipe to perform reconstruction in Python with ToMoBAR is the following:
1. Import a module related to the reconstruction task chosen, e.g., direct (
DIR
) modulestomobar.methodsDIR
, iterative (IR
)tomobar.methodsIR
, or CuPy-enabled modulestomobar.methodsDIR_CuPy
andtomobar.methodsIR_CuPy
.Instantiate a reconstructor class while providing parameters related to the parallel-beam 2D and 3D scanning geometries.
3. After instantiation you will get an access to different reconstruction methods of that class. Run selected reconstruction method providing data as an input and additional parameters. For all
DIR
methods parameters are passed directly, while forIR
methods you will need to form dictionaries:_data_
,_algorithm_
, and_regularisation_
. Seetomobar.supp.dicts
for the list of parameters accepted.
Note
As the main aim for ToMoBAR is to reconstruct the data from the synchrotron X-ray or neutron imaging instruments, with the beam being approximately parallel. So far, we do not provide API for the divergent beam geometries, however as ASTRA supports it, the wrappers at tomobar.astra_wrappers
can be extended. The contributions are welcome!