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.
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
floatgamma value for gamma correction.
contrast
floatresulting contrast on logarithmic scale, i. e. log(max / min), where max and min are maximum and minimum luminance values of the resulting image.
saturation
floatsaturation enhancement value.
sigmaSpace
floatbilateral filter sigma in color space
sigmaColor
floatbilateral 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
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
SigmaColor
bilateral filter sigma in coordinate space
public float SigmaColor { get; set; }
Property Value
SigmaSpace
Bilateral filter sigma in color space
public float SigmaSpace { get; set; }
Property Value
Methods
DisposeObject()
Release the unmanaged memory associated with this TonemapDurand
protected override void DisposeObject()