<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
Thank you very ... very much Even for your help. I will then download gdaldem.cpp and use it to do the job.<br>With best regards.<br>Belaid Moa. <br><br>> From: even.rouault@mines-paris.org<br>> To: gdal-dev@lists.osgeo.org<br>> Subject: Re: [gdal-dev] Colored images from grayscale images.<br>> Date: Wed, 8 Jul 2009 20:51:08 +0200<br>> CC: belaid_moa@hotmail.com; randre@gmail.com<br>> <br>> Just to mention that the gdaldem utility, that has landed into GDAL 1.7.0dev <br>> trunk, is derived from Matt Perry dem tools (derived themselves from <br>> ancient - public domain - GRASS code ;-)). You can grab it here : <br>> http://trac.osgeo.org/gdal/browser/trunk/gdal/apps/gdaldem.cpp. It should <br>> compile fine against GDAL 1.6.X.<br>> <br>> Le Wednesday 08 July 2009 20:47:56 Belaid MOA, vous avez écrit :<br>> > Thank you very much Andre for your help. I tried downloading the source<br>> > code from the website<br>> > http://www.perrygeo.net/download/gdaldemtools_20060207.zip but I am getting<br>> > a 404 error: resource not found. Is there any other way to get the source<br>> > code?<br>> ><br>> > Thanks a lot in advance Andre.<br>> > Belaid Moa.<br>> > Date: Wed, 8 Jul 2009 11:30:17 -0700<br>> > Subject: Re: [gdal-dev] Colored images from grayscale images.<br>> > From: randre@gmail.com<br>> > To: belaid_moa@hotmail.com<br>> > CC: gdal-dev@lists.osgeo.org<br>> ><br>> > As far as coloring goes, Matt Perry had some C++ tools that included this<br>> > ability, see http://www.perrygeo.net/wordpress/?p=7 and look for<br>> > color-relief.cpp. I recall that there was some talk that these would be<br>> > included in the GDAL utilities at some point, perhaps they already are. <br>> > Depending on what you intend to use the image for, I agree that using<br>> > Mapserver might be the best solution for doing this, especially since<br>> > generating the legend would be trivial.<br>> ><br>> > --<br>> ><br>> > On Wed, Jul 8, 2009 at 10:33 AM, Belaid MOA <belaid_moa@hotmail.com> wrote:<br>> ><br>> ><br>> ><br>> ><br>> ><br>> ><br>> > Hi everyone,<br>> > Is there any easy way to do the following using C++ in GDAL: I have a<br>> > floating-point image and I'd like to associate arbitrary colors with ranges<br>> > of the pixel levels. For example: for the pixel values in [0,0.1) associate<br>> > red, for [0.1, 0.2) associated orange, for [0.2, 0.3) associate light blue,<br>> > for [0.3,0.4) associate dark blue, for [0.4, 0.5) associate green, etc. I<br>> > would like also to have this information available in the metadata or as<br>> > legend so that users know what the colors stand for when they view the<br>> > image.<br>> ><br>> ><br>> > Thanks a lot in advance for any input.<br>> ><br>> > With best regards.<br>> > Belaid Moa.<br>> ><br>> ><br>> ><br>> > Create a cool, new character for your Windows Live™ Messenger. Check it<br>> > out<br>> ><br>> ><br>> > _______________________________________________<br>> ><br>> > gdal-dev mailing list<br>> ><br>> > gdal-dev@lists.osgeo.org<br>> ><br>> > http://lists.osgeo.org/mailman/listinfo/gdal-dev<br>> ><br>> ><br>> > _________________________________________________________________<br>> > We are your photos. Share us now with Windows Live Photos.<br>> > http://go.microsoft.com/?linkid=9666047<br>> <br>> <br><br /><hr />Internet Explorer 8 makes surfing easier. <a href='http://go.microsoft.com/?linkid=9655264' target='_new'>Get it now! </a></body>
</html>