Skip to content

detail_BlocksGainCompensator

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

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

ARGUMENTSConstructor or factory
CLASSdetail_BlocksGainCompensator
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. Inherits detail_BlocksCompensator.

Exposure compensator which tries to remove exposure related artifacts by adjusting image block intensities, see [UES01] for details.

Constructors and members

static new

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

new(bl_width: number, bl_height: number, nr_feeds: number): detail_BlocksGainCompensator;
4 available overloads
new(): detail_BlocksGainCompensator;
new(bl_width: number): detail_BlocksGainCompensator;
new(bl_width: number, bl_height: number): detail_BlocksGainCompensator;
new(bl_width: number, bl_height: number, nr_feeds: number): detail_BlocksGainCompensator;
bl_width

bl width argument (number).

bl_height

bl height argument (number).

nr_feeds

nr feeds argument (number).

Returns

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

apply

This function only exists to make source level compatibility detector happy

apply(index: number, corner: Point, image: Mat, mask: Mat): void;
index

index argument (number).

corner

corner argument (Point).

image

Input/output value, modified by the native operation. image argument (Mat).

mask

mask argument (Mat).

getMatGains

This function only exists to make source level compatibility detector happy

getMatGains(umv: MatVector): void;
umv

Output destination, filled by the native operation. umv argument (MatVector).

setMatGains

This function only exists to make source level compatibility detector happy

setMatGains(umv: MatVector): void;
umv

umv argument (MatVector).

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.