createHanningWindow
import { createHanningWindow } from '@banou/opencv-wasm'Use after await initOpenCV(). See the initialization and named imports guide.
This function computes a Hanning window coefficients in two dimensions.
See (https://en.wikipedia.org/wiki/Hann_function) and (https://en.wikipedia.org/wiki/Window_function) for more information.
An example is shown below:
// create hanning window of size 100x100 and type CV_32F
Mat hann;
createHanningWindow(hann, Size(100, 100), CV_32F);
createHanningWindow(dst: Mat, winSize: Size, type_: number): void;dstOutput destination, filled by the native operation. Destination array to place Hann coefficients in
winSizeThe window size specifications (both width and height must be > 1)
type_Created array type
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.