//
// Copyright (c) James Jackson-South and contributors.
// Licensed under the Apache License, Version 2.0.
//
namespace ImageProcessorCore.Quantizers
{
///
/// Provides methods for allowing quantization of images pixels.
///
/// The pixel format.
/// The packed format. long, float.
public interface IQuantizer : IQuantizer
where T : IPackedVector
where TP : struct
{
///
/// Quantize an image and return the resulting output pixels.
///
/// The image to quantize.
/// The maximum number of colors to return.
///
/// A representing a quantized version of the image pixels.
///
QuantizedImage Quantize(ImageBase image, int maxColors);
}
///
/// Provides methods for allowing quantization of images pixels.
///
public interface IQuantizer
{
///
/// Gets or sets the transparency threshold.
///
byte Threshold { get; set; }
}
}