astra_algorithm

odl.tomo.backends.astra_setup.astra_algorithm(direction, ndim, vol_id, sino_id, proj_id, impl)[source]

Create an ASTRA algorithm object to run the projector.

Parameters
direction{‘forward’, ‘backward’}

For 'forward', apply the forward projection, for 'backward' the backprojection.

ndim{2, 3}

Number of dimensions of the projector.

vol_idint

Handle for the ASTRA volume data object.

sino_idint

Handle for the ASTRA projection data object.

proj_idint

Handle for the ASTRA projector object.

impl{‘cpu’, ‘cuda’}

Implementation of the projector.

Returns
idint

Handle for the created ASTRA internal algorithm object.