<div>Hi</div><div>Yes - I need to convert all the pixels into white. Is this possible?</div><div>Thank you</div><div>J<br><br>On 23 Oct 2011, at 02:57, "Jay L. [via <a href="http://OSGeo.org" target="_top" rel="nofollow" link="external">OSGeo.org</a>]" &lt;<a href="/user/SendEmail.jtp?type=node&node=6921459&i=0" target="_top" rel="nofollow" link="external">[hidden email]</a>&gt; wrote:<br><br></div><div></div><blockquote type="cite"><div>

        I'm not sure I fully understand the question. &nbsp;Are you attempting to convert all pixels with RGB value 72, 255, 25 to white? &nbsp;Or are you trying to scale the image to 8-bit? &nbsp;<div><br></div><div>Sounds like the former. &nbsp;In this case -scale is not the way to go. &nbsp;I'm honestly not sure what is, short of reading each band into a numpy array and then checking individual pixels in each band. &nbsp;You could then modify the value in each array by position.<br>
<br><div class="gmail_quote">On Sat, Oct 22, 2011 at 7:10 PM, joolek <span dir="ltr">&lt;<a href="/user/SendEmail.jtp?type=node&amp;node=6921281&amp;i=0" target="_top" rel="nofollow" link="external">[hidden email]</a>&gt;</span> wrote:<br><blockquote style="border-left:2px solid #CCCCCC;padding:0 1em" class="gmail_quote">
Hi all,<br>
I need your expertise... I've got number of TIFF's and ECW's with RGB<br>
(72,255,25) that I would like to convert to 255,255,255.<br>
<br>
How should the command looks like?.. gdal_translate -scale (not sure about<br>
this) &lt;input&gt; &lt;output&gt;<br>
Thank you guys!!, appreciate any help.<br>
J<br>
<font color="#888888"><br>
--<br>
View this message in context: <a href="http://osgeo-org.1803224.n2.nabble.com/Gdal-translate-question-from-an-amateur-tp6921127p6921127.html" target="_blank" rel="nofollow" link="external">http://osgeo-org.1803224.n2.nabble.com/Gdal-translate-question-from-an-amateur-tp6921127p6921127.html</a><br>

Sent from the GDAL - Dev mailing list archive at <a href="http://Nabble.com" target="_top" rel="nofollow" link="external">Nabble.com</a>.<br>
_______________________________________________<br>
gdal-dev mailing list<br>
<a href="/user/SendEmail.jtp?type=node&amp;node=6921281&amp;i=1" target="_top" rel="nofollow" link="external">[hidden email]</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/gdal-dev" target="_blank" rel="nofollow" link="external">http://lists.osgeo.org/mailman/listinfo/gdal-dev</a><br>
</font></blockquote></div><br></div>
<br>_______________________________________________
<br>gdal-dev mailing list
<br><a href="/user/SendEmail.jtp?type=node&amp;node=6921281&amp;i=2" target="_top" rel="nofollow" link="external">[hidden email]</a>
<br><a href="http://lists.osgeo.org/mailman/listinfo/gdal-dev" target="_top" rel="nofollow" link="external">http://lists.osgeo.org/mailman/listinfo/gdal-dev</a>
        
        <br>
        <br>
        <hr noshade="noshade" size="1" color="#cccccc">
        <div style="color:#444; font: 12px tahoma,geneva,helvetica,arial,sans-serif;">
                <div style="font-weight:bold">If you reply to this email, your message will be added to the discussion below:</div>
                <a href="http://osgeo-org.1803224.n2.nabble.com/Gdal-translate-question-from-an-amateur-tp6921127p6921281.html" target="_top" rel="nofollow" link="external">http://osgeo-org.1803224.n2.nabble.com/Gdal-translate-question-from-an-amateur-tp6921127p6921281.html</a>
        </div>
        <div style="color:#666; font: 11px tahoma,geneva,helvetica,arial,sans-serif;margin-top:.4em">
                
                To unsubscribe from Gdal_translate, question from an amateur., <a href="" target="_top" rel="nofollow" link="external">click here</a>.
        </div></div></blockquote>
        
<br/><hr align="left" width="300" />
View this message in context: <a href="http://osgeo-org.1803224.n2.nabble.com/Gdal-translate-question-from-an-amateur-tp6921127p6921459.html">Re: Gdal_translate, question from an amateur.</a><br/>
Sent from the <a href="http://osgeo-org.1803224.n2.nabble.com/GDAL-Dev-f2022644.html">GDAL - Dev mailing list archive</a> at Nabble.com.<br/>