[gdal-dev] Fwd: gdal_translate histogram conversion
Pierre Chaponniere
pierrechapo at gmail.com
Wed Jun 1 09:22:55 PDT 2022
Hello gdal community !
I'd like to submit your group a question in regards to the use of
gdal_translate function.
I am converting tif images (64bits, 6 bands multispectral) to jpg images
uint8 via the Qgis interface to operate in lot but I face issues with the
conversion of the histogram values.
It appears this gdal-translate truncate the histogram to the 255 first
values.
I therefore tried the scaling (-scale) argument using this line
-scale 0 65536 0 255
But it appears the resulting histogram is spiky (bottom plot)....compare to
the original histogram (top plot)
See image here
https://ibb.co/mGZHCR0
Any idea from your side on how to better represent histogram from this
gdal-translate conversion ?
Any help would be much appreciated !!
Thanks heaps.
Best regards,
Pierre Chaponniere
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20220601/357a5f6a/attachment.htm>
More information about the gdal-dev
mailing list