Single Image Dehazing by Predicting Atmospheric Scattering Parameters