Class GlobalHistogramEqualizationProcessor
Defines a global histogram equalization applicable to an Image.
Implements
Inherited Members
Namespace: SixLabors.ImageSharp.Processing.Processors.Normalization
Assembly: SixLabors.ImageSharp.dll
Syntax
public class GlobalHistogramEqualizationProcessor : HistogramEqualizationProcessor, IImageProcessor
Constructors
| Improve this Doc View SourceGlobalHistogramEqualizationProcessor(Int32, Boolean, Int32)
Initializes a new instance of the GlobalHistogramEqualizationProcessor class.
Declaration
public GlobalHistogramEqualizationProcessor(int luminanceLevels, bool clipHistogram, int clipLimit)
Parameters
| Type | Name | Description |
|---|---|---|
| Int32 | luminanceLevels | The number of luminance levels. |
| Boolean | clipHistogram | A value indicating whether to clip the histogram bins at a specific value. |
| Int32 | clipLimit | The histogram clip limit. Histogram bins which exceed this limit, will be capped at this value. |
Methods
| Improve this Doc View SourceCreatePixelSpecificProcessor<TPixel>(Configuration, Image<TPixel>, Rectangle)
Creates a pixel specific IImageProcessor<TPixel> that is capable of executing the processing algorithm on an Image<TPixel>.
Declaration
public override IImageProcessor<TPixel> CreatePixelSpecificProcessor<TPixel>(Configuration configuration, Image<TPixel> source, Rectangle sourceRectangle)
where TPixel : struct, IPixel<TPixel>
Parameters
| Type | Name | Description |
|---|---|---|
| Configuration | configuration | The configuration which allows altering default behaviour or extending the library. |
| Image<TPixel> | source | The source image. Cannot be null. |
| Rectangle | sourceRectangle | The Rectangle structure that specifies the portion of the image object to draw. |
Returns
| Type | Description |
|---|---|
| IImageProcessor<TPixel> |
Type Parameters
| Name | Description |
|---|---|
| TPixel | The pixel type. |
Overrides
SixLabors.ImageSharp.Processing.Processors.Normalization.HistogramEqualizationProcessor.CreatePixelSpecificProcessor<TPixel>(SixLabors.ImageSharp.Configuration, SixLabors.ImageSharp.Image<TPixel>, SixLabors.ImageSharp.Rectangle)