Hi,
I have read your description and understood that you want an implementation of a image defogging paper.
I have previously worked on fog removal using dark channel prior (DCP), which is almost the same as your task. I already have the code for it and only need to make a few changes to it for this task. Contact me in chat to discuss further details