magtomo.radon.radon#

radon(image, thetas=None, order=1)#

Performs the radon transform on an image.

Summation / integration occurs along the last dimension. Therefore, an input image with shape (x, y) and (n,) angles will result in an output image with shape (n, x). For 3D input of shape (x, y, z) and (n,) the output image will have the shape (n, x, y).

Parameters:
imagenp.ndarray

The image to transform.

thetasnp.ndarray | list (optional)

Angles to calculate the radon transform.

orderint (optional)

Interpolation order.

Returns:
np.ndarray

The Radon transform of the image, the 0th index represents the measured angles.