2014.07.12 -- optimized the dark channel calculation method
temp