detail_FeatherBlender
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;sharpnesssharpness argument (number).
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;The this result.
sharpness
Return the sharpness parameter controlling the width of feathered image boundaries.
sharpness(): number;The number result.
setSharpness
Set the sharpness used by this detail_FeatherBlender object.
setSharpness(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
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;masksmasks argument (UMatVector).
cornerscorners argument (PointVector).
weight_mapsInput/output value, modified by the native operation. weight maps argument (UMatVector).
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.