Show / Hide Table of Contents

Class LearningBasedWB

More sophisticated learning-based automatic white balance algorithm.

Inheritance
System.Object
DisposableObject
DisposableCvObject
Algorithm
WhiteBalancer
LearningBasedWB
Implements
ICvPtrHolder
Inherited Members
Algorithm.Write(FileStorage)
Algorithm.Read(FileNode)
Algorithm.Empty
Algorithm.Save(String)
Algorithm.GetDefaultName()
DisposableCvObject.ptr
DisposableCvObject.CvPtr
DisposableObject.DataHandle
DisposableObject.IsDisposed
DisposableObject.IsEnabledDispose
DisposableObject.AllocatedMemory
DisposableObject.AllocatedMemorySize
DisposableObject.Dispose()
DisposableObject.Dispose(Boolean)
DisposableObject.AllocGCHandle(Object)
DisposableObject.AllocMemory(Int32)
DisposableObject.NotifyMemoryPressure(Int64)
DisposableObject.ThrowIfDisposed()
Namespace: OpenCvSharp.XPhoto
Assembly: OpenCvSharp.dll
Syntax
public class LearningBasedWB : WhiteBalancer, ICvPtrHolder

Properties

| Improve this Doc View Source

HistBinNum

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
| Improve this Doc View Source

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
| Improve this Doc View Source

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 Source

BalanceWhite(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
WhiteBalancer.BalanceWhite(InputArray, OutputArray)
| Improve this Doc View Source

Create(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
| Improve this Doc View Source

DisposeManaged()

Releases managed resources

Declaration
protected override void DisposeManaged()
Overrides
DisposableObject.DisposeManaged()
| Improve this Doc View Source

DisposeUnmanaged()

Declaration
protected override void DisposeUnmanaged()
Overrides
DisposableCvObject.DisposeUnmanaged()
| Improve this Doc View Source

ExtractSimpleFeatures(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.

| Improve this Doc View Source

Get()

Declaration
public override IntPtr Get()
Returns
Type Description
IntPtr

Implements

ICvPtrHolder
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX