Code covered by the BSD License  

Highlights from
ordfilt3

4.25

4.2 | 4 ratings Rate this file 20 Downloads (last 30 days) File Size: 144.96 KB File ID: #5722
image thumbnail

ordfilt3

by Olivier Salvado

 

17 Aug 2004 (Updated 20 Aug 2004)

Perform 3-D order-statistic filtering on 26 neighbors.

| Watch this File

File Information
Description

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

Acknowledgements
This submission has inspired the following:
ordfilt3
MATLAB release MATLAB 7 (R14)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (7)
04 Oct 2004 safit gf

i need if possible more details about this filter to be able to understant it.
 thank you

28 Feb 2006 norbert kirchgessner

very helpful and rather fast but memory consuming

by using

    Vn = zeros(S(1),S(2),S(3),27,'uint8'); % all the neighbor

and

    Vn = zeros(S(1),S(2),S(3),27,'single'); % all the neighbor

at the specific sites, saves half the exexution time

Thank you very much

22 May 2006 i scardanzan

obsurde memory request for real world image applications ... say you have 512 x 512 x 512 volume ... the is a small subvolume for real CT or MR application ... what sort of memory do you need ????

20 Aug 2007 Tal Kenig

Fast implementation. Too bad it handles only a 3x3x3 neighborhood.
For scardanzan : for these type of applications you usually use a very strong machine, and don't work in Matlab...

23 Aug 2007 ivan scardanzan

the following is a 3d filter with much better memory management :
MEDFILT3 performs median filtering of an array in three dimensions.

20 Mar 2009 David

Fast, but the window size is fixed to 3 by 3 by 3 ....

03 Aug 2010 Juha-Matti Alakoskela

Much faster than medfilt3.

Please login to add a comment or rating.
Updates
20 Aug 2004

comment updated

Tag Activity for this File
Tag Applied By Date/Time
filtering Olivier Salvado 22 Oct 2008 07:30:14
ordfilt2 median 3d max min Olivier Salvado 22 Oct 2008 07:30:14
ordfilt2 median 3d max min shahla 18 Dec 2011 04:39:55
ordfilt2 kannan 05 May 2012 06:05:20

Contact us at files@mathworks.com