As far as coloring goes, Matt Perry had some C++ tools that included this ability, see <a href="http://www.perrygeo.net/wordpress/?p=7">http://www.perrygeo.net/wordpress/?p=7</a> and look for color-relief.cpp. I recall that there was some talk that these would be included in the GDAL utilities at some point, perhaps they already are. Depending on what you intend to use the image for, I agree that using Mapserver might be the best solution for doing this, especially since generating the legend would be trivial.<br>
--<br><br><div class="gmail_quote">On Wed, Jul 8, 2009 at 10:33 AM, Belaid MOA <span dir="ltr"><<a href="mailto:belaid_moa@hotmail.com">belaid_moa@hotmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>
Hi everyone,<br> 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.<br>
<br> Thanks a lot in advance for any input.<br><br> With best regards.<br>Belaid Moa.<br><br> <br><br><hr>Create a cool, new character for your Windows Live™ Messenger. <a href="http://go.microsoft.com/?linkid=9656621" target="_blank">Check it out</a></div>
<br>_______________________________________________<br>
gdal-dev mailing list<br>
<a href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/gdal-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/gdal-dev</a><br></blockquote></div><br>