GaussianFilter

GaussianFilter[image,r]
通过与像素半径 r 的一个高斯内核的卷积来对 image 进行滤波.

GaussianFilter[image,r,{n1,n2}]
image 和一个内核的卷积,内核由高斯函数的第  阶水平和垂直离散导数形成.

GaussianFilter[image,{r,σ},]
使用半径 r 和标准导数 σ 的一个高斯内核.

GaussianFilter[image,{{r1,r2},}]
在垂直方向和水平方向用半径 等.

GaussianFilter[data,]
将高斯滤波器应用到一组 data 中.

更多信息和选项更多信息和选项

  • GaussianFilter 是通常用于图像处理应用领域上的线性平滑滤波器.
  • GaussianFilter 对任意灰度级或者多通道图像起作用,它分别对每个通道进行操作.
  • GaussianFilter 可用于三维以及二维图像,也可用于任意阶数的数据数组.
  • GaussianFilter[image,r] 等价于 GaussianFilter[image,{r,r/2}].
  • GaussianFilter[image,] 默认情况下给出与 image 具有相同维度的实际图像.
  • GaussianFilter[image,r,{n1,n2}] 计算图像中方向向下的垂直维度上的第 阶高斯导数,以及方向向右的水平维度上的第 阶高斯导数.
  • GaussianFilter 总是返回一个真实类型的图像.
  • GaussianFilter 可以采用如下选项:
  • Method"Bessel"如何确定高斯矩阵的元素
    Padding"Fixed"填充方法
    WorkingPrecisionAutomatic使用的精度
    "Standardization"True是否为了截断,对高斯矩阵进行缩放和平移
  • Method 选项的可能设置为 .
  • 在设置 Padding->None 下,GaussianFilter[image,] 通常给出一个小于 image 的图像.

背景
背景

  • GaussianFilter is a filter commonly used in image processing for smoothing, reducing noise, and computing derivatives of an image. It is a convolution-based filter that uses a Gaussian matrix as its underlying kernel.
  • Gaussian filtering is linear, meaning it replaces each pixel by a linear combination of its neighbors (in this case with weights specified by a Gaussian matrix). It is also local, meaning it produces output pixel values based only upon the pixel values in its neighborhood as determined by the convolution kernel.
  • Gaussian filtering is not edge-preserving, so other filters such as BilateralFilter and MeanShiftFilter may be more appropriate in applications where edges must be preserved.
  • Applying GaussianFilter is equivalent to using ImageConvolve with a GaussianMatrix kernel. MeanFilter is a similar smoothing filter.
2008年引入
(7.0)
| 2012年更新
(9.0)