1. A method, comprising: receiving, at a video processing unit having a processor, a plurality of depth values corresponding to pixels of an image; and filtering, at the video processing unit, the image as a function of a plurality of variations in the depth values between adjacent pixels of a window associated with the image.