對於圖像來說,高斯濾波器是利用高斯核的一個2維的卷積算子,
1. 高斯分布
一維高斯分布
二維高斯分布
2.高斯核
理論上,高斯分布在所有定義域上都有非負值,
3. 高斯濾波(平滑)
完成了高斯核的構造後,高斯濾波就是用此核來執行標准的卷積。
4.應用
高斯濾波後圖像被平滑的程度取決於標准差。
高斯濾波被用作為平滑濾波器的本質原因是因為它是一個低通濾波器
圖.高斯濾波器(標准差=3像素)的頻率響應。The spatial frequency axis is marked in cycles per pixel,
Matlab函數:h = fspecial('gaussian', hsize, sigma) returns a rotationally symmetric Gaussian lowpass filter of size hsize with standard deviation sigma (positive). hsize can be a vector specifying the number of rows and columns in h, or it can be a scalar, in which case h is a square matrix.
The default value for hsize is [3 3]; the default value for sigma is 0.5.