mantidimaging.core.reconstruct.tomopy_recon module#

class mantidimaging.core.reconstruct.tomopy_recon.TomopyRecon[source]#

Bases: BaseRecon

static allowed_filters() list[str][source]#
static find_cor(images: ImageStack, slice_idx: int, start_cor: float, recon_params: ReconstructionParameters) float[source]#
static full(images: ImageStack, cors: list[ScalarCoR], recon_params: ReconstructionParameters, progress: Progress | None = None)[source]#

Performs a volume reconstruction using sample data provided as sinograms.

Parameters:
  • images – Array of sinogram images

  • cors – Array of centre of rotation values

  • proj_angles – Array of projection angles

  • recon_params – Reconstruction Parameters

  • progress – Optional progress reporter

Returns:

3D image data for reconstructed volume

static single_sino(sino: np.ndarray, cor: ScalarCoR, proj_angles: ProjectionAngles, recon_params: ReconstructionParameters, progress: Progress | None = None)[source]#

Reconstruct a single sinogram

Parameters:
  • sino – The 2D sinogram as a numpy array

  • cor – Center of rotation for parallel geometry. It will be converted to vector geometry before reconstructing

  • proj_angles – Projection angles

  • recon_params – Reconstruction parameters to configure which algorithm/filter/etc is used

Returns:

2D image data for reconstructed slice

mantidimaging.core.reconstruct.tomopy_recon.allowed_recon_kwargs() dict[source]#