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, proj_meta)[source]#

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

Parameters:
  • object_meta (ObjectMeta) – Object metadata.

  • proj_meta (ProjMeta) – Projections metadata.

Return type:

None

abstract forward(x)[source]#

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

Parameters:

x (torch.tensor) –

abstract backward(x)[source]#

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

Parameters:

x (torch.tensor) –