ordfilt3

Perform 3-D order-statistic filtering on 26 neighbors.
5.2K Downloads
Updated 20 Aug 2004

View License

Same as ordfilt2 but for 3D dataset. Can be used as a 3D median , max or min filter. With little modification could be used with any arbitrary function.

for a 3D 100x100x100 uint8 dataset, it runs in about 2.75s on a P4 2.4GHz 1G RAM personnal computer (XP)

% ordfilt3D: Perform 3-D order-statistic filtering on 26 neighbors
%
% [Vr] = ordfilt3D(V0,ord,padoption)
% use 26 neighbors
% ord = 14 <=> median filtering
% ord = 1 <=> min
% ord = [1 27] <=> [min max]
% padoption: same as in padarray
%
% Olivier Salvado, Case Western Reserve University, 16Aug04

Cite As

Olivier Salvado (2024). ordfilt3 (https://www.mathworks.com/matlabcentral/fileexchange/5722-ordfilt3), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R14
Compatible with any release
Platform Compatibility
Windows macOS Linux
Acknowledgements

Inspired: BiofilmQ, ordfilt3

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.0

comment updated