25 #include <grass/gis.h>
43 struct Cell_stats *statf)
75 x = (sum + (count / 2.0)) / span;
103 struct Cell_stats *statf,
int min,
int max)
138 x = (
int)(255 * (
log(
cat) - lmin) / (lmax - lmin));
149 else if (grey != x) {
int G_set_null_value_color(int red, int grn, int blu, struct Colors *colors)
Sets the color (in colors) for the NULL-value to r,g,b.
int G_next_cell_stat(CELL *cat, long *count, struct Cell_stats *s)
retrieve sorted cell stats
int G_make_histogram_eq_colors(struct Colors *colors, struct Cell_stats *statf)
make histogram-stretched grey colors
int G_make_histogram_log_colors(struct Colors *colors, struct Cell_stats *statf, int min, int max)
int G_rewind_cell_stats(struct Cell_stats *s)
reset/rewind cell stats
int G_add_color_rule(CELL cat1, int r1, int g1, int b1, CELL cat2, int r2, int g2, int b2, struct Colors *colors)
Set colors rules.
int G_str_to_color(const char *str, int *red, int *grn, int *blu)
Parse color string and set red,green,blue.