Table of Contents

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

float

InputMin

Input image range minimum value.

public float InputMin { get; set; }

Property Value

float

OutputMax

Output image range maximum value.

public float OutputMax { get; set; }

Property Value

float

OutputMin

Output image range minimum value.

public float OutputMin { get; set; }

Property Value

float

P

Percent of top/bottom values to ignore.

public float P { get; set; }

Property Value

float

Methods

BalanceWhite(InputArray, OutputArray)

Applies white balancing to the input image.

public override void BalanceWhite(InputArray src, OutputArray dst)

Parameters

src InputArray

Input image

dst OutputArray

White balancing result

Create()

Creates an instance of SimpleWB

public static SimpleWB Create()

Returns

SimpleWB

DisposeManaged()

Releases managed resources

protected override void DisposeManaged()