| CPC H04N 19/44 (2014.11) [H04N 19/105 (2014.11); H04N 19/137 (2014.11); H04N 19/176 (2014.11)] | 7 Claims |

|
1. An image decoding method comprising:
identifying at least two neighboring sub-blocks that have a same motion vector and are adjacent to each other from among a plurality of neighboring sub-blocks that are adjacent to a current block;
determining a representative motion vector and representative location information corresponding to the at least two neighboring sub-blocks;
obtaining an initial parameter of a model for determining a motion vector from a block reconstructed in a sub-block unit mode prior to the current block;
refining a parameter of the model based on the initial parameter, the representative motion vector and the representative location information;
determining a motion vector of a current sub-block included in the current block based on location information of the current sub-block and the parameter; and
predicting the current block based on the motion vector of the current sub-block,
wherein the representative motion vector is determined based on the same motion vector, and
wherein the representative location information indicates coordinates that are determined based on the at least two neighboring sub-blocks.
|