# US 2022/0295047 A1 · Image prediction method and device

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

- Number: US 2022/0295047 A1
- Document ID: US20220295047A1
- Status: Published application
- Kind: A1
- Application number: 17/827,398
- Filed: 2022-05-27
- Published: 2022-09-15
- Earliest claimed: 2015-08-29
- Assignees: Huawei Technologies Co., Ltd.; University of Science and Technology of China
- Applicants: Huawei Technologies Co., Ltd.; University of Science and Technology of China
- Inventors: Zhuoyi LV; Li LI; Houqiang LI; Haitao YANG
- Web page: https://patentgrep.com/patent/US20220295047A1

## CPC

- 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/172: the region being a picture, frame or field
- H04N 19/176: the region being a block, e.g. a macroblock
- H04N 19/52: by predictive encoding
- H04N 19/527: Global motion vector estimation
- H04N 19/54: using feature points or meshes
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION

## Abstract

An image prediction method and device are disclosed. The method includes: obtaining a first reference unit of an image unit, where respective predicted images are obtained for the image unit and the first reference unit by using a same affine model; obtaining motion information of basic motion compensation units at two or more preset positions in the first reference unit; and obtaining motion information of a basic motion compensation unit of the image unit according to the motion information. In this way, motion information of the first reference unit using a same affine motion prediction model is reused, and a more accurate motion vector of a current image unit is obtained, improving prediction accuracy and maintaining encoding and decoding complexity, thereby improving encoding and decoding performance.

## Claims

### Claim 1

A method for inter prediction of a current image block, for use in an image encoding or an image decoding, the method comprising:
determining, by an image encoder or an image decoder, a candidate affine block, wherein the candidate affine block is an affine coded block that is spatially neighboring to the current image block;
determining motion vectors (MVs) of at least two control points of the current image block according to MVs of at least two control points of the candidate affine block;
determining a MV of a pixel point or a pixel matrix of the current image block according to the MVs of at least two control points of the current image block; and
obtaining, based on the MV of the pixel point or the pixel matrix of the current image block, predicted values of the current image block.

### Claim 2 (depends on 1)

The method according to claim 1, wherein the obtaining, based on the MV of the pixel point or the pixel matrix of the current image block, the predicted values of the current image block, comprises:
obtaining predicted values of the pixel point or the pixel matrix of the current image block through motion compensation according to reference frame information of the current image block and the MV of the pixel point or the pixel matrix of the current image block; and
obtaining the predicted values of the current image block based on the predicted values of the pixel point or the pixel matrix of the current image block.

### Claim 3 (depends on 2)

The method according to claim 2, wherein the reference frame information of the current image block is same as reference frame information of the candidate affine block.

### Claim 4 (depends on 1)

The method according to claim 1, wherein the MVs of the at least two control points of the current image block correspond to the candidate affine block or an index included into a bitstream.

### Claim 5 (depends on 1)

The method according to claim 1, wherein the determining the MVs of the at least two control points of the current image block according to the MVs of the at least two control points of the candidate affine block comprises:
determining MVs of three control points of the current image block according to MVs of three control points of the candidate affine block, when a 6-parameter affine model is used for the current image block; or
determining MVs of two control points of the current image block according to MVs of two control points of the candidate affine block, when a 4-parameter affine model is used for the current image block.

### Claim 6 (depends on 1)

The method according to claim 1, wherein the determining the MVs of the at least two control points of the current image block according to the MVs of the at least two control points of the candidate affine block comprises:
determining MVs of at least two control points of the current image block according to MVs of at least two control points of the candidate affine block and at least one of a width or a height of the candidate affine block.

### Claim 7 (depends on 6)

The method according to claim 6, wherein the at least one of the width or the height of the candidate affine block are associated with position coordinates of the at least two control points of the candidate affine block.

### Claim 8 (depends on 1)

The method according to claim 1, wherein the candidate affine block is a rectangular block, and the control points of the candidate affine block comprise two or more of:
an upper left corner point of the candidate affine block,
an upper right corner point of the candidate affine block,
a lower left corner point of the candidate affine block, or
a lower right corner point of the candidate affine block.

### Claim 9 (depends on 1)

The method according to claim 1, wherein the current image block is a rectangular block, and the control points of the current image block comprises two or more of:
an upper left corner point of the current image block,
an upper right corner point of the current image block,
a lower left corner point of the current image block, or
a lower right corner point of the current image block.

### Claim 10 (depends on 1)

The method according to claim 1, wherein the determining the MV of the pixel point or the pixel matrix of the current image block according to the MVs of the at least two control points of the current image block, comprises:
determining a MV of each pixel point of the current image block according to the MVs of two control points of the current image block:
v
⁢
x
=
v
⁢
x
1
-
v
⁢
x
0
x
1
-
x
0
×
x
-
v
⁢
y
1
-
v
⁢
y
0
x
1
-
x
0
×
y
+
v
⁢
x
0
vy
=
v
⁢
y
1
-
v
⁢
y
0
x
1
-
x
0
×
x
+
v
⁢
x
1
-
v
⁢
x
0
x
1
-
x
0
×
y
+
v
⁢
y
0
wherein x and y represent respectively horizontal and vertical coordinates of the pixel point in the current image block, vx and vy represent corresponding horizontal and vertical MVs of the pixel point in the image block, and x0 and x1 and y0 and y1 represent respectively horizontal and vertical coordinates of two control points of the current image block, and vx0 and vx1 and vy0 and vy1 are corresponding horizontal and vertical MVs of two control points of the current image block.

