Class WuQuantizer
Allows the quantization of images pixels using Xiaolin Wu's Color Quantizer http://www.ece.mcmaster.ca/~xwu/cq.c
Implements
Inherited Members
Namespace: SixLabors.ImageSharp.Processing.Processors.Quantization
Assembly: SixLabors.ImageSharp.dll
Syntax
public class WuQuantizer : IQuantizer
Constructors
| Improve this Doc View SourceWuQuantizer()
Initializes a new instance of the WuQuantizer class using the default QuantizerOptions.
Declaration
public WuQuantizer()
WuQuantizer(QuantizerOptions)
Initializes a new instance of the WuQuantizer class.
Declaration
public WuQuantizer(QuantizerOptions options)
Parameters
Type | Name | Description |
---|---|---|
QuantizerOptions | options | The quantizer options defining quantization rules. |
Properties
| Improve this Doc View SourceOptions
Gets the quantizer options defining quantization rules.
Declaration
public QuantizerOptions Options { get; }
Property Value
Type | Description |
---|---|
QuantizerOptions |
Methods
| Improve this Doc View SourceCreatePixelSpecificQuantizer<TPixel>(Configuration)
Creates the generic frame quantizer.
Declaration
public IQuantizer<TPixel> CreatePixelSpecificQuantizer<TPixel>(Configuration configuration)
where TPixel : struct, IPixel<TPixel>
Parameters
Type | Name | Description |
---|---|---|
Configuration | configuration | The Configuration to configure internal operations. |
Returns
Type | Description |
---|---|
IQuantizer<TPixel> | The IQuantizer<TPixel>. |
Type Parameters
Name | Description |
---|---|
TPixel | The pixel format. |
CreatePixelSpecificQuantizer<TPixel>(Configuration, QuantizerOptions)
Creates the generic frame quantizer.
Declaration
public IQuantizer<TPixel> CreatePixelSpecificQuantizer<TPixel>(Configuration configuration, QuantizerOptions options)
where TPixel : struct, IPixel<TPixel>
Parameters
Type | Name | Description |
---|---|---|
Configuration | configuration | The Configuration to configure internal operations. |
QuantizerOptions | options | The options to create the quantizer with. |
Returns
Type | Description |
---|---|
IQuantizer<TPixel> | The IQuantizer<TPixel>. |
Type Parameters
Name | Description |
---|---|
TPixel | The pixel format. |