color_xform.c File Reference

#include <grass/gis.h>
#include <math.h>
Include dependency graph for color_xform.c:

Go to the source code of this file.

Functions

int G_histogram_eq_colors (struct Colors *dst, struct Colors *src, struct Cell_stats *statf)
 make histogram-stretched version of existing color table
void G_histogram_eq_colors_fp (struct Colors *dst, struct Colors *src, struct FP_stats *statf)
 make histogram-stretched version of existing color table (FP version)
int G_log_colors (struct Colors *dst, struct Colors *src, int samples)
 make logarithmically-scaled version of an existing color table
int G_abs_log_colors (struct Colors *dst, struct Colors *src, int samples)
 make logarithmically-scaled version of an existing color table, allowing for signed values

Function Documentation

int G_abs_log_colors ( struct Colors *  dst,
struct Colors *  src,
int  samples 
)

make logarithmically-scaled version of an existing color table, allowing for signed values

Parameters:
dst 
src 
samples 
Returns:
int

Definition at line 259 of file color_xform.c.

References G_add_d_raster_color_rule(), G_get_d_color_range(), G_get_d_raster_color(), G_get_default_color(), G_get_null_value_color(), G_init_colors(), G_set_default_color(), and G_set_null_value_color().

int G_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).

Parameters:
dst 
src 
statf 
Returns:
int

Definition at line 59 of file color_xform.c.

References G_add_color_rule(), G_get_d_color_range(), G_get_d_raster_color(), G_get_default_color(), G_get_null_value_color(), G_init_colors(), G_next_cell_stat(), G_rewind_cell_stats(), G_set_default_color(), and G_set_null_value_color().

void G_histogram_eq_colors_fp ( 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).

Parameters:
dst 
src 
statf 
Returns:
void

Definition at line 132 of file color_xform.c.

References G_add_d_raster_color_rule(), G_get_d_color_range(), G_get_d_raster_color(), G_get_default_color(), G_get_null_value_color(), G_init_colors(), G_set_default_color(), and G_set_null_value_color().

int G_log_colors ( struct Colors *  dst,
struct Colors *  src,
int  samples 
)

make logarithmically-scaled version of an existing color table

Parameters:
dst 
src 
samples 
Returns:
int

Definition at line 197 of file color_xform.c.

References G_add_d_raster_color_rule(), G_get_d_color_range(), G_get_d_raster_color(), G_get_default_color(), G_get_null_value_color(), G_init_colors(), G_set_default_color(), and G_set_null_value_color().


Generated on Sat Oct 24 03:24:50 2009 for GRASS Programmer's Manual by  doxygen 1.6.1