Skip to content

ft_createKernel

fuzzyfunctionOpenCV 5.0.0
import { ft_createKernel } from '@banou/opencv-wasm'

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

ARGUMENTSfunction_, radius, kernel, chn
FUNCTIONft_createKernel
RETURN TYPEvoid
Call structure. A void return can still write to destination arguments. The parameter descriptions define inputs, outputs and ownership.

Creates kernel from general functions.

ft_createKernel(function_: number, radius: number, kernel: Mat, chn: number): void;
function_

Function type could be one of the following:

  • LINEAR Linear basic function.
radius

Radius of the basic function.

kernel

Output destination, filled by the native operation. Final 32-bit kernel.

chn

Number of kernel channels.

The function creates kernel from predefined functions.

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.