Skip to content

getGaborKernel

Image processingfunctionOpenCV 5.0.0
import { getGaborKernel } from '@banou/opencv-wasm'

Use after await initOpenCV(). See the initialization and named imports guide.

ARGUMENTSksize, sigma, theta, lambd
FUNCTIONgetGaborKernel
RETURN TYPEMat
Call structure. A void return can still write to destination arguments. The parameter descriptions define inputs, outputs and ownership.

Returns Gabor filter coefficients.

For more details about gabor filter equations and parameters, see: Gabor Filter.

getGaborKernel(ksize: Size, sigma: number, theta: number, lambd: number, gamma: number, psi: number, ktype: number): Mat;
3 available overloads
getGaborKernel(ksize: Size, sigma: number, theta: number, lambd: number, gamma: number): Mat;
getGaborKernel(ksize: Size, sigma: number, theta: number, lambd: number, gamma: number, psi: number): Mat;
getGaborKernel(ksize: Size, sigma: number, theta: number, lambd: number, gamma: number, psi: number, ktype: number): Mat;
ksize

Size of the filter returned.

sigma

Standard deviation of the gaussian envelope.

theta

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

lambd

Wavelength of the sinusoidal factor.

gamma

Spatial aspect ratio.

psi

Phase offset.

ktype

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

Returns

The Mat result. Release returned native handles with using or delete(), including handles nested in results.

These signatures describe this package. Upstream documentation can mention optional backends that are absent from this build. Check runtime compatibility before choosing a backend or file format.