etomo.operators.radon.radon#

Radon operator based on Astra Toolbox

class RadonBase[source]#

Bases: object

Base class for all Radon operators

op(img)[source]#

Computes Radon direct operator

Parameters

img (numpy.ndarray) – input image

Returns

result – sinogram of img

Return type

numpy.ndarray

adj_op(x)[source]#

Computes Radon adjoint operator on Radon space data x

Parameters

x (numpy.ndarray) – input sinogram

Returns

result – back projection of x

Return type

numpy.ndarray

class Radon2D(angles, img_size, n_channels=1, normalized=True, gpu=False)[source]#

Bases: etomo.operators.radon.radon.RadonBase

Radon operator based on Astra Toolbox

_op(img)[source]#

Computes sino of single image

op(img)[source]#

Returns sinogram of img as a vector

Parameters

img (numpy.ndarray((nchannels,) img_size, img_size)) – input image

Returns

sinogram – sinogram of the image

Return type

np.array((n_channels,) len(theta), img_size)

_adj_op(x)[source]#

Computes backprojection of single set of coefficients

adj_op(x)[source]#

Returns backprojection of a sinogram x

Parameters

x (numpy.ndarray((n_channels,) len(theta), img_size)) – sinogram

Returns

img – the backprojection

Return type

numpy.ndarray((n_channels,) img_size, img_size)

class Radon3D(angles, img_size, nb_slices=None, n_channels=1, normalized=True)[source]#

Bases: etomo.operators.radon.radon.RadonBase

Radon operator based on Astra Toolbox

_op(img)[source]#

Computes sino of a single image

op(img)[source]#

Returns sinogram of img as a vector

Parameters

img (numpy.ndarray((n_channels,) img_size, img_size, img_size)) – input image

Returns

sinogram – sinogram of the image

Return type

numpy.ndarray((n_channels,) img_size, len(theta), img_size)

_adj_op(x)[source]#

Computes back projection of single set of coefficients

adj_op(x)[source]#

Returns backprojection of a sinogram x

Parameters

x (numpy.ndarray((n_channels,) img_size, len(theta), img_size)) – sinogram

Returns

img – the backprojection

Return type

numpy.ndarray((n_channels,) img_size, img_size, img_size)