Skip to content

detail_BlocksCompensator

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

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

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

Constructors and members

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

setMatGains(umv: MatVector): void;
umv

umv argument (MatVector).

setNrFeeds

Set the nr feeds used by this detail_BlocksCompensator object.

setNrFeeds(nr_feeds: number): void;
nr_feeds

nr feeds argument (number).

getNrFeeds

Return the nr feeds configured on this detail_BlocksCompensator object.

getNrFeeds(): number;
Returns

The number result.

setSimilarityThreshold

Set the similarity threshold used by this detail_BlocksCompensator object.

setSimilarityThreshold(similarity_threshold: number): void;
similarity_threshold

similarity threshold argument (number).

getSimilarityThreshold

Return the similarity threshold configured on this detail_BlocksCompensator object.

getSimilarityThreshold(): number;
Returns

The number result.

setBlockSize

Set the block size used by this detail_BlocksCompensator object.

setBlockSize(width: number, height: number): void;
width

width argument (number).

height

height argument (number).

setBlockSize1

Set the block size1 used by this detail_BlocksCompensator object.

setBlockSize1(size: Size): void;
size

size argument (Size).

getBlockSize

Return the block size configured on this detail_BlocksCompensator object.

getBlockSize(): Size;
Returns

The Size result.

setNrGainsFilteringIterations

Set the nr gains filtering iterations used by this detail_BlocksCompensator object.

setNrGainsFilteringIterations(nr_iterations: number): void;
nr_iterations

nr iterations argument (number).

getNrGainsFilteringIterations

Return the nr gains filtering iterations configured on this detail_BlocksCompensator object.

getNrGainsFilteringIterations(): 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.