Adaptive Multi-Scale Retinex

Sounds pretty good, eh? Word on the street is that it's even better than contrast-limited adaptive histogram equalisation. Seems to have been invented a few times.

Those papers in full:

Haven't found any canned implementations, though.