Class SimpleWB
- Namespace
- OpenCvSharp.XPhoto
- Assembly
- OpenCvSharp.dll
A simple white balance algorithm that works by independently stretching each of the input image channels to the specified range. For increased robustness it ignores the top and bottom p% of pixel values.
public class SimpleWB : WhiteBalancer, IDisposable, ICvPtrHolder
- Inheritance
-
SimpleWB
- Implements
- Inherited Members
Properties
InputMax
Input image range maximum value.
public float InputMax { get; set; }
Property Value
InputMin
Input image range minimum value.
public float InputMin { get; set; }
Property Value
OutputMax
Output image range maximum value.
public float OutputMax { get; set; }
Property Value
OutputMin
Output image range minimum value.
public float OutputMin { get; set; }
Property Value
P
Percent of top/bottom values to ignore.
public float P { get; set; }
Property Value
Methods
BalanceWhite(InputArray, OutputArray)
Applies white balancing to the input image.
public override void BalanceWhite(InputArray src, OutputArray dst)
Parameters
srcInputArrayInput image
dstOutputArrayWhite balancing result
Create()
Creates an instance of SimpleWB
public static SimpleWB Create()
Returns
DisposeManaged()
Releases managed resources
protected override void DisposeManaged()