| CPC H04N 19/132 (2014.11) [H04N 19/105 (2014.11); H04N 19/159 (2014.11); H04N 19/176 (2014.11)] | 3 Claims |

|
1. An image decoding method performed by a decoding apparatus, the method comprising:
receiving residual information and flag information related to whether matrix-based intra prediction (MIP) is used as an intra prediction type for a current block;
receiving MIP mode information based on a value of the flag information being equal to 1, wherein the value of the flag information being equal to 1 is related that the MIP is used as the intra prediction type for the current block;
generating intra prediction samples for the current block based on the MIP mode information;
deriving transform coefficients based on the residual information;
generating residual samples for the current block based on the transform coefficients; and
generating reconstructed samples for the current block based on the intra prediction samples and the residual samples,
wherein the MIP mode information is index information related to an MIP matrix applied to the current block,
wherein the MIP matrix is derived based on a size of the current block and the index information, and
wherein the intra prediction samples is generated based on the MIP matrix.
|