GRASS GIS 7 Programmer's Manual
7.9.dev(2021)-e5379bbd7
|
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. More... | |
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. More... | |
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.
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.