Show / Hide Table of Contents

Class Tonemap

Base class for tonemapping algorithms - tools that are used to map HDR image to 8-bit range.

Inheritance
System.Object
DisposableObject
DisposableCvObject
Algorithm
Tonemap
TonemapDrago
TonemapMantiuk
TonemapReinhard
TonemapDurand
Implements
ICvPtrHolder
Inherited Members
Algorithm.Write(FileStorage)
Algorithm.Read(FileNode)
Algorithm.Empty
Algorithm.Save(String)
Algorithm.GetDefaultName()
DisposableCvObject.ptr
DisposableCvObject.CvPtr
DisposableObject.DataHandle
DisposableObject.IsDisposed
DisposableObject.IsEnabledDispose
DisposableObject.AllocatedMemory
DisposableObject.AllocatedMemorySize
DisposableObject.Dispose()
DisposableObject.Dispose(Boolean)
DisposableObject.AllocGCHandle(Object)
DisposableObject.AllocMemory(Int32)
DisposableObject.NotifyMemoryPressure(Int64)
DisposableObject.ThrowIfDisposed()
Namespace: OpenCvSharp
Assembly: OpenCvSharp.dll
Syntax
public class Tonemap : Algorithm, ICvPtrHolder

Constructors

| Improve this Doc View Source

Tonemap(IntPtr)

Constructor used by subclasses

Declaration
protected Tonemap(IntPtr ptr)
Parameters
Type Name Description
IntPtr ptr

Properties

| Improve this Doc View Source

Gamma

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 Source

Create(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
| Improve this Doc View Source

DisposeManaged()

Releases managed resources

Declaration
protected override void DisposeManaged()
Overrides
DisposableObject.DisposeManaged()
| Improve this Doc View Source

DisposeUnmanaged()

Declaration
protected override void DisposeUnmanaged()
Overrides
DisposableCvObject.DisposeUnmanaged()
| Improve this Doc View Source

Get()

Declaration
public override IntPtr Get()
Returns
Type Description
IntPtr
| Improve this Doc View Source

Process(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

Implements

ICvPtrHolder
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX