Hi,

On 10/10/22 16:46, Paul Harwood wrote:
Another more common way to address the problem is to perform a log transform on the image see https://theailearner.com/2019/01/01/log-transformation/ <https://theailearner.com/2019/01/01/log-transformation/>

I am not aware of any ootb log transform libraries. That link above does show how to do it in OpenCV and numpy. I would probably use Pillow my self and here is a link talking about how to do that - not my link and I have never used it so it could be wrong or very slow etc

https://pythontic.com/image-processing/pillow/logarithmic%20transformation 
<https://pythontic.com/image-processing/pillow/logarithmic%20transformation>

I guess the same thing could be done in GDAL.

Yes, of course... I do it a lot in my photography hobby. Could (should) have thought of this idea myself... Thanks for the pointer!

-Stefan

--
 (o_   Stefan Gofferje            | SCLT, MCP, CCSA
 //\   Reg'd Linux User #247167   | VCP #2263
 V_/_  https://www.gofferje.net   | https://www.saakeskus.fi

_______________________________________________
gdal-dev mailing list
[email protected]
https://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to