To install click the Add extension button. That's it.

The source code for the WIKI 2 extension is being checked by specialists of the Mozilla Foundation, Google, and Apple. You could also do it yourself at any point in time.

4,5
Kelly Slayton
Congratulations on this excellent venture… what a great idea!
Alexander Grigorievskiy
I use WIKI 2 every day and almost forgot how the original Wikipedia looks like.
Live Statistics
English Articles
Improved in 24 Hours
Added in 24 Hours
Languages
Recent
Show all languages
What we do. Every page goes through several hundred of perfecting techniques; in live mode. Quite the same Wikipedia. Just better.
.
Leo
Newton
Brights
Milds

Geometric mean filter

From Wikipedia, the free encyclopedia

The geometric mean filter is an image filtering process meant to smooth and reduce noise of an image.[1] It is based on the mathematic geometric mean. The output image G(x,y) of a geometric mean is given by

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.

YouTube Encyclopedic

  • 1/3
    Views:
    8 097
    17 286
    423
  • Arithmetic, Geometric, Harmonic, Max and Min Filter in Digital Image Processing aka DIP
  • Geometry: Arithmetic, Geometric, Harmonic Means
  • Lecture 25 : Image Restoration (Filtering Techniques)

Transcription

Application

The geometric mean filter is most widely used to filter out Gaussian noise. In general it will help smooth the image with less data loss than an arithmetic mean filter.[1]

Code example

The following code shows the application of a geometric mean filter to an image using MATLAB.

% 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
Input image with added gaussian noise
Input image with added gaussian noise
Output image after filter

References

  1. ^ a b Gonzalez, Rafael (2002). Digital Image Processing 3nd Edition. Prentice Hall. pp. 232–233. ISBN 0201180758.
This page was last edited on 8 October 2021, at 01:17
Basis of this page is in Wikipedia. Text is available under the CC BY-SA 3.0 Unported License. Non-text media are available under their specified licenses. Wikipedia® is a registered trademark of the Wikimedia Foundation, Inc. WIKI 2 is an independent company and has no affiliation with Wikimedia Foundation.