math

Mathematical oprations and structures

Classses

Clip

Clip the input within a minimum and a maximum value.

NormalizeMinMax

Min-max image normalization.

Module classes

Clip

class deeptrack.math.Clip(min=-inf, max=inf, **kwargs)

Clip the input within a minimum and a maximum value.

Parameters
  • min (float) – Clip the input to be larger than this value.

  • max (float) – Clip the input to be smaller than this value.

get(image, min=None, max=None, **kwargs)

Method for altering an image Abstract method that define 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

  • **kwargs – The current value of all properties in properties as well as any global arguments.

Returns

The transformed image or list of images

Return type

Image or List[Image]

NormalizeMinMax

class deeptrack.math.NormalizeMinMax(min=0, max=1, **kwargs)

Image normalization.

Transforms the input to be between a minimum and a maximum value using a linear transformation.

Parameters
  • min (float) – The minimum of the transformation.

  • max (float) – The maximum of the transformation.

get(image, min, max, **kwargs)

Method for altering an image Abstract method that define 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

  • **kwargs – The current value of all properties in properties as well as any global arguments.

Returns

The transformed image or list of images

Return type

Image or List[Image]