Similar to the filters in scipy.ndimage
but accelerated and parallelized 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.
The variance filter calculates the rolling variance for the given kernel shape.