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

  • HarmonicMeanFilter works with arbitrary-rank numerical arrays, regular and irregular time series, 2D and 3D images, and sampled sound objects, operating separately on each channel.
  • HarmonicMeanFilter[image,r] computes the harmonic mean of the values in blocks centered on each pixel.
  • At the edges of an image, HarmonicMeanFilter uses smaller neighborhoods.
  • HarmonicMeanFilter works with 3D as well as 2D images, and also with data arrays of any rank.
  • HarmonicMeanFilter[image,{rrow,rcol}] uses range in height, and in width.
  • HarmonicMeanFilter[image,{rslice,rrow,rcol}] uses range in height, in depth, and in width.
  • HarmonicMeanFilter operates separately on each channel in an image.

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]=
Introduced in 2008
(7.0)
| Updated in 2015
(10.2)
Translate this page: