[GRASS-dev] problem with r.colors on Mac

Markus Neteler neteler at itc.it
Wed Apr 11 14:12:09 EDT 2007


On Wed, Apr 11, 2007 at 06:37:48PM +0100, Glynn Clements wrote:
> 
> Glynn Clements wrote:
> 
> > > > Beyond that, it would be nice to be able to apply histogram
> > > > equalisation and/or logarithmic scaling to any colour table, rather
> > > > than just grey.
> > > 
> > > Absolutely. A long standing wish...
> > 
> > I've added two new functions to libgis:
> > 
> > 	int G_histogram_eq_colors(struct Colors *, struct Colors *, struct Cell_stats *);
> > 	int G_log_colors(struct Colors *, struct Colors *, int);
> > 
> > Eac function creates a new colour table from an existing colour table. 
> > In both cases, the new table covers the same range as the old table,
> > but the mapping across the range is either equalised or
> > logarithmically scaled.
> > 
> > The next step is to add corresponding options to r.colors.
> 
> Done; r.colors now has -e (hist. eq.) and -g (log. scale) options.

Wow - thanks a bunch!

Markus




More information about the grass-dev mailing list