Table of Contents

Class TonemapMantiuk

Namespace
OpenCvSharp
Assembly
OpenCvSharp.dll

This algorithm transforms image to contrast using gradients on all levels of gaussian pyramid, transforms contrast values to HVS response and scales the response. After this the image is reconstructed from new contrast values.

For more information see @cite MM06.

public sealed class TonemapMantiuk : Tonemap, IDisposable, ICvPtrHolder
Inheritance
TonemapMantiuk
Implements
Inherited Members

Properties

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

float

Scale

Gets or sets contrast scale factor. HVS response is multiplied by this parameter, thus compressing dynamic range. Values from 0.6 to 0.9 produce best results.

public float Scale { get; set; }

Property Value

float

Methods

Create(float, float, float)

Creates TonemapMantiuk object

public static TonemapMantiuk Create(float gamma = 1, float scale = 0.7, float saturation = 1)

Parameters

gamma float

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.

scale float

contrast scale factor. HVS response is multiplied by this parameter, thus compressing dynamic range. Values from 0.6 to 0.9 produce best results.

saturation float

Returns

TonemapMantiuk

DisposeManaged()

Releases managed resources

protected override void DisposeManaged()