illuminationChange
import { illuminationChange } from '@banou/opencv-wasm'Use after await initOpenCV(). See the initialization and named imports guide.
Applying an appropriate non-linear transformation to the gradient field inside the selection and then integrating back with a Poisson solver, modifies locally the apparent illumination of an image.
illuminationChange(src: Mat, mask: Mat, dst: Mat, alpha: number, beta: number): void;3 available overloads
illuminationChange(src: Mat, mask: Mat, dst: Mat): void;illuminationChange(src: Mat, mask: Mat, dst: Mat, alpha: number): void;illuminationChange(src: Mat, mask: Mat, dst: Mat, alpha: number, beta: number): void;srcInput 8-bit 3-channel image.
maskInput 8-bit 1 or 3-channel image.
dstOutput destination, filled by the native operation. Output image with the same size and type as src.
alphaValue ranges between 0-2.
betaValue ranges between 0-2.
This is useful to highlight under-exposed foreground objects or to reduce specular reflections.
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.