# US 2018/0027224 A1 · Systems and Methods for Estimating and Refining Depth Maps

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

- Number: US 2018/0027224 A1
- Document ID: US20180027224A1
- Status: Published application
- Kind: A1
- Application number: 15/654,693
- Filed: 2017-07-19
- Published: 2018-01-25
- Earliest claimed: 2016-07-19
- Assignees: FotoNation Limited
- Applicants: FotoNation Limited
- Inventors: Hossein Javidnia; Peter Corcoran
- Web page: https://patentgrep.com/patent/US20180027224A1

## CPC

- H04N 13/128: Adjusting depth or disparity
- G06T 5/20: using local operators
- G06T 7/593: from stereo images
- G06V 10/44: Local feature extraction by analysis of parts of the pattern, e.g. by detecting edges, contours, loops, corners, strokes or intersections; Connectivity analysis, e.g. of connected components
- G06V 10/758: {Involving statistics of pixels or of feature values, e.g. histogram matching}
- 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/257: Colour aspects
- H04N 13/271: wherein the generated image signals comprise depth maps or disparity maps
- G06T 2207/10024: Color image
- G06T 2207/10028: Range image; Depth image; 3D point clouds
- G06T 2207/20032: Median filtering
- G06T 2207/30256: Lane; Road marking
- G06T 2207/30261: Obstacle
- H04N 2013/0081: {Depth or disparity estimation from stereoscopic image signals}
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06V: IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING

## Abstract

A method for improving accuracy of depth map information derived from image data descriptive of a scene. In one embodiment Mutual Feature Map data are created based on initial disparity map data values and the image data descriptive of the scene. The Mutual Feature Map data are applied to create a series of weighting functions representing structural details that can be transferred to the first disparity values to restore degraded features or replace some of the first disparity values with values more representative of structural features present in the image data descriptive of the scene.

## Claims

### Claim 1

A method for improving accuracy of depth map information derived from image data descriptive of a scene where pixels of such image data, acquired with one or more image acquisition devices, each have an assigned intensity value, the method comprising:
performing a matching cost optimization by iteratively refining disparities between corresponding pixels in the image data and using optimization results to create a sequence of first disparity values for an initial disparity map for the scene based in part on a superpixel-wise cost function;
performing a guided filter operation on the first disparity values by applying other image data containing structural details that can be transferred to the first disparity values to restore degraded features or replace some of the first disparity values with values more representative of structural features present in the image data descriptive of the scene [which have been degraded due to noise or low spatial resolution,]
the guided filtering operation performed by applying a series of weighted median filter operations to pixel intensity values in the sequence of first disparity values so that each median filter operation replaces a member in the sequence of first disparity values with a median intensity value, where each median intensity value is based on intensity values in a group of pixels within a window of pixels positioned about said member in the sequence,
each window being of a variable size to include a variable number of pixels positioned about said member in the sequence, where selections of multiple ones of the window sizes are based on a measure of similarity between the first disparity values and said other image data, and wherein the series of [weighted] median filter operations provides a new sequence of disparity values for a refined disparity map or from which a depth map of improved accuracy can be created.

### Claim 2 (depends on 1)

The method of claim 1 where the other image data applied to perform the guided filtering operation comprises a portion of the pixel image data acquired with the one or more image acquisition devices.

### Claim 3 (depends on 1)

The method of claim 1 where the depth map information is derived from stereo image data comprising data from first and second RBG reference images descriptive of the scene and said other image data containing structural details applied to perform the guided filtering operation comprises data from one of the RBG reference images.

### Claim 4 (depends on 1)

The method of claim 1 where the series of median filter operations are weighted median filter operations and multiple ones of the window sizes are selected based on a similarity index values.

### Claim 5 (depends on 1)

The method of claim 1 where multiple ones of the window sizes are selected based on measures of differences and similarities between data in the sequence of first disparity values for the initial disparity map and data in one the RGB reference images.

### Claim 6 (depends on 1)

The method of claim 1 where multiple ones of the window sizes are selected based on one or more measures of similarity between two sets of image data.

### Claim 7 (depends on 6)

The method of claim 6 where the two sets of image data comprise the first disparity values and said other image data.

### Claim 8 (depends on 1)

The method of claim 1 where:
multiple ones of the window sizes are selected based on one or more measures of similarity between the first disparity values and said other image data; and
the one or more measures of similarity are based on at least one feature taken from the group consisting of luminance, contrast and structure.

### Claim 9 (depends on 8)

The method of claim 8 where the measures of similarity are expressable as a map providing pixel by pixel measures of similarity between the two sets of image data.

### Claim 10 (depends on 8)

