METHOD, DEVICE, AND RECORDING MEDIUM STORING BIT STREAM, FOR ENCODING/DECODING IMAGE
The invention relates to a method for encoding/decoding an image. The image decoding method according to the invention comprises the steps of: obtaining diagonal partition information on a current block; determining a diagonal partition structure of the current block using the diagonal partition information; and diagonally partitioning the current block into a first and a second area based on the determined diagonal partition structure, the current block being a leaf node of a square or rectangular partition.
1 . A method for decoding an image, the method comprising:
deriving motion information of a current block, wherein the current block includes a first partition and a second partition based on geometric partitioning, and the motion information includes first motion information related to the first partition and second motion information related to the second partition;
obtaining a first prediction block of the current block based on the first motion information related to the first partition;
obtaining a second prediction block of the current block based on the second motion information related to the second partition; and
obtaining a final prediction block of the current block based on a weighted sum of the first prediction block and the second prediction block; and
reconstructing the current block based on the final prediction block,
wherein the geometric partitioning is applied to the current block only when the current block does not perform sub-block-based inter prediction.
2 . The method of claim 1 , wherein the sub-block-based inter prediction includes sub-block-based temporal candidate prediction.
3 . The method of claim 1 , wherein the motion information of the current block is derived based on a merge mode.
4 . The method of claim 3 , wherein the first partition has a merge index different from the second partition, and
wherein the merge index indicates a merge candidate of the first partition.
5 . A method for encoding an image, the method comprising:
deriving motion information of a current block, wherein the current block includes a first partition and a second partition based on geometric partitioning, and the motion information includes first motion information related to the first partition and second motion information related to the second partition;
obtaining a first prediction block corresponding to the first partition in the current block;
obtaining a second prediction block corresponding to the second partition in the current block;
obtaining a final prediction block of the current block based on a weighted sum of the first prediction block and the second prediction block; and
encoding the current block based on the final prediction block,
wherein the geometric partitioning is applied to the current block only when the current block does not perform sub-block-based inter prediction.
6 . A non-transitory computer-readable medium for storing data associated with an image signal, comprising:
a data stream encoded by an encoding method,
wherein the encoding method comprises:
deriving motion information of a current block, wherein the current block includes a first partition and a second partition based on geometric partitioning, and the motion information includes first motion information related to the first partition and second motion information related to the second partition;
obtaining a first prediction block corresponding to the first partition in the current block;
obtaining a second prediction block corresponding to the second partition in the current block; and
obtaining a final prediction block of the current block based on a weighted sum of the first prediction block and the second prediction block; and
encoding the current block based on the final prediction block,
wherein the geometric partitioning is applied to the current block only when the current block does not perform sub-block-based inter prediction.