Text this: Single image visibility restoration using optical compensation and pixel-by-pixel transmission estimation