kernelkit.bp

Contents

kernelkit.bp#

kernelkit.bp(projections: Any, projection_geometry: list[ProjectionGeometry], volume_geometry: VolumeGeometry, filter: Any = None, preproc_fn: Callable = None, kernel: BaseKernel = None, out=None, projection_axes: Sequence[int] = (0, 1, 2), **kwargs)#

X-ray backprojection.

Parameters:
projection_axesSequence[int], optional

The axes of the projections. Default is (0, 1, 2).

projectionsarray-like

Either a 2D list of projections, or a 3D array of projections.

projection_geometrylist[ProjectionGeometry]

The projection geometries.

volume_geometryVolumeGeometry

The volume geometry.

filterAny

The filter to apply to the projections before backprojection.

preproc_fnCallable, optional

A function to apply to the projections before backprojection, especially suited for pre-processing on the GPU. Default is None.

outarray-like, optional

The volume array to write the result to. If not given, a new array is allocated on the CPU in page-locked memory and returned.

Returns:
outndarray

The volume that was backprojected into.

Warning

The API of this function will likely change in some future because of the kernel passing mechanism.