Image encoding method/device, image decoding method/device, and recording medium in which bitstream is stored
View Patent ↗The present invention provides an image encoding method and an image decoding method. The image encoding method of the present invention comprises: a first dividing step of dividing a current image into a plurality of blocks; and a second dividing step of dividing, into a plurality of sub blocks, a block, which is to be divided and includes a boundary of the current image, among the plurality of blocks, wherein the second dividing step is recursively performed by setting a sub block including the boundary of the current images as the block to be divided, until the sub block including the boundary of the current image does not exist among the sub blocks.
1 . An image decoding method comprising:
performing a first partitioning on a current image into a plurality of blocks; and
performing a second partitioning on a target block into a plurality of sub-blocks,
wherein the second partitioning uses a quad-tree partitioning or binary-tree partitioning, and
wherein the current image includes a padded area,
wherein the padded area is constructed by horizontal copying of adjacent pixels in the padded area,
wherein the second partitioning uses a quad-tree partitioning or binary-tree partitioning based on a predetermined condition,
wherein the predetermined condition is determined by comparing at least one of a size of a block capable of quad-tree partitioning and a size of a block capable of binary-tree partitioning with a size of the target block,
wherein a number of sub-blocks is either 2 or 4,
wherein, when the second partitioning uses the quad-tree partitioning, a number of sub-blocks is 4, and when the second partitioning uses the binary-tree partitioning, the number of sub-blocks is 2.
2 . An image encoding method comprising:
performing a first partitioning on a current image into a plurality of blocks; and
performing a second partitioning on a target block into a plurality of sub-blocks,
wherein the second partitioning uses a quad-tree partitioning or binary-tree partitioning, and
wherein the current image includes a padded area,
wherein the padded area is constructed by horizontal copying of adjacent pixels in the padded area,
wherein the second partitioning uses a quad-tree partitioning or binary-tree partitioning based on a predetermined condition,
wherein the predetermined condition is determined by comparing at least one of a size of a block capable of quad-tree partitioning and a size of a block capable of binary-tree partitioning with a size of the target block,
wherein a number of sub-blocks is either 2 or 4,
wherein, when the second partitioning uses the quad-tree partitioning, a number of sub-blocks is 4, and when the second partitioning uses the binary-tree partitioning, the number of sub-blocks is 2.
3 . A transmitting method, comprising:
transmitting a bitstream generated by an image encoding method,
wherein the image encoding method comprises:
performing a first partitioning on a current image into a plurality of blocks; and
performing a second partitioning on a target block into a plurality of sub-blocks,
wherein the second partitioning uses a quad-tree partitioning or binary-tree partitioning, and
wherein the current image includes a padded area,
wherein the padded area is constructed by horizontal copying of adjacent pixels in the padded area,
wherein the second partitioning uses a quad-tree partitioning or binary-tree partitioning based on a predetermined condition,
wherein the predetermined condition is determined by comparing at least one of a size of a block capable of quad-tree partitioning and a size of a block capable of binary-tree partitioning with a size of the target block,
wherein a number of sub-blocks is either 2 or 4,
wherein, when the second partitioning uses the quad-tree partitioning, a number of sub-blocks is 4, and when the second partitioning uses the binary-tree partitioning, the number of sub-blocks is 2.