Here an implementation of the holy Retinex-filter. The idea behind it is splitting up the digital image into two parts. The luminance and the reflection image. With both parts you can for example increase the brightness without loosing color information. The retinex filter creates images that look more like the reality which is very interesting if you use a camera.
Imagine this in real-time on a webcam. All your problems with the scene appereance would be kicked away since you could level all images to the same brightness. EyeToy-like games could be played at night without even turning the light on.
This is a conversion from the MSCR (multiscale retinex with color restoration) implementation in gimp-2.3.7.
Have a look at the example picture and /as3/ip/filter/rgb/Retinex.as.




The link to the as file is not working anymore. Is this filter included in the image processing library ?