https://github.com/sun-data/ndfilters
Numba-accelerated, n-dimensional image filters.
https://github.com/sun-data/ndfilters
filters image-processing n-dimensional numba numpy scientific-computing scipy
Last synced: 3 months ago
JSON representation
Numba-accelerated, n-dimensional image filters.
- Host: GitHub
- URL: https://github.com/sun-data/ndfilters
- Owner: sun-data
- Created: 2023-06-04T15:42:23.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-09-17T20:12:37.000Z (8 months ago)
- Last Synced: 2024-09-28T21:01:56.240Z (7 months ago)
- Topics: filters, image-processing, n-dimensional, numba, numpy, scientific-computing, scipy
- Language: Python
- Homepage: https://ndfilters.readthedocs.io
- Size: 146 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ndfilters
[](https://github.com/sun-data/ndfilters/actions/workflows/tests.yml)
[](https://codecov.io/gh/sun-data/ndfilters)
[](https://github.com/sun-data/ndfilters/actions/workflows/black.yml)
[](https://github.com/sun-data/ndfilters/actions/workflows/ruff.yml)
[](https://ndfilters.readthedocs.io/en/latest/?badge=latest)
[](https://badge.fury.io/py/ndfilters)Similar to the filters in `scipy.ndimage` but accelerated and parallelized using
[Numba](https://numba.readthedocs.io/en/stable/).## Installation
`ndfilters` is published on PyPI and can be installed using `pip`.
```bash
pip install ndfilters
```## Gallery
### Mean filter
The [mean filter](https://ndfilters.readthedocs.io/en/latest/_autosummary/ndfilters.mean_filter.html#ndfilters.mean_filter)
calculates a multidimensional rolling mean for the given kernel shape.
### Trimmed mean filter
The [trimmed mean filter](https://ndfilters.readthedocs.io/en/latest/_autosummary/ndfilters.trimmed_mean_filter.html#ndfilters.trimmed_mean_filter)
is like the mean filter except it ignores a given portion of the dataset before calculating the mean at each pixel.
### Variance filter
The [variance filter](https://ndfilters.readthedocs.io/en/latest/_autosummary/ndfilters.variance_filter.html#ndfilters.variance_filter)
calculates the rolling variance for the given kernel shape.