#include <ColorPaletteEvaluator.hpp>
Purpose: Define a Color Palette Evaluator Paper:
@ Copyrights: Bernard De Cuyper & Eddy Fraiha 2002, Eggs & Pictures. MIT/Open BSD copyright model.
Public Methods | |
ColorPaletteEvaluator (int nentries=256) | |
~ColorPaletteEvaluator () | |
void | init () |
bool | addEntry (int r, int g, int b) |
bool | evaluate (AnImage *colorIm) |
int | numberOfEntries () |
bool | isActive (int index) |
int | getEntry (int index) |
int | getRank (int index) |
int | getIndex (int rgb) |
int | getIndex (int r, int g, int b) |
int | getValue (int iposition) |
int | getRed (int iposition) |
int | getGreen (int iposition) |
int | getBlue (int iposition) |
int | getPaletteIndex (int r, int g, int b) |
Protected Methods | |
int | getKey (int rgb) |
int | getKey (int r, int g, int b) |
Private Attributes | |
int | nsize |
bool * | active |
int * | entry |
int * | rank |
int | n |
int | nmax |