16 #include <grass/gis.h> 17 #include <grass/raster.h> 18 #include <grass/colors.h> 65 x = (sum + (count / 2.0)) / span;
138 x = (int)(255 * (log(cat) - lmin) / (lmax - lmin));
149 else if (grey != x) {
void Rast_make_histogram_log_colors(struct Colors *colors, struct Cell_stats *statf, int min, int max)
Generates histogram with normalized log transformed grey scale.
void Rast_add_c_color_rule(const CELL *cat1, int r1, int g1, int b1, const CELL *cat2, int r2, int g2, int b2, struct Colors *colors)
Adds the integer color rule (CELL version)
void Rast_set_null_value_color(int red, int grn, int blu, struct Colors *colors)
Set color for NULL-value.
void Rast_make_histogram_eq_colors(struct Colors *colors, struct Cell_stats *statf)
Make histogram-stretched grey colors.
void Rast_init_colors(struct Colors *colors)
Initialize color structure.
int Rast_rewind_cell_stats(struct Cell_stats *s)
Reset/rewind cell stats.
int Rast_next_cell_stat(CELL *cat, long *count, struct Cell_stats *s)
Retrieve sorted cell stats.
int G_str_to_color(const char *str, int *red, int *grn, int *blu)
Parse color string and set red,green,blue.
struct _Color_Rule_ * prev