kernelkit.sirt#
- kernelkit.sirt(projections: ndarray, projection_geometry: Any, volume_geometry: VolumeGeometry, iters: int = 100, verbose: bool = True, mask: Any = None, min_constraint: float = None, max_constraint: float = None, return_gpu: bool = False, callback: callable = None, residual_every: int = 10)#
Simultaneous Iterative Reconstruction Technique.
- Parameters:
- projectionsarray-like
- The projections to reconstruct from. Must follow axes dimensions
(0, 1, 2), i.e., (projections, rows, cols). Other conventions are possible but not implemented here.
- projection_geometrylist[ProjectionGeometry]
The projection geometries.
- volume_geometryVolumeGeometry
The volume geometry.
- itersint, optional
The number of iterations to perform. Default is 100.
- verbosebool, optional
Whether to print a progress bar. Default is True.
- maskarray-like, optional
A mask to apply to the volume after each iteration. By default, no mask is applied.
- min_constraintfloat, optional
The minimum value to clip the volume to after each iteration. By default, no clipping is applied.
- max_constraintfloat, optional
The maximum value to clip the volume to after each iteration. By default, no clipping is applied.
- return_gpubool, optional
Whether to return the volume on the GPU. Default is False.
- callbackcallable, optional
A function to call after each iteration. The function should take three arguments: the iteration number, the volume, and the residual. Default is None.
- residual_everyint, optional
How often to compute the MSE residual for display. Default is every 10 iterations. Note that computing the residual is expensive and may slow down the reconstruction. It is best to set this value conservatively.