Class HistogramEqualizationOptions
Data container providing the different options for the histogram equalization.
Inherited Members
Namespace: SixLabors.ImageSharp.Processing.Processors.Normalization
Assembly: SixLabors.ImageSharp.dll
Syntax
public class HistogramEqualizationOptions
Properties
| Improve this Doc View SourceClipHistogram
Gets or sets a value indicating whether to clip the histogram bins at a specific value. It is recommended to use clipping when the AdaptiveTileInterpolation method is used, to suppress artifacts which can occur on the borders of the tiles. Defaults to false.
Declaration
public bool ClipHistogram { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
ClipLimit
Gets or sets the histogram clip limit. Adaptive histogram equalization may cause noise to be amplified in near constant regions. To reduce this problem, histogram bins which exceed a given limit will be capped at this value. The exceeding values will be redistributed equally to all other bins. The clipLimit depends on the size of the tiles the image is split into and therefore the image size itself. Defaults to 350.
Declaration
public int ClipLimit { get; set; }
Property Value
Type | Description |
---|---|
Int32 |
Remarks
For more information, see also: https://en.wikipedia.org/wiki/Adaptive_histogram_equalization#Contrast_Limited_AHE
Default
Gets the default HistogramEqualizationOptions instance.
Declaration
public static HistogramEqualizationOptions Default { get; }
Property Value
Type | Description |
---|---|
HistogramEqualizationOptions |
LuminanceLevels
Gets or sets the number of different luminance levels. Typical values are 256 for 8-bit grayscale images or 65536 for 16-bit grayscale images. Defaults to 256.
Declaration
public int LuminanceLevels { get; set; }
Property Value
Type | Description |
---|---|
Int32 |
Method
Gets or sets the histogram equalization method to use. Defaults to global histogram equalization.
Declaration
public HistogramEqualizationMethod Method { get; set; }
Property Value
Type | Description |
---|---|
HistogramEqualizationMethod |
NumberOfTiles
Gets or sets the number of tiles the image is split into (horizontal and vertically) for the adaptive histogram equalization. Defaults to 8.
Declaration
public int NumberOfTiles { get; set; }
Property Value
Type | Description |
---|---|
Int32 |