| Because of the atmosphere scattering phenomenon,weather degraded images captured in fog suffer from poor contrast and low visibility.This significantly affects the traffic systems and outdoor visual systems.Hence,it is imperative to enhance the low-contrast images degraded by fog.The main task of this paper is to implement the image enhancement algorithm based on DM642 DSP platform including the debugging of hardware,the design of video device driver, the research,as well as implementation and optimization of the image enhancement algorithm. Firstly,this paper discusses the image enhancement algorithm based on histogram equalization and implements it on PC,and then uses the objective evaluation standard to contrast the performance of the traditional algorithm and improved algorithm.Secondly,the hardware platform of the real time image processing system is presented,and then the algorithm implementation is introduced.The algorithm optimization is introduced in the end of this paper which including the optimization using C language,liner assembler code optimization,Cache optimization,EDMA optimization and ping-pong structure optimization.Theoretical analysis and experimental results demonstrate that,methods used in this paper are effective for contrast enhancement of fog-degraded images,and can be applied to the practical situations.Through comparison of the clock cycles between the optimized and non-optimized versions,the result indicates that optimized algorithm is more effective than before,completely meeting the demand for real-time image processing. |