mantidimaging.core.tools.tomopy_tool module¶
- class mantidimaging.core.tools.tomopy_tool.TomoPyTool[source]¶
Bases:
AbstractTool
- run_reconstruct(sample, config, proj_angles=None, progress=None, **kwargs)[source]¶
Run a reconstruction with TomoPy, using the CPU algorithms they provide.
- Information for each reconstruction method is available at
http://tomopy.readthedocs.io/en/latest/api/tomopy.recon.algorithm.html
- Parameters:
sample – The sample image data as a 3D numpy.ndarray
config –
A ReconstructionConfig with all the necessary parameters to run a reconstruction. The Centers of Rotation
must be interpolated independently!
proj_angles – The projection angle for each slice. If not provided equidistant angles will be generated
kwargs – Any keyword arguments will be forwarded to the TomoPy reconstruction function
- Returns:
The reconstructed volume
- mantidimaging.core.tools.tomopy_tool.run_reconstruct(sample, config, proj_angles=None, **kwargs)[source]¶
Module function for running a reconstruction.
It will create the tomopy tool object at runtime.
- Parameters:
sample – The sample image data as a 3D numpy.ndarray
config –
A ReconstructionConfig with all the necessary parameters to run a reconstruction. The Centers of Rotation
must be interpolated independently!
proj_angles – The projection angle for each slice. If not provided equidistant angles will be generated
kwargs – Any keyword arguments will be forwarded to the TomoPy reconstruction function
- Returns:
The reconstructed volume