How to determine the window size of a Gaussian filter

前端 未结 2 1746
被撕碎了的回忆
被撕碎了的回忆 2021-02-02 04:02

Gaussian smoothing is a common image processing function, and for an introduction of Gaussian filtering, please refer to here. As we can see, one parameter: standard derivation

2条回答
  •  执念已碎
    2021-02-02 04:10

    Here is a good reference.

    1. After discretizing, pixel with distance greater than 3 sigma have negligible weights. See this

    2. As already pointed, 6sigma, implies 3sigma both ways

    3. Size of convolution matrix to be used for filtering would inadvertently be 6sigma by 6sigma, because of points 1 and 2 above.

    Here how you can obtain the discrete Gaussian.

    Finally, the size of the standard deviation(and therefore the Kernel used) depends on how much noise you suspect to be in the image. Clearly, a larger convolution kernel implies farther pixels get to contribute to the new value of the centre pixel as opposed to a smaller kernel.

提交回复
热议问题