CPC G06T 19/006 (2013.01) [G06F 3/012 (2013.01); H04N 13/128 (2018.05)] | 11 Claims |
1. A method for generating an augmented depth buffer for an augmented-reality device, the method comprising:
initializing a depth buffer configured to store first depth values for a first set of pixels by assigning a first predetermined value to each pixel of the first set of pixels;
initializing a stereo disparity depth buffer configured to store second depth values for a second set of pixels by assigning a second predetermined value to each pixel of the second set of pixels;
receiving, from an augmented-reality application, an application depth value for each pixel of a third set of pixels being a subset of or equal to the first set of pixels;
updating the depth buffer with the application depth value for each pixel of the third set of pixels;
receiving, from a stereo disparity processor, a stereo disparity depth value for each pixel of a fourth set of pixels being a subset of or equal to the second set of pixels;
updating the stereo disparity depth buffer with the stereo disparity depth value for each pixel of the fourth set of pixels; and
for each pixel of the augmented depth buffer, storing, in the augmented depth buffer and at a memory location that corresponds to the each pixel, the lesser of the application depth value or the stereo disparity depth value.
|