Skip to content

Filter2DParams

Image processingclassOpenCV 5.0.0
import { Filter2DParams } from '@banou/opencv-wasm'

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

ARGUMENTSConstructor or factory
CLASSFilter2DParams
RETURN TYPEOwned native handle
Call structure. A void return can still write to destination arguments. The parameter descriptions define inputs, outputs and ownership.

Native object: release it with using or delete(). Factories can return null; check before calling methods.

filter2 dparams value in the OpenCV API.

Constructors and members

static new

Create an owned Filter2DParams object. Release native handles with using or delete().

new(): Filter2DParams;
Returns

The Filter2DParams result.

clone

Create another handle to the same native object. This retains the object without copying its pixels or algorithm state; dispose both handles separately.

clone(): this;
Returns

The this result.

borderValue

Constant border scalar. OpenCV 5.0 currently requires all four components to be zero; filter2Dp throws for a nonzero borderValue.

borderValue: Scalar;

anchorX

anchor x value for Filter2DParams.

anchorX: number;

anchorY

anchor y value for Filter2DParams.

anchorY: number;

borderType

Filter2DParams.borderType: imgproc_filter

borderType: number;

ddepth

ddepth value for Filter2DParams.

ddepth: number;

scale

scale value for Filter2DParams.

scale: number;

shift

example: samples/cpp/tutorial_code/ImgProc/basic_drawing/Drawing_1.cpp

shift: number;

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.