Class TonemapDrago
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.
Implements
Inherited Members
Namespace: OpenCvSharp
Assembly: OpenCvSharp.dll
Syntax
public sealed class TonemapDrago : Tonemap, ICvPtrHolder
Properties
| Improve this Doc View SourceBias
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.
Declaration
public float Bias { get; set; }
Property Value
Type | Description |
---|---|
System.Single |
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 |
Methods
| Improve this Doc View SourceCreate(Single, Single, Single)
Creates TonemapDrago object
Declaration
public static TonemapDrago Create(float gamma = 1F, float saturation = 1F, float bias = 0.85F)
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 | saturation | positive saturation enhancement value. 1.0 preserves saturation, values greater than 1 increase saturation and values less than 1 decrease it. |
System.Single | bias | value for bias function in [0, 1] range. Values from 0.7 to 0.9 usually give best results, default value is 0.85. |
Returns
Type | Description |
---|---|
TonemapDrago |
DisposeManaged()
Releases managed resources
Declaration
protected override void DisposeManaged()