bilateralFilter: Edge-Preserving Noise Reduction with a Bilateral Filter

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

View source: R/filters.R

Description

bilateralFilter applies the bilateral filter to an image. This filter can reduce unwanted noise very well while keeping edges fairly sharp. However, it is very slow compared to most filters.

Usage

1
bilateralFilter(image, d = 5, sigma_color = 25, sigma_space = 25)

Arguments

image

An Image object.

d

The diameter in pixels of the filter neighborhood (default: 5).

sigma_color

The filter standard deviation in the color space (see Note; default: 25).

sigma_space

The filter standard deviation in the coordinate space (see Note; default: 25).

Value

image An Image object.

Note

A larger value of sigma_color means that farther colors within the pixel neighborhood will be mixed together, resulting in larger areas of semi-equal color.

A larger value of sigma_space means that farther pixels will influence each other as long as their colors are close enough. When d > 0, it specifies the neighborhood size regardless of sigma_space. Otherwise, d is proportional to sigma_space.

Author(s)

Simon Garnier, garnier@njit.edu

See Also

Image, gaussianBlur

Examples

1
# TODO

neuroconductor-releases/Rvision documentation built on Nov. 10, 2020, 9:10 p.m.