Skip to content

detail_ExposureCompensator

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

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

ARGUMENTSConstructor or factory
CLASSdetail_ExposureCompensator
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.

Base class for all exposure compensators.

Constructors and members

static createDefault

Create an owned detail_ExposureCompensator instance with the supplied configuration.

Base class for all exposure compensators.

createDefault(type_: number): detail_ExposureCompensator | null;
type_

type argument (number).

Returns

The detail_ExposureCompensator | 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;
Returns

The this result.

feed

Estimate exposure compensation from overlapping images, their top-left offsets and validity masks.

feed(corners: PointVector, images: UMatVector, masks: UMatVector): void;
corners

Source image top-left corners

images

Source images

masks

Image masks to update (second value in pair specifies the value which should be used to detect where image is)

apply

Compensate exposure in the specified image.

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

Image index

corner

Image top-left corner

image

Input/output value, modified by the native operation. Image to process

mask

Image mask

getMatGains

Return the mat gains configured on this detail_ExposureCompensator object.

getMatGains(arg1: MatVector): void;
arg1

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

setMatGains

Set the mat gains used by this detail_ExposureCompensator object.

setMatGains(arg1: MatVector): void;
arg1

arg1 argument (MatVector).

setUpdateGain

Set the update gain used by this detail_ExposureCompensator object.

setUpdateGain(b: boolean): void;
b

b argument (boolean).

getUpdateGain

Return the update gain configured on this detail_ExposureCompensator object.

getUpdateGain(): boolean;
Returns

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