BatchWiseImageTransform
- class hybrid_learning.datasets.transforms.image_transforms.BatchWiseImageTransform(batch_wise=False)[source]
Bases:
ImageTransform,ABCWrap a transformation operating on a batch of masks to also work on single masks.
Public Data Attributes:
Settings to reproduce the instance.
Inherited from : py: class:Transform
IDENTITY_CLASSThe identity class or classes for composition / addition.
Settings to reproduce the instance.
Public Methods:
apply_to(mask)Apply trafo to the mask (either considered as batch of mask or single mask).
apply_to_batch(batch)Batch-wise transformation.
Inherited from : py: class:ImageTransform
apply_to(mask)Apply trafo to the mask (either considered as batch of mask or single mask).
Inherited from : py: class:Transform
apply_to(mask)Apply trafo to the mask (either considered as batch of mask or single mask).
Special Methods:
__init__([batch_wise])Inherited from : py: class:ImageTransform
__call__(img)Application of transformation.
Inherited from : py: class:Transform
__repr__()Return repr(self).
__eq__(other)Return self==value.
__copy__()Return a shallow copy of self using settings.
__add__(other)Return a flat composition of
selfwithother.__radd__(other)Return a flat composition of
otherandself.__call__(img)Application of transformation.
- Parameters
batch_wise (bool) –
- apply_to(mask)[source]
Apply trafo to the mask (either considered as batch of mask or single mask).