detail_MultiBandBlender
import { detail_MultiBandBlender } 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.
Blender which uses multi-band blending algorithm (see [BA83]).
Constructors and members
static new
Create an owned detail_MultiBandBlender object. Release native handles with using or delete().
new(try_gpu: number, num_bands: number, weight_type: number): detail_MultiBandBlender;4 available overloads
new(): detail_MultiBandBlender;new(try_gpu: number): detail_MultiBandBlender;new(try_gpu: number, num_bands: number): detail_MultiBandBlender;new(try_gpu: number, num_bands: number, weight_type: number): detail_MultiBandBlender;try_gputry gpu argument (number).
num_bandsnum bands argument (number).
weight_typeweight type argument (number).
The detail_MultiBandBlender 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;The this result.
numBands
Return the number of pyramid bands used for multiband image blending.
numBands(): number;The number result.
setNumBands
Set the num bands used by this detail_MultiBandBlender object.
setNumBands(val: number): void;valval argument (number).
prepare
Prepares the blender for blending.
prepare(dst_roi: Rect): void;dst_roidst roi argument (Rect).
feed
Processes the image.
feed(img: Mat, mask: Mat, tl: Point): void;imgSource image
maskSource image mask
tlSource image top-left corners
blend
Blends and returns the final pano.
blend(dst: Mat, dst_mask: Mat): void;dstInput/output value, modified by the native operation. Final pano
dst_maskInput/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.