|
GRASS 8 Programmer's Manual 8.6.0dev(2026)-8843f13794
|
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.
SPDX-FileCopyrightText: 2007-2009 Glynn Clements SPDX-FileCopyrightText: GRASS Development Team SPDX-License-Identifier: GPL-2.0-or-later
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 31 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 100 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.