PyTorch toolbox to work with spherical surfaces.
Note
This page is a reference documentation. It only explains the class signature, and not how to use it. Please refer to the gallery for the big picture.
- class surfify.augmentation.utils.BaseTransformer[source]¶
Bases:
object
Class that can be used to register a sequence of transformations.
Init class.
- register(transform, probability=1, randomize_per_channel=True)[source]¶
Register a new transformation.
- Parameters:
transform : RandomAugmentation instance
a transformation.
probability : float, default 1
the transform is applied with the specified probability.
randomize_per_channel : bool, default True
a parameter to control if the randomization of tranformation parameters must be applied channel-wise.
Examples¶
Follow us