ft_createKernel
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
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.
radiusRadius of the basic function.
kernelOutput destination, filled by the native operation. Final 32-bit kernel.
chnNumber 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.