xphoto_SimpleWB
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;The this result.
getInputMin
Input image range minimum value See: setInputMin
getInputMin(): number;The number result.
setInputMin
Input image range minimum value See: setInputMin See: getInputMin
setInputMin(val: number): void;valval argument (number).
getInputMax
Input image range maximum value See: setInputMax
getInputMax(): number;The number result.
setInputMax
Input image range maximum value See: setInputMax See: getInputMax
setInputMax(val: number): void;valval argument (number).
getOutputMin
Output image range minimum value See: setOutputMin
getOutputMin(): number;The number result.
setOutputMin
Output image range minimum value See: setOutputMin See: getOutputMin
setOutputMin(val: number): void;valval argument (number).
getOutputMax
Output image range maximum value See: setOutputMax
getOutputMax(): number;The number result.
setOutputMax
Output image range maximum value See: setOutputMax See: getOutputMax
setOutputMax(val: number): void;valval argument (number).
getP
Percent of top/bottom values to ignore See: setP
getP(): number;The number result.
setP
Percent of top/bottom values to ignore See: setP See: getP
setP(val: number): void;valval 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.