Skip to content

detail_ChannelsCompensator

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

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

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

Exposure compensator which tries to remove exposure related artifacts by adjusting image intensities on each channel independently.

Constructors and members

static new

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

new(nr_feeds: number): detail_ChannelsCompensator;
2 available overloads
new(): detail_ChannelsCompensator;
new(nr_feeds: number): detail_ChannelsCompensator;
nr_feeds

nr feeds argument (number).

Returns

The detail_ChannelsCompensator 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

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_ChannelsCompensator object.

getMatGains(umv: MatVector): void;
umv

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

setMatGains

Set the mat gains used by this detail_ChannelsCompensator object.

setMatGains(umv: MatVector): void;
umv

umv argument (MatVector).

setNrFeeds

Set the nr feeds used by this detail_ChannelsCompensator object.

setNrFeeds(nr_feeds: number): void;
nr_feeds

nr feeds argument (number).

getNrFeeds

Return the nr feeds configured on this detail_ChannelsCompensator object.

getNrFeeds(): number;
Returns

The number result.

setSimilarityThreshold

Set the similarity threshold used by this detail_ChannelsCompensator object.

setSimilarityThreshold(similarity_threshold: number): void;
similarity_threshold

similarity threshold argument (number).

getSimilarityThreshold

Return the similarity threshold configured on this detail_ChannelsCompensator object.

getSimilarityThreshold(): number;
Returns

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