# US 2022/0028103 A1 · Multi-channel depth estimation using census transforms

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

- Number: US 2022/0028103 A1
- Document ID: US20220028103A1
- Status: Published application
- Kind: A1
- Application number: 17/230,109
- Filed: 2021-04-14
- Published: 2022-01-27
- Earliest claimed: 2018-05-21
- Assignees: Facebook Technologies, LLC
- Applicants: Facebook Technologies, LLC
- Inventors: Michael Hall; Xinqiao Liu; Zhaoming Zhu; Rajesh Lachhmandas Chhabria; Huixuan Tang; Shuochen Su
- Web page: https://patentgrep.com/patent/US20220028103A1

## CPC

- G01B 11/2513: {with several lines being projected in more than one direction, e.g. grids, patterns}
- G01B 11/22: for measuring depth
- G02B 27/0172: {characterised by optical features}
- G06T 7/11: Region-based segmentation
- G06T 7/174: involving the use of two or more images
- G06T 7/521: from laser ranging, e.g. using interferometry; from the projection of structured light
- G06T 7/529: from texture
- G06T 7/55: from multiple images
- G06T 7/593: from stereo images
- G06T 7/90: Determination of colour characteristics
- G06T 7/97: {Determining parameters from multiple pictures (depth or shape recovery from multiple images G06T7/55; stereo camera calibration G06T7/85)}
- G06V 10/145: Illumination specially adapted for pattern recognition, e.g. using gratings
- G06V 10/22: by selection of a specific region containing or referencing a pattern; Locating or processing of specific regions to guide the detection or recognition
- H04N 13/106: Processing image signals (for multi-view video sequence encoding H04N19/597)
- H04N 13/128: Adjusting depth or disparity
- H04N 13/204: using stereoscopic image cameras (stereoscopic photography G03B35/00)
- H04N 13/239: using two two-dimensional [2D] image sensors having a relative position equal to or related to the interocular distance (H04N13/243 takes precedence)
- H04N 13/271: wherein the generated image signals comprise depth maps or disparity maps
- H04N 23/56: provided with illuminating means
- G02B 2027/0138: {comprising image capture systems, e.g. camera}
- G02B 2027/014: {comprising information/image processing systems}
- G02B 2027/0178: {Eyeglass type (eyeglass details G02C)}
- G06T 2207/10028: Range image; Depth image; 3D point clouds
- H04N 2013/0081: {Depth or disparity estimation from stereoscopic image signals}
- G01B: MEASURING LENGTH, THICKNESS OR SIMILAR LINEAR DIMENSIONS; MEASURING ANGLES; MEASURING AREAS; MEASURING IRREGULARITIES OF SURFACES OR CONTOURS
- G02B: OPTICAL ELEMENTS, SYSTEMS OR APPARATUS
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06V: IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION

## Abstract

A depth estimation system is described capable of determining depth information using two images from two cameras. A first camera captures a first image and a second camera captures a second image, both images including a plurality of light channels. A scan direction is selected from a plurality of scan directions. For the selected scan direction, along each of a plurality of scanlines, the system compares pixels from the first image to pixels from the second image. The comparison is based on calculating a census transform for each pixel in the first image and a census transform for each pixel in the second image. This comparison is used to determine a stereo correspondence between the pixels in the first image and the pixels in the second image. The system generates a depth map based on the stereo correspondence.

## Claims

### Claim 1

A method comprising:
capturing, via a first camera, a first image that includes a plurality of light channels;
capturing, via a second camera, a second image that includes the plurality of light channels;
selecting a scan direction from a plurality of scan directions in association with the first image and the second image;
along each of a plurality of scanlines in the selected scan direction, comparing pixels from the first image to pixels from the second image based on calculating a census transform for each pixel in the first image and a census transform for each pixel in the second image;
determining a stereo correspondence between the pixels in the first image and the pixels in the second image based on the comparing; and
generating a depth map based on the stereo correspondence.

### Claim 2 (depends on 1)

The method of claim 1, wherein selecting the scan direction from the plurality of scan directions comprises selecting an angle made by the scan direction to a horizontal direction.

### Claim 3 (depends on 2)

The method of claim 2, wherein selecting an angle made by the scan direction to the horizontal direction further comprises selecting at least one of:
an angle of 0° from the horizontal direction;
an angle of 90° from the horizontal direction; and
an angle between 0° and 90° from the horizontal direction;

### Claim 4 (depends on 1)

The method of claim 1, wherein the plurality of scanlines in the selected scan direction are parallel to each other.

### Claim 5 (depends on 1)

The method of claim 1, wherein the plurality of scanlines in the selected scan direction cover all pixels in at least one of: the first image and the second image.

