| CPC H04N 19/132 (2014.11) [H04N 19/159 (2014.11); H04N 19/176 (2014.11); H04N 19/46 (2014.11); H04N 19/70 (2014.11)] | 13 Claims |

|
1. An image decoding method performed by a decoding apparatus, the method comprising:
obtaining image information comprising intra prediction type information from a bitstream, the intra prediction type information comprising an intra MIP syntax element for a first coding block, the intra MIP syntax element indicating whether matrix-based intra prediction is applied to the first coding block;
decoding the intra MIP syntax element;
setting MIP flag variables for all of samples in the first coding block based on a value of the decoded intra MIP syntax element, respectively, the MIP flag variables corresponding to sample positions of all of the samples in the first coding block, respectively, and the MIP flag variables being set for all of the samples in the first coding block based on a tree type of the first coding block being not a dual tree chroma, respectively;
deriving an intra prediction mode for a second coding block based on one of the MIP flag variables;
deriving prediction samples for the second coding block based on the intra prediction mode for the second coding block; and
generating a reconstructed block based on the prediction samples.
|