A novel switching bilateral filtering algorithm for depth map