GRASS Programmer's Manual  6.5.svn(2014)-r66266
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
color_hist.c File Reference
#include <grass/gis.h>
#include <math.h>
Include dependency graph for color_hist.c:

Go to the source code of this file.

Functions

int G_make_histogram_eq_colors (struct Colors *colors, struct Cell_stats *statf)
 make histogram-stretched grey colors More...
 
int G_make_histogram_log_colors (struct Colors *colors, struct Cell_stats *statf, int min, int max)
 

Function Documentation

int G_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 s. (See Raster_Histograms).

Parameters
colors
s
Returns
int

Definition at line 42 of file color_hist.c.

References cat, count, first, G_add_color_rule(), G_init_colors(), G_next_cell_stat(), G_rewind_cell_stats(), G_set_null_value_color(), and G_str_to_color().

int G_make_histogram_log_colors ( struct Colors *  colors,
struct Cell_stats *  statf,
int  min,
int  max 
)