Function Index
BlockTrimmedMean
BlockTrimmedMean[
img
,
{
n
1
,
n
2
}
]
is a nonlinear noise reduction operator.
BlockTrimmedMean[
img
,
{
n
1
,
n
2
},
k
]
uses value
k
to trim each list of samples.
BlockTrimmedMean
replaces each pixel in
img
with a trimmed mean of the local centered neighborhood of size {n
1
,n
2
}. A trimmed mean is the average of remaining samples, after
k
samples are removed from both ends of a sorted list. The default value of
k
is k=1.
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]:=
This demonstrates noise suppression using
BlockTrimmedMean
using 3 × 3 pixel neighborhoods.
In[4]:=
In[5]:=
© 2008 Wolfram Research, Inc.
•
Terms of Use
•
Privacy Policy
Sign up for our newsletter: