HarmonicMeanFilter

HarmonicMeanFilter[image, r]
filters image by replacing every value by the harmonic mean of the values in its range-r neighborhood.

HarmonicMeanFilter[data, r]
applies harmonic mean filtering to an array of data.

DetailsDetails

ExamplesExamplesopen allclose all

Basic Examples (2)Basic Examples (2)

Harmonic mean filtering applied to a three-channel image:

In[1]:=
Click for copyable input
Out[1]=

Applying a harmonic mean filter smoothens an image while preserving sharp transitions:

In[2]:=
Click for copyable input
Out[2]=

Apply a moving harmonic mean filter to a vector:

In[1]:=
Click for copyable input
Out[1]=
New in 7 | Last modified in 9
New to Mathematica? Find your learning path »
Have a question? Ask support »