Table of Contents

Method GetGaborKernel

Namespace
OpenCvSharp
Assembly
OpenCvSharp.dll

GetGaborKernel(Size, double, double, double, double, double, int)

Returns Gabor filter coefficients.

public static Mat GetGaborKernel(Size ksize, double sigma, double theta, double lambd, double gamma, double psi, int ktype)

Parameters

ksize Size

Size of the filter returned.

sigma double

Standard deviation of the gaussian envelope.

theta double

Orientation of the normal to the parallel stripes of a Gabor function.

lambd double

Wavelength of the sinusoidal factor.

gamma double

Spatial aspect ratio.

psi double

Phase offset.

ktype int

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

Returns

Mat

Remarks

For more details about gabor filter equations and parameters, see: https://en.wikipedia.org/wiki/Gabor_filter