Function Index
BlockMedian
BlockMedian[
img
,
{
n
1
,
n
2
}]
is a nonlinear noise reduction operator.
BlockMedian
replaces each pixel with the median (central) value of a list of samples taken from its centered neighborhood of dimensions n
1
×n
2
.
This shows the geometry of a 3 × 3 neighborhood centered on f(r,c):
The argument
img
may be a vector, matrix, or
ImageData
expression.
See also User's Guide
5.5
.
Modified in Version 2.
Example
This loads the package.
In[1]:=
This generates a data array with uniformly distributed additive noise.
In[2]:=
Here is the noisy data.
In[3]:=
Out[3]=
This demonstrates noise suppression using
BlockMedian
with 3 × 3 neighborhoods.
In[4]:=
In[5]:=
Out[5]=
© 2009 Wolfram Research, Inc.
•
Terms of Use
•
Privacy Policy
Sign up for our newsletter: