QGIS API Documentation  3.4.15-Madeira (e83d02e274)
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...