Show / Hide Table of Contents

Class TonemapDurand

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.

Saturation enhancement is possible as in cv::TonemapDrago.

For more information see @cite DD02 .

Inheritance
System.Object
DisposableObject
DisposableCvObject
Algorithm
Tonemap
TonemapDurand
Implements
ICvPtrHolder
Inherited Members
Tonemap.Create(Single)
Tonemap.Process(InputArray, OutputArray)
Tonemap.Gamma
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 sealed class TonemapDurand : Tonemap, ICvPtrHolder

Properties

| Improve this Doc View Source

Contrast

Gets or sets resulting contrast on logarithmic scale, i. e. log(max / min), where max and min

Declaration
public float Contrast { get; set; }
Property Value
Type Description
System.Single
| Improve this Doc View Source

Saturation

Gets or sets positive saturation enhancement value. 1.0 preserves saturation, values greater than 1 increase saturation and values less than 1 decrease it.

Declaration
public float Saturation { get; set; }
Property Value
Type Description
System.Single
| Improve this Doc View Source

SigmaColor

Gets or sets bilateral filter sigma in color space

Declaration
public float SigmaColor { get; set; }
Property Value
Type Description
System.Single
| Improve this Doc View Source

SigmaSpace

Gets or sets bilateral filter sigma in coordinate space

Declaration
public float SigmaSpace { get; set; }
Property Value
Type Description
System.Single

Methods

| Improve this Doc View Source

Create(Single, Single, Single, Single, Single)

Creates TonemapDurand object

Declaration
public static TonemapDurand Create(float gamma = 1F, float contrast = 4F, float saturation = 1F, float sigmaSpace = 2F, float sigmaColor = 2F)
Parameters
Type Name Description
System.Single gamma

positive value for gamma correction. Gamma value of 1.0 implies no correction, gamma equal to 2.2f is suitable for most displays. Generally gamma > 1 brightens the image and gamma < 1 darkens it.

System.Single contrast

resulting contrast on logarithmic scale, i. e. log(max / min), where max and min

System.Single saturation

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

System.Single sigmaSpace

bilateral filter sigma in coordinate space

System.Single sigmaColor

bilateral filter sigma in color space

Returns
Type Description
TonemapDurand
| Improve this Doc View Source

DisposeManaged()

Releases managed resources

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

DisposeUnmanaged()

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

Get()

Declaration
public override IntPtr Get()
Returns
Type Description
IntPtr
Overrides
Tonemap.Get()

Implements

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