Skip to content

detail_Blender

stitchingclassOpenCV 5.0.0
import { detail_Blender } from '@banou/opencv-wasm'

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

ARGUMENTSConstructor or factory
CLASSdetail_Blender
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.

Base class for all blenders.

Simple blender which puts one image over another

Constructors and members

static createDefault

Create an owned detail_Blender instance with the supplied configuration.

Base class for all blenders.

createDefault(type_: number, try_gpu: boolean): detail_Blender | null;
2 available overloads
createDefault(type_: number): detail_Blender | null;
createDefault(type_: number, try_gpu: boolean): detail_Blender | null;
type_

type argument (number).

try_gpu

try gpu argument (boolean).

Returns

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

prepare

Prepares the blender for blending.

prepare(corners: PointVector, sizes: SizeVector): void;
corners

Source images top-left corners

sizes

Source image sizes

prepare1

Prepares the blender for blending.

prepare1(dst_roi: Rect): void;
dst_roi

dst roi argument (Rect).

feed

Processes the image.

feed(img: Mat, mask: Mat, tl: Point): void;
img

Source image

mask

Source image mask

tl

Source image top-left corners

blend

Blends and returns the final pano.

blend(dst: Mat, dst_mask: Mat): void;
dst

Input/output value, modified by the native operation. Final pano

dst_mask

Input/output value, modified by the native operation. Final pano mask

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.