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: 267
Joined: 2005-03-08T22:16:37-07:00

haze removal

Post by dognose » 2015-06-16T09:46:46-07:00

Image
Image

Wondering what IM commands could help with haze removal.

User avatar
fmw42
Posts: 25664
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: haze removal

Post by fmw42 » 2015-06-16T11:59:59-07:00

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