# US 9,355,436 B2 · Method, system and computer program product for enhancing a depth map

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 9,355,436 B2
- Document ID: US9355436B2
- Status: Granted
- Kind: B2
- Application number: 13/659,478
- Filed: 2012-10-24
- Published: 2013-04-25
- Granted: 2016-05-31
- Earliest claimed: 2011-10-24
- Assignees: Texas Instruments Incorporated
- Applicants: Texas Instruments Incorporated
- Inventors: Buyue Zhang; Aziz Umit Batur
- Web page: https://patentgrep.com/patent/US9355436B2

## CPC

- G06T 5/77: Retouching; Inpainting; Scratch removal
- G06T 15/00: Three-dimensional [3D] image rendering
- G06T 2200/04: involving 3D image data
- G06T 2207/10028: Range image; Depth image; 3D point clouds
- G06T 2207/20012: Locally adaptive
- H04N 2013/0081: {Depth or disparity estimation from stereoscopic image signals}
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION

## Abstract

A first depth map is generated in response to a stereoscopic image from a camera. The first depth map includes first pixels having valid depths and second pixels having invalid depths. In response to the first depth map, a second depth map is generated for replacing at least some of the second pixels with respective third pixels having valid depths. For generating the second depth map, a particular one of the third pixels is generated for replacing a particular one of the second pixels. For generating the particular third pixel, respective weight(s) is/are assigned to a selected one or more of the first pixels in response to value similarity and spatial proximity between the selected first pixel(s) and the particular second pixel. The particular third pixel is computed in response to the selected first pixel(s) and the weight(s).

## Claims

### Claim 1

A method performed by at least one device for enhancing a depth map, the method comprising:
generating a first depth map in response to a stereoscopic image from a camera, wherein the first depth map includes first pixels having valid depths and second pixels having invalid depths; and
in response to the first depth map, generating a second depth map for replacing at least some of the second pixels with respective third pixels having valid depths, wherein generating the second depth map includes generating a particular one of the third pixels for replacing a particular one of the second pixels, and wherein generating the particular third pixel includes assigning respective weight(s) to a selected one or more of the first pixels in response to value similarity and spatial proximity between the selected first pixel(s) and the particular second pixel, and wherein generating the particular third pixel includes computing the particular third pixel in response to the selected first pixel(s) and the weight(s);
wherein the stereoscopic image includes first and second images, and wherein generating the first depth map includes: generating a third depth map in response to the first image as a reference image and the second image as a non-reference image; generating a fourth depth map in response to the second image as the reference image and the first image as the non-reference image; and generating the first depth map in response to the third and fourth depth maps.

### Claim 2 (depends on 1)

The method of claim 1, wherein at least first ones of the invalid depths are caused by occlusion within the stereoscopic image, and at least second ones of the invalid depths are caused by exceeding a boundary of the stereoscopic image.

### Claim 3 (depends on 1)

The method of claim 1, wherein value similarity includes similarity of color value.

### Claim 4 (depends on 1)

The method of claim 1, wherein a window includes all of the selected first pixel(s).

### Claim 5 (depends on 4)

The method of claim 4, wherein the window includes all of the selected first pixel(s) and a different one or more of the second pixels.

### Claim 6 (depends on 4)

The method of claim 4, wherein the window is centered at the particular second pixel.

### Claim 7 (depends on 6)

The method of claim 6, wherein generating the particular third pixel includes growing a size of the window until it includes at least one of the first pixels for being the selected first pixel(s).

### Claim 8 (depends on 6)

The method of claim 6, wherein assigning respective weight(s) includes assigning the weight(s) in response to a size of the window.

### Claim 9 (depends on 1)

The method of claim 1, and comprising:
performing a display operation on a display device in response to the second depth map, wherein the display operation includes at least one of: view synthesis; background substitution; and gesture control.

### Claim 10

