Leptonica 1.68
C Image Processing Library
|
Tests quantization of rgb image to a specific colormap. Does this by starting with a grayscale image, doing a grayscale quantization with a colormap in the dest, then adding new colors, scaling (which removes the colormap), and finally re-quantizing back to the original colormap. More...
#include "allheaders.h"
Go to the source code of this file.
Defines | |
#define | LEVEL 3 |
#define | MIN_DEPTH 4 |
Functions | |
main (int argc, char **argv) |
Tests quantization of rgb image to a specific colormap. Does this by starting with a grayscale image, doing a grayscale quantization with a colormap in the dest, then adding new colors, scaling (which removes the colormap), and finally re-quantizing back to the original colormap.
Definition in file cmapquant_reg.c.
#define LEVEL 3 |
Definition at line 28 of file cmapquant_reg.c.
Referenced by main().
#define MIN_DEPTH 4 |
Definition at line 29 of file cmapquant_reg.c.
Referenced by main().
main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 31 of file cmapquant_reg.c.
References boxCreate(), boxDestroy(), ERROR_INT, L_EUCLIDEAN_DISTANCE, L_PAINT_DARK, lept_free(), LEVEL, makeRGBToIndexTables(), MIN_DEPTH, pixcmapToOctcubeLUT(), pixColorGray(), pixDestroy(), pixDisplayMultiple(), pixDisplayWrite(), pixEqual(), pixGetColormap(), pixOctcubeQuantFromCmap(), pixOctcubeQuantFromCmapLUT(), pixRead(), pixScale(), pixThresholdTo4bpp(), startTimer(), and stopTimer().