# US 2015/0146994 A1 · Method, system and apparatus for determining a depth value of a pixel

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

- Number: US 2015/0146994 A1
- Document ID: US20150146994A1
- Status: Published application
- Kind: A1
- Application number: 14/552,364
- Filed: 2014-11-24
- Published: 2015-05-28
- Earliest claimed: 2013-11-28
- Assignees: Canon Kabushiki Kaisha
- Applicants: Canon Kabushiki Kaisha
- Inventors: Matthew Raphael ARNISON; ERNEST YIU CHEONG WAN
- Web page: https://patentgrep.com/patent/US20150146994A1

## CPC

- G06T 7/571: from focus
- G06T 2207/10016: Video; Image sequence
- G06T 2207/10148: Varying focus
- G06T 2207/20224: Image subtraction
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL

## Abstract

A method of determining a depth value of a fine structure pixel in a first image of a scene using a second image of the scene is disclosed. A gradient orientation for each of a plurality of fine structure pixels in the first image is determined. Difference images are generated from the second image and a series of blurred images formed from the first image, each difference image corresponding to one of a plurality of depth values. Each of the difference images is smoothed, in accordance with the determined gradient orientations, to generate smoothed difference images having increased coherency of fine structure. For each of a plurality of fine structure pixels in the first image, one of the smoothed difference images is selected. The depth value of the fine structure pixel corresponding to the selected smoothed difference image is determined.

## Claims

### Claim 1

A method of determining a depth value of a fine structure pixel in a first image of a scene using a second image of the scene, the method comprising:
determining a gradient orientation for each of a plurality of fine structure pixels in the first image;
generating difference images from the second image and a series of blurred images formed from said first image, each said difference image corresponding to one of a plurality of depth values;
smoothing each of the difference images, in accordance with the determined gradient orientations, to generate smoothed difference images having increased coherency of fine structure;
selecting, for each of a plurality of fine structure pixels in the first image, one of said smoothed difference images; and
determining the depth value of the fine structure pixel corresponding to the selected smoothed difference image.

### Claim 2 (depends on 1)

The method according to claim 1, wherein the gradient orientations are determined for each of a plurality of pixels in a fine structure region of the first image.

### Claim 3 (depends on 1)

The method according to claim 1, further comprising smoothing pixel values in a region of each of the set of difference images, the difference image regions corresponding to a fine structure region in the first image, so as to generate said smoothed difference images.

### Claim 4 (depends on 1)

The method according to claim 1, wherein said smoothed difference image is selected according to a difference value at a pixel.

### Claim 5 (depends on 1)

The method according to claim 1, further comprising determining a depth measurement for fine structure in the scene from the depth value associated with each of a plurality of pixels in a fine structure region of the first image.

### Claim 6 (depends on 1)

The method according to claim 1, wherein the difference images are smoothed using edge tangent convolution.

### Claim 7 (depends on 1)

The method according to claim 1, wherein the difference images are smoothed using a line integral convolution.

### Claim 8 (depends on 1)

The method according to claim 1, further comprising determining the difference between a maximum subset of difference values of the difference images and a minimum subset of pixel values of the difference images, wherein said difference is determined at a predetermined depth value offset from a selected difference image.

### Claim 9 (depends on 1)

The method according to claim 1, further comprising:
determining the difference between a maximum subset of difference values of the difference images and a minimum subset of pixel values of the difference images; and
determining a fluctuation in difference values, normalised by local cross-correlation of said first and second captured images.

### Claim 10 (depends on 1)

The method according to claim 1, further comprising blurring the first captured image or the second captured image depending on the relation between the depth and the focus bracket step size.

### Claim 11 (depends on 1)

The method according to claim 1, wherein the difference images are generated based on a direct search over a predetermined number of steps in depth within a working range.

### Claim 12 (depends on 1)

The method according to claim 1, wherein the difference images are generated based on an optimised search for a minimum smoothed blur difference.

### Claim 13 (depends on 1)

The method according to claim 1, wherein the gradient orientations are determined using the smoothed local gradient.

### Claim 14 (depends on 1)

The method according to claim 1, wherein the gradient orientations are determined using the gradient structure tensor.

### Claim 15 (depends on 1)

The method according to claim 1, wherein the first and second image are captured using different camera parameters including at least one of focus and aperture.

### Claim 16 (depends on 1)

The method according to claim 1, further comprising selecting a pixel of the first image based on a threshold on gradient magnitude of the first image.

### Claim 17 (depends on 1)

The method according to claim 1, further comprising selecting a pixel of the first image based on a threshold on local variance of the first image.

### Claim 18

An apparatus for determining a depth value of a fine structure pixel in a first image of a scene using a second image of the scene, the apparatus comprising:
a memory for storing data and a computer program;
a processor coupled to the memory for executing the computer program, the computer program having instructions for:
determining a gradient orientation for each of a plurality of fine structure pixels in the first image;
generating difference images from the second image and a series of blurred images formed from said first image, each said difference image corresponding to one of a plurality of depth values;
smoothing each of the difference images, in accordance with the determined gradient orientations, to generate smoothed difference images having increased coherency of fine structure;
selecting, for each of a plurality of fine structure pixels in the first image, one of said smoothed difference images; and
determining the depth value of the fine structure pixel corresponding to the selected smoothed difference image.

### Claim 19

A computer readable medium comprising a computer program stored thereon for determining a depth value of a fine structure pixel in a first image of a scene using a second image of the scene, the program comprising:
code for determining a gradient orientation for each of a plurality of fine structure pixels in the first image;
code for generating difference images from the second image and a series of blurred images formed from said first image, each said difference image corresponding to one of a plurality of depth values;
code for smoothing each of the difference images, in accordance with the determined gradient orientations, to generate smoothed difference images having increased coherency of fine structure;
code for selecting, for each of a plurality of fine structure pixels in the first image, one of said smoothed difference images; and
code for determining the depth value of the fine structure pixel corresponding to the selected smoothed difference image.

### Claim 20

A method of determining a confidence value of a fine structure pixel in a first image of a scene using a second image of the scene, the method comprising:
generating difference images from the second image and a series of blurred images formed from said first image, each said difference image corresponding to one of a plurality of depth values; and
determining the confidence value of the fine structure pixel based on a difference between a maximum subset of difference values of the difference images and a minimum subset of pixel values of the difference images.

### Claim 21 (depends on 20)

The method according to claim 20, wherein said difference is determined at a predetermined depth value offset from a selected difference image.

### Claim 22 (depends on 20)

The method according to claim 20, further comprising determining a fluctuation in difference values, normalised by local cross-correlation of said first and second captured images.

### Claim 23

An apparatus for determining a confidence value of a fine structure pixel in a first image of a scene using a second image of the scene, the apparatus comprising:
a memory for storing data and a computer program;
a processor coupled to the memory for executing the computer program, the computer program having instructions for:
generating difference images from the second image and a series of blurred images formed from said first image, each said difference image corresponding to one of a plurality of depth values;
determining the confidence value of the fine structure pixel based on a difference between a maximum subset of difference values of the difference images and a minimum subset of pixel values of the difference images.

### Claim 24

A computer readable medium comprising a computer program stored thereon for determining a confidence value of a fine structure pixel in a first image of a scene using a second image of the scene, the program comprising:
code for generating difference images from the second image and a series of blurred images formed from said first image, each said difference image corresponding to one of a plurality of depth values;
code for determining the confidence value of the fine structure pixel based on a difference between a maximum subset of difference values of the difference images and a minimum subset of pixel values of the difference images.
