[gdal-dev] Colored images from grayscale images.
Even Rouault
even.rouault at mines-paris.org
Wed Jul 8 14:02:07 EDT 2009
You might want to try gdaldem with the color-relief mode to associate RGB
values to pixel values. See http://gdal.org/gdaldem.html.
But this will not set metadata. Otherwise you might want to try MapServer if
you want a nice looking map with a legend.
Le Wednesday 08 July 2009 19:33:34 Belaid MOA, vous avez écrit :
> Hi everyone,
> Is there any easy way to do the following using C++ in GDAL: I have a
> floating-point image and I'd like to associate arbitrary colors with ranges
> of the pixel levels. For example: for the pixel values in [0,0.1) associate
> red, for [0.1, 0.2) associated orange, for [0.2, 0.3) associate light blue,
> for [0.3,0.4) associate dark blue, for [0.4, 0.5) associate green, etc. I
> would like also to have this information available in the metadata or as
> legend so that users know what the colors stand for when they view the
> image.
>
> Thanks a lot in advance for any input.
>
> With best regards.
> Belaid Moa.
>
>
>
> _________________________________________________________________
> Create a cool, new character for your Windows Live™ Messenger.
> http://go.microsoft.com/?linkid=9656621
More information about the gdal-dev
mailing list