Table of Contents

Method IlluminationChange

Namespace
OpenCvSharp
Assembly
OpenCvSharp.dll

IlluminationChange(InputArray, InputArray, OutputArray, float, float)

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.

public static void IlluminationChange(InputArray src, InputArray mask, OutputArray dst, float alpha = 0.2, float beta = 0.4)

Parameters

src InputArray

Input 8-bit 3-channel image.

mask InputArray

Input 8-bit 1 or 3-channel image.

dst OutputArray

Output image with the same size and type as src.

alpha float

Value ranges between 0-2.

beta float

Value ranges between 0-2.

Remarks

This is useful to highlight under-exposed foreground objects or to reduce specular reflections.