gblur: Low-pass Gaussian filter

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/gblur.R

Description

Filters an image with a low-pass Gaussian filter.

Usage

1
gblur(x, sigma, radius = 2 * ceiling(3 * sigma) + 1, ...)

Arguments

x

An Image object or an array.

sigma

A numeric denoting the standard deviation of the Gaussian filter used for blurring.

radius

The radius of the filter in pixels. Default is 2*ceiling(3*sigma)+1).

...

Arguments passed to filter2.

Details

The Gaussian filter is created with the function makeBrush.

Value

An Image object or an array, containing the filtered version of x.

Author(s)

Oleg Sklyar, osklyar@ebi.ac.uk, 2005-2007

See Also

filter2, makeBrush

Examples

1
2
3
4
5
  x = readImage(system.file("images", "sample.png", package="EBImage"))
  display(x)

  y = gblur(x, sigma=8)
  display(y, title='gblur(x, sigma=8)')

Example output



EBImage documentation built on Nov. 8, 2020, 5:41 p.m.