Class TonemapReinhard
- Namespace
- OpenCvSharp
- Assembly
- OpenCvSharp.dll
This is a global tonemapping operator that models human visual system.
Mapping function is controlled by adaptation parameter, that is computed using light adaptation and color adaptation. For more information see @cite RD05.
public sealed class TonemapReinhard : Tonemap, IDisposable, ICvPtrHolder
- Inheritance
-
TonemapReinhard
- Implements
- Inherited Members
Properties
ColorAdaptation
Gets or sets chromatic adaptation in [0, 1] range. If 1 channels are treated independently, if 0 adaptation level is the same for each channel.
public float ColorAdaptation { get; set; }
Property Value
Intensity
Gets or sets result intensity in [-8, 8] range. Greater intensity produces brighter results.
public float Intensity { get; set; }
Property Value
LightAdaptation
Gets or sets light adaptation in [0, 1] range. If 1 adaptation is based only on pixel value, if 0 it's global, otherwise it's a weighted mean of this two cases.
public float LightAdaptation { get; set; }
Property Value
Methods
Create(float, float, float, float)
Creates TonemapReinhard object
public static TonemapReinhard Create(float gamma = 1, float intensity = 0, float lightAdapt = 1, float colorAdapt = 0)
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.
intensityfloatresult intensity in [-8, 8] range. Greater intensity produces brighter results.
lightAdaptfloatlight adaptation in [0, 1] range. If 1 adaptation is based only on pixel value, if 0 it's global, otherwise it's a weighted mean of this two cases.
colorAdaptfloatchromatic adaptation in [0, 1] range. If 1 channels are treated independently, if 0 adaptation level is the same for each channel.
Returns
DisposeManaged()
Releases managed resources
protected override void DisposeManaged()