An algorithm for image enhancement based on the Retinex theory is proposed. The essence of Retinex theory is to abandon the illumination in the original image and to yield the reflectance image, that is, the original appearance of the object. The theory and realization of the algorithm are presented. A comparison of other conventional image enhancement algorithms and single - scale Retinex, Multi - scale Retinex and Multi -scale Retinex with color restoration shows that it has better performance in enhancin...