[Gdal-dev] Re: Changing colour in tif file
Ludwig Max Brinckmann
ludwigbrinckmann at gmail.com
Thu Nov 2 11:03:38 EST 2006
I want to change one particular colour in a set of 3-band tif tiles
(basically change the colour used for no-data fields)
I have seen there is a gdal python contribution val_repl.py, but looking
through the code this will replace the same value in every band in the file.
I need to replace a value in three bands depending on a condition spanning
the three bands, e.g if RGB == 255,0,0 then RGB = 120,60,60 or some such.
Any good idea?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Gdal-dev