Non-uniform spatial resource allocation for depth mapping
A method for depth mapping includes projecting a pattern of optical radiation into a volume of interest containing an object while varying an aspect of the pattern over the volume of interest. The optical radiation reflected from the object responsively to the pattern is sensed, and a depth map of the object is generated based on the sensed optical radiation.
1. A method for depth mapping, comprising:
projecting a pattern of optical radiation into a volume of interest containing an object while modulating the pattern as a function of angle over the volume of interest;
sensing a time of flight of the optical radiation reflected from the object responsively to the pattern; and
generating a depth map of the object based on the sensed time of flight.
2. The method according to claim 1 , wherein projecting the pattern comprises applying a varying spatial pattern to the projected optical radiation.
3. The method according to claim 1 , wherein projecting the pattern comprises applying a varying temporal pattern to the projected pattern.
4. The method according to claim 1 , wherein projecting the pattern comprises applying a combination of spatial and temporal patterns to the projected optical radiation.
5. The method according to claim 1 , wherein modulating the pattern comprises varying an intensity of at least a component of the pattern as a function of the angle.
6. The method according to claim 1 , wherein the pattern is modulated so as to optimize a three-dimensional (3D) resolution of the depth map.
7. Apparatus for depth mapping, comprising:
a radiation source, which is configured to project a pattern of optical radiation into a volume of interest containing an object while modulating the pattern as a function of angle over the volume of interest;
a sensor, which is configured to output a signal that is indicative, responsively to the pattern, of a time of flight of the optical radiation reflected from the object; and
a processor, which is configured to process the signal in order to generate a depth map of the object.
8. The apparatus according to claim 7 , wherein the radiation source is configured to apply a varying spatial pattern to the projected optical radiation.
9. The apparatus according to claim 7 , wherein the radiation source is configured to apply a varying temporal pattern to the projected optical radiation.
10. The apparatus according to claim 7 , wherein the radiation source is configured to apply a combination of spatial and temporal patterns to the projected optical radiation.
11. The apparatus according to claim 7 , wherein the pattern is modulated by varying an intensity of at least a component of the pattern as a function of the angle.
12. The apparatus according to claim 7 , wherein the pattern is modulated so as to optimize a three-dimensional (3D) resolution of the depth map.