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

Glynn Clements glynn at gclements.plus.com
Wed Apr 11 13:37:48 EDT 2007


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.

-- 
Glynn Clements <glynn at gclements.plus.com>




More information about the grass-dev mailing list