Table of Contents

Class CLAHE

Namespace
OpenCvSharp
Assembly
OpenCvSharp.dll

Contrast Limited Adaptive Histogram Equalization

public sealed class CLAHE : Algorithm, IDisposable, ICvPtrHolder
Inheritance
CLAHE
Implements
Inherited Members

Properties

ClipLimit

Gets or sets threshold for contrast limiting.

public double ClipLimit { get; set; }

Property Value

double

TilesGridSize

Gets or sets size of grid for histogram equalization. Input image will be divided into equally sized rectangular tiles.

public Size TilesGridSize { get; set; }

Property Value

Size

Methods

Apply(InputArray, OutputArray)

Equalizes the histogram of a grayscale image using Contrast Limited Adaptive Histogram Equalization.

public void Apply(InputArray src, OutputArray dst)

Parameters

src InputArray

Source image of type CV_8UC1 or CV_16UC1.

dst OutputArray

Destination image.

CollectGarbage()

public void CollectGarbage()

Create(double, Size?)

Creates a predefined CLAHE object

public static CLAHE Create(double clipLimit = 40, Size? tileGridSize = null)

Parameters

clipLimit double
tileGridSize Size?

Returns

CLAHE

DisposeManaged()

Releases managed resources

protected override void DisposeManaged()