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

joolek joolek.o at gmail.com
Sun Oct 23 01:57:46 EDT 2011


Hi
Yes - I need to convert all the pixels into white. Is this possible?
Thank you
J

On 23 Oct 2011, at 02:57, "Jay L. [via OSGeo.org]" <ml-node+s1803224n6921281h87 at n2.nabble.com> wrote:

> 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 <[hidden email]> 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
> [hidden email]
> http://lists.osgeo.org/mailman/listinfo/gdal-dev
> 
> 
> _______________________________________________ 
> gdal-dev mailing list 
> [hidden email] 
> http://lists.osgeo.org/mailman/listinfo/gdal-dev 
> 
> If you reply to this email, your message will be added to the discussion below:
> http://osgeo-org.1803224.n2.nabble.com/Gdal-translate-question-from-an-amateur-tp6921127p6921281.html
> To unsubscribe from Gdal_translate, question from an amateur., click here.


--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Gdal-translate-question-from-an-amateur-tp6921127p6921459.html
Sent from the GDAL - Dev mailing list archive at Nabble.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20111022/41895714/attachment.html


More information about the gdal-dev mailing list