OOF2: The Manual

Name

OOF.Image.Modify.Blur — Blur an image by convolving it with a Gaussian.

Synopsis

OOF.Image.Modify.Blur(image, radius, sigma)

Details

  • Parent Menu: OOF.Image.Modify
  • Callback: function doImageMod in module ooflib.image.imagemodifier
  • Parameters:

    image
    Type: The path to an existing Image object.
    radius
    Radius of the Gaussian, in pixels, not counting the center pixel. Type: A positive real number.
    sigma
    Standard deviation of the Gaussian, in pixels. Type: A positive real number.

Description

Blur the given image. This can be a useful way of reducing noise, at the obvious expense of a loss of resolution. The image is convolved with a Gaussian operator whose standard deviation is sigma.

The radius parameter is the size of the mask used to perform the convolution, in pixels. The new value of a pixel is the Gaussian weighted average of the pixel values in a square with sides of length 2*radius+1 in pixel units, centered on the pixel.

In a color image, each RGB channel is blurred separately.

This routine uses skimage.filters.gaussian from the scikit-image library.

Figure 6.31. Blurring an Image

Blurring an Image

The lefthand image is a 200×200 pixels micrograph of Si3N4 on the left,(courtesy of C.-H. Hsueh). The other two images are the results of blurring it with the given parameters.


See Also