#include <Indexer.h>
Static Public Methods | |
| Matrix< int > | flatten (const Matrix< RGBColor<> > &mat, int levels, int originalLevels) |
| Create an indexed matrix out of a color matrix. | |
| Matrix< int > | flatten (const Matrix< RGBColor<> > &mat, Quantizer &r, Quantizer &g, Quantizer &b) throw (QuantizationException&) |
| Create an indexed matrix out of a color matrix. | |
| Matrix< int > | quantize (const Matrix< double > &mat, Quantizer &q) throw (QuantizationException&) |
| Generate an integer-valued matrix out of a double-valued matrix. | |
|
||||||||||||||||||||
|
Create an indexed matrix out of a color matrix. Each color channel is quantized using a different quantizer. The total number of levels in the output will equal to r.getLevels() * g.getLevels() * b.getLevels().
|
|
||||||||||||||||
|
Create an indexed matrix out of a color matrix. Each color channel is quantized to levels levels. Each channel is thus given an index in the range [0,levels-1]. The index for a color is calculated by: R*levels2 + G*levels + B. The maximum index will thus be index3-1.
|
|
||||||||||||
|
Generate an integer-valued matrix out of a double-valued matrix. Each floating-point value is passed to a quantizer and the returned value is placed in the result matrix.
|