pytomography.transforms.SPECT.additive_term#
Module Contents#
Classes#
The parent class for all transforms used in reconstruction (obj2obj, im2im, obj2im). Subclasses must implement the |
- class pytomography.transforms.SPECT.additive_term.AdditiveTermTransform(additive_term)[source]#
Bases:
pytomography.transforms.TransformThe 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
additive_term (float) –
- forward(proj, padded=True)[source]#
Adds an additive term to the projection data. :param proj: Projection data :type proj: torch.Tensor :param padded: Whether or not the projection data is padded. Defaults to True. :type padded: bool, optional
- Returns:
Projection data with additive term added
- Return type:
torch.Tensor
- Parameters:
proj (torch.Tensor) –
padded (bool) –
- backward(proj, padded=True)[source]#
Returns the projection data without the additive term. :param proj: Projection data :type proj: torch.Tensor :param padded: Whether or not the projection data is padded. Defaults to True. :type padded: bool, optional
- Returns:
Projection data without additive term
- Return type:
torch.Tensor
- Parameters:
proj (torch.Tensor) –
padded (bool) –