33         *map = xmap = (
unsigned char *)
G_malloc(1);
    41     len = *max - *min + 1;
    42     *map = xmap = (
unsigned char *)
G_malloc(len);
    45     for (i = first; i <= last; i++) {
    53         for (i = 0; i < len; i++)
    62     for (i = first; i <= last; i++) {
    66         if (count < 0 || cat == 0)
    68         x = (sum + (count / 2.0)) / span;
 
void Rast_histogram_eq(const struct Histogram *histo, unsigned char **map, CELL *min, CELL *max)
long Rast_get_histogram_count(int, const struct Histogram *)
Returns count for the nth element in the histogram. 
CELL Rast_get_histogram_cat(int, const struct Histogram *)
Returns cat for the nth element in the histogram. 
int Rast_get_histogram_num(const struct Histogram *)
Sorts the histogram in ascending order by counts then category.