Similar to the filters in scipy.ndimage
but accelerated using numba
.
ndfilters
is published on PyPI and can be installed using pip
.
pip install ndfilters
The mean filter calculates a multidimensional rolling mean for the given kernel shape.
The trimmed mean filter is like the mean filter except it ignores a given portion of the dataset before calculating the mean at each pixel.