Class AdaptiveHistogramEqualizationSlidingWindowProcessor
- Namespace
- SixLabors.ImageSharp.Processing.Processors.Normalization
- Assembly
- SixLabors.ImageSharp.dll
Applies an adaptive histogram equalization to the image using an sliding window approach.
public class AdaptiveHistogramEqualizationSlidingWindowProcessor : HistogramEqualizationProcessor, IImageProcessor
- Inheritance
-
AdaptiveHistogramEqualizationSlidingWindowProcessor
- Implements
- Inherited Members
Constructors
AdaptiveHistogramEqualizationSlidingWindowProcessor(int, bool, int, int)
Initializes a new instance of the AdaptiveHistogramEqualizationSlidingWindowProcessor class.
public AdaptiveHistogramEqualizationSlidingWindowProcessor(int luminanceLevels, bool clipHistogram, int clipLimit, int numberOfTiles)
Parameters
luminanceLevels
intThe number of different luminance levels. Typical values are 256 for 8-bit grayscale images or 65536 for 16-bit grayscale images.
clipHistogram
boolIndicating 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.
numberOfTiles
intThe number of tiles the image is split into (horizontal and vertically). Minimum value is 2. Maximum value is 100.
Properties
NumberOfTiles
Gets the number of tiles the image is split into (horizontal and vertically) for the adaptive histogram equalization.
public int NumberOfTiles { get; }
Property 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.