CropToMultiplesOf#
- class deeptrack.augmentations.CropToMultiplesOf(multiple: int | tuple[int] | tuple[None] = 1, corner: PropertyLike[str] = 'random', **kwargs)#
Bases:
CropCrop images down until their height/width is a multiple of a value.
Parameters#
- multiple: int or tuple of ints or tuple of none
Images will be cropped down until their width is a multiple of this value. If a tuple, it is assumed to be a multiple per axis. A value of None or -1 indicates to skip that axis.
- corner: str
Top left corner of the cropped region. Can be a tuple of ints, a function that returns a tuple of ints or the string random. If corner is placed so that the cropping cannot be performed, the modulo of the corner with the allowed region is used.