32 *map = xmap = (
unsigned char *)
G_malloc(1);
41 *map = xmap = (
unsigned char *)
G_malloc(len);
44 for (i = first; i <= last; i++) {
52 for (i = 0; i < len; i++)
61 for (i = first; i <= last; i++) {
65 if (
count < 0 || cat == 0)
67 x = (sum + (
count / 2.0)) / span;
int Rast_get_histogram_num(const struct Histogram *)
Sorts the histogram in ascending order by counts then category.
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.
void Rast_histogram_eq(const struct Histogram *histo, unsigned char **map, CELL *min, CELL *max)