Class CLAHE
Contrast Limited Adaptive Histogram Equalization
Implements
Inherited Members
Namespace: OpenCvSharp
Assembly: OpenCvSharp.dll
Syntax
public sealed class CLAHE : Algorithm, ICvPtrHolder
Properties
| Improve this Doc View SourceClipLimit
Gets or sets threshold for contrast limiting.
Declaration
public double ClipLimit { get; set; }
Property Value
Type | Description |
---|---|
System.Double |
TilesGridSize
Gets or sets size of grid for histogram equalization. Input image will be divided into equally sized rectangular tiles.
Declaration
public Size TilesGridSize { get; set; }
Property Value
Type | Description |
---|---|
OpenCvSharp.Size |
Methods
| Improve this Doc View SourceApply(InputArray, OutputArray)
Equalizes the histogram of a grayscale image using Contrast Limited Adaptive Histogram Equalization.
Declaration
public void Apply(InputArray src, OutputArray dst)
Parameters
Type | Name | Description |
---|---|---|
InputArray | src | Source image of type CV_8UC1 or CV_16UC1. |
OutputArray | dst | Destination image. |
CollectGarbage()
Declaration
public void CollectGarbage()
Create(Double, Nullable<Size>)
Creates a predefined CLAHE object
Declaration
public static CLAHE Create(double clipLimit = 40, Size? tileGridSize = null)
Parameters
Type | Name | Description |
---|---|---|
System.Double | clipLimit | |
System.Nullable<OpenCvSharp.Size> | tileGridSize |
Returns
Type | Description |
---|---|
CLAHE |
DisposeManaged()
Releases managed resources
Declaration
protected override void DisposeManaged()