Click or drag to resize

BasePluginCameraAdjustBrightnessContrast Method

Adjusts brightness and contrast of the given source image according to the given brightness and contrast values.

Namespace: RAYLASE.Marker.CamerasPlugin
Assembly: RAYLASE.Marker.CamerasPlugin (in RAYLASE.Marker.CamerasPlugin.dll) Version: 2.19.0
Syntax
C#
public static Mat AdjustBrightnessContrast(
	Mat srcMat,
	int brightness,
	int contrast,
	Mat dstMat = null
)

Parameters

srcMat  Mat
The source image.
brightness  Int32
The brightness parameter in the range -100 .. 100.
contrast  Int32
The contrast parameter in the range -100 .. 100.
dstMat  Mat  (Optional)
If null the destination image will be created, if not null, the result will be placed in this object.

Return Value

Mat
A new, modified image, or the source image if brightness and contrast are 0.
See Also