|
GRASS 8 Programmer's Manual 8.6.0dev(2026)-1d1e47ad9d
|
Raster Library - histogram grey scale colors. More...

Go to the source code of this file.
Functions | |
| 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. | |
Raster Library - histogram grey scale colors.
(C) 2007-2009 Glynn Clements and the GRASS Development Team
This program is free software under the GNU General Public License (>=v2). Read the file COPYING that comes with GRASS for details.
Definition in file color_hist.c.
| void Rast_make_histogram_eq_colors | ( | struct Colors * | colors, |
| struct Cell_stats * | statf | ||
| ) |
Make histogram-stretched grey colors.
Generates a histogram contrast-stretched grey scale color table that goes from the, histogram information in the Cell_stats structure (see Raster Histograms).
Color range is 0-255.
| colors | pointer to Colors structure which holds color info |
| statf | pointer to Cell_stats structure which holds cell stats info |
Definition at line 32 of file color_hist.c.
References count, DEFAULT_BG_COLOR, G_str_to_color(), Rast_add_c_color_rule(), Rast_init_colors(), Rast_next_cell_stat(), Rast_rewind_cell_stats(), Rast_set_null_value_color(), and 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.
Generates histogram with normalized log transformed grey scale from cell stats structure info. Color range is 0-255.
| colors | pointer to Colors structure which holds color info |
| statf | pointer to Cell_stats structure which holds cell stats info |
| min | minimum value |
| max | maximum value |
Definition at line 101 of file color_hist.c.
References count, DEFAULT_BG_COLOR, G_str_to_color(), max, min, Rast_add_c_color_rule(), Rast_init_colors(), Rast_next_cell_stat(), Rast_rewind_cell_stats(), Rast_set_null_value_color(), and x.