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.