:py:mod:`pytomography.transforms.SPECT.cutoff` ============================================== .. py:module:: pytomography.transforms.SPECT.cutoff Module Contents --------------- Classes ~~~~~~~ .. autoapisummary:: pytomography.transforms.SPECT.cutoff.CutOffTransform .. py:class:: CutOffTransform(mask) Bases: :py:obj:`pytomography.transforms.Transform` The parent class for all transforms used in reconstruction (obj2obj, im2im, obj2im). Subclasses must implement the ``__call__`` method. :param device: Pytorch device used for computation :type device: str .. py:method:: forward(proj, padded = True) Cuts off the projection data outside of a certain region. :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 cutoff applied :rtype: torch.Tensor .. py:method:: backward(proj, padded = True) Returns the projection data without the cutoff. :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 cutoff :rtype: torch.Tensor