Table of Contents

Class TonemapDurand

Namespace
Emgu.CV.XPhoto
Assembly
Emgu.CV.dll

This algorithm decomposes image into two layers: base layer and detail layer using bilateral filter and compresses contrast of the base layer thus preserving all the details. This implementation uses regular bilateral filter from opencv.

public class TonemapDurand : Tonemap, IDisposable, IAlgorithm
Inheritance
TonemapDurand
Implements
Inherited Members
Extension Methods

Constructors

TonemapDurand(float, float, float, float, float)

Creates TonemapDurand object.

public TonemapDurand(float gamma = 1, float contrast = 4, float saturation = 1, float sigmaSpace = 2, float sigmaColor = 2)

Parameters

gamma float

gamma value for gamma correction.

contrast float

resulting contrast on logarithmic scale, i. e. log(max / min), where max and min are maximum and minimum luminance values of the resulting image.

saturation float

saturation enhancement value.

sigmaSpace float

bilateral filter sigma in color space

sigmaColor float

bilateral filter sigma in coordinate space

Properties

Contrast

Resulting contrast on logarithmic scale, i. e. log(max / min), where max and min are maximum and minimum luminance values of the resulting image.

public float Contrast { get; set; }

Property Value

float

Saturation

Positive saturation enhancement value. 1.0 preserves saturation, values greater than 1 increase saturation and values less than 1 decrease it.

public float Saturation { get; set; }

Property Value

float

SigmaColor

bilateral filter sigma in coordinate space

public float SigmaColor { get; set; }

Property Value

float

SigmaSpace

Bilateral filter sigma in color space

public float SigmaSpace { get; set; }

Property Value

float

Methods

DisposeObject()

Release the unmanaged memory associated with this TonemapDurand

protected override void DisposeObject()