PadToMultiplesOf#

class deeptrack.optical.augmentations.PadToMultiplesOf(multiple: int | tuple[int | None, ...] | Callable[[...], int | tuple[int | None, ...]] = 1, **kwargs: Any)#

Bases: Pad

Pad images so their dimensions become multiples of a given value.

Padding is applied symmetrically along each axis so that the final image size is divisible by the specified multiple.

Parameters#

multiple: PropertyLike[int | tuple[int | None, …]], optional

Target multiple for each axis. - If a single integer is provided, the same multiple is applied to all axes. - If a tuple is provided, values correspond to individual axes. - A value of None or -1 skips padding for that axis. Defaults to 1.