pytomography.transforms.transform#

Module Contents#

Classes#

Transform

The parent class for all transforms used in reconstruction (obj2obj, im2im, obj2im). Subclasses must implement the __call__ method.

class pytomography.transforms.transform.Transform[source]#

The parent class for all transforms used in reconstruction (obj2obj, im2im, obj2im). Subclasses must implement the __call__ method.

Parameters:

device (str) – Pytorch device used for computation

configure(object_meta, image_meta)[source]#

Configures the transform to the object/image metadata. This is done after creating the network so that it can be adjusted to the system matrix.

Parameters:
Return type:

None

abstract __call__(x)[source]#

Abstract method; must be implemented in subclasses to apply a correction to an object/image and return it

Parameters:

x (torch.tensor) –