A system for enhancing a depth map, the system comprising:
a combination of electronic circuitry components for: generating a first depth map in response to a stereoscopic image from a camera, wherein the first depth map includes first pixels having valid depths and second pixels having invalid depths; and, in response to the first depth map, generating a second depth map for replacing at least some of the second pixels with respective third pixels having valid depths, wherein generating the second depth map includes generating a particular one of the third pixels for replacing a particular one of the second pixels, and wherein generating the particular third pixel includes assigning respective weight(s) to a selected one or more of the first pixels in response to value similarity and spatial proximity between the selected first pixel(s) and the particular second pixel, and wherein generating the particular third pixel includes computing the particular third pixel in response to the selected first pixel(s) and the weight(s);
wherein the stereoscopic image includes first and second images, and wherein generating the first depth map includes: generating a third depth map in response to the first image as a reference image and the second image as a non-reference image; generating a fourth depth map in response to the second image as the reference image and the first image as the non-reference image; and generating the first depth map in response to the third and fourth depth maps.

### Claim 11 (depends on 10)

The system of claim 10, wherein at least first ones of the invalid depths are caused by occlusion within the stereoscopic image, and at least second ones of the invalid depths are caused by exceeding a boundary of the stereoscopic image.

### Claim 12 (depends on 10)

The system of claim 10, wherein value similarity includes similarity of color value.

### Claim 13 (depends on 10)

The system of claim 10, wherein a window includes all of the selected first pixel(s).

### Claim 14 (depends on 13)

The system of claim 13, wherein the window includes all of the selected first pixel(s) and a different one or more of the second pixels.

### Claim 15 (depends on 13)

The system of claim 13, wherein the window is centered at the particular second pixel.

### Claim 16 (depends on 15)

The system of claim 15, wherein generating the particular third pixel includes growing a size of the window until it includes at least one of the first pixels for being the selected first pixel(s).

### Claim 17 (depends on 15)

The system of claim 15, wherein assigning respective weight(s) includes assigning the weight(s) in response to a size of the window.

### Claim 18 (depends on 10)

The system of claim 10, wherein the combination of electronic circuitry components is for performing a display operation on a display device in response to the second depth map, and wherein the display operation includes at least one of: view synthesis; background substitution; and gesture control.

### Claim 19

A computer program product for enhancing a depth map, the computer program product comprising:
a non-transitory computer-readable storage medium; and
a computer-readable program stored on the computer-readable storage medium, wherein the computer-readable program is processable by an information handling system for causing the information handling system to perform operations including: generating a first depth map in response to a stereoscopic image from a camera, wherein the first depth map includes first pixels having valid depths and second pixels having invalid depths; and, in response to the first depth map, generating a second depth map for replacing at least some of the second pixels with respective third pixels having valid depths, wherein generating the second depth map includes generating a particular one of the third pixels for replacing a particular one of the second pixels, and wherein generating the particular third pixel includes assigning respective weight(s) to a selected one or more of the first pixels in response to value similarity and spatial proximity between the selected first pixel(s) and the particular second pixel, and wherein generating the particular third pixel includes computing the particular third pixel in response to the selected first pixel(s) and the weight(s);
wherein the stereoscopic image includes first and second images, and wherein generating the first depth map includes: generating a third depth map in response to the first image as a reference image and the second image as a non-reference image; generating a fourth depth map in response to the second image as the reference image and the first image as the non-reference image; and generating the first depth map in response to the third and fourth depth maps.

### Claim 20 (depends on 19)

The computer program product of claim 19, wherein at least first ones of the invalid depths are caused by occlusion within the stereoscopic image, and at least second ones of the invalid depths are caused by exceeding a boundary of the stereoscopic image.

### Claim 21 (depends on 19)

The computer program product of claim 19, wherein value similarity includes similarity of color value.

### Claim 22 (depends on 19)

The computer program product of claim 19, wherein a window includes all of the selected first pixel(s).

### Claim 23 (depends on 22)

The computer program product of claim 22, wherein the window includes all of the selected first pixel(s) and a different one or more of the second pixels.

### Claim 24 (depends on 22)

The computer program product of claim 22, wherein the window is centered at the particular second pixel.

### Claim 25 (depends on 24)

The computer program product of claim 24, wherein generating the particular third pixel includes growing a size of the window until it includes at least one of the first pixels for being the selected first pixel(s).

### Claim 26 (depends on 24)

The computer program product of claim 24, wherein assigning respective weight(s) includes assigning the weight(s) in response to a size of the window.

### Claim 27 (depends on 19)

The computer program product of claim 19, wherein the operations include performing a display operation on a display device in response to the second depth map, and wherein the display operation includes at least one of: view synthesis; background substitution; and gesture control.
