|
GRASS 8 Programmer's Manual 8.6.0dev(2026)-f6f2c534ea
|
Raster Library - Colors management. More...

Go to the source code of this file.
Functions | |
| void | Rast_histogram_eq_colors (struct Colors *dst, struct Colors *src, struct Cell_stats *statf) |
| Make histogram-stretched version of existing color table. | |
| void | Rast_histogram_eq_fp_colors (struct Colors *dst, struct Colors *src, struct FP_stats *statf) |
| Make histogram-stretched version of existing color table (FP version) | |
| void | Rast_log_colors (struct Colors *dst, struct Colors *src, int samples) |
| Make logarithmically-scaled version of an existing color table. | |
| void | Rast_abs_log_colors (struct Colors *dst, struct Colors *src, int samples) |
| Make logarithmically-scaled version of an existing color table, allowing for signed values. | |
Raster Library - Colors management.
(C) 2001-2021 by 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_xform.c.
Make logarithmically-scaled version of an existing color table, allowing for signed values.
| [out] | dst | struct to hold new colors |
| src | struct containing original colors | |
| samples | number of samples |
Definition at line 249 of file color_xform.c.
References MAX, max, MIN, min, Rast_add_d_color_rule(), Rast_get_d_color(), Rast_get_d_color_range(), Rast_get_default_color(), Rast_get_null_value_color(), Rast_init_colors(), Rast_set_default_color(), Rast_set_null_value_color(), and x.
| void Rast_histogram_eq_colors | ( | struct Colors * | dst, |
| struct Colors * | src, | ||
| struct Cell_stats * | statf | ||
| ) |
Make histogram-stretched version of existing color table.
Generates a histogram contrast-stretched color table that goes from the histogram information in the Cell_stats structure statf. (See Raster Histograms).
| [out] | dst | struct to hold new colors |
| src | struct containing original colors | |
| statf | cell stats info |
Definition at line 30 of file color_xform.c.
References count, max, min, Rast_add_c_color_rule(), Rast_get_d_color(), Rast_get_d_color_range(), Rast_get_default_color(), Rast_get_null_value_color(), Rast_init_colors(), Rast_next_cell_stat(), Rast_rewind_cell_stats(), Rast_set_default_color(), Rast_set_null_value_color(), and x.
| void Rast_histogram_eq_fp_colors | ( | struct Colors * | dst, |
| struct Colors * | src, | ||
| struct FP_stats * | statf | ||
| ) |
Make histogram-stretched version of existing color table (FP version)
Generates a histogram contrast-stretched color table that goes from the histogram information in the FP_stats structure statf. (See Raster Histograms).
| [out] | dst | struct to hold new colors |
| src | struct containing original colors | |
| statf | cell stats info |
Definition at line 107 of file color_xform.c.
References FP_stats::count, count, FP_stats::flip, FP_stats::geom_abs, FP_stats::geometric, FP_stats::max, max, FP_stats::min, min, Rast_add_d_color_rule(), Rast_get_d_color(), Rast_get_d_color_range(), Rast_get_default_color(), Rast_get_null_value_color(), Rast_init_colors(), Rast_set_default_color(), Rast_set_null_value_color(), FP_stats::stats, FP_stats::total, and x.
Make logarithmically-scaled version of an existing color table.
| [out] | dst | struct to hold new colors |
| src | struct containing original colors | |
| samples | number of samples |
Definition at line 180 of file color_xform.c.
References max, min, Rast_add_d_color_rule(), Rast_get_d_color(), Rast_get_d_color_range(), Rast_get_default_color(), Rast_get_null_value_color(), Rast_init_colors(), Rast_set_default_color(), Rast_set_null_value_color(), and x.