[gdal-dev] Colored images from grayscale images.

Belaid MOA belaid_moa at hotmail.com
Wed Jul 8 14:56:17 EDT 2009


Thank you very ... very much Even for your help. I will then download gdaldem.cpp and use it to do the job.
With best regards.
Belaid Moa. 

> From: even.rouault at mines-paris.org
> To: gdal-dev at lists.osgeo.org
> Subject: Re: [gdal-dev] Colored images from grayscale images.
> Date: Wed, 8 Jul 2009 20:51:08 +0200
> CC: belaid_moa at hotmail.com; randre at gmail.com
> 
> Just to mention that the gdaldem utility, that has landed into GDAL 1.7.0dev 
> trunk, is derived from Matt Perry dem tools (derived themselves from 
> ancient - public domain - GRASS code ;-)). You can grab it here : 
> http://trac.osgeo.org/gdal/browser/trunk/gdal/apps/gdaldem.cpp. It should 
> compile fine against GDAL 1.6.X.
> 
> Le Wednesday 08 July 2009 20:47:56 Belaid MOA, vous avez écrit :
> > Thank you very much Andre for your help. I tried downloading the source
> > code from the website
> > http://www.perrygeo.net/download/gdaldemtools_20060207.zip but I am getting
> > a 404 error: resource not found. Is there any other way to get the source
> > code?
> >
> >  Thanks a lot in advance Andre.
> > Belaid Moa.
> > Date: Wed, 8 Jul 2009 11:30:17 -0700
> > Subject: Re: [gdal-dev] Colored images from grayscale images.
> > From: randre at gmail.com
> > To: belaid_moa at hotmail.com
> > CC: gdal-dev at lists.osgeo.org
> >
> > As far as coloring goes, Matt Perry had some C++ tools that included this
> > ability, see http://www.perrygeo.net/wordpress/?p=7 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.
> >
> > --
> >
> > On Wed, Jul 8, 2009 at 10:33 AM, Belaid MOA <belaid_moa at hotmail.com> wrote:
> >
> >
> >
> >
> >
> >
> > 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.  Check it
> > out
> >
> >
> > _______________________________________________
> >
> > gdal-dev mailing list
> >
> > gdal-dev at lists.osgeo.org
> >
> > http://lists.osgeo.org/mailman/listinfo/gdal-dev
> >
> >
> > _________________________________________________________________
> > We are your photos. Share us now with Windows Live Photos.
> > http://go.microsoft.com/?linkid=9666047
> 
> 

_________________________________________________________________
Internet explorer 8 lets you browse the web faster.
http://go.microsoft.com/?linkid=9655582
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20090708/53b99239/attachment.html


More information about the gdal-dev mailing list