[gdal-dev] gdal_translate produces tif with different colors as original

Moses.Gone at t-systems.com Moses.Gone at t-systems.com
Mon Nov 11 02:31:15 PST 2013


Hello Marius,
Actually am not sure as my colleague did the actual test. But we tried visualization also in QGIS and had the same result as ArcMap. I will check this again and let you know. In the mean time, we decided to follow Andre´ s approach to strip the VRT off the wrong palette and then apply the right palette.

Thanks and regards,
Moses

From: gdal-dev-bounces at lists.osgeo.org [mailto:gdal-dev-bounces at lists.osgeo.org] On Behalf Of Marius Jigmond
Sent: 09 November 2013 03:43
To: Andre Joost; gdal-dev at lists.osgeo.org
Subject: Re: [gdal-dev] gdal_translate produces tif with different colors as original

I noticed you're using ArcMap for visualizing the results. Did you check what histogram/gamma stretch gets applied by default when you load the layer? I run into this issue often as results from GDAL operations appear much worse when loaded into ArcMap compared to originals. When I turn off stretching, both histogram/gamma, results are nearly identical to original.

-marius
> To: gdal-dev at lists.osgeo.org<mailto:gdal-dev at lists.osgeo.org>
> From: andre+joost at nurfuerspam.de<mailto:andre+joost at nurfuerspam.de>
> Date: Thu, 7 Nov 2013 16:54:32 +0100
> Subject: Re: [gdal-dev] gdal_translate produces tif with different colors as original
>
> Am 06.11.2013 21:32, schrieb Jukka Rahkonen:
>
> > You're advised to preprocess your rasters with other
> > tools, such as pct2rgb.py or gdal_translate -expand RGB to operate
> > gdalbuildvrt on RGB rasters instead."
> >
>
> I proposed that, but have a look at the color palette of the VRT:
>
> <http://gis.stackexchange.com/questions/76662/gdal-translate-produces-tif-with-different-colors-as-original>
>
> Is it a fault of the source or the driver?
>
> Greetings,
> André Joost
>
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org<mailto: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/20131111/3cc7dc45/attachment.html>


More information about the gdal-dev mailing list