The code is provided as is, with no guarantees. Comments and bug reports are welcome. While the code is not strictly supported, it is documented through the related publications. Note that, it may be used for non-commercial use only.
Currently available code (written in C++):
1. Color Constancy Through Inverse Intensity Chromaticity Space
[zip][project page]
2. Specular Highlight Removal From A Single Image
[zip]
[project page]
Note for those who are looking for the code of "visibility in bad weather from a single image": due to intellectual property rights that legally bind me, unfortunately I cannot release the code to the public. However, you might want to consider J.P. Tarel et al.'s paper and implementation: [external link].