Affine motion model derivation method
Systems and methods are described for video coding using affine motion prediction. In an example method, motion vector gradients are determined from respective motion vectors of a plurality of neighboring sub-blocks neighboring a current block. An estimate of at least one affine parameter for the current block is determined based on the motion vector gradients. An affine motion model is determined based at least in part on the estimated affine parameter(s), and a prediction of the current block is generated using the affine motion model. The estimated parameter(s) may be used in the affine motion model itself. Alternatively, the estimated parameter(s) may be used in a prediction of the affine motion model. In some embodiments, only neighboring sub-blocks above and/or to the left of the current block are used in estimating the affine parameter(s).
1 . A video decoding method comprising:
obtaining an affine motion model for prediction of a current block;
selecting a sub-block size for sub-blocks of the current block, wherein the sub-block size is based on a shape of the current block, wherein the sub-block size has a first lateral dimension selected to be a minimum lateral size and a second lateral dimension selected according to an aspect ratio of the current block, and wherein the minimum lateral size is determined based on whether the current block is uni-predicted or bi-predicted;
determining a respective motion vector for each of the sub-blocks using the affine motion model; and
predicting the sub-blocks of the current block based on the respective motion vectors.
2 . The method of claim 1 , wherein the sub-block size is selected to have an aspect ratio the same as an aspect ratio of the current block.
3 . The method of claim 1 , wherein the sub-block size is selected from a plurality of sizes including at least 4×4 and 4×8.
4 . A video decoding apparatus comprising one or more processors configured to perform at least:
obtaining an affine motion model for prediction of a current block;
selecting a sub-block size for sub-blocks of the current block, wherein the sub-block size is based on a shape of the current block, wherein the sub-block size has a first lateral dimension selected to be a minimum lateral size and a second lateral dimension selected according to an aspect ratio of the current block, and wherein the minimum lateral size is determined based on whether the current block is uni-predicted or bi-predicted;
determining a respective motion vector for each of the sub-blocks using the affine motion model; and
predicting the sub-blocks of the current block based on the respective motion vectors.
5 . The apparatus of claim 4 , wherein the sub-block size is selected to have an aspect ratio the same as an aspect ratio of the current block.
6 . The apparatus of claim 4 , wherein the sub-block size is selected from a plurality of sizes including at least 4×4 and 4×8.
7 . A video encoding method comprising:
obtaining an affine motion model for prediction of a current block;
selecting a sub-block size for sub-blocks of the current block, wherein the sub-block size is based on a shape of the current block, wherein the sub-block size has a first lateral dimension selected to be a minimum lateral size and a second lateral dimension selected according to an aspect ratio of the current block, and wherein the minimum lateral size is determined based on whether the current block is uni-predicted or bi-predicted;
determining a respective motion vector for each of the sub-blocks using the affine motion model; and
predicting the sub-blocks of the current block based on the respective motion vectors.
8 . The method of claim 7 , wherein the sub-block size is selected to have an aspect ratio the same as an aspect ratio of the current block.
9 . The method of claim 7 , wherein the sub-block size is selected from a plurality of sizes including at least 4×4 and 4×8.
10 . A video encoding apparatus comprising one or more processors configured to perform at least:
obtaining an affine motion model for prediction of a current block;
selecting a sub-block size for sub-blocks of the current block, wherein the sub-block size is based on a shape of the current block, wherein the sub-block size has a first lateral dimension selected to be a minimum lateral size and a second lateral dimension selected according to an aspect ratio of the current block, and wherein the minimum lateral size is determined based on whether the current block is uni-predicted or bi-predicted;
determining a respective motion vector for each of the sub-blocks using the affine motion model; and
predicting the sub-blocks of the current block based on the respective motion vectors.
11 . The apparatus of claim 10 , wherein the sub-block size is selected to have an aspect ratio the same as an aspect ratio of the current block.
12 . The apparatus of claim 10 , wherein the sub-block size is selected from a plurality of sizes including at least 4×4 and 4×8.