[gdal-dev] Gdal_translate, question from an amateur.

Jay L. jzl5325 at psu.edu
Sat Oct 22 21:57:16 EDT 2011


I'm not sure I fully understand the question.  Are you attempting to convert
all pixels with RGB value 72, 255, 25 to white?  Or are you trying to scale
the image to 8-bit?

Sounds like the former.  In this case -scale is not the way to go.  I'm
honestly not sure what is, short of reading each band into a numpy array and
then checking individual pixels in each band.  You could then modify the
value in each array by position.

On Sat, Oct 22, 2011 at 7:10 PM, joolek <joolek.o at gmail.com> wrote:

> Hi all,
> I need your expertise... I've got number of TIFF's and ECW's with RGB
> (72,255,25) that I would like to convert to 255,255,255.
>
> How should the command looks like?.. gdal_translate -scale (not sure about
> this) <input> <output>
> Thank you guys!!, appreciate any help.
> J
>
> --
> View this message in context:
> http://osgeo-org.1803224.n2.nabble.com/Gdal-translate-question-from-an-amateur-tp6921127p6921127.html
> Sent from the GDAL - Dev mailing list archive at Nabble.com.
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/gdal-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20111022/05d34d17/attachment.html


More information about the gdal-dev mailing list