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