Illumination Estimation Based on Bilayer Sparse Coding