AverageBlur#

class deeptrack.math.AverageBlur(ksize: int | Callable[[...], int] = 3, **kwargs)#

Bases: Blur

Blur 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#

ksizeint

Kernel size to use.

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‘Image’ or List[‘Image’]

The Image or list of images to transform.

**kwargsDict[str, Any]

The current value of all properties in properties as well as any global arguments.

Returns#

‘Image’ or List[‘Image’]

The transformed image or list of images.

Raises#

NotImplementedError

Must be overridden by subclasses.