CPC H04N 19/159 (2014.11) [H04N 19/132 (2014.11); H04N 19/176 (2014.11); H04N 19/70 (2014.11)] | 10 Claims |
1. An image decoding method performed by a decoding apparatus, the method comprising:
obtaining image information including residual information and flag information related to whether matrix-based intra prediction (MIP) is used for a current block, from a bitstream;
obtaining matrix-based intra prediction (MIP) mode information based on the flag information;
generating intra prediction samples for the current block based on the MIP mode information;
generating residual samples for the current block based on the residual information; and
generating reconstructed samples for the current block based on the intra prediction samples and the residual samples,
wherein a syntax element bin string for the MIP mode information is binarized by a truncated binary (TB) binarization method,
wherein a maximum length of the syntax element bin string is set to different three values based on a size of the current block,
wherein the maximum length has a largest value based on a width and a height of the current block being 4,
wherein an MIP matrix is derived based on the MIP mode information, and
wherein the intra prediction samples are generated based on the MIP matrix,
wherein the MIP mode information is index information related to the MIP matrix applied to the current block.
|