# US 10,455,251 B2 · Methods and apparatuses for coding and decoding depth map

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

- Number: US 10,455,251 B2
- Document ID: US10455251B2
- Status: Granted
- Kind: B2
- Application number: 16/012,446
- Filed: 2018-06-19
- Published: 2018-10-18
- Granted: 2019-10-22
- Earliest claimed: 2013-01-10
- Assignees: Huawei Technologies Co., Ltd.
- Applicants: Huawei Technologies Co., Ltd.
- Inventors: Xiaozhen Zheng
- Web page: https://patentgrep.com/patent/US10455251B2

## CPC

- H04N 19/597: specially adapted for multi-view video sequence encoding
- H04N 19/105: Selection of the reference unit for prediction within a chosen coding or prediction mode, e.g. adaptive choice of position and number of pixels used for prediction
- H04N 19/139: Analysis of motion vectors, e.g. their magnitude, direction, variance or reliability
- H04N 19/59: involving spatial sub-sampling or interpolation, e.g. alteration of picture size or resolution
- H04N 19/593: involving spatial prediction techniques
- H04N 19/103: Selection of coding mode or of prediction mode
- H04N 19/159: Prediction type, e.g. intra-frame, inter-frame or bidirectional frame prediction
- H04N 19/176: the region being a block, e.g. a macroblock
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION

## Abstract

Methods and apparatuses for coding and decoding a depth map are provided. The coding method includes: obtaining prediction data corresponding to a current image block of the depth map, obtaining a predicted pixel value from the prediction data according to a preset step, and calculating a first average value of the prediction data according to the predicted pixel value, where the preset step is a positive integer except 1; obtaining a residual of the current image block according to the first average value of the prediction data and a pixel value of a pixel of the current image block; and coding the residual of the current image block. In this way, coding and decoding efficiency can be improved.

## Claims

### Claim 1

A method for coding a depth map provided by an apparatus executing instructions stored in a non-transitory, computer-readable storage medium so as to configure the apparatus to provide the method of:
obtaining, by the apparatus, prediction data of a current image block of the depth map;
determining, by the apparatus, according to an intra-frame prediction mode of the current image block, whether the intra-frame prediction mode belongs to a preset intra-frame prediction mode set, wherein in the case that the intra-frame prediction mode belongs to the preset intra-frame prediction mode set, determining a predicted pixel value from the obtained prediction data according to a preset step;
obtaining, by the apparatus, a first average value of the prediction data according to the predicted pixel value, wherein the preset step is determined based on a size of the current image block;
obtaining, by the apparatus, a residual of the current image block according to the first average value of the prediction data and a pixel value of a pixel of the current image block; and
coding, by the apparatus, the residual of the current image block.

### Claim 2 (depends on 1)

The method according to claim 1, further comprising coding a value of the preset step.

### Claim 3 (depends on 1)

The method according to claim 1, wherein the preset step is used to identify an interval between position coordinates of the prediction data.

### Claim 4 (depends on 1)

The method according to claim 1, wherein coding the residual of the current image block comprises:
mapping the residual to a mapping value of the residual, wherein a number of bits that represent the mapping value of the residual is less than a number of bits that represent the residual; and
coding the mapping value of the residual.

### Claim 5 (depends on 1)

The method according to claim 1, wherein the intra-frame prediction mode set comprises at least one of the following intra-frame prediction modes:
a direct current (DC) mode;
a Planar mode;
an explicit Wedgelet mode; and
an intra-predicted Wedgelet partitioning mode.

### Claim 6

A method for decoding a depth map provided by an apparatus executing instructions stored in a non-transitory, computer-readable storage medium so as to configure a processor to provide the method of:
obtaining prediction data of a current image block of the depth map;
determining according to an intra-frame prediction mode of the current image block, whether the intra-frame prediction mode belongs to a preset intra-frame prediction mode set, wherein in the case that the intra-frame prediction mode belongs to the preset intra-frame prediction mode set, determining a predicted pixel value from the obtained prediction data according to a preset step;
obtaining a first average value of the prediction data according to the predicted pixel value, wherein the preset step is determined based on a size of the current image block;
obtaining a residual of the current image block; and
obtaining a pixel value of a pixel of the current image block according to the first average value of the prediction data and the residual of the current image block.

