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
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 41 of file color_hist.c.

References 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 
)


Generated on Sun Apr 6 17:32:16 2008 for GRASS by  doxygen 1.5.5