trackpy.preprocessing.lowpass

trackpy.preprocessing.lowpass(image, sigma=1, truncate=4)

Remove noise by convolving with a Gaussian.

Convolve with a Gaussian to remove short-wavelength noise.

The lowpass implementation relies on scipy.ndimage.filters.gaussian_filter, and it is the fastest way known to the authors of performing a bandpass in Python.

Parameters:
imagendarray
sigmanumber or tuple, optional

Size of the gaussian kernel with which the image is convolved. Provide a tuple for different sizes per dimension. Default 1.

truncatenumber, optional

Determines the truncation size of the convolution kernel. Default 4.

Returns:
resultarray

the processed image, as float

See also

bandpass