| 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
)
Public Shared Sub IlluminationChange (
src As InputArray,
mask As InputArray,
dst As OutputArray,
Optional alpha As Single = 0.2F,
Optional beta As Single = 0.4F
)
public:
static void IlluminationChange(
InputArray^ src,
InputArray^ mask,
OutputArray^ dst,
float alpha = 0.2f,
float beta = 0.4f
)
static member IlluminationChange :
src : InputArray *
mask : InputArray *
dst : OutputArray *
?alpha : float32 *
?beta : float32
(* Defaults:
let _alpha = defaultArg alpha 0.2f
let _beta = defaultArg beta 0.4f
*)
-> unit
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