filterN

Version 1.0.0 (30.6 KB) by David Young
Non-linear filtering of N-dimensional arrays. A function is applied, convolution style, to sets of elements defined by a mask.
1 Download
Updated 7 Jan 2025

View License

Y = filterN(X, OP, MASK) performs N-D filtering of array X. The region defined by MASK is scanned across X to produce, at each step, the inputs to OP, whose output is placed in the corresponding element of Y.
OP may be a function handle or one of the strings "max", "min", "maxabs" or "sumsqr".
MASK may be a scalar cell to define a (hyper-)rectangular region, or a logical array to define a possibly scattered set of elements.
Optional arguments allow the form of the argument to OP and the behaviour at the boundaries of X to be specified. The output may be sampled onto a regular grid, avoiding unnecessary computation.
filterN is related to the Image Processing Toolbox functions nlfilter and colfilt.

Cite As

David Young (2025). filterN (https://uk.mathworks.com/matlabcentral/fileexchange/178614-filtern), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2024b
Compatible with R2023b and later releases
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.0.0