Fast Global Image Smoothing Based on Weighted Least Squares