QGIS API Documentation  3.18.1-Zürich (202f1bf7e5)
Namespaces | Typedefs | Functions
qgsmediancut.cpp File Reference
#include "qgsmediancut.h"
#include <QList>
#include <QMultiMap>
#include <QHash>
Include dependency graph for qgsmediancut.cpp:

Go to the source code of this file.

Namespaces

 QgsWms
 Median cut implementation.
 

Typedefs

typedef QList< QPair< QRgb, int > > QgsWms::QgsColorBox
 
typedef QMultiMap< int, QgsColorBoxQgsWms::QgsColorBoxMap
 

Functions

void QgsWms::medianCut (QVector< QRgb > &colorTable, int nColors, const QImage &inputImage)
 Median cut implementation used when reducing RGB colors to palletized colors. More...