Min/Max filter
The filter computes the minima and/or maxima of an array over sliding window with a given size.
Multidimensional array is fully supported: running filter in 1D, 2D filter for image processing applications (erosion/dilatation), 3D and more.
This package has been implemented with a special care on the running speed: the MEX engine uses an algorithms that requires no more than three (3) comparisons per element and per dimension in all configurations.
All numerical and logical class arrays are supported.
Contributor (beside author) is Vaclav Potesil
Cite As
Bruno Luong (2022). Min/Max filter (https://www.mathworks.com/matlabcentral/fileexchange/24705-min-max-filter), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
Tags
Acknowledgements
Inspired: Free-knot spline approximation
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.