Detecting fog/haze in a video frame
Hi,
I have a lot of video shot on my go-pro that isn't very clear when there is a lot of fog/haze. I am trying to write a program that can somehow detect the fog, apply a mask on the frame and give out a clearer video output. The end goal is to make the video clearer when used in foggy conditions.
Do you guys have any recommendations on what functions/algorithms I could use? Any kind of input that would atleast get me started is appreciated.
Thanks.
what have you tried so far ?
also, an example image would be helpful
Oh wait, you want your image processing to remove existing image data and replace it with data that is not there? Quite challenging. One thing I would suggest is to look for gradient information. Due to the fog gradients will be very smooth. Try to define local maxima and then make them strong edges using custom build filters. This should remove the foggy view!