AverageBlur#
- class deeptrack.math.AverageBlur(ksize: int | Callable[[...], int] = 3, **kwargs)#
Bases:
BlurBlur an image by computing simple means over neighbourhoods.
Performs a (N-1)D convolution if the last dimension is smaller than the kernel size.
Parameters#
- ksize: int
Kernel size for the pooling operation.
Methods Summary
get(input, ksize, **kwargs)Transform an image [abstract method].
Methods Documentation
- get(input, ksize, **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: np.ndarray or list of np.ndarray or Image or list of Images
The image or list of images to transform.
- **kwargs: dict of str to Any
The current value of all properties in properties, as well as any global arguments passed to the feature.
Returns#
- Image or list of Images
The transformed image or list of images.
Raises#
- NotImplementedError
Raised if this method is not overridden by subclasses.