Class LearningBasedWB
More sophisticated learning-based automatic white balance algorithm.
Inheritance
Implements
Inherited Members
Namespace: OpenCvSharp.XPhoto
Assembly: OpenCvSharp.dll
Syntax
public class LearningBasedWB : WhiteBalancer, ICvPtrHolder
Properties
| Improve this Doc View SourceHistBinNum
Defines the size of one dimension of a three-dimensional RGB histogram that is used internally by the algorithm. It often makes sense to increase the number of bins for images with higher bit depth (e.g. 256 bins for a 12 bit image).
Declaration
public int HistBinNum { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
RangeMaxVal
Maximum possible value of the input image (e.g. 255 for 8 bit images, 4095 for 12 bit images)
Declaration
public int RangeMaxVal { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
SaturationThreshold
Threshold that is used to determine saturated pixels, i.e. pixels where at least one of the channels exceeds
Declaration
public float SaturationThreshold { 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(String)
Creates an instance of LearningBasedWB
Declaration
public static LearningBasedWB Create(string model)
Parameters
Type | Name | Description |
---|---|---|
System.String | model | Path to a .yml file with the model. If not specified, the default model is used |
Returns
Type | Description |
---|---|
LearningBasedWB |
DisposeManaged()
Releases managed resources
Declaration
protected override void DisposeManaged()
Overrides
| Improve this Doc View SourceExtractSimpleFeatures(InputArray, OutputArray)
Implements the feature extraction part of the algorithm.
Declaration
public void ExtractSimpleFeatures(InputArray src, OutputArray dst)
Parameters
Type | Name | Description |
---|---|---|
InputArray | src | Input three-channel image (BGR color space is assumed). |
OutputArray | dst | An array of four (r,g) chromaticity tuples corresponding to the features listed above. |