Image dehazing is a revolutionary technique for restoring images with hazy or foggy landscapes, that has gotten a lot of focus in recent years since it gained importance in a surveillance system. However, the image processing by the traditional defogging algorithm has difficulties in integrating the depth of image detail and the color of the image. Therefore, in this paper, a novel framework based on wavelet decomposition and optimized gamma correction is proposed for efficaciously retrieving the fog-free image. The foggy image is first divided into low and high frequency sub-images using SWT (Stationary Wavelet Transform), which has the advantages of preserving temporal features so that information loss can be stopped. Then the low frequency and high frequency images are processed with defogging and denoising modules to remove fog and noise respectively. The DOGC (Dragonfly optimal Gamma Correction) algorithm in dehazing module dynamically enhanced the color detail information without human intervention so that observed scene contrast and visibility are well preserved. Lastly, fog-free image is reconstructed from sub-enhanced images. The experimental findings show that the proposed framework outperforms state-of-the-art methods in terms of both quantitative and qualitative assessment criteria using the established dataset. Furthermore, the proposed method efficiently removes fog while preserving the naturalness of fog images.