1. A method for removing fog from images and/or videos comprising: (a) carrying out a histogram equalization such that a foggy image is equalized to increase contrast; (b) providing an airlight map of the foggy image and/or video; (c) refining the airlight map involving anisotropic diffusion and/or bilateral filtering; and (d) restoring the foggy image based on the refined airlight map involving a restoration process having flexibility to focus on the quality of the image and/or video at a required depth involving an extinction co-efficient for attenuation and airlight and performing a histogram stretching of the restored image if the restored image has low contrast.