|
Given sigma and the minimal weight epsilon in the filter you can solve for the necessary radius of the filter x:
For example if sigma = 1 then the gaussian is greater than epsilon = 0.01 when x <= 2.715 so a filter radius = 3 (width = 2*3 + 1 = 7) is sufficient. sigma = 0.5, x <= 1.48, use radius 2 sigma = 1, x <= 2.715, use radius 3 sigma = 1.5, x <= 3.84, use radius 4 sigma = 2, x <= 4.89, use radius 5 sigma = 2.5, x <= 5.88, use radius 6 If you reduce/increase epsilon then you will need a larger/smaller radius. (责任编辑:) |