### Claim 11

A non-transitory computer-readable media storing computer instructions, that when executed by one or more processors, cause the one or more processors to perform operations for inter prediction of a current image block, for use in an image encoding or an image decoding, the operations comprising:
determining a candidate affine block, wherein the candidate affine block is an affine coded block that is spatially neighboring to the current image block;
determining motion vectors (MVs) of at least two control points of the current image block according to MVs of at least two control points of the candidate affine block;
determining a MV of a pixel point or a pixel matrix of the current image block according to the MVs of at least two control points of the current image block; and
obtaining, based on the MV of the pixel point or the pixel matrix of the current image block, predicted values of the current image block.

### Claim 12 (depends on 11)

The non-transitory computer-readable media according to claim 11, wherein the obtaining, based on the MV of the pixel point or the pixel matrix of the current image block, the predicted values of the current image block, comprises:
obtaining predicted values of the pixel point or the pixel matrix of the current image block through motion compensation according to reference frame information of the current image block and the MV of the pixel point or the pixel matrix of the current image block; and
obtaining the predicted values of the current image block based on the predicted values of the pixel point or the pixel matrix of the current image block.

### Claim 13 (depends on 12)

The non-transitory computer-readable media according to claim 12, wherein the reference frame information of the current image block is same as reference frame information of the candidate affine block.

### Claim 14 (depends on 11)

The non-transitory computer-readable media according to claim 11, wherein the MVs of the at least two control points of the current image block correspond to the candidate affine block or an index included into a bitstream.

### Claim 15 (depends on 11)

The non-transitory computer-readable media according to claim 11, wherein the determining the MVs of the at least two control points of the current image block according to the MVs of the at least two control points of the candidate affine block comprises:
determining MVs of three control points of the current image block according to MVs of three control points of the candidate affine block, when a 6-parameter affine model is used for the current image block; or
determining MVs of two control points of the current image block according to MVs of two control points of the candidate affine block, when a 4-parameter affine model is used for the current image block.

### Claim 16 (depends on 11)

The non-transitory computer-readable media according to claim 11, wherein the determining the MVs of the at least two control points of the current image block according to the MVs of the at least two control points of the candidate affine block comprises:
determining MVs of at least two control points of the current image block according to MVs of at least two control points of the candidate affine block and at least one of a width or a height of the candidate affine block.

### Claim 17 (depends on 16)

The non-transitory computer-readable media according to claim 16, wherein the at least one of the width or the height of the candidate affine block are associated with position coordinates of the at least two control points of the candidate affine block.

### Claim 18 (depends on 11)

The non-transitory computer-readable media according to claim 11, wherein the candidate affine block is a rectangular block, and the control points of the candidate affine block comprise two or more of:
an upper left corner point of the candidate affine block,
an upper right corner point of the candidate affine block,
a lower left corner point of the candidate affine block, or
a lower right corner point of the candidate affine block.

### Claim 19 (depends on 11)

The non-transitory computer-readable media according to claim 11, wherein the current image block is a rectangular block, and the control points of the current image block comprises two or more of:
an upper left corner point of the current image block,
an upper right corner point of the current image block,
a lower left corner point of the current image block, or
a lower right corner point of the current image block.

### Claim 20 (depends on 11)

The non-transitory computer-readable media according to claim 11, wherein the determining the MV of the pixel point or the pixel matrix of the current image block according to the MVs of the at least two control points of the current image block, comprises:
determining a MV of each pixel point of the current image block according to the MVs of two control points of the current image block:
v
⁢
x
=
v
⁢
x
1
-
v
⁢
x
0
x
1
-
x
0
×
x
-
v
⁢
y
1
-
v
⁢
y
0
x
1
-
x
0
×
y
+
v
⁢
x
0
vy
=
v
⁢
y
1
-
v
⁢
y
0
x
1
-
x
0
×
x
+
v
⁢
x
1
-
v
⁢
x
0
x
1
-
x
0
×
y
+
v
⁢
y
0
wherein x and y represent respectively horizontal and vertical coordinates of the pixel point in the current image block, vx and vy represent corresponding horizontal and vertical MVs of the pixel point in the image block, and x0 and x1 and y0 and y1 represent respectively horizontal and vertical coordinates of two control points of the current image block, and vx0 and vx1 and vy0 and vy1 are corresponding horizontal and vertical MVs of two control points of the current image block.

### Claim 21

A non-transitory computer-readable storage medium, which includes a bitstream decoded by an image decoding device, the bitstream being generated by dividing a frame of a video signal or an image signal into a plurality of blocks, and including a plurality of syntax elements, wherein the plurality of syntax elements comprises an index included into the bitstream, and wherein the encoded bitstream decoded by performing operations for inter prediction of a current image block of the plurality of blocks, comprising:
determining a candidate affine block, wherein the candidate affine block is an affine coded block that is spatially neighboring to the current image block;
determining motion vectors (MVs) of at least two control points of the current image block according to MVs of at least two control points of the candidate affine block;
determining a MV of a pixel point or a pixel matrix of the current image block according to the MVs of at least two control points of the current image block; and
obtaining, based on the MV of the pixel point or the pixel matrix of the current image block, predicted values of the current image block;
wherein the MVs of the at least two control points of the current image block correspond to the index included into the bitstream.
