Class Tonemap
Base class for tonemapping algorithms - tools that are used to map HDR image to 8-bit range.
Inheritance
System.Object
Tonemap
Implements
Inherited Members
Namespace: OpenCvSharp
Assembly: OpenCvSharp.dll
Syntax
public class Tonemap : Algorithm, ICvPtrHolder
Constructors
| Improve this Doc View SourceTonemap(IntPtr)
Constructor used by subclasses
Declaration
protected Tonemap(IntPtr ptr)
Parameters
Type | Name | Description |
---|---|---|
IntPtr | ptr |
Properties
| Improve this Doc View SourceGamma
Gets or sets 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.
Declaration
public float Gamma { get; set; }
Property Value
Type | Description |
---|---|
System.Single |
Methods
| Improve this Doc View SourceCreate(Single)
Creates simple linear mapper with gamma correction
Declaration
public static Tonemap Create(float gamma = 1F)
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. |
Returns
Type | Description |
---|---|
Tonemap |
DisposeManaged()
Releases managed resources
Declaration
protected override void DisposeManaged()
Overrides
| Improve this Doc View SourceProcess(InputArray, OutputArray)
Tonemaps image
Declaration
public virtual void Process(InputArray src, OutputArray dst)
Parameters
Type | Name | Description |
---|---|---|
InputArray | src | source image - CV_32FC3 Mat (float 32 bits 3 channels) |
OutputArray | dst | destination image - CV_32FC3 Mat with values in [0, 1] range |