Function File: J = imbilatfilt (I)
Function File: J = imbilatfilt (I, degree_of_smoothing)
Function File: J = imbilatfilt (I, DegreeOfSmoothing, spatial_sigma)
Function File: J = imbilatfilt (I, Name, Value, …)

Performs edge-preserving bilateral filtering on an image.

Inputs:

  • I: Input grayscale or RGB image (uint8, int8, uint16, int16, uint32, int32, single, or double).
  • degree_of_smoothing: Range Gaussian variance (default: 0.01 * dynamic range squared).
  • spatial_sigma: Spatial Gaussian standard deviation (default: 1).

Note that for the range Gaussian, the variance is given, and for spatial Gaussian, standard deviation is given.

Name-Value Pair Arguments:

  • "NeighborhoodSize": Window size (odd scalar). Default: 2 * ceil (2 * spatial_sigma) + 1.
  • "Padding": Border handling. Options:
    • "replicate" (default)
    • "symmetric"
    • "circular"
    • constant scalar value

Output:

  • J: Filtered image, same size and class as I.

See also: imgaussfilt.

Package: image