SNN filter

Symmetric nearest neighbor edge-preserving filter.
3K Downloads
Updated 2 Aug 2005

No License

This function implements the symmetric nearest neighbor filter, a 2D nonlinear filter that reduces noise in an image while at the same time preserving edge content. A code example follows:

RGB = imread('saturn.png');
I = rgb2gray(RGB);
J = imnoise(I,'gaussian',0,0.005);
Y = snn(J,5,true);

Cite As

Arthur Barnes (2026). SNN filter (https://www.mathworks.com/matlabcentral/fileexchange/8174-snn-filter), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R14SP2
Compatible with any release
Platform Compatibility
Windows macOS Linux
Version Published Release Notes
1.0.0.0