Le jeudi 28 avril 2011 17:49:48, Matt Wilkie a écrit : > > Worked for me using the following: > > > > #Change black to white > > gdalbuildvrt -srcnodata 0 -vrtnodata 255 to-be-decollared.vrt > > to-be-decollared.tif > > #Run nearblack -white > > nearblack -white -o decollared.tif to-be-decollared.vrt > > Luke, once again I thank you. :)
There's one thing you must be aware of with the above process. The gdalbuildvrt step will replace all 0 values by 255, but band per band, to be opposite to detecting the triplet (0,0,0). So this might alter colors that have least one component to 0 inside the raster. > > > matt wilkie > -------------------------------------------- > Geomatics Analyst > Information Management and Technology > Yukon Department of Environment > 10 Burns Road * Whitehorse, Yukon * Y1A 4Y9 > 867-667-8133 Tel * 867-393-7003 Fax > http://environmentyukon.gov.yk.ca/geomatics/ > -------------------------------------------- > _______________________________________________ > gdal-dev mailing list > [email protected] > http://lists.osgeo.org/mailman/listinfo/gdal-dev _______________________________________________ gdal-dev mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/gdal-dev
