If you are using this code in your publication, please cite our papers, Thanks. Gao Y, Hu H M, Wang S, et al. A fast image dehazing algorithm based on negative correction[J]. Signal Processing, 2014, 103(10):380-398.