[GRASS-dev] problem with r.colors on Mac
hmitaso at unity.ncsu.edu
Wed Apr 11 14:16:52 EDT 2007
On Apr 11, 2007, at 2:12 PM, Markus Neteler wrote:
> 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,
>>>>> 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
>>> 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!
Glynn, big thanks from me too, I need it all the time, Helena
> grass-dev mailing list
> grass-dev at grass.itc.it
More information about the grass-dev