Table of Contents

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

ksize int

Aperture size. It should be odd and positive.

sigma double

Gaussian standard deviation. If it is non-positive, it is computed from ksize as sigma = 0.3*((ksize-1)*0.5 - 1) + 0.8.

ktype MatType?

Type of filter coefficients. It can be CV_32F or CV_64F.

Returns

Mat