Skip to content

createHanningWindow

Image processingfunctionOpenCV 5.0.0
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;
dst

Output destination, filled by the native operation. Destination array to place Hann coefficients in

winSize

The 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.