FlipUD#

class deeptrack.augmentations.FlipUD(p: float = 0.5, augment: bool | Callable[[...], bool] | None = None, **kwargs)#

Bases: Augmentation

Flips images up-down.

Updates all properties called “position” to flip the first index in the image.

Parameters#

p: float

Probability of flipping the image, leaving as default (0.5) is sufficient most of the time.

augment: bool

Whether to perform the augmentation.

Methods#

get(image: Image | np.ndarray, augment: PropertyLike[bool], **kwargs) -> Image

Abstract method which performs the FlipUD augmentation.

update_properties(image: Image | np.ndarray, augment: PropertyLike[bool], **kwargs) -> None

Abstract method to update the properties of the image.

Methods Summary

get(image, augment, **kwargs)

Abstract method which performs the FlipUD augmentation.

update_properties(image, augment, **kwargs)

Abstract method to update the properties of the image.

Methods Documentation

get(image: Image | np.ndarray, augment: PropertyLike[bool], **kwargs) Image#

Abstract method which performs the FlipUD augmentation.

update_properties(image: Image | np.ndarray, augment: PropertyLike[bool], **kwargs) None#

Abstract method to update the properties of the image.