Skip to content

nabu.reconstruction.astra

source module nabu.reconstruction.astra

Classes

source class AstraReconstructor(sinos_shape, angles=None, volume_shape=None, rot_center=None, pixel_size=None, padding_mode='zeros', filter_name=None, slice_roi=None, cuda_options=None, extra_options=None)

Base class for reconstructors based on the Astra toolbox

Methods

  • reconstruct sinos: numpy.ndarray or pycuda.gpuarray Sinograms, with shape (n_sinograms, n_angles, width) output: pycuda.gpuarray, optional Output array. If not provided, a new numpy array is returned relative_z_position: int, optional Position of the central slice of the slab, with respect to the full stack of slices. By default it is set to zero, meaning that the current slab is assumed in the middle of the stack

source method AstraReconstructor.reconstruct(sinos, output=None, relative_z_position=None)

sinos: numpy.ndarray or pycuda.gpuarray Sinograms, with shape (n_sinograms, n_angles, width) output: pycuda.gpuarray, optional Output array. If not provided, a new numpy array is returned relative_z_position: int, optional Position of the central slice of the slab, with respect to the full stack of slices. By default it is set to zero, meaning that the current slab is assumed in the middle of the stack