1. A method for performing optical flow on a depth map comprising a plurality of points, each point indicating a depth value, the method comprising: for each of at least one selected point in the depth map, determining an associated region comprising at least two of the points in the depth map including the respective selected point; processing each region by assigning a grayscale value to each point in the region as a function of each point's associated depth value; processing each region using an optical flow algorithm to determine optical flow vectors for the region; for each selected point, using the optical flow vectors for the associated region that includes the selected point to determine a new point location; and setting each selected point to a respective new point.