# US 10,958,913 B2 · Apparatus and method for directional intra prediction using a fitting plane and a plurality of primary reference samples as well as a plurality of secondary reference samples

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

- Number: US 10,958,913 B2
- Document ID: US10958913B2
- Status: Granted
- Kind: B2
- Application number: 16/735,231
- Filed: 2020-01-06
- Published: 2020-05-07
- Granted: 2021-03-23
- Earliest claimed: 2017-07-05
- Assignees: Huawei Technologies Co., Ltd.
- Applicants: Huawei Technologies Co., Ltd.
- Inventors: Alexey Konstantinovich Filippov; Vasily Alexeevich Rufitskiy
- Web page: https://patentgrep.com/patent/US10958913B2

## CPC

- H04N 19/159: Prediction type, e.g. intra-frame, inter-frame or bidirectional frame prediction
- H04N 19/593: involving spatial prediction techniques
- G06F 17/18: for evaluating statistical data {, e.g. average values, frequency distributions, probability functions, regression analysis (forecasting specially adapted for a specific administrative, business or logistic context G06Q10/04)}
- 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/132: Sampling, masking or truncation of coding units, e.g. adaptive resampling, frame skipping, frame interpolation or high-frequency transform coefficient masking
- H04N 19/174: the region being a slice, e.g. a line of blocks or a group of blocks
- H04N 19/176: the region being a block, e.g. a macroblock
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A video coding block is intra-predicted on the basis of a plurality of primary reference samples from a first set of neighboring video coding blocks. A fitting plane is determined on the basis of the plurality of primary reference samples and defines a plurality of fitting samples. For a selected directional intra prediction mode, a plurality of secondary reference samples are generated on the basis of the plurality of primary reference samples and the plurality of fitting samples. The secondary reference samples are located in a second set of neighboring video coding blocks. The sample values of the current video coding block are predicted on the basis of the plurality of primary reference sample values and the plurality of secondary reference sample values.

## Claims

### Claim 1

An apparatus for intra prediction of a current video coding block of a frame of a video signal, the current video coding block comprising a plurality of samples, each sample having a sample value and a position within the frame, the apparatus comprising:
a processing unit configured to:
determine a fitting plane based on a plurality of primary reference samples located in a first set of neighboring video coding blocks of the current video coding block, wherein the fitting plane defines a plurality of fitting samples, each fitting sample having a fitting sample value and a position within the frame;
generate, for a selected directional intra prediction mode, a plurality of secondary reference samples based on the plurality of primary reference samples and the plurality of fitting samples, wherein the plurality of secondary reference samples are located in a second set of neighboring video coding blocks of the current video coding block; and
predict the sample values of the plurality of samples of the current video coding block based on the plurality of primary reference samples and the plurality of secondary reference samples,
wherein for generating the plurality of secondary reference samples based on the plurality of primary reference samples and the plurality of fitting samples, the processing unit is configured to:
determine, for each primary reference sample, a respective primary offset value between the primary reference sample value and a corresponding fitting sample value;
predict a respective secondary offset value at each secondary reference sample position based on at least a subset of the plurality of primary offset values and the selected intra prediction mode; and
generate a respective secondary reference sample value based on the respective secondary offset value and the fitting sample value of the respective fitting sample.

### Claim 2 (depends on 1)

The apparatus of claim 1, wherein the processing unit is further configured to determine the fitting plane on the basis of the plurality of primary reference samples by determining fitting plane parameters a, b and c on the basis of the plurality of primary reference samples such that the plurality of fitting sample values {circumflex over (p)}pred[x,y] are defined by the following equation:
{circumflex over (p)}pred[x,y]=ax+by+c,
wherein x,y denote the position of the fitting sample within the frame.

### Claim 3 (depends on 2)

The apparatus of claim 2, wherein the processing unit is further configured to perform a multi-linear regression, using a least squares method, for determining the fitting plane parameters on the basis of the plurality of primary reference samples.

### Claim 4 (depends on 3)

