36 CELL prev = 0, cat, val2;
65 x = (sum + (
count / 2.0)) / span;
106 CELL prev = 0, cat, val2;
137 x = (int)(255 * (log(cat) - lmin) / (lmax - lmin));
148 else if (grey !=
x) {
void Rast_make_histogram_eq_colors(struct Colors *colors, struct Cell_stats *statf)
Make histogram-stretched grey colors.
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.
int G_str_to_color(const char *, int *, int *, int *)
Parse color string and set red,green,blue.
void Rast_set_null_value_color(int, int, int, struct Colors *)
Set color for NULL-value.
void Rast_add_c_color_rule(const CELL *, int, int, int, const CELL *, int, int, int, struct Colors *)
Adds the integer color rule (CELL version)
int Rast_rewind_cell_stats(struct Cell_stats *)
Reset/rewind cell stats.
void Rast_init_colors(struct Colors *)
Initialize color structure.
int Rast_next_cell_stat(CELL *, long *, struct Cell_stats *)
Retrieve sorted cell stats.