If on unix, see my script, retinex or space, autotone for example.
It also makes it more useful to anyone trying to demonstrate if you post individual before and after images, rather than ones that contain both. We now have to separate them and may not crop them to the same sizes.
Manually use -contrast-stretch and -gamma or just -equalize.
Code: Select all
convert haze.png -contrast-stretch 1x1% -auto-gamma result.png
User snibgo has an adaptive histogram equalize that probably works even better. See
http://im.snibgo.com/eqlimit.htm