Retinex in Matlab


Brian Funt, Florian Ciurea, and John McCann "Retinex in Matlab," Proceedings of the IS&T/SID Eighth Color Imaging Conference: Color Science, Systems and Applications, 2000, pp 112-121.


Abstract:

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.


Full text (gzipped postscript) (large file: 2.5 Mb)

Full text (zipped pdf) (large file: 1.8 Mb)


Matlab code
Implementation of McCann99 retinex
Implementation of Frankle-McCann retinex

Test images
Figure 2: (8-bit TIFF synthetic image) input, McCann99 4-iteration output, Frankle-McCann 4-iteration output
Figure 3: (8-bit TIFF synthetic image) input, McCann99 4-iteration output
Figure 5: (16-bit TIFF linear image) input, McCann99 4-iteration output, Frankle-McCann 4-iteration output


Keywords: Retinex, color vision, human vision, color constancy, lightness, dynamic range compression


Back to SFU Computational Vision Lab publications (home)