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