| CPC H04N 19/66 (2014.11) [H04N 19/105 (2014.11); H04N 19/132 (2014.11); H04N 19/176 (2014.11)] | 13 Claims |

|
1. A method of decoding an image, the method comprising:
obtaining a motion vector of a current block;
obtaining a first prediction block based on a reference block in a reference image indicated by the motion vector;
obtaining a second prediction block for the current block by applying, to a neural network, at least one of an enlarged picture order count (POC) map comprising a POC difference between the reference image and a current image comprising the current block, an enlarged first prediction block, or an enlarged quantization error map; and
reconstructing the current block based on the second prediction block,
wherein sample values of a quantization error map are calculated based on a quantization parameter for the reference block,
wherein the at least one of the enlarged POC map, the enlarged first prediction block, or the enlarged quantization error map is obtained by padding at least one of a POC map, the first prediction block, or the quantization error map according to an enlarged distance.
|