CPC H04N 19/593 (2014.11) [G06T 9/004 (2013.01); H04N 19/107 (2014.11); H04N 19/127 (2014.11); H04N 19/159 (2014.11); H04N 19/176 (2014.11); H04N 19/189 (2014.11); H04N 19/196 (2014.11); H04N 19/503 (2014.11); H04N 19/132 (2014.11)] | 3 Claims |
1. A method of decoding an image, the method comprising:
generating an inter prediction block by performing inter prediction with respect to a current block;
generating an intra prediction block by performing intra prediction with respect to the current block;
determining a first weight and a second weight;
generating a final prediction block by respectively applying the first weight and the second weight to the inter prediction block and the intra prediction block;
reconstructing a residual block from a bitstream; and
generating a reconstruction block of the current block based on the final prediction block and the residual block,
wherein the generating of the intra prediction block includes generating the intra prediction block using a predefined intra prediction mode,
wherein the determining of the first weight and the second weight includes determining the first weight and the second weight based on the number of neighbor blocks decoded in an intra prediction mode among a plurality of neighbor blocks adjacent to the current block, and
wherein the plurality of neighbor blocks includes a left neighbor block adjacent to a left of the current block and a top neighbor block adjacent to a top of the current block.
|