Average#

class deeptrack.math.Average(features=typing.Union[typing.List[deeptrack.features.Feature], typing.Callable[..., typing.List[deeptrack.features.Feature]]], axis: int | Callable[[...], int] = 0, **kwargs)#

Bases: Feature

Average of input images

If features is not None, it instead resolves all features in the list and averages the result.

Parameters#

axisint or tuple of ints

Axis along which to average

features : list of features, optional

Methods Summary

get(images, axis, **kwargs)

Transform an image [abstract method].

Methods Documentation

get(images, axis, **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.