Skip to content

illuminationChange

Computational photographyfunctionOpenCV 5.0.0
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;
src

Input 8-bit 3-channel image.

mask

Input 8-bit 1 or 3-channel image.

dst

Output destination, filled by the native operation. Output image with the same size and type as src.

alpha

Value ranges between 0-2.

beta

Value 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.