[gdal-dev] gdalenhance command issue with stddev option

Even Rouault even.rouault at spatialys.com
Tue Jun 6 01:14:59 PDT 2017

On lundi 5 juin 2017 23:52:22 CEST naresh wrote:
> Dear Rahkonen,
> Thanks for the quick response. However with gdalenhace  -help  showing the
> -stddev option. Please find the attache screenshot.
>    [image: Inline image 1]
>  Is there any other mechanism/tool is available for enhancing the images
> with stddev option.

You can run gdalinfo -stats in.tif

note the mean and stddev values

and then compute

s_min=mean - factor * stddev
s_max= mean + factor * stddev

gdal_translate in.tif out.tif -scale s_min s_max 0 255

Best regards,


Spatialys - Geospatial professional services
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20170606/051fd1fe/attachment.html>

More information about the gdal-dev mailing list