Introduction - If you have any usage issues, please Google them yourself
Many different descriptions of retinex methods of lightness computation exist. This paper provides concise MATLAB implementations of two of the spatial techniques of making pixel comparisons. The code is presented along with test results on several images and a discussion of the results. The paper also discusses the calibration of input images and the post-retinex processing required to display the output images.