The apparatus of claim 3, wherein the processing unit is further configured to clip the respective fitting plane parameters a, b and/or c, in case the respective fitting plane parameters a, b and/or c lie outside of respective predefined allowable ranges of fitting plane parameters.

### Claim 5 (depends on 1)

The apparatus of claim 1, wherein the processing unit is configured to generate the respective secondary reference sample value based on the respective secondary offset value and the fitting sample value of the respective fitting sample by adding the respective secondary offset value to the fitting sample value of the respective fitting sample.

### Claim 6 (depends on 1)

The apparatus of claim 1, wherein the processing unit is configured to predict the respective secondary offset value at each secondary reference sample position based on at least a subset of the plurality of primary offset values and an intra prediction mode defined in the HEVC/H.265 standard or a standard evolved therefrom.

### Claim 7 (depends on 1)

The apparatus of claim 1, wherein the processing unit is configured to predict the sample values of the plurality of samples of the current video coding block based on the plurality of primary reference sample values and the plurality of secondary reference sample values using a planar intra prediction mode.

### Claim 8 (depends on 1)

The apparatus of claim 1, wherein the processing unit is configured to predict a respective sample value of a respective sample of the plurality of samples of the current video coding block based on a weighted sum of a respective primary reference sample value and a respective secondary reference sample value.

### Claim 9 (depends on 8)

The apparatus of claim 8, wherein, in the weighted sum of the respective primary reference sample value and the respective secondary reference sample value, the processing unit is configured to weight the respective primary reference sample value and the respective secondary reference sample value as a function of a distance between the respective primary reference sample and the respective sample and a distance between the respective secondary reference sample and the respective sample.

### Claim 10 (depends on 1)

The apparatus of claim 1, wherein the first set of neighbouring video coding blocks of the current video coding block comprises a video coding block above the current video coding block and/or a video coding block to the left of the current video coding block and wherein the second set of neighbouring video coding blocks of the current video coding block comprises a video coding block below the current video coding block and/or a video coding block to the right of the current video coding block.

### Claim 11 (depends on 1)

An encoding apparatus for encoding a current video coding block of a frame of a video signal, the encoding apparatus comprising:
an intra prediction apparatus according to claim 1 for providing a predicted video coding block; and
an encoding unit configured to encode the current video coding block based on the predicted video coding block.

### Claim 12 (depends on 1)

A decoding apparatus for decoding an encoded video coding block of a frame of a video signal, the decoding apparatus comprising:
an intra prediction apparatus according to claim 1 for providing a predicted video coding block; and
a restoration unit configured to restore a video coding block based on an encoded video coding block and the predicted video coding block.

### Claim 13

A method for intra prediction of a current video coding block of a frame of a video signal the current video coding block comprising a plurality of samples, each sample having a sample value and a position within the frame, the method comprising:
determining a fitting plane based on a plurality of primary reference samples located in a first set of neighboring video coding blocks of the current video coding block, wherein the fitting plane defines a plurality of fitting samples, each fitting sample having a fitting sample value and a position within the frame;
generating, for a selected directional intra prediction mode, a plurality of secondary reference samples based on the plurality of primary reference samples and the plurality of fitting samples, wherein the plurality of secondary reference samples are located in a second set of neighboring video coding blocks of the current video coding block; and
predicting the sample values of the plurality of samples of the current video coding block based on the plurality of primary reference sample values and the plurality of secondary reference sample values,
wherein generating the plurality of secondary reference samples based on the plurality of primary reference samples and the plurality of fitting samples comprises:
determining, for each primary reference sample, a respective primary offset value between the primary reference sample value and a corresponding fitting sample value,
predicting a respective secondary offset value at each secondary reference sample position based on at least a subset of the plurality of primary offset values and the selected intra prediction mode, and
generating a respective secondary reference sample value based on the respective secondary offset value and the fitting sample value of the respective fitting sample.

### Claim 14 (depends on 13)

A non-transitory computer-readable medium comprising program code which, when executed by a processor, causes the method of claim 13 to be performed.
