xphoto_applyChannelGains
import { xphoto_applyChannelGains } from '@banou/opencv-wasm'Use after await initOpenCV(). See the initialization and named imports guide.
ARGUMENTSsrc, dst, gainB, gainG
FUNCTIONxphoto_applyChannelGains
RETURN TYPEvoid
Implements an efficient fixed-point approximation for applying channel gains, which is the last step of multiple white balance algorithms.
xphoto_applyChannelGains(src: Mat, dst: Mat, gainB: number, gainG: number, gainR: number): void;srcInput three-channel image in the BGR color space (either CV_8UC3 or CV_16UC3)
dstOutput destination, filled by the native operation. Output image of the same size and type as src.
gainBgain for the B channel
gainGgain for the G channel
gainRgain for the R channel
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.