Intra prediction method and device
The present invention relates to an intra prediction method and apparatus. The image decoding method according to the present invention may comprise decoding information on intra prediction; and generating a prediction block by performing intra prediction for a current block based on the information on intra prediction. The information on intra prediction may include information on an intra prediction mode, and the intra prediction mode may include a curved intra prediction mode.
1 . An image decoding method performed by a decoding apparatus, the method comprising:
obtaining, through a bitstream, image information comprising information on quantized transform coefficient levels;
deriving a prediction mode for a current block as one of inter mode or intra mode;
generating a predicted block of the current block based on the inter mode or the intra mode;
deriving transform coefficients based on the information on quantized transform coefficient levels;
determining a transform set for the current block;
deriving a reconstructed residual signal by performing inverse-transform based on the transform coefficients and a transform candidate in the transform set; and
generating a reconstructed block based on the predicted block and the reconstructed residual signal,
wherein the transform set includes a 2-dimensional (2D) transform candidate and a 1-dimensional (1D) transform candidate.
2 . The method of claim 1 , wherein the transform set is one of transform sets including a first transform set for the intra mode and a second transform set for the inter mode,
wherein a number of transform candidates of the first transform set is different from a number of transform candidates of the second transform set.
3 . The method of claim 1 , wherein the transform set is one of transform sets including a first transform set for the intra mode and a second transform set for the inter mode,
wherein types of transform candidates of the first transform set are different from types of transform candidates of the second transform set.
4 . The method of claim 1 , wherein at least one of the number or the types of transform candidates of the transform set are determined differently further based on a size of the current block.
5 . An image encoding method performed by an encoding apparatus, the method comprising:
deriving a prediction mode for a current block as one of inter mode or intra mode;
generating predicted block of the current block based on the inter mode or the intra mode;
deriving a residual signal based on the predicted block;
determining a transform set for the current block;
deriving transform coefficients by performing transform based on the residual signal and a transform candidate in the transform set;
deriving quantized transform coefficient levels based on the transform coefficients; and
encoding image information including information on the quantized transform coefficient levels;
wherein the transform set includes a 2-dimensional (2D) transform candidate and a 1-dimensional (1D) transform candidate.
6 . The method of claim 5 , wherein the transform set is one of transform sets including a first transform set for the intra mode and a second transform set for the inter mode,
wherein a number of transform candidates of the first transform set is different from a number of transform candidates of the second transform set.
7 . A transmission method for image data, the method comprising:
obtaining a bitstream of encoded image information, wherein the encoded image information is generated based on deriving a prediction mode for a current block as one of inter mode or intra mode, generating predicted block of the current block based on the inter mode or the intra mode, deriving a residual signal based on the predicted block, determining a transform set for the current block, deriving transform coefficients by performing transform based on the residual signal and a transform candidate in the transform set, deriving quantized transform coefficient levels based on the transform coefficients, and encoding image information including information on the quantized transform coefficient levels; and
transmitting the image data comprising the bitstream,
wherein the transform set includes a 2-dimensional (2D) transform candidate and a 1-dimensional (1D) transform candidate.