detail_Blender
import { detail_Blender } 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.
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_gputry gpu argument (boolean).
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;The this result.
prepare
Prepares the blender for blending.
prepare(corners: PointVector, sizes: SizeVector): void;cornersSource images top-left corners
sizesSource image sizes
prepare1
Prepares the blender for blending.
prepare1(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.