Depth map using structured light and bloom
By combining structured light patterns and flood fill illumination, active brightness images are generated and depth maps are calculated, which solves the problem of inaccurate depth boundary detection in structured light depth sensing systems and achieves more accurate and robust depth reconstruction.
Patent Information
- Application Number
- CN201880054171.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2018-06-21
- Publication Date
- 2024-08-30
- Estimated Expiration
- 2038-06-21
AI Technical Summary
In existing structured light depth sensing systems, the pixels of points do not receive any illumination, resulting in inaccurate depth map reconstruction. In particular, it is difficult to detect accurate depth boundaries in the areas between points of structured light patterns.
Generates an active luminance image by combining a predetermined structured light pattern and flood fill lighting, detects and removes points of the structured light pattern, and calculates a depth map based on the received image and active luminance image, utilizing a stereo matching algorithm and supporting weights Filtering techniques to improve depth boundary accuracy.
It improves the accuracy and robustness of the structured light depth sensing system in detecting depth boundaries, reduces artifacts and discontinuities in depth maps, and enhances the ability to reconstruct scene depth.
Smart Images

Figure CN110998658B_ABST
Abstract
Description
Background Art
[0001] Conventional structured light depth sensing systems typically project a random dot pattern that provides enough texture to support stereo matching between a camera image and a pre-recorded dot pattern image. Summary of the invention
[0002] A method is provided, comprising: receiving an image of a scene illuminated by both a predetermined structured light pattern and flood fill lighting; generating an active luminance image of the scene based on the received image of the scene, comprising: detecting a plurality of points of the predetermined structured light pattern, and removing the plurality of points of the predetermined structured light pattern from the active luminance image; and generating a depth map of the scene based on the received image and the active luminance image.
[0003] This summary is provided to introduce some concepts in a simplified form, which will be further described in the detailed description below. This summary is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used to limit the scope of the claimed subject matter. Furthermore, the claimed subject matter is not limited to implementations that address any or all of the disadvantages mentioned in any part of this disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0004] Figure 1 A side perspective view of a computing device in the form of a head mounted display (HMD) device is shown in accordance with one embodiment of the present disclosure.
[0005] Figure 2A Shown by Figure 1 An example scene captured by a depth sensor of a computing device.
[0006] Figure 2B Shown by Figure 1 An example image of an example scene captured by a depth sensor of a computing device using a predetermined structured light pattern to illuminate the example image.
[0007] Figure 2C Shows the use of Figure 1 Example depth calculations for a depth sensor of a computing device.
[0008] Figure 3 Shown by Figure 1 An example region of interest in an image captured by a depth sensor of a computing device.
[0009] Figure 4A Shown by Figure 1 Another example image of an example scene captured by a depth sensor of a computing device using flood fill lighting.
[0010] Figure 4B Shown by Figure 1 Another example image of an example scene captured by a depth sensor of a computing device using both a predetermined structured light pattern and flood fill lighting.
[0011] Figure 5 Shows Figure 1 An example structured light illuminator for a depth sensor of a computing device.
[0012] Figure 6 Shows Figure 1 An example flood fill-light illuminator for a depth sensor of a computing device.
[0013] Figure 7 Shows Figure 1 An example depth sensor for a computing device.
[0014] Figure 8 Shows Figure 1 An example mixed light illuminator for a depth sensor of a computing device.
[0015] Fig. 9 Shows Figure 1 Another example of a depth sensor for a computing device.
[0016] Fig.10 Shown for use Figure 1 An example method for generating a depth map using a depth sensor of a computing device.
[0017] Fig.11 Shown for use Figure 1 Another example method of generating a depth map using a depth sensor of a computing device.
[0018] Fig. 12A Shown by Figure 1 An example image captured by the depth sensor camera 24 of the computing device.
[0019] Fig. 12B Shown based on Figure 1 An example active brightness image generated from an image captured by the depth sensor camera 24 of the computing device.
[0020] Fig.13 Shown based on Figure 1 An example active brightness image generated from an image captured by the depth sensor camera 24 of the computing device.
[0021] Fig.14 continue Fig.11 Example method.
[0022] Fig.15A Shown by Figure 1An example image captured by the depth sensor camera 24 of the computing device.
[0023] Fig. 15B Shown for Figure 1 An example pre-recorded image of a predetermined structured light pattern of a depth sensor of a computing device.
[0024] Fig.16A Shown by Figure 1 An example depth map of an example image captured by a depth sensor of a computing device.
[0025] Fig. 16B Shown by Figure 1 An example of an example image captured by a depth sensor of a computing device supports weighting.
[0026] Fig.17 Shown is a Figure 1 An example depth map of accurate depth boundaries of an example image captured by a depth sensor of a computing device.
[0027] Fig.18 continue Fig.11 Example method.
[0028] Fig.19A Shown by Figure 1 An example image captured by the depth sensor camera 24 of the computing device.
[0029] Fig.19B Shown for Figure 1 An example pre-recorded image of a predetermined structured light pattern of a depth sensor of a computing device.
[0030] Fig. 20 Shown by Figure 1 An example sparse depth map for an example image captured by a depth sensor of a computing device.
[0031] Fig.21 An example computing system according to an embodiment of the present description is shown. DETAILED DESCRIPTION
[0032] As described above, conventional structured light depth sensing systems typically project a dot pattern that provides sufficient texture to support stereo matching between a camera image and a pre-recorded dot pattern image. However, in these structured light depth sensing systems, pixels that do not observe a dot do not receive any illumination. As a result of this missing input, current point-based structured light depth maps typically have depth boundaries that are inaccurately reconstructed. The systems and methods described herein have been designed to address these challenges.
[0033] Figure 1A computing device 10 is illustrated in the form of a head mounted display (HMD) device 12. According to examples of the present disclosure, the HMD device 12 may be worn by a user. In other examples, the computing device 10 may take other suitable forms, such as, for example, a desktop computing device, a game console, a laptop computer, a wrist-worn computing device, or a mobile computing device.
[0034] exist Figure 1 In the example of FIG. 1 , HMD device 12 includes frame 14 that wraps around the user's head to position display device 16 close to the user's eyes. The frame supports additional components of HMD device 10, such as, for example, processor 18 and depth sensor 20. Depth sensor 20 may be configured to generate a depth map of the physical environment in front of depth sensor 20 of HMD device 12.
[0035] In one example, the depth sensor 20 includes one or more illuminators 22 and one or more cameras 24. The processor 18 includes logic and associated computer memory, and the processor 18 is configured to provide image signals to the display device 16, receive image signals from the one or more cameras 24, and perform various control processes described herein. For example, the processor 18 may include a logic processor, and the computing device 10 may include volatile memory and non-volatile memory that communicate with the display device 16 and the depth sensor 20, as described below with respect to Fig.21 An example computing system 100 is discussed in greater detail.
[0036] like Figure 1 As illustrated in , the depth sensor 20 includes an illuminator 22 that is configured to emit both a predetermined structured light pattern 26 and flood fill lighting 28 onto a scene, such as, for example, a physical environment in front of the HMD device 12 worn by a user. In the illustrated example, the emitted predetermined structured light pattern 26 is a dot-based speckle pattern. The dots of a typical structured light pattern are typically small points of light and may, for example, have a diameter of one pixel or two pixels when striking a light sensor of a camera 24 within the depth sensor 20 after being reflected back to the depth sensor 20. Additionally, a typical structured light pattern may include one of these dots for every 25 camera pixels. However, it will be understood that any suitable size of dots and dot-to-camera pixel density may be utilized in the predetermined structured light pattern 26 to achieve suitable performance and accuracy, such as a dot diameter of 2, 3, or 4 pixels and a dot density of 1 dot for every 4, 9, 16, 25, or 36 camera pixels. Additionally, as Figure 1As illustrated in , the points of the structured light pattern are generally not placed in a uniform grid pattern. A specific pattern of points for a predetermined structured light pattern can be generated so that each region of interest (i.e., block) covering one or more points will be detectably different from every other region of interest (i.e., block). The texture provided by the pattern of points can be used by the processor 18 to perform stereo matching between the regions of interest in the predetermined structured light pattern emitted by the illuminator 22 and the corresponding regions of interest in the image captured by the camera 24. It will be appreciated that the above description and Figure 1 The predetermined structured light pattern 26 illustrated in FIG. 2 is merely exemplary, and the predetermined structured light pattern 26 may take other suitable forms.
[0037] like Figure 1 As further illustrated in FIG. 1 , the emitted flood fill lighting 28 is diffuse lighting that generally has a uniform intensity when emitted. Additionally, as Figure 1 , the flood fill lighting 28 may be emitted with a lower light intensity than the emitted predetermined structured light pattern 26. In one example, the flood fill lighting 28 may be emitted with one-tenth, one-eighth, one-quarter, or one-half the intensity of the predetermined structured light pattern 26. However, it will be understood that other intensity ratios between the flood fill lighting 28 and the predetermined structured light pattern 26 may be utilized by the illuminator 22.
[0038] The depth sensor 20 also includes a camera 24 configured to capture an image of a scene illuminated by the predetermined structured light pattern 26 and the flood fill lighting 28. In one example, the illuminator 22 is configured to emit both the predetermined structured light pattern 26 and the flood fill lighting 28 concurrently, and the camera 24 is configured to capture an image of a scene illuminated by both the predetermined structured light pattern 26 and the flood fill lighting 28 concurrently. In another example, the illuminator 22 is configured to emit the predetermined structured light pattern 26 and the flood fill lighting 28 sequentially, and the camera 24 is configured to capture at least two images, one image of the scene illuminated by the predetermined structured light pattern 26 and a second image of the scene illuminated by the flood fill lighting 28.
[0039] One or more images of a scene captured by the camera 24 are received by the processor 18, which is configured to generate a depth map of the scene based on the images including both the predetermined structured light pattern 26 and the flood fill lighting 28. The processor 18 may be configured to generate a depth map of the scene using a suitable structured light depth map method such as, for example, a block or tile matching algorithm. However, it will be understood that any suitable structured light depth map algorithm may be utilized to generate a depth map using images captured by the camera 24 of the depth sensor 20.
[0040] Figure 2A An example scene 30 including a background depth 32 and a foreground depth 34 is illustrated. In this example, the foreground depth 34 is a rectangular object that is closer to the HMD device 12 than the background depth 32, which may be, for example, a wall, a table, another object, etc. As previously described, the illuminator 22 of the depth sensor 20 projects a predetermined structured light pattern 26 onto the example scene 30, and the camera 24 captures an image of the example scene 30 illuminated by the predetermined structured light pattern 26.
[0041] Figure 2B An example image 36A of an example scene 30 illuminated only by a predetermined structured light pattern 26 is illustrated. Figure 2B , the size of the dots is exaggerated for ease of illustration. As shown, example image 36A includes an imaged predetermined structured light pattern 26L, which is the emitted predetermined structured light pattern 26 reflected from example scene 30 and received by camera 24. Because camera 24 is spaced apart from illuminator 22, imaged predetermined structured light pattern 26L includes dots having different imaged positions compared to corresponding dots in emitted predetermined structured light pattern 26. For dots reflected from foreground objects closer to depth sensor 20, the binocular parallax between corresponding dots is greater, and for dots reflected from background objects farther from depth sensor 20, the binocular parallax between corresponding dots is smaller.
[0042] like Figure 2C As illustrated in , in a structured light depth map algorithm, the processor 18 may be configured to calculate the depth in the scene based on the binocular disparity between the points of the emitted structured light pattern 26 emitted from the position of the illuminator 22 and the points of the imaged structured light pattern 26L viewed from the position of the camera 24. As previously described, the point-based predetermined structured light pattern emitted by the illuminator 22 projects a rich texture onto the scene, which can be used by the processor 18 to perform stereo matching between regions of interest. In an example structured light depth map algorithm, the reference image in the stereo pair is an image of the scene captured by the camera 24. The second image in the stereo pair is a virtual image that shows the image that the illuminator 22 would see if it were a camera. It will be understood that the virtual image remains constant regardless of the scene content and can be pre-recorded. That is, the virtual image is a predetermined structured light pattern emitted from the illuminator 22. In one example algorithm, processor 18 is configured to determine, for each pixel P of the reference view imaged by camera 24, via a suitable stereo matching algorithm, a corresponding pixel P' in the second view of the virtual camera at the location of illuminator 22. Processor 18 calculates the corresponding 3D point P1 by intersecting ray F1P with ray F2P, where F1 is the focus of camera 24, where F2 is the focus of the virtual camera at the location of illuminator 24.
[0043] In one example, processor 18 performs stereo matching on the region of interest. Figure 3 Sixteen regions of interest are illustrated, including a first region of interest R1. As shown, the first region of interest R1 includes an arrangement of three points D1, D2, and D3, which have specific positions in the first region of interest R1 and have specific distances from each other point in the first region of interest R1. As shown, the specific arrangement of points in the first region of interest R1 is different from the arrangement of points in each other region of interest. In this way, the texture provided by the predetermined structured light pattern 26 provides a different and detectable arrangement of points for each region of interest. Therefore, in one example, the processor 18 can be configured to: based on the detected arrangement of points within the region of interest, perform stereo matching between the region of interest in the reference image captured by the camera 24 and the region of interest in the pre-recorded virtual image. After determining the corresponding region of interest, the processor 18 can be configured to perform stereo matching between the region of interest in the reference image captured by the camera 24 and the region of interest in the pre-recorded virtual image. Figure 2C The method described herein calculates the depth value of each region of interest in the reference image. It will be appreciated that for illustrative purposes, Figure 3 Sixteen regions of interest are depicted, and in general the processor 18 may be configured to process any suitable number of regions of interest. Typically, the processor 18 may process hundreds of regions of interest when generating a depth map for each reference image captured by the camera 24. For example, each region of interest may be a 5 by 5 pixel region. In another example, each region of interest may be a 25 by 25 pixel region. The size of the region of interest may be selected to achieve a suitable balance between performance and accuracy of the depth map.
[0044] return Figure 2B , the areas between the points of the predetermined structured light pattern 26 generally do not receive illumination from the emitted predetermined structured light pattern 26. Therefore, based on the predetermined structured light pattern 26 alone, it may be difficult to calculate accurate depth data for the edges of objects in the scene located between the points of the predetermined structured light pattern 26.
[0045] As previously described, luminaire 22 is further configured to emit flood fill lighting 28 onto the scene. Figure 4A The illustration shows a flood fill lighting 28, Figure 2A36B of the same example scene 30 of FIG. 2 . The flood fill lighting 28 projects diffuse illumination of substantially uniform intensity across the area of the scene imaged by the camera 24. However, due to light attenuation, the intensity of light imaged by the camera 24 will be different depending on how close or far away objects in the scene are positioned from the camera 24. The light intensity of the flood fill lighting 28 reflected from closer objects in the scene will be imaged at a higher intensity than the light intensity of the flood fill lighting 28 reflected from farther objects in the scene. Therefore, as shown in the example image 36B, objects at foreground depth 34 in the scene are imaged at a higher intensity than objects at background depth 32. Additionally, when the flood fill lighting 28 projects uniform illumination, each pixel of the image captured by the camera 24 will receive light data from the flood fill lighting 28. Therefore, a large depth parallax between two pixels in the example image 36B indicates an edge of an object in the example scene 30. In this way, the processor 18 can be configured to detect depth parallax in an image based on light intensity parallax, and detect edges of objects in the scene based on the detected depth parallax. However, while flood fill lighting 28 may be used to detect edges in a scene, it will be appreciated that calculating absolute depth values for objects in the scene based solely on flood fill lighting 28 may be difficult or resource intensive.
[0046] In one example, the camera 24 is configured to capture a first image of a scene illuminated by a predetermined structured light pattern 26 and a second image of the scene illuminated by flood fill lighting 28. In this example, the processor 18 may be configured to generate a depth map of the scene by performing stereo matching with the first image and using the second image as a guide image for accurate edge reconstruction. However, it will be understood that due to the time difference between the time when the first image and the second image are captured, a perspective shift may occur due to the user wearing the HMD device 12 moving their head. This perspective shift may reduce the accuracy of the depth map generated for the scene.
[0047] Thus, in another example, the camera 24 is configured to capture images of a scene that is concurrently illuminated by both the predetermined structured light pattern 26 and the flood fill lighting 28 . Figure 4B An example image 36C of an example scene 30 is illustrated that is illuminated by both a predetermined structured light pattern 26 and a flood fill illumination 28. As shown, the flood fill illumination 28 is emitted with a lower intensity than the predetermined structured light pattern 26. In this manner, each pixel in the example image 26C receives at least some illumination. As previously described, the flood fill illumination 28 enables the processor 18 to determine depth discontinuities / disparities in the image to detect edges, and the predetermined structured light pattern 26 enables the processor 18 to calculate absolute depth values for each region of interest in the image.
[0048] In one example, the predetermined structured light pattern 26 and the flood fill lighting 28 are emitted as infrared light. In this example, the illuminator 22 can be configured to emit infrared light in a predetermined frequency band of infrared light. For example, the illuminator 22 can include a diode laser configured to emit light in the infrared spectrum. In particular, the diode laser can be configured to emit light in a small predetermined frequency band in the infrared spectrum. In addition, in this example, the camera 24 can be configured to be sensitive to infrared light in a predetermined frequency band. That is, the camera 24 can be configured to respond to infrared light having a wavelength within a predetermined frequency band, and to respond less or not to any light having a wavelength outside the predetermined frequency band. For example, the camera 24 can include a bandpass filter configured to filter out light outside the predetermined frequency band of infrared light. In this way, the depth sensor 20 can be configured to filter out potential noise from ambient light having a wavelength outside the predetermined frequency band.
[0049] Steering Figure 5 , the illuminator 22 may include both a structured light illuminator and a flood fill light illuminator. Figure 5 A structured light illuminator 38 is illustrated that includes a first light emitter 40 and a diffractive optical element 42, the structured light illuminator 38 being configured to emit a predetermined structured light pattern 26. The diffractive optical element 42 is configured to generate constructive and destructive interference using a diffraction grating to generate a predetermined structured light pattern from the light emitted by the first light emitter 40. In one example, the diffractive optical element 42 receives light from a single-mode laser diode having a beam quality that is near the diffraction limit, and outputs a predetermined structured light pattern. Thus, in this example, the first light emitter 40 may take the form of a single-mode diode laser. Typically, these single-mode diode lasers may have an output power capability of less than 200 mW. It will be appreciated that the structured light illuminator 38 may generate a predetermined structured light pattern other than the light emitted by the first light emitter 40. Figure 5 Other types of structured light patterns other than the spot pattern illustrated in . For example, the diffraction grating of the diffractive optical element 42 can be configured to generate other suitable illumination patterns, including other dot patterns, line-based patterns, and other engineered patterns.
[0050] Figure 6A flood fill light illuminator 44 is illustrated, which includes a second light emitter 46 and a diffuser optical element 48, the flood fill light illuminator 44 being configured to emit the flood fill illumination 28. In one example, the diffuser optical element 48 is configured to homogenize and disperse the incident light using a geometric optical device such as, for example, a microlens array. In another example, the diffuser optical element 48 can take the form of a uniform flat-top diffractive optical element that is configured to transform a single-mode or multi-mode input beam into an output beam having a uniform flat-top intensity. In this manner, the diffuser optical element 48 receives light from the second light emitter 46 in the form of a high-powered multi-mode diode laser and outputs the flood fill illumination 28 onto the scene in front of the depth sensor 20. In this example, the second light emitter 46 is configured as a high-powered multi-mode diode laser and can be configured to have a pulse peak power greater than 30W. In another example, the second light emitter 46 may take the form of a light emitting diode having a matching wavelength that is configured to emit onto the scene the flood fill lighting 28. It will be appreciated that the above-described example light emitters and optical elements are merely exemplary, and any other suitable configuration may be used to generate the predetermined structured light pattern 26 and the flood fill lighting 28.
[0051] Figure 7 An example depth sensor 20 is illustrated that includes a camera 24 and an illuminator 22, the illuminator 22 including both a structured light illuminator 38 and a flood fill light illuminator 44 as described above. As shown, the illuminator 22 is spaced a distance D from the camera 24. The distance D can be set according to the expected scene or environment in which the HMD device 12 will be used. A larger distance D will cause a larger binocular disparity between the reference image captured by the camera 24 and the virtual image that the camera at the location of the illuminator 22 will see. Therefore, a larger distance D can increase the range of depths that can be detected using the stereo techniques described herein. However, a larger distance D also increases the size of the depth sensor 20. Therefore, the distance D can be set to achieve a suitable size and performance.
[0052] In one example, structured light illuminator 38 and flood fill light illuminator 44 are located at coaxial positions on depth sensor 20 that are substantially equidistant from camera 24. In the illustrated example, structured light illuminator 38 and flood fill light illuminator 44 are coaxial along axis A, which is perpendicular to the axis of distance D between camera 24 and illuminator 22. Figure 7, structured light illuminator 38 and flood fill light illuminator 44 are substantially equidistant from camera 24. Thus, in this example, structured light illuminator 38 and flood fill light illuminator 44 have substantially the same baseline distance D from camera 24, which may simplify depth calculations performed by processor 18.
[0053] As previously described, the illuminator 22 may be configured to emit a predetermined structured light pattern 26 and flood fill lighting 28 concurrently or separately. Figure 7 In the example depth sensor 20 illustrated in FIG. 1 , the structured light illuminator 38 and the flood fill illuminator 44 comprise separate light emitters and may be controlled by the processor 18 to achieve appropriate timing, such as concurrently or separately. In one example, the structured light illuminator 38 and the flood fill illuminator 44 are configured to emit a predetermined structured light pattern 26 and the flood fill lighting 28 at separate points in time, and the camera 24 is configured to capture a first image of a scene illuminated by the predetermined structured light pattern 26 and a second image of a scene illuminated by the flood fill lighting 28. Figure 2B An example first image of a scene is illustrated in , which, as described above, is an example image 36A of an example scene 30 illuminated only by the predetermined structured light pattern 26 . Figure 4A An example second image of a scene is illustrated, which is an example image 36B of an example scene 30 illuminated only by the flood fill lighting 28, as described above. Based on the first image and the second image, the processor 18 can be configured to use the depth disparity detected in the second image 26B as an edge guide for a depth map generated using the first image 36A using a stereo matching algorithm. Emitting light from the structured light illuminator 38 and the flood illuminator 44 at separate points in time can potentially reduce the overall output power required for illumination and reduce shot noise from the sensor. However, as previously described, the time that elapses between the capture of the first image and the second image may introduce motion blur between the captured images due to the user of the HMD device 12 moving their head between the images.
[0054] In another example, the structured light illuminator 38 and the flood fill light illuminator 44 are configured to concurrently emit the predetermined structured light pattern 26 and the flood fill lighting 28, and the camera 24 is configured to capture an image of the scene concurrently illuminated by both the predetermined structured light pattern 26 and the flood fill lighting 28. Figure 4B, which is an example image 36C of an example scene 30 illuminated by both the predetermined structured light pattern 26 and the flood fill illumination 28, as described above. Similarly, the processor 18 can be configured to use the depth disparity detected based on the imaged flood fill illumination 28 as an edge guide for a depth map generated using the imaged predetermined structured light pattern 26 using a stereo matching algorithm. By capturing a single image of a scene illuminated using both the predetermined structured light pattern 26 and the flood fill illumination 28 concurrently, potential motion blur can be minimized. However, concurrently emitting both the predetermined structured light pattern 26 and the flood fill illumination 28 can potentially increase the overall output power required of the depth sensor 20.
[0055] Figure 8 A hybrid light illuminator 50 is illustrated that includes a light emitter 52 and a hybrid diffractive optical element 54, the hybrid light illuminator 50 being configured to emit both a predetermined structured light pattern 26 and a flood fill illumination 28. As shown, the emitted light 56 from the hybrid light illuminator 50 is a superposition of the predetermined structured light pattern 26 and the flood fill illumination 28. In one example, the hybrid diffractive optical element 54 includes a first diffractive portion 54A configured for the predetermined structured light pattern 26 and a second diffractive portion 54B configured for the flood fill illumination 28. That is, the first diffractive portion 54A includes a diffractive pattern of the predetermined structured light pattern 26, and the second diffractive portion 54B includes a top-hat diffractive pattern of the flood illumination 28. When passing through the hybrid diffractive optical element 54, the light emitted from the light emitter 52 samples both the first diffractive portion 54A and the second diffractive portion 54B, thereby generating a light pattern that is a superposition of the predetermined structured light pattern 26 and the flood fill illumination 28.
[0056] In one example, the ratio between the first diffractive portion 54A and the second diffractive portion 54B can be set to achieve a suitable ratio between the intensity of the emitted predetermined structured light pattern 26 and the intensity of the flood fill lighting 28. For example, the hybrid diffractive optical element 54 can include a larger portion of the first diffractive portion 54A compared to the second diffractive portion 54B, so that the hybrid light illuminator 50 emits the flood fill lighting 28 at a lower light intensity than the predetermined structured light pattern 26. In a specific example, the hybrid light illuminator 50 can be configured to emit the flood fill lighting 28 at one-tenth, one-eighth, one-quarter, or one-half of the light intensity of the predetermined structured light pattern. However, it will be understood that the hybrid light illuminator 50 can be configured to emit other suitable ratios of light intensity between the flood fill lighting 28 and the predetermined structured light pattern 26, such as, for example, a ratio of 1 to 6, a ratio of 1 to 5, etc.
[0057] Fig. 9An example depth sensor 20 is illustrated that includes a camera 24 and an illuminator 22 including a mixed light illuminator 50. In one example, a predetermined structured light pattern 26 and a flood fill illumination 28 are co-alignedly emitted from the mixed light illuminator 50. That is, both the predetermined structured light pattern 26 and the flood fill illumination 28 are emitted from the same light source, namely the mixed light illuminator 50. As illustrated, the mixed light illuminator 50 is spaced apart from the camera 24 by a baseline distance D. As previously described, the baseline distance D can be set to achieve a suitable size and performance of the depth sensor 20.
[0058] Fig.10 An example method 1000 for generating a depth map using the depth sensor 20 described herein is shown. At step 1002, the method 1000 may include emitting both a predetermined structured light pattern 26 and a flood fill lighting 28 onto a scene. As described above, the depth sensor 20 includes an illuminator 22, which is configured to emit both a predetermined structured light pattern 26 and a flood fill lighting 28. In one example, the illuminator 22 may include a structured light illuminator 38 and a flood fill light illuminator 44, which may be configured to emit the predetermined structured light pattern 26 and the flood fill lighting 28 concurrently or at separate points in time. In another example, the illuminator 22 may include a mixed light illuminator 50, which is configured to coaxially emit both the predetermined structured light pattern 26 and the flood fill lighting 28 onto the scene.
[0059] At step 1004, method 1000 may include capturing an image of a scene illuminated by the predetermined structured light pattern 26 and the flood fill lighting 28. The image of the scene is captured by camera 24 of sensor device 20. In one example where illuminator 22 is configured to emit the predetermined structured light pattern 26 and the flood fill lighting 28 at separate points in time, step 1004 may include capturing a first image of the scene illuminated by the predetermined structured light pattern 26 and a second image of the scene illuminated by the flood fill lighting 28.
[0060] At step 1006, method 1000 may include generating a depth map of the scene based on an image that includes both the predetermined structured light pattern 26 and the flood fill lighting 28. Several methods of generating a depth map with accurate depth boundary reconstruction based on an image of a scene that includes both the predetermined structured light pattern 26 and the flood fill lighting 28 are discussed below.
[0061] Fig.11An example method 1100 is shown for generating a depth map using a captured image of a scene illuminated by both the predetermined structured light pattern 26 and the flood fill lighting 28 described above. In one example, the example method 1100 may be implemented by a processor 18 of a computing device 10, which may take the form of an HMD device 12, for example. At step 1102, the example method 1100 may include receiving an image of a scene illuminated by both the predetermined structured light pattern 26 and the flood fill lighting 28. The image of the scene may be captured by the camera 24 of the depth sensor 20 described above with reference to the example method 1000. Fig. 12A An example image 36D of an example scene is illustrated. In this example, illuminator 22 is configured to emit a predetermined structured light pattern 26 and flood fill lighting 28 in the infrared range, and camera 24 is configured to be sensitive to light in the infrared range. Therefore, each pixel of example image 36D has an intensity value proportional to the intensity of infrared light captured by camera 24 at that pixel. Fig. 12A , reflections of the predetermined structured light pattern 26 are captured by the camera 24 as a plurality of dots 58. Pixels within the plurality of dots 58 of the example image 36D have higher intensity values than pixels outside of the plurality of dots 58 of the example image 36D, which may be illuminated only by the flood fill illumination 28.
[0062] At step 1104 , example method 1100 may include generating an active luminance image of the scene based on the received image of the scene. Fig. 12B An example live luminance image 60 generated based on an example image 36D of an example scene is illustrated. In one example, the processor 18 is configured to initialize the example live luminance image 60 by copying the intensity values of the example received image 36D pixel by pixel. However, the example received image 36D includes a plurality of points 58 of reflections from the predetermined structured light pattern 26 that have a higher intensity than the surrounding flood fill illumination 28. Therefore, a naive edge guidance algorithm that uses the received image 36D itself as a guidance image to filter a depth map generated using the predetermined structured light pattern 26 may interpret the intensity gradient at the edge of each of the plurality of points 58 as a depth boundary in the scene, thereby introducing depth artifacts in the filtered depth map. Therefore, in one example, the example method 1100 can be configured to remove the plurality of points 58 from the example live luminance image 60 copy of the received image 36D, as described in the following steps.
[0063] At step 1106, example method 1100 may include detecting a plurality of points of a predetermined structured light pattern. Fig. 12AIn the example illustrated in , the processor 18 implementing the example method 1100 may be configured to detect a plurality of points 58 in the received image 36D that are the result of the emitted predetermined structured light pattern 26 reflecting from objects in the scene and impinging on the light sensor of the camera 24 of the depth sensor 20. In one example, the processor 18 may be configured to detect the plurality of points 58 based on the characteristic shapes and sizes of the individual shapes of the predetermined structured light pattern 26. For example, the predetermined structured light pattern 26 may include circular points having a diameter of one or two pixels, and the processor 18 may be configured to detect groups of intensity values that are circular in shape and have a diameter of one or two pixels in the active brightness image. It will be understood that the point-based pattern examples described herein are exemplary, and the processor 18 may be configured to identify any suitable type of predetermined structured light pattern 26 that the illuminator 22 of the depth sensor 20 may be configured to emit. In another example, the processor 18 may be configured to detect a specific range of intensity values. As previously described, the predetermined structured light pattern 26 is emitted at a higher light intensity than the flood fill illumination 28. In this example, processor 18 may be configured to determine that pixels in the active brightness image having intensity values that are higher than the expected intensity of flood fill lighting 28 correspond to reflected light from predetermined structured light pattern 26. It will be appreciated that the above-described method of detecting a plurality of points of predetermined structured light pattern 26 is merely exemplary, and other suitable detection methods may be implemented by processor 18.
[0064] At step 1108, the example method 1100 may include removing the plurality of dots 58 of the predetermined structured light pattern 26 from an active luminance image that includes pixel-by-pixel replicated intensity values from the received image 36D. For pixels covered by the plurality of dots 58, simply removing the plurality of dots 58 by deleting the corresponding intensity values or setting the corresponding intensity values to default values may introduce holes in the active luminance image and potentially cause depth artifacts in a depth map filtered using such an active luminance image. Therefore, the example method 1100 may also include patching the pixels covered by the detected plurality of dots 58 with appropriate intensity values.
[0065] At step 1110 , the example method 1100 may include, for each point in the plurality of points 58 of the predetermined structured light pattern 26 , patching a pixel corresponding to the point with an intensity value. Fig.13An example of patching intensity values for an example active luminance image 60 is shown. In order to reduce or minimize potential depth artifacts, the processor 18 may be configured to patch a pixel corresponding to one of the multiple points 58 using an intensity value from another pixel that is located on the same or substantially similar depth plane as the point. In one example, step 1110 may include sub-step 1112 of the example method 1100 and may include sampling intensity values from pixels outside the point in the image. The intensity value may be sampled from another pixel within a threshold pixel distance of the outer edge of the point, such as within two pixels, within three pixels, or within another suitable threshold pixel distance. In one example, the sampled intensity value may be the average or median of each other pixel within the threshold pixel distance. In another example, the intensity value is sampled from the nearest neighboring pixel outside the point. That is, the processor 18 may be configured to select a pixel that borders the pixel corresponding to the point, copy the intensity value from the selected pixel, and patch all pixels in the active luminance image corresponding to the particular point in the multiple points 58.
[0066] exist Fig.13 In the illustrated example, the processor 18 detects a first point 58A and its corresponding pixel set in the active brightness image covered by the point, and selects the nearest neighboring pixel outside the pixel set. In the illustrated example, the processor 18 selects pixel P1, which borders the pixel set corresponding to the first point 58A. Next, the processor 18 is configured to copy the intensity value V1 of the pixel P1 in the active brightness image, and use the intensity value V1 to patch each pixel in the pixel set corresponding to the first point 58A. The processor 18 continues the patching process for each point in the plurality of points 58. For example, the second point 58B located on a different depth plane from the first point 58 is patched with a different intensity value V2 from a different pixel P2, which borders the pixel set corresponding to the second point 58B. In this way, the processor 18 uses the appropriate intensity values of other pixels located on the same depth plane as the pixels covered by each of the plurality of points 58 to patch each of those points. Fig. 12B An example active luminance image 60 is illustrated after patching each of the plurality of points 58 with a suitable intensity value according to the method described above.
[0067] At step 1114, example method 1100 may include generating a depth map of the scene based on the received image and the active luminance image. Fig. 12A and Fig. 12BIn the illustrated example, the processor 18 may be configured to generate a depth map of the example scene using as input the example received image 36D and the example live luminance image 60. In one example, the processor 18 may be configured to calculate a depth value for each pixel in the received image 36D based on an imaged predetermined structured light pattern, which in the illustrated example is a plurality of dots 58. Additionally, the processor 18 may be configured to filter or guide the calculated depth value for each pixel based on the example live luminance image 60 to accurately reconstruct depth boundaries in the example scene.
[0068] Step 1114 may include three different sets of sub-steps for generating a depth map of the scene based on the received image and the active brightness image. These sub-steps are described in Fig.14 and Fig.18 Continue. Fig.14 As shown in , the first set of sub-steps includes sub-steps 1116 and 1118. At sub-step 1116, the example method 1100 may include performing stereo matching between the received image and a pre-recorded image of a predetermined structured light pattern. In one example, the pre-recorded image of the predetermined structured light pattern 26 is a virtual image that a virtual camera at the location of the illuminator 22 would see. As previously described, since the perspective of the pre-recorded image is along the same axis as the predetermined structured light pattern 26 emitted from the illuminator 22, the pre-recorded image remains constant regardless of the content of the scene mapped by the depth sensor 20. Therefore, the received image captured by the camera 24 and the pre-recorded image representing the virtual camera at the location of the illuminator 22 form a stereo pair.
[0069] In one example, the processor 18 implements a stereo matching process to match each pixel of the received image with a corresponding pixel of the pre-recorded image so that the matched pixels view the same location in the scene. To perform stereo matching, the processor 18 can be configured to center a matching window or region of interest around each pixel of the received image and select a corresponding matching window or region of interest from the pre-recorded image based on the similarity between the intensity values of each pixel in a potential pair of matching windows or regions of interest. Fig.15A An example candidate region of interest R3 is illustrated centered around a candidate pixel P3 of a received image 36D from an example scene. In the illustrated example, the size of the dots, the size of the pixels, and the region of interest are exaggerated for ease of illustration. Typically, the diameter of each dot of the predetermined structured light pattern 26 may be one to two pixels, and the size of the region of interest may be five pixels by five pixels. However, it will be appreciated that the size of the dots of the predetermined structured light pattern and the size of the region of interest may be selected to achieve suitable efficiency and accuracy of the stereo matching algorithm. Additionally, although Fig.15A and Fig. 15B The region of interest illustrated in FIG. 5 is depicted as a square, but it will be appreciated that the region of interest may take the form of any suitable shape, such as a circle, a triangle, a rectangle, or the like.
[0070] exist Fig.15A In the illustrated example, the candidate region of interest R3 centered around the candidate pixel P3 contains three points of the plurality of points 58 at specific locations within the candidate region of interest R3. In this example, the processor 18 may be configured to iterate through the plurality of points 58. Fig. 15B , to find a matching region of interest having the highest degree of match correspondence with the candidate region of interest R3. For example, the region of interest R4' from the pre-recorded image 62 includes only two points of the predetermined structured light pattern 26 at different relative positions within the region of interest R4' compared to the specific relative positions of the three points within the candidate region of interest R3. By performing a pixel-by-pixel intensity value comparison between the candidate region of interest R3 and the region of interest R4' from the pre-recorded image 62, the processor 18 can determine that the two illustrated regions of interest have a low degree of match correspondence. On the other hand, by performing the same process on the region of interest R3' from the pre-recorded image 62, the processor 18 can determine that the candidate region of interest R3 and the region of interest R3' from the pre-recorded image 62 have a higher degree of match correspondence of the pixel intensity values within the two regions of interest. After determining that the two regions of interest R3 and R3' match, the processor 18 can be configured to determine that the candidate pixel P3 at the center of the candidate region of interest R3 and the matching pixel P3' at the center of the matching region of interest R3' form a stereo pair, and the reference Figure 2C The method described is to calculate the depth value of the candidate pixel P3 of the example received image 36D.
[0071] Fig.16A The diagram shows the use of the above reference Fig.15A and Fig. 15B The stereo matching process described is for an example depth map 64 generated for an example received image 36D. As shown, edges in the example depth map 64 may be blown out and inaccurate at depth boundaries in the scene. Block / tile matching algorithms that use only structured light as input typically suffer from inaccurate edges because typical structured light depth sensors do not provide light data for pixels in the spaces between structured light, which makes it difficult to detect edges / depth boundaries in those spaces between structured light and cannot be accurately reconstructed when generating the depth map. However, the example active luminance image 60 includes light intensity data for all pixels in the image of the scene and can be used by the processor 18 to accurately reconstruct depth boundaries in the scene.
[0072] return Fig.14 At sub-step 1118, method 1110 may include filtering the generated depth map of the scene based on the generated active brightness image. Fig.16A As discussed, the example generated depth map 64 of the example received image 36D has inaccurate depth boundaries. To reconstruct the depth boundaries of the example scene, the processor 18 implementing the method 1110 may be configured to filter the example generated depth map 64 using the example active luminance image 60. That is, the processor 18 may be configured to perform post-processing on the example generated depth map 64 to improve the edges in the depth map to more accurately represent the actual depth boundaries in the scene.
[0073] In one example, to filter the generated depth of the scene, the processor 18 may be configured to determine, for each pixel in the generated depth map, a region of interest centered at the pixel, and determine a corresponding active luminance pixel and an active luminance region of interest centered at the active luminance pixel in the generated active luminance image. In this example, the active luminance image is generated based on the received image and has the same perspective as the received image. Thus, each pixel in the depth map generated from the received image has a corresponding pixel at the same pixel location in the active luminance image. Fig.16A In the illustrated example, the depth map pixel P5 has a pixel position (X, Y) which is Fig. 16B The same pixel position (X, Y) in the illustrated example active luminance image 60 has a corresponding active luminance pixel P5'. Similarly, the depth map region of interest R5 centered on the depth map pixel P5 also has a corresponding active luminance region of interest R5'. It will be understood that both the depth map pixel P5 and the corresponding active luminance pixel P5' view the same position in the scene. However, due to edge reconstruction inaccuracies of the block matching stereo algorithm, the depth map pixel P5 is assigned a depth value that is located on the same depth plane as the light object in the example scene. The corresponding active luminance pixel P5' in the example active luminance image 60 that views the same position in the scene as the depth map pixel P5 has an intensity value that indicates that the active luminance pixel P5' is located on a background depth plane that is farther from the depth sensor 20 than the light object. However, because the active luminance image provides intensity data for every pixel in the image, the active luminance image includes accurate depth disparity / depth boundary data.
[0074] In order to filter the example depth map 64 based on the example active luminance image 60 to improve the depth boundary, the processor 18 can be configured to calculate the support weight of each pixel in the active luminance region of interest except the center pixel. Fig. 16BIn the illustrated example, the value of the support weight for a particular pixel in the example active brightness region of interest R5' indicates how similar the intensity value of the pixel is compared to the intensity value of the active brightness pixel P5' at the center of the active brightness region of interest R5'. That is, pixels in the active brightness region of interest R5' that have dissimilar intensity values compared to the center active brightness pixel P5' are assigned low weights, and pixels in the active brightness region of interest R5' that have similar intensity values compared to the center active brightness pixel P5 are assigned higher weights.
[0075] Fig. 16B An example of the calculated support weights 66 for an example active luminance region of interest R5' is illustrated. As shown, pixels located on the same background depth plane as the central active luminance pixel P5' are assigned a higher weight. Fig. 16B On the other hand, pixels located on the light depth plane closer to the depth sensor 20 than the central active brightness pixel P5' are assigned a lower weight, which is Fig. 16B Next, the processor 18 may be configured to apply the calculated support weight 66 to the depth map pixel P5 to recalculate the depth value of the pixel. For example, the depth value of the depth map pixel P5 may be recalculated as the weighted median depth value of all pixels within the depth map region of interest R5 by applying the calculated support weight 66 to the depth value of each pixel in the depth map region of interest R5. Fig.16A In the illustrated example, the calculated support weights 66 will reduce the weights of pixels in the lower left quadrant of the depth map region of interest R5 and increase the weights of pixels in other quadrants of the depth map region of interest R5, which will cause the center depth map pixel of interest P5 to have a weighted median depth value similar to other pixels located on the background depth plane. In this example, after filtering each pixel of the example depth map 64 using the support weight method described above, the processor 18 can generate Fig.17 An example filtered depth map 68 is illustrated in . The example filtered depth map 86 includes both accurate depth boundaries and depth values for each pixel.
[0076] return Fig.14 , step 1114 may include a second set of sub-steps 1120 and 1122 for generating a depth map based on the received image and the active brightness image. At sub-step 1120, method 1100 may include, for each pixel in the received image, calculating a support weight for each other pixel in the region of interest surrounding the pixel based on the generated active brightness image. The support weight may be based on the reference Fig.16A and Fig. 16Bdescribed method to calculate. However, in the example second sub-step set, method 1100 does not use the calculated support weights to filter the already generated depth map during the post-processing step. Instead, at sub-step 1122, method 1100 may include performing stereo matching between the received image and a pre-recorded image of a predetermined structured light pattern based on the region of interest and the calculated support weights for each pixel. That is, the processor 18 implementing sub-steps 1120 and 1122 of the example method 1100 uses the support weights calculated at sub-step 1120 to improve the stereo matching between the region of interest in the received image and the corresponding region of interest in the pre-recorded image. Fig.15A In the example received image 36D illustrated in FIG. 1 , the processor 18 implementing sub-steps 1120 and 1122 may be configured to apply the support weight of the region of interest R3 to the points of the predetermined structured light pattern contained in the region of interest R3. Fig. 16B Similar to the support weight calculation method described, the support weight can be calculated based on the similarity of the intensity values in the active brightness image. That is, pixels with intensity values similar to the center pixel of interest of the region of interest are given higher weights, and pixels with intensity values that are dissimilar to the center pixel of interest are given lower weights.
[0077] Therefore, in Fig.15A In the example shown in Fig. 15B When searching for a matching region of interest in the illustrated pre-recorded image 62, the two lower points in the region of interest R3 will be given a higher weight, and when searching for a matching region of interest, the points in the upper right quadrant of the region of interest R3 will be given a lower weight. In this way, the accuracy of the block / tile matching stereo algorithm can be improved at the edge / depth boundary of the example received image 36D, and the processor 18 can generate an example depth map with an accurate depth boundary 68 directly from the above-mentioned support weight block matching stereo algorithm.
[0078] Steering Fig.18 , step 1114 may include a third set of sub-steps 1124 to 1136 for generating a depth map based on the received image and the active brightness image. At sub-step 1124, method 1100 may include calculating one or more feature vectors for each of a plurality of points detected in the received image. In one example, the one or more feature vectors for each of the plurality of points are calculated based on a pixel distance to another point in the plurality of points. Fig.19AIn the illustrated example, five feature vectors are shown for example point 58C in the plurality of points 58 of the example received image 36D. As illustrated, the processor 18 may calculate five feature vectors for the example point 58C, which include vectors toward the five nearest other points in the plurality of points 58. In order to determine Fig.19B , the processor 18 may be configured to search a storage table including a feature vector for each of a plurality of points in the pre-recorded image 62 to find the closest match. Since the pre-recorded image 62 is constant for all scene contents, the feature vector for each point in the pre-recorded image may be pre-calculated and stored in a lookup table in the memory of the HMD device 12. That is, a feature vector may be pre-calculated for each point indicating the pixel distances to the nearest five points in the predetermined structured light pattern 26 in the example pre-recorded image 62, such as Fig.19B It will be appreciated that the above example feature vectors are merely exemplary, and that the processor 18 may be configured to calculate any suitable type of feature vector to characterize each point in the predetermined structured light pattern 26 .
[0079] At sub-step 1126, method 1100 may include performing stereo matching between each of the plurality of points in the received image and a corresponding plurality of points in a pre-recorded image of a predetermined structured light pattern based on the calculated feature vectors. As described above, processor 18 may determine the structured light pattern by calculating one or more feature vectors for each point in the example received image 36D and searching a pre-calculated lookup table for corresponding points in the example pre-recorded image 62 that have a matching or similar set of feature vectors. Fig.19A Example of a point in the received image 36D with Fig.19B An example of stereo matching between points in a pre-recorded image 62.
[0080] At sub-step 1128, method 1100 may include calculating depth values for pixels covered by each of the plurality of points in the received image based on stereo matching. After finding a matching stereo pair for each of the plurality of points 58 in the example received image 36D, processor 18 may be configured to use reference Figure 2C The processor 18 may be further configured to patch the calculated depth value to each pixel in the example received image 36D corresponding to the point of the predetermined structured light pattern 26. In this way, the processor 18 generates a sparse depth map including the depth value of the pixel corresponding to each point in the plurality of points 58 in the received image, such as, for example Fig. 20However, the example sparse depth map 70 does not include depth values for pixels outside of the plurality of points 58.
[0081] Therefore, at sub-step 1130, method 1100 may include determining, for each pixel outside the plurality of points in the received image, a region of interest surrounding the pixel. Processor 18 may be configured to determine, based on reference Fig.15A The method described is to determine the region of interest around each pixel. Fig. 20 In the illustrated example, the processor 18 determines an example region of interest R6 centered around an example pixel P6. Similar regions of interest may be determined for each pixel outside the plurality of points in the received image.
[0082] At sub-step 1132, method 1100 may include calculating a support weight for each pixel in the region of interest based on the generated active brightness image. Processor 18 may be configured to calculate a support weight for each pixel in the region of interest based on the reference image. Fig. 16B Describes the method to calculate support weights. Fig. 20 In the illustrated example, the example pixel P6 is located on the light object depth plane. Therefore, other pixels in the example region of interest R6 that are located on the same depth plane as the example pixel P6 will receive higher support weight values, and other pixels in the example region of interest R6 that are located on different depth planes will receive lower support weight values.
[0083] At sub-step 1134, method 1100 may include calculating a weighted median depth value for a pixel based on the calculated depth values of the pixel covered by one or more of the plurality of points within the region of interest and the calculated support weight. Processor 18 may be configured to calculate a weighted median depth value for the pixel based on the calculated depth values of the pixel covered by the one or more of the plurality of points within the region of interest and the calculated support weight. Fig.16A and Fig. 16B The method described above is used to calculate the weighted median depth value. However, in the example sparse depth map 70, pixels outside each of the plurality of points 58 may not yet have a calculated depth value. Therefore, the processor 18 can be configured to calculate the weighted median depth value based on the pixels covered by the points in the example sparse depth map 70 that have calculated depth values.
[0084] At step 1136, method 1100 may include inpainting the pixel using the weighted median depth value. Processor 18 may be configured to perform sub-steps 1130 to 1136 for each pixel in sparse depth map 70 other than pixels corresponding to a plurality of points 58 that are reflections of the image of the emitted predetermined structured light pattern 26. In this manner, Fig. 20 Each pixel in the example sparse depth map 70 is inpainted with an appropriate depth value, thereby generating a pixel having Fig.17 An example depth map of an accurate depth boundary 68 is illustrated in FIG.
[0085] In some embodiments, the methods and processes described herein may be associated with a computing system of one or more computing devices. In particular, such methods and processes may be implemented as computer applications or services, application programming interfaces (APIs), libraries, and / or other computer program products.
[0086] Fig.21 A non-limiting embodiment of a computing system 100 is schematically shown that can perform one or more of the above methods and processes. The computing system 100 is shown in simplified form. The computing system 100 can embody Figure 1 The computing device 10 and the HMD device 12. The computing system 100 may take the form of one or more personal computers, server computers, tablet computers, home entertainment computers, network computing devices, gaming devices, mobile computing devices, mobile communication devices (e.g., smart phones), and / or other computing devices, as well as wearable computing devices such as smart watches and head-mounted augmented reality devices.
[0087] The computing system 100 includes a logic processor 102, a volatile memory 104, and a non-volatile storage device 106. The computing system 1000 may optionally include a display subsystem 108, an input subsystem 110, a communication subsystem 112, and / or Fig.21 Other components not shown.
[0088] Logical processor 102 includes one or more physical devices configured to execute instructions. For example, a logical processor may be configured to execute instructions that are part of one or more applications, programs, routines, libraries, objects, components, data structures, or other logical constructs. Such instructions may be implemented to perform a task, implement a data type, transform the state of one or more components, achieve a technical effect, or otherwise achieve a desired result.
[0089] The logical processor may include one or more physical processors (hardware) configured to execute software instructions. Additionally or alternatively, the logical processor may include one or more hardware logic circuits or firmware devices configured to execute hardware-implemented logic or firmware instructions. The processor of the logical processor 102 may be single-core or multi-core, and the instructions executed thereon may be configured for sequential, parallel and / or distributed processing. The various components of the logical processor may optionally be distributed across two or more separate devices, which may be remotely located and / or configured for collaborative processing. Various aspects of the logical processor may be virtualized and executed by a remotely accessible networked computing device configured in a cloud computing configuration. It will be understood that in this case, these virtualized aspects run on different physical logical processors of various different machines.
[0090] The non-volatile storage device 106 includes one or more physical devices configured to hold instructions executable by a logical processor to implement the methods and processes described herein. When such methods and processes are implemented, the state of the non-volatile storage device 106 may be transformed, for example, to hold different data.
[0091] The non-volatile storage device 106 may include a removable and / or built-in physical device. The non-volatile storage device 106 may include an optical memory (e.g., CD, DVD, HD-DVD, Blu-ray disc, etc.), a semiconductor memory (e.g., ROM, EPROM, EEPROM, FLASH memory, etc.), and / or a magnetic memory (e.g., a hard disk drive, a floppy disk drive, a tape drive, MRAM, etc.) or other mass storage device technology. The non-volatile storage device 106 may include a non-volatile, dynamic, static, read / write, read-only, sequential access, location addressable, file addressable, and / or content addressable device. It will be understood that the non-volatile storage device 106 is configured to retain instructions even when power to the non-volatile storage device 106 is cut off.
[0092] Volatile memory 104 may include physical devices that include random access memory. Logical processor 102 typically utilizes volatile memory 104 to temporarily store information during the processing of software instructions. It will be understood that when power to volatile memory 104 is cut off, volatile memory 104 typically does not continue to store instructions.
[0093] Aspects of the logic processor 102, volatile memory 104, and non-volatile storage device 106 may be integrated together into one or more hardware logic components. For example, such hardware logic components may include field programmable gate arrays (FPGAs), program and application specific integrated circuits (PASIC / ASIC), program and application specific standard products (PSSP / ASSP), systems on chips (SOCs), and complex programmable logic devices (CPLDs).
[0094] The terms "module," "program," and "engine" may be used to describe aspects of the computing system 100 that are typically implemented in software by a processor to perform a specific function using portions of volatile memory that involves transformative processing that specifically configures the processor to perform that function. Thus, a module, program, or engine may be instantiated by executing instructions held by the non-volatile storage device 106 via the logical processor 102 using portions of the volatile memory 104. It will be understood that different modules, programs, and / or engines may be instantiated from the same application, service, code block, object, library, routine, API, function, etc. Likewise, the same module, program, and / or engine may be instantiated by different applications, services, code blocks, objects, routines, APIs, functions, etc. The terms "module," "program," and "engine" may encompass individual or groups of executable files, data files, libraries, drivers, scripts, database records, and the like.
[0095] When the display subsystem 108 is included, it can be used to present a visual representation of the data held by the non-volatile storage device 106. The visual representation can take the form of a graphical user interface (GUI). Since the methods and processes described herein change the data held by the non-volatile storage device and thus transform the state of the non-volatile storage device, the state of the display subsystem 108 can also be transformed to visually represent the changes in the underlying data. The display subsystem 108 can include one or more display devices utilizing almost any type of technology. Such a display device can be combined with the logical processor 102, the volatile memory 104, and / or the non-volatile storage device 106 in a shared package, or such a display device can be a peripheral display device.
[0096] When input subsystem 110 is included, it may include or interface with one or more user input devices, such as a keyboard, mouse, touch screen, or game controller. In some embodiments, the input subsystem may include or interface with selected natural user input (NUI) components. Such components may be integrated or peripheral, and the conversion and / or processing of input actions may be handled on-board or off-board. Example NUI components may include microphones for voice and / or sound recognition; infrared, color, stereo, and / or depth cameras for machine vision and / or gesture recognition; head trackers, eye trackers, inertial measurement units, and / or gyroscopes for motion detection and / or intent recognition; and electric field sensing components for assessing brain activity; and / or any other suitable sensors.
[0097] When the communication subsystem 112 is included, it can be configured to communicatively couple the various computing devices described herein to each other and to communicatively couple to other devices. The communication subsystem 112 may include wired and / or wireless communication devices compatible with one or more different communication protocols. As non-limiting examples, the communication subsystem can be configured for communication via a wireless telephone network, or a wired or wireless local area network or wide area network (such as, HDMI connection via Wi-Fi). In some embodiments, the communication subsystem can allow the computing system 1000 to send messages to other devices and / or receive messages from other devices via a network such as the Internet.
[0098] The following paragraphs provide additional support for the claims of the subject application. One aspect provides a method, the method comprising: receiving an image of a scene illuminated by both a predetermined structured light pattern and a flood fill illumination; generating an active brightness image of the scene based on the received image of the scene, comprising: detecting a plurality of points of the predetermined structured light pattern, and removing the plurality of points of the predetermined structured light pattern from the active brightness image; and generating a depth map of the scene based on the received image and the active brightness image. In this aspect, additionally or alternatively, removing the plurality of points may also include: for each of the plurality of points of the predetermined structured light pattern, patching a pixel corresponding to the point with an intensity value. In this aspect, additionally or alternatively, patching the pixel may include sampling an intensity value from a pixel outside the point in the image. In this aspect, additionally or alternatively, the intensity value may be sampled from a neighboring nearest pixel outside the point. In this aspect, additionally or alternatively, generating a depth map of the scene may include: performing stereo matching between the received image and a pre-recorded image of the predetermined structured light pattern. In this aspect, additionally or alternatively, the method may further include filtering the generated depth map of the scene based on the generated active luminance image. In this aspect, additionally or alternatively, generating the depth map of the scene may include: for each pixel in the received image, based on the generated active luminance image, calculating a support weight for each other pixel in a region of interest surrounding the pixel, and performing stereo matching between the received image and a pre-recorded image of a predetermined structured light pattern based on the region of interest and the calculated support weight for each pixel. In this aspect, additionally or alternatively, the support weights may be calculated based on similarities in intensity values in the active luminance image. In this aspect, additionally or alternatively, generating a depth map of a scene may include: calculating one or more feature vectors for each of a plurality of points detected in a received image; performing stereo matching between each of the plurality of points in the received image and a corresponding plurality of points in a pre-recorded image of a predetermined structured light pattern based on the calculated feature vectors; calculating depth values for pixels covered by each of the plurality of points in the received image based on the stereo matching; for each pixel outside the plurality of points in the received image: determining a region of interest surrounding the pixel; calculating a support weight for each pixel in the region of interest based on the generated active brightness image; calculating a weighted median depth for the pixel based on the calculated depth values of pixels covered by one or more of the plurality of points in the region of interest and the calculated support weights; and inpainting the pixel using the weighted median depth. In this aspect, additionally or alternatively, the one or more feature vectors for each of the plurality of points may be calculated based on a pixel distance to another of the plurality of points.
[0099] Another aspect provides a computing device, including: an illuminator configured to emit both a predetermined structured light pattern and a flood fill illumination on a scene; a camera configured to capture an image of the scene illuminated by the predetermined structured light pattern and the flood fill illumination; and a processor configured to: generate an active brightness image of the scene based on the captured image of the scene, including: detecting a plurality of points of the predetermined structured light pattern; and removing the plurality of points of the predetermined structured light pattern from the active brightness image; and generating a depth map of the scene based on the captured image and the active brightness image. In this aspect, additionally or alternatively, to remove the plurality of points, the processor may also be configured to: for each of the plurality of points of the predetermined structured light pattern, inpaint a pixel corresponding to the point using an intensity value. In this aspect, additionally or alternatively, to inpaint a pixel, the processor may also be configured to sample an intensity value from a pixel outside the point in the image. In this aspect, additionally or alternatively, the intensity value may be sampled from a neighboring closest pixel outside the point. In this aspect, additionally or alternatively, to generate a depth map of the scene, the processor may also be configured to perform stereo matching between the captured image and a pre-recorded image of a predetermined structured light pattern. In this aspect, additionally or alternatively, the processor may also be configured to filter the generated depth map of the scene based on the generated active brightness image. In this aspect, additionally or alternatively, to generate a depth map of the scene, the processor may also be configured to: for each pixel in the captured image, based on the generated active brightness image, calculate the support weight of each other pixel in the region of interest surrounding the pixel, and based on the calculated support weights of the region of interest and each pixel, perform stereo matching between the captured image and the pre-recorded image of the predetermined structured light pattern. In this aspect, additionally or alternatively, the support weights may be calculated based on the similarity of the intensity values in the active brightness image. In this regard, additionally or alternatively, in order to generate a depth map of the scene, the processor can also be configured to: calculate one or more feature vectors for each of the multiple points detected in the captured image; based on the calculated feature vectors, perform stereo matching between each of the multiple points in the captured image and the corresponding multiple points in the pre-recorded image of the predetermined structured light pattern; based on the stereo matching, calculate the depth value of the pixel covered by each of the multiple points in the captured image; for each pixel outside the multiple points in the captured image: determine the region of interest surrounding the pixel; based on the generated active brightness image, calculate the support weight for each pixel in the region of interest; based on the calculated depth value of the pixel covered by one or more of the multiple points in the region of interest and the calculated support weight, calculate the weighted depth median for the pixel; and use the weighted depth median to repair the pixel.
[0100] On the other hand, a method is provided, including emitting both a predetermined structured light pattern and flood fill lighting onto a scene; capturing an image of the scene illuminated by the predetermined structured light pattern and the flood fill lighting; generating an active brightness image of the scene based on the captured image of the scene, including: detecting multiple points of the predetermined structured light pattern, and for each of the multiple points of the predetermined structured light pattern, patching a pixel corresponding to the point using an intensity value; and generating a depth map of the scene based on the captured image and the active brightness image.
[0101] It will be understood that the configuration and / or method described herein are exemplary in nature, and these specific embodiments or examples should not be considered to have limiting significance, because many variations are possible. The specific routine or method described herein can represent one or more of any number of processing strategies. Therefore, the various actions illustrated and / or described can be performed or omitted in the illustrated and / or described order, in other orders, in parallel. Equally, the order of the above process can be changed.
[0102] The subject matter of the present disclosure includes all novel and non-obvious combinations and sub-combinations of the various processes, systems and configurations disclosed herein, and other features, functions, acts, and / or properties, and all equivalents thereof.
Claims
1. A method for generating a depth map of a scene, comprising: emitting a predetermined structured light pattern and flood fill lighting in a predetermined band of the infrared spectrum; receiving an image of a scene illuminated by both the predetermined structured light pattern and the flood fill lighting, the image filtered to remove light outside the predetermined band of the infrared spectrum; Based on the received image of the scene, generating an active brightness image of the scene, wherein generating the active brightness image comprises: detecting a plurality of points of the predetermined structured light pattern within the received data representation of the image; and removing the plurality of points of the predetermined structured light pattern detected within the received data representation of the image to obtain the active brightness image; determining a region of interest surrounding a pixel and a corresponding region of interest surrounding a corresponding pixel in the generated active brightness image; Calculating a support weight for at least one other pixel in the determined region of interest surrounding the pixel based on a similarity in intensity values between the corresponding pixel and at least one other pixel in the corresponding region of interest in the generated active luminance image; and A depth map of the scene is generated based on the received image, the pre-recorded image of the predetermined structured light pattern and the support weights calculated based on the active brightness image.
2. The method of claim 1, wherein removing the plurality of points further comprises: For each point of the plurality of points of the predetermined structured light pattern, a pixel corresponding to the point is patched using an intensity value.
3. The method of claim 2, wherein inpainting a pixel comprises sampling the intensity value from a pixel other than the point in the image.
4. The method of claim 3, wherein the intensity value is sampled from the nearest pixel in the neighborhood outside the point.
5. The method of claim 1 , wherein generating the depth map of the scene comprises: Stereo matching is performed between the received image and the pre-recorded image of the predetermined structured light pattern.
6. The method according to claim 5, further comprising: The generated depth map of the scene is filtered based on the generated active luminance image.
7. The method of claim 1 , wherein generating the depth map of the scene comprises: Based on the determined region of interest and the calculated support weights, stereo matching is performed between the received image and the pre-recorded image of the predetermined structured light pattern.
8. The method of claim 1 , wherein generating the depth map of the scene comprises: calculating one or more feature vectors for each of the plurality of points detected in the received image; performing stereo matching between each of the plurality of points in the received image and a corresponding plurality of points in the pre-recorded image of the predetermined structured light pattern based on the calculated feature vector; Based on the stereo matching, calculating a depth value for a pixel covered by each of the plurality of points in the received image; For each pixel outside the plurality of points in the received image: determining a region of interest surrounding the pixel; Calculating a support weight for each pixel in the region of interest based on the generated activity brightness image; calculating a weighted median depth value for a pixel covered by one or more of the plurality of points within the region of interest based on the calculated depth values of the pixel and the calculated support weights; as well as The pixel is inpainted using the weighted median depth value. 9 . The method of claim 8 , wherein the one or more feature vectors for each point in the plurality of points are calculated based on a pixel distance to another point in the plurality of points.
10. A computing device comprising: an illuminator configured to emit both a predetermined structured light pattern in a predetermined band of the infrared spectrum and flood fill illumination onto the scene; a camera configured to capture an image of the scene illuminated by the predetermined structured light pattern and the flood fill illumination, the image being filtered to remove light outside of the predetermined band of the infrared spectrum; as well as The processor is configured to: generating a live luminance image of the scene based on the captured image of the scene, wherein to generate the live luminance image, the processor is configured to: detecting a plurality of points of the predetermined structured light pattern within the captured data representation of the image; as well as removing the plurality of points of the predetermined structured light pattern detected within the data representation of the captured image to obtain the live brightness image; determining a region of interest surrounding a pixel and a corresponding region of interest surrounding a corresponding pixel in the generated active brightness image; calculating a support weight for at least one other pixel in the determined region of interest surrounding the pixel based on a similarity in intensity values between the corresponding pixel and at least one other pixel in the corresponding region of interest in the generated active luminance image; as well as A depth map of the scene is generated based on the captured image, the pre-recorded image of the predetermined structured light pattern and the support weights calculated based on the active brightness image. 11 . The computing device of claim 10 , wherein to remove the plurality of dots, the processor is further configured to: for each of the plurality of dots of the predetermined structured light pattern, patch a pixel corresponding to the dot using an intensity value.
12. The computing device of claim 11, wherein to inpaint a pixel, the processor is further configured to: sample the intensity value from pixels other than the point in the image.
13. The computing device of claim 12, wherein the intensity value is sampled from a nearest pixel in the neighborhood outside of the point.
14. The computing device of claim 10, wherein to generate the depth map of the scene, the processor is further configured to: perform stereo matching between the captured image and the pre-recorded image of the predetermined structured light pattern.
15. The computing device of claim 14, wherein the processor is further configured to filter the generated depth map of the scene based on the generated active luminance image.
16. The computing device of claim 10, wherein to generate the depth map of the scene, the processor is further configured to: Based on the determined region of interest and the calculated support weights, stereo matching is performed between the captured image and the pre-recorded image of the predetermined structured light pattern.
17. The computing device of claim 10, wherein to generate the depth map of the scene, the processor is further configured to: calculating one or more feature vectors for each of the plurality of points detected in the captured image; performing stereo matching between each of the plurality of points in the captured image and a corresponding plurality of points in the pre-recorded image of the predetermined structured light pattern based on the calculated feature vector; Based on the stereo matching, calculating a depth value for a pixel covered by each of the plurality of points in the captured image; For each pixel outside the plurality of points in the captured image: determining a region of interest surrounding the pixel; Calculating a support weight for each pixel in the region of interest based on the generated activity brightness image; calculating a weighted median depth value for a pixel covered by one or more of the plurality of points within the region of interest based on the calculated depth values of the pixel and the calculated support weights; as well as The pixel is inpainted using the weighted median depth value.
18. A method for generating a depth map of a scene, comprising: capturing an image of the scene illuminated by a predetermined structured light pattern and flood fill lighting; Based on the captured image of the scene, generating an active luminance image of the scene, wherein generating the active luminance image comprises: detecting a plurality of points of the predetermined structured light pattern within the captured data representation of the image; and removing the plurality of points of the predetermined structured light pattern detected within the data representation of the captured image to obtain the live brightness image; determining a region of interest surrounding a pixel and a corresponding region of interest surrounding a corresponding pixel in the generated active brightness image; Calculating a support weight for at least one other pixel in the determined region of interest surrounding the pixel based on a similarity in intensity values between the corresponding pixel and at least one other pixel in the corresponding region of interest in the generated active luminance image; and A depth map of the scene is generated based on the captured image, the pre-recorded image of the predetermined structured light pattern and the support weights calculated based on the active brightness image.
Citation Information
Patent Citations
Plug and play depth photographic device
CN103841406A
Digital camera unit with simultaneous structured and unstructured illumination
US20160260223A1
