10 #include "pnmimage_base.h"
26 EXPCL_PANDA_PNMIMAGE colorhist_vector ppm_computecolorhist(
pixel** pixels,
int cols,
int rows,
int maxcolors,
int* colorsP );
29 void ppm_addtocolorhist ( colorhist_vector chv,
int* colorsP,
int maxcolors,
pixel* colorP,
int value,
int position );
31 EXPCL_PANDA_PNMIMAGE
void ppm_freecolorhist( colorhist_vector chv );
38 colorhash_table ppm_computecolorhash (
pixel** pixels,
int cols,
int rows,
int maxcolors,
int* colorsP );
40 EXPCL_PANDA_PNMIMAGE
int
43 colorhist_vector ppm_colorhashtocolorhist (
colorhash_table cht,
int maxcolors );
44 EXPCL_PANDA_PNMIMAGE
colorhash_table ppm_colorhisttocolorhash( colorhist_vector chv,
int colors );