FlipLR#
- class deeptrack.augmentations.FlipLR(p=0.5, augment=None, **kwargs)#
Bases:
Augmentation
Flips images left-right.
Updates all properties called “position” to flip the second index.
Arguments#
- pfloat
Probability of flipping the image
Extra arguments#
- augmentbool
Whether to perform the augmentation. Leaving as default is sufficient most of the time.
Methods Summary
get
(image, augment, **kwargs)Transform an image [abstract method].
update_properties
(image, augment, **kwargs)Methods Documentation
- get(image, augment, **kwargs)#
Transform an image [abstract method].
Abstract method that defines how the feature transforms the input. The current value of all properties will be passed as keyword arguments.
Parameters#
- image‘Image’ or List[‘Image’]
The Image or list of images to transform.
- **kwargsDict[str, Any]
The current value of all properties in properties as well as any global arguments.
Returns#
- ‘Image’ or List[‘Image’]
The transformed image or list of images.
Raises#
- NotImplementedError
Must be overridden by subclasses.
- update_properties(image, augment, **kwargs)#