Class TonemapDrago
- Namespace
- OpenCvSharp
- Assembly
- OpenCvSharp.dll
Adaptive logarithmic mapping is a fast global tonemapping algorithm that scales the image in logarithmic domain.
Since it's a global operator the same function is applied to all the pixels, it is controlled by the bias parameter. Optional saturation enhancement is possible as described in @cite FL02. For more information see @cite DM03.
public sealed class TonemapDrago : Tonemap, IDisposable, ICvPtrHolder
- Inheritance
-
TonemapDrago
- Implements
- Inherited Members
Properties
Bias
Gets or sets value for bias function in [0, 1] range. Values from 0.7 to 0.9 usually give best results, default value is 0.85.
public float Bias { get; set; }
Property Value
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.
public float Saturation { get; set; }
Property Value
Methods
Create(float, float, float)
Creates TonemapDrago object
public static TonemapDrago Create(float gamma = 1, float saturation = 1, float bias = 0.85)
Parameters
gammafloatpositive 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.
saturationfloatpositive saturation enhancement value. 1.0 preserves saturation, values greater than 1 increase saturation and values less than 1 decrease it.
biasfloatvalue for bias function in [0, 1] range. Values from 0.7 to 0.9 usually give best results, default value is 0.85.
Returns
DisposeManaged()
Releases managed resources
protected override void DisposeManaged()