Picture prediction method and related apparatus
AssigneeHuawei Technologies Co., Ltd.
InventorsHuanbang CHEN, Sixin LIN, Fan LIANG, Haitao YANG
Life of this patent
Estimating the term…
Abstract
A picture prediction method and a related device are disclosed. The picture prediction method includes: determining two pixel samples in a current picture block, and determining a candidate motion information unit set corresponding to each of the two pixel samples; determining a merged motion information unit set i including two motion information units; and predicting a pixel value of the current picture block by using an affine motion model and the merged motion information unit set i. Technical solutions provided by embodiments of the present disclosure help reduce computational complexity of picture prediction performed based on the affine motion model.
Claims22
A picture processing method, comprising:
- obtaining a motion vector 2-tuple of a current picture block, wherein the motion vector 2-tuple comprises motion vectors of two pixel samples in a video frame to which the current picture block belongs;
- and
- obtaining a motion vector of any pixel sample in the current picture block through computation by using an affine motion model and the motion vector 2-tuple;
- wherein
- the affine motion model is in the following form:
- {
- vx
- =
- ax
- +
- by
- vy
- =
- -
- bx
- +
- ay
- ,
- wherein
- (x, y) are coordinates of the any pixel sample, vx is a horizontal component of the motion vector of the any pixel sample, and vy is a vertical component of the motion vector of the any pixel sample;
- and
- in the equation vx=ax+by, a is a horizontal coordinate coefficient of the horizontal component of the affine motion model, and b is a vertical coordinate coefficient of the horizontal component of the affine motion model;
- and in the equation vy=−bx+ay, a is a vertical coordinate coefficient of the vertical component of the affine motion model, and −b is a horizontal coordinate coefficient of the vertical component of the affine motion model.
A picture processing apparatus, wherein the apparatus comprises:
- a processor and a memory, wherein
- the processor invokes code or an instruction stored in the memory, so that the processor is configured to:
- obtain a motion vector 2-tuple of a current picture block, wherein the motion vector 2-tuple comprises motion vectors of two pixel samples in a video frame to which the current picture block belongs;
- and
- obtain a motion vector of any pixel sample in the current picture block through computation by using an affine motion model and the motion vector 2-tuple;
- wherein
- the affine motion model is in the following form:
- {
- vx
- =
- ax
- +
- by
- vy
- =
- -
- bx
- +
- ay
- ,
- wherein
- (x, y) are coordinates of the any pixel sample, vx is a horizontal component of the motion vector of the any pixel sample, and vy is a vertical component of the motion vector of the any pixel sample;
- and
- in the equation vx=ax+by, a is a horizontal coordinate coefficient of the horizontal component of the affine motion model, and b is a vertical coordinate coefficient of the horizontal component of the affine motion model;
- and in the equation vy=−bx+ay, a is a vertical coordinate coefficient of the vertical component of the affine motion model, and −b is a horizontal coordinate coefficient of the vertical component of the affine motion model.
A picture processing method, comprising:
- obtaining coefficients of an affine motion model, and obtaining a motion vector of any pixel sample in a current picture block through computation by using the coefficients of the affine motion model and the affine motion model;
- and
- determining a predicted pixel value of a pixel of the any pixel sample by using the motion vector that is of the any pixel sample and is obtained through computation;
- wherein
- the affine motion model is in the following form:
- {
- vx
- =
- ax
- +
- by
- vy
- =
- -
- bx
- +
- ay
- ,
- wherein
- (x, y) are coordinates of the any pixel sample, vx is a horizontal component of the motion vector of the any pixel sample, and vy is a vertical component of the motion vector of the any pixel sample;
- in the equation vx=ax+by, a is a horizontal coordinate coefficient of the horizontal component of the affine motion model, and b is a vertical coordinate coefficient of the horizontal component of the affine motion model;
- and in the equation vy=−bx+ay, a is a vertical coordinate coefficient of the vertical component of the affine motion model, −b is a horizontal coordinate coefficient of the vertical component of the affine motion model, and the coefficients of the affine motion model comprise a and b;
- and
- the coefficients of the affine motion model further comprise a horizontal displacement coefficient c of the horizontal component of the affine motion model and a vertical displacement coefficient d of the vertical component of the affine motion model, and therefore, the affine motion model is in the following form:
- {
- vx
- =
- ax
- +
- by
- +
- c
- vy
- =
- -
- bx
- +
- ay
- +
- d
- .
A picture processing apparatus, comprising:
- an obtaining unit, configured to obtain coefficients of an affine motion model;
- a computation unit, configured to obtain a motion vector of any pixel sample in the current picture block through computation by using the coefficients of the affine motion model that are obtained by the obtaining unit and the affine motion model;
- and
- a predicting unit, configured to determine a predicted pixel value of a pixel of the any pixel sample by using the motion vector that is of the any pixel sample and is obtained by the computation unit through computation;
- wherein
- the affine motion model is in the following form:
- {
- vx
- =
- ax
- +
- by
- vy
- =
- -
- bx
- +
- ay
- ,
- wherein
- (x, y) are coordinates of the any pixel sample, vx is a horizontal component of the motion vector of the any pixel sample, and vy is a vertical component of the motion vector of the any pixel sample;
- in the equation vx=ax+by, a is a horizontal coordinate coefficient of the horizontal component of the affine motion model, and b is a vertical coordinate coefficient of the horizontal component of the affine motion model;
- and in the equation vy=−bx+ay, a is a vertical coordinate coefficient of the vertical component of the affine motion model, −b is a horizontal coordinate coefficient of the vertical component of the affine motion model, and the coefficients of the affine motion model comprise a and b;
- and
- the coefficients of the affine motion model further comprise a horizontal displacement coefficient c of the horizontal component of the affine motion model and a vertical displacement coefficient d of the vertical component of the affine motion model, and therefore, the affine motion model is in the following form:
- {
- vx
- =
- ax
- +
- by
- +
- c
- vy
- =
- -
- bx
- +
- ay
- +
- d
- .
Dependencies are inferred from the claim text.