CropTight#
- class deeptrack.augmentations.CropTight(eps: float | Callable[[...], float] = 1e-10, **kwargs)#
Bases:
FeatureCrops input array to remove empty space.
Removes indices from the start and end of the array, where all values are below eps. Currently only works for 3D arrays.
Parameters#
- eps: float
The threshold for considering a pixel to be empty, by default 1e-10.
Methods#
- get(image: Image | np.ndarray, eps: PropertyLike[float], **kwargs) -> Image
Abstract method which performs the CropTight augmentation.
Methods Summary
get(image, eps, **kwargs)Abstract method which performs the CropTight augmentation.
Methods Documentation