Fast bilateral filter for edge-preserving smoothing