### Claim 6 (depends on 1)

The method of claim 1, wherein calculating a census transform for each pixel in the first image and a census transform for each pixel in the second image comprises:
in a first light channel of the plurality of light channels, calculating a census transform for each pixel of the first image to form a first set of census transforms and a census transform for each pixel of the second image to form a second set of census transforms; and
in a second light channel of the plurality of light channels, calculating a census transform for each pixel of the first image to form a third set of census transforms and a census transform for each pixel of the second image to form a fourth set of census transforms.

### Claim 7 (depends on 6)

The method of claim 6, wherein comparing pixels from the first image to pixels from the second image based on calculating the census transform for each pixel in the first image and the census transform for each pixel in the second image comprises:
for a first pixel in the first image and a second pixel in the second image:
calculating a first Hamming distance for the first light channel between the census transform of the first pixel and the census transform of the second pixel;
calculating a second Hamming distance for the second light channel between the census transform of the first pixel and the census transform of the second pixel; and
summing the Hamming distances;
wherein the stereo correspondence is determined in part by minimizing the sum of the Hamming distances.

### Claim 8 (depends on 6)

The method of claim 6, wherein generating the depth map further comprises:
for each selected scan direction of the plurality of scan directions:
along each scanline of the plurality of scanlines in the scan direction, comparing the first set of census transforms to the second set of census transforms and the third set of census transforms to the fourth set of census transforms;
wherein the stereo correspondence between the pixels of the first image and the pixels of the second image is based on the comparisons in each scan direction.

### Claim 9 (depends on 1)

The method of claim 1, wherein the at least two light channels include at least two different color channels.

### Claim 10 (depends on 1)

The method of claim 1, wherein the at least two light channels include a color channel and an infrared channel.

### Claim 11

A non-transitory computer-readable storage medium storing instructions that, when executed by a processor, cause the processor to perform steps of:
capturing, via a first camera, a first image that includes a plurality of light channels;
capturing, via a second camera, a second image that includes the plurality of light channels;
selecting a scan direction from a plurality of scan directions in association with the first image and the second image;
along each of a plurality of scanlines in the selected scan direction, comparing pixels from the first image to pixels from the second image based on calculating a census transform for each pixel in the first image and a census transform for each pixel in the second image;
determining a stereo correspondence between the pixels in the first image and the pixels in the second image based on the comparing; and
generating a depth map based on the stereo correspondence.

### Claim 12 (depends on 11)

The storage medium of claim 11, wherein selecting the scan direction from the plurality of scan directions comprises selecting an angle made by the scan direction to a horizontal direction.

### Claim 13 (depends on 12)

The storage medium of claim 12, wherein selecting an angle made by the scan direction to the horizontal direction further comprises selecting at least one of:
an angle of 0° from the horizontal direction;
an angle of 90° from the horizontal direction; and
an angle between 0° and 90° from the horizontal direction;

### Claim 14 (depends on 11)

The storage medium of claim 11, wherein the plurality of scanlines in the selected scan direction are parallel to each other.

### Claim 15 (depends on 11)

The storage medium of claim 11, wherein the plurality of scanlines in the selected scan direction cover all pixels in at least one of: the first image and the second image.

### Claim 16

A depth estimation system comprising:
a first camera configured to capture images in a plurality of light channels;
a second camera configured to capture images in the plurality of light channels; and
a controller configured to perform operations comprising:
selecting a scan direction from a plurality of scan directions in association with a first image captured by the first camera and a second image captured by the second camera;
along each of a plurality of scanlines in the selected scan direction, comparing pixels from the first image to pixels from the second image based on calculating a census transform for each pixel in the first image and a census transform for each pixel in the second image;
determining a stereo correspondence between the pixels in the first image and the pixels in the second image based on the comparing; and
generating a depth map based on the stereo correspondence

### Claim 17 (depends on 16)

The depth estimation system of claim 16, wherein selecting the scan direction from the plurality of scan directions comprises selecting an angle made by the scan direction to a horizontal direction.

### Claim 18 (depends on 17)

The depth estimation system of claim 17, wherein selecting an angle made by the scan direction to the horizontal direction further comprises selecting at least one of:
an angle of 0° from the horizontal direction;
an angle of 90° from the horizontal direction; and
an angle between 0° and 90° from the horizontal direction;

### Claim 19 (depends on 16)

The depth estimation system of claim 16, wherein the plurality of scanlines in the selected scan direction are parallel to each other.

### Claim 20 (depends on 16)

The depth estimation system of claim 16, wherein the plurality of scanlines in the selected scan direction cover all pixels in at least one of: the first image and the second image.
