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

Helena Mitasova 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,  
>>>>> 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

Glynn, big thanks from me too, I need it all the time, Helena
>
> _______________________________________________
> grass-dev mailing list
> grass-dev at grass.itc.it
> http://grass.itc.it/mailman/listinfo/grass-dev




More information about the grass-dev mailing list