haze removal

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
dognose
Posts: 265
Joined: 2005-03-08T22:16:37-07:00

haze removal

Post by dognose »

Image
Image

Wondering what IM commands could help with haze removal.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: haze removal

Post by fmw42 »

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
Post Reply