The method of claim 8 where the measures of similarity are calculated in accord with
SSIM(D,I)=[l(D,I)]α·[c(D,I)]β·[s(D,I)]γ,
where D and I are, respectively, the sequence of first disparity values for the initial disparity map 165 and data values from the image data descriptive of a scene and acquired with said one or more image acquisition devices,
where l, fvc and s are, respectively, luminance, contrast and structural terms
and
where α, β and γ are exponents for the luminance, contrast, and structural terms, respectively.

### Claim 11

A method for performing a [median] filter operation on a sequence of data [intensity or magnitude] values which are a subset in a larger plurality of data values derived from acquisitions with one or more devices, the method comprising:
performing a series of filter operations on at least some values in the sequence and replacing each in a plurality of the values in the sequence with a new value resulting from the filter operation,
where each new value is based on values in a different group containing a number of other data values in the sequence and where the number of data values in each group of values is variable and definable in terms of a selectable dimension in a range of window dimensions, and where the window dimensions vary among the groups based on a measure of similarity between values in the sequence and other values in the larger plurality of data values.

### Claim 12 (depends on 11)

The method of claim 11 where the larger plurality of data values includes first and second RGB images comprising image data descriptive of a scene acquired with multiple image acquisition devices.

### Claim 13 (depends on 11)

The method of claim 11 where the sequence of data values comprises disparity map data values for an initial disparity map for the scene created from the RGB images with a matching cost optimization based in part on a superpixel-wise cost function.

### Claim 14 (depends on 11)

The method of claim 11 where the filter operation is a median filter operation.

### Claim 15 (depends on 11)

The method of claim 11 where the filter operation is a weighted median filter operation.

### Claim 16 (depends on 11)

The method of claim 11 where each new value is a median intensity value based on values in the plurality of data values different from data values in the sequence.

### Claim 17 (depends on 11)

The method of claim 11 where each new value is a median intensity value based on RBG image data in the plurality of data values different from data values in the sequence.

### Claim 18 (depends on 11)

The method of claim 11 where each group of values corresponds to a different set of pixel image data within a two dimensional window positioned about a pixel position for which a value is replaced by a new value based on the filter operation.

### Claim 19

A method of defining a series of sizes of adaptive windows, each for use in a filter operation performed on data values for a disparity map, D, corresponding to a scene represented by a reference image I, each filter operation replacing a different data value associated with the disparity map with a new value to improve depth map accuracy for the scene, comprising:
calculating data values for the disparity map associated with the scene;
providing data values for the reference image;
providing a plurality of values, S, collectively corresponding to a similarity map, each value, S, indicative of a level of similarity between a portion of the disparity map data values and a corresponding portion of the reference image data values;
applying the values, S, to determine a series of windows of variable sizes, each window in the series for use in a different filter operation performed on the disparity map data values;
with W designating current window size under evaluation:
defining a smallest window size Wmin of dimension (2j+1) by (2j+1) where j=jmin;
defining a largest window size Wmax of dimension (2j+1) by (2j+1) where j=jmax;
for each pixel position Pi,j in the disparity map, performing a test with the inequality statement
SSIMmin<SSIMmed<SSIMmax
for each corresponding pixel position Si,j in the similarity map beginning with the smallest window size, where:
SSIMmin is the minimum pixel value inside the current window, W
SSIMmax is the maximum pixel value inside the current window, W and
SSIMmed is the median pixel value determined for the current window, W; and
concluding that:
If the inequality statement is true, then the current window size is the chosen window size for performing a weighted median operation about the pixel position Pi,j in the disparity map corresponding to the similarity map pixel position Si,j; and
If the inequality statement in step a) is not true, increasing the size of the window by incrementing j to j+1; and
repeating steps a) and b) until either:
(i) SSIMmed is between SSIMmin and SSIMmax, in which case the current window size is the chosen window size for performing a weighted median operation about the pixel position Pi,j in the disparity map corresponding to the similarity map pixel position Si,j, or
(ii) the maximum window size is reached, in which case the maximum window size is the chosen window size for performing the weighted median operation about the pixel position Pi,j in the disparity map corresponding to the similarity map pixel position Si,j.

### Claim 20

A method for improving accuracy of depth map information derived from image data descriptive of a scene, comprising:
performing a matching cost optimization by iteratively refining disparities between corresponding pixels in the image data and using optimization results to create a sequence of initial disparity map data values for an initial disparity map for the scene;
creating a Mutual Feature Map data based on initial disparity map data values and the image data descriptive of the scene;
applying the Mutual Feature Map data to create a series of weighting functions representing structural details that can be transferred to the first disparity values to restore degraded features or replace some of the first disparity values with values more representative of structural features present in the image data descriptive of the scene, including applying a series of weighted median filter operations in which a weight kernel based on the Mutual Feature Map data is applied to assign a weighting factor to each pixel position in a weighted median filter operation, whereby each median filter operation replaces a member in the sequence of first disparity values with a median intensity value, where each median intensity value is based on intensity values in a group of pixels within a window of pixels positioned about a data value in the sequence.
