Image encoding/decoding method and apparatus with sub-block intra prediction
An image encoding/decoding method and apparatus for performing intra prediction are provided. An image decoding method of the present invention comprises deriving an intra prediction mode for a current block, selecting at least one reconstructed sample line neighboring to the current block, constructing a reference sample using at least one reconstructed sample included in the at least one reconstructed sample line, and performing intra prediction for the current block based on the intra prediction mode and the reference sample.
1 . An image decoding method, comprising:
deriving an intra prediction mode of a current block;
determining a search range of reference samples for an intra prediction of the current block;
determining the reference samples for the intra prediction of the current block among the search range of the reference samples; and
generating a prediction block by performing the intra prediction for the current block based on the intra prediction mode and the reference samples,
wherein a predetermined number of the reference samples are non-adjacent reference samples that are apart from each other by a predetermined sample unit among the search range,
wherein the predetermined sample unit is determined to be a half or a quarter of a height or width of the current block,
wherein the current block is obtained by dividing a coding tree block based on a division information signaled from a bitstream, and
wherein the division information includes a division flag indicates whether to divide the coding tree block.
2 . The method of claim 1 , wherein the search range is determined based on the intra prediction mode of the current block and a size of the current block.
3 . The method of claim 1 , wherein the reference samples are determined by shifting the predetermined sample unit only for a left reference sample or an upper reference sample of the current block.
4 . An image encoding method, comprising:
deriving an intra prediction mode of a current block;
determining a search range of reference samples for an intra prediction of the current block;
determining the reference samples for the intra prediction of the current block among the search range of the reference samples; and
generating a prediction block by performing the intra prediction for the current block based on the intra prediction mode and the reference samples,
wherein a predetermined number of the reference samples are non-adjacent reference samples that are apart from each other by a predetermined sample unit among the search range,
wherein the predetermined sample unit is determined to be a half or a quarter of a height or width of the current block,
wherein the current block is obtained by dividing a coding tree block,
wherein division information includes a division flag indicates whether to divide the coding tree block, and
wherein the division information is encoded into a bitstream.
5 . The method of claim 4 , wherein the search range is determined based on the intra prediction mode of the current block and a size of the current block.
6 . The method of claim 4 , wherein the reference samples are determined by shifting the predetermined sample unit only for a left reference sample or an upper reference sample of the current block.
7 . A method of transmitting a bitstream, the method comprising:
deriving an intra prediction mode of a current block;
determining a search range of reference samples for an intra prediction of the current block;
determining the reference samples for the intra prediction of the current block among the search range of the reference samples;
generating a prediction block by performing the intra prediction for the current block based on the intra prediction mode and the reference samples; and
transmitting the bitstream generated based on the prediction block,
wherein a predetermined number of the reference samples are non-adjacent reference samples that are apart from each other by a predetermined sample unit among the search range,
wherein the predetermined sample unit is determined to be a half or a quarter of a height or width of the current block,
wherein the current block is obtained by dividing a coding tree block,
wherein division information includes a division flag indicates whether to divide the coding tree block, and
wherein the division information is encoded into the bitstream.