Method GetGaussianKernel
- Namespace
- OpenCvSharp
- Assembly
- OpenCvSharp.dll
GetGaussianKernel(int, double, MatType?)
Returns Gaussian filter coefficients.
public static Mat? GetGaussianKernel(int ksize, double sigma, MatType? ktype = null)
Parameters
ksizeintAperture size. It should be odd and positive.
sigmadoubleGaussian standard deviation. If it is non-positive, it is computed from ksize as
sigma = 0.3*((ksize-1)*0.5 - 1) + 0.8.ktypeMatType?Type of filter coefficients. It can be CV_32F or CV_64F.