Geometric mean filter

The geometric mean filter is an image filtering process meant to smooth and reduce noise of an image.

Uses your system voice; voice and rate in settings.

Snapshot

≈ 3 min read

Names in other languages

No names in other languages are held for this entry yet.

Article bodies are English and are not machine-translated. A name in another language is not a translation of the article.

The geometric mean filter is an image filtering process meant to smooth and reduce noise of an image. It is based on the mathematic geometric mean. The output image G(x,y) of a geometric mean is given by : G(x,y) = \left[\prod_{i,j\varepsilon S}S(i,j)\right]^ Where S(x,y) is the original image, and the filter mask is m by n pixels.

Each pixel of the output image at point (x,y) is given by the product of the pixels within the geometric mean mask raised to the power of 1/mn. For example, using a mask size of 3 by 3, pixel (x,y) in the output image will be the product of S(x,y) and all 8 of its surrounding pixels raised to the 1/9th power.

Using the following original image with pixel (x,y) at the center: Gives the result of: (5*16*22*6*3*18*12*3*15)^(1/9) = 8.77.

The geometric mean filter is an image filtering process meant to smooth and reduce noise of an image. It is based on the mathematic geometric mean. The output image G(x,y) of a geometric mean is given by G(x,y) = \left[\prod_{i,j\varepsilon S}S(i,j)\right]^ Where S(x,y) is the original image, and the filter mask is m by n pixels.

Each pixel of the output image at point (x,y) is given by the product of the pixels within the geometric mean mask raised to the power of 1/mn. For example, using a mask size of 3 by 3, pixel (x,y) in the output image will be the product of S(x,y) and all 8 of its surrounding pixels raised to the 1/9th power.

Using the following original image with pixel (x,y) at the center: Gives the result of: (5*16*22*6*3*18*12*3*15)^(1/9) = 8.77. % Applies geometric mean filter to image input_noise that has added gaussian noise [m, n] = size(input_noise); output = zeros(m, n); % output image set with placeholder values of all zeros val = 1; % variable to hold new pixel value for i = 2:m-2 % loop through each pixel in original image for j = 2:n-2 % compute geometric mean of 3x3 window around pixel p = input_noise(i - 1, j - 1); q = input_noise(i - 1, j); r = input_noise(i - 1, j + 1); s = input_noise(i, j - 1); t = input_noise(i, j); u = input_noise(i, j + 1); v = input_noise(i + 1, j - 1); w = input_noise(i + 1, j); x = input_noise(i + 1, j + 1); val = (p * q * r * s * t * u * v * w * x) ^ (1 / 9); output(i, j) = val; % set output pixel to computed geometric mean val = 1; % reset val for next pixel end end

Text derived from https://en.wikipedia.org/w/index.php?oldid=1367685496 under CC BY-SA 4.0; modifications have been made.

Provenance

snapshot enwiki-001367685496 · captured 2026-08-04 · not yet sealed in the ledger · verify the chain · version history

Cite this page as: encyclopegia.org, “Geometric mean filter”, snapshot enwiki-001367685496. https://encyclopegia.org/a/geometric-mean-filter

Sources cited in this revision

No external citation was extracted for this revision. That is a statement about the source, not a claim that none exists.