Click or drag to resize

Cv2IlluminationChange Method

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.

Namespace:  OpenCvSharp
Assembly:  OpenCvSharp (in OpenCvSharp.dll) Version: 1.0.0
Syntax
public static void IlluminationChange(
	InputArray src,
	InputArray mask,
	OutputArray dst,
	float alpha = 0.2f,
	float beta = 0.4f
)

Parameters

src
Type: OpenCvSharpInputArray
Input 8-bit 3-channel image.
mask
Type: OpenCvSharpInputArray
Input 8-bit 1 or 3-channel image.
dst
Type: OpenCvSharpOutputArray
Output image with the same size and type as src.
alpha (Optional)
Type: SystemSingle
Value ranges between 0-2.
beta (Optional)
Type: SystemSingle
Value ranges between 0-2.
Remarks
This is useful to highlight under-exposed foreground objects or to reduce specular reflections.
See Also