Skip to content

xphoto_SimpleWB

xphotoclassOpenCV 5.0.0
import { xphoto_SimpleWB } 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 xphoto_WhiteBalancer.

A simple white balance algorithm that works by independently stretching each of the input image channels to the specified range. For increased robustness it ignores the top and bottom p\% of pixel values.

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.

getInputMin

Input image range minimum value See: setInputMin

getInputMin(): number;
Returns

The number result.

setInputMin

Input image range minimum value See: setInputMin See: getInputMin

setInputMin(val: number): void;
val

val argument (number).

getInputMax

Input image range maximum value See: setInputMax

getInputMax(): number;
Returns

The number result.

setInputMax

Input image range maximum value See: setInputMax See: getInputMax

setInputMax(val: number): void;
val

val argument (number).

getOutputMin

Output image range minimum value See: setOutputMin

getOutputMin(): number;
Returns

The number result.

setOutputMin

Output image range minimum value See: setOutputMin See: getOutputMin

setOutputMin(val: number): void;
val

val argument (number).

getOutputMax

Output image range maximum value See: setOutputMax

getOutputMax(): number;
Returns

The number result.

setOutputMax

Output image range maximum value See: setOutputMax See: getOutputMax

setOutputMax(val: number): void;
val

val argument (number).

getP

Percent of top/bottom values to ignore See: setP

getP(): number;
Returns

The number result.

setP

Percent of top/bottom values to ignore See: setP See: getP

setP(val: number): void;
val

val argument (number).

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.