Skip to content

detail_FeatherBlender

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

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

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

Simple blender which mixes images at its borders.

Constructors and members

static new

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

new(sharpness: number): detail_FeatherBlender;
2 available overloads
new(): detail_FeatherBlender;
new(sharpness: number): detail_FeatherBlender;
sharpness

sharpness argument (number).

Returns

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

sharpness

Return the sharpness parameter controlling the width of feathered image boundaries.

sharpness(): number;
Returns

The number result.

setSharpness

Set the sharpness used by this detail_FeatherBlender object.

setSharpness(val: number): void;
val

val argument (number).

prepare

Prepares the blender for blending.

prepare(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

createWeightMaps

Creates weight maps for fixed set of source images by their masks and top-left corners. Final image can be obtained by simple weighting of the source images.

createWeightMaps(masks: UMatVector, corners: PointVector, weight_maps: UMatVector): Rect;
masks

masks argument (UMatVector).

corners

corners argument (PointVector).

weight_maps

Input/output value, modified by the native operation. weight maps argument (UMatVector).

Returns

The Rect result.

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.