### Claim 7 (depends on 6)

The method according to claim 6, wherein obtaining the pixel value of the pixel of the current image block according to the first average value of the prediction data and the residual of the current image block comprises one selected from the group consisting of:
(a) adding the first average value of the prediction data of the current image block and the residual of the current image block to obtain the pixel value of the pixel of the current image block; and
(b) adding the first average value of the prediction data of the current image block and the residual to obtain an average pixel value of the current image block, and using the average pixel value of the current image block as the pixel value of the pixel of the current image block.

### Claim 8 (depends on 7)

The method according to claim 7, further comprising parsing a bitstream to obtain a value that identifies the preset step.

### Claim 9 (depends on 7)

The method according to claim 7, wherein the preset step is used to identify an interval between position coordinates of the prediction data.

### Claim 10 (depends on 7)

The method according to claim 7, wherein obtaining the residual of the current image block comprises:
performing decoding processing on a coding result of the current image block to obtain a mapping value of the residual of the current image block; and
mapping the mapping value of the residual to the residual, and using the residual as the residual of the current image block, wherein the number of bits that represent the mapping value of the residual is less than the number of bits that represent the residual.

### Claim 11 (depends on 6)

The method according to claim 6, wherein the intra-frame prediction mode set comprises at least one of the following intra-frame prediction modes:
a direct current (DC) mode;
a Planar mode;
an explicit Wedgelet mode; and
an intra-predicted Wedgelet partitioning mode.

### Claim 12

An apparatus for decoding a depth map comprising a processor and a memory with stored instructions which when executed by the processor cause the processor to:
obtain prediction data of a current image block of the depth map;
determine, according to an intra-frame prediction mode of the current image block, whether the intra-frame prediction mode belongs to a preset intra-frame prediction mode set, wherein in the case the intra-frame prediction mode belongs to the preset intra-frame prediction mode set, determine a predicted pixel value from the obtained prediction data according to a preset step;
obtain a first average value of the prediction data according to the predicted pixel value, wherein the preset step is determined based on a size of the current image block, and
obtain a residual of the current image block, and obtain a pixel value of a pixel of the current image block according to the first average value of the prediction data and the residual of the current image block.

### Claim 13 (depends on 12)

The apparatus according to claim 12, wherein the processor is further configured to perform one selected from the group consisting of:
(a) adding the first average value of the prediction data of the current image block and the residual of the current image block to obtain the pixel value of the pixel of the current image block; and
(b) adding the first average value of the prediction data of the current image block and the residual to obtain an average pixel value of the current image block, and use the average pixel value of the current image block as the pixel value of the pixel of the current image block.

### Claim 14 (depends on 12)

The apparatus according to claim 12, wherein the processor is further configured to parse a bitstream to obtain a value that identifies the preset step.

### Claim 15 (depends on 12)

The apparatus according to claim 12, wherein the preset step is used to identify an interval between position coordinates of the prediction data.

### Claim 16 (depends on 12)

The apparatus according to claim 12, wherein the processor is further configured to perform decoding processing on a coding result of the current image block to obtain a mapping value of the residual of the current image block, map the mapping value of the residual to the residual of the current image block, and use the mapping value of the residual as the residual of the current image block, wherein a number of bits that represent the mapping value of the residual is less than a number of bits that represent the residual.

### Claim 17 (depends on 12)

The apparatus according to claim 12, wherein the intra-frame prediction mode set comprises at least one of the following intra-frame prediction modes:
a direct current (DC) mode;
a Planar mode;
an explicit Wedgelet mode; and
an intra-predicted Wedgelet partitioning mode.
