Class SimpleWB
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.
Implements
Inherited Members
Namespace: OpenCvSharp.XPhoto
Assembly: OpenCvSharp.dll
Syntax
public class SimpleWB : WhiteBalancer, ICvPtrHolder
Properties
| Improve this Doc View SourceInputMax
Input image range maximum value.
Declaration
public float InputMax { get; set; }
Property Value
Type | Description |
---|---|
System.Single |
InputMin
Input image range minimum value.
Declaration
public float InputMin { get; set; }
Property Value
Type | Description |
---|---|
System.Single |
OutputMax
Output image range maximum value.
Declaration
public float OutputMax { get; set; }
Property Value
Type | Description |
---|---|
System.Single |
OutputMin
Output image range minimum value.
Declaration
public float OutputMin { get; set; }
Property Value
Type | Description |
---|---|
System.Single |
P
Percent of top/bottom values to ignore.
Declaration
public float P { get; set; }
Property Value
Type | Description |
---|---|
System.Single |
Methods
| Improve this Doc View SourceBalanceWhite(InputArray, OutputArray)
Applies white balancing to the input image.
Declaration
public override void BalanceWhite(InputArray src, OutputArray dst)
Parameters
Type | Name | Description |
---|---|---|
InputArray | src | Input image |
OutputArray | dst | White balancing result |
Overrides
| Improve this Doc View SourceCreate()
Creates an instance of SimpleWB
Declaration
public static SimpleWB Create()
Returns
Type | Description |
---|---|
SimpleWB |
DisposeManaged()
Releases managed resources
Declaration
protected override void DisposeManaged()