An image decoding method according to the present document comprises the steps of acquiring prediction-related information and residual-related information for a current block; deriving transform coefficients for the current block on the basis of the residual-related information; and generating residual samples of the current block on the basis of the transform coefficients, wherein the residual-related information includes low-frequency non-separable transform (LFNST) index information indicating information relating to non-separable transform for a low-frequency transform coefficient of the current block on the basis of a matrix-based intra prediction (MIP) flag.
TRANSFORM IN INTRA PREDICTION-BASED IMAGE CODING