Method for encoding / decoding multi-view video

By converting multi-view videos to a common viewpoint and incorporating viewpoint differences, the method addresses inefficiencies in encoding and decoding, enhancing compression and prediction efficiency for immersive media.

JP7561104B2Active Publication Date: 2024-10-03ELECTRONICS & TELECOMM RES INST +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
JP2021140378
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Priority Date
2015-11-23
Filing Date
2021-08-30
Publication Date
2024-10-03
Estimated Expiration
2036-11-23

AI Technical Summary

Technical Problem

Existing methods for encoding and decoding multi-view videos do not effectively utilize the characteristics of immersive media, leading to inefficiencies in compression and prediction due to differing viewpoints between images.

Method used

A method is proposed to unify videos with different viewpoints by converting images to a common viewpoint and storing them in a reference picture list, using the viewpoint difference based on angular and distance differences to improve encoding and decoding efficiency.

Benefits of technology

This approach enhances the encoding and decoding efficiency of multi-view videos by reducing distortion at viewpoint boundaries and improving prediction accuracy through linear conversion of prediction information.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007561104000007
    Figure 0007561104000007
  • Figure 0007561104000008
    Figure 0007561104000008
  • Figure 0007561104000009
    Figure 0007561104000009
Patent Text Reader

Abstract

To improve the efficiency of encoding / decoding multi-viewpoint video, a method and apparatus are provided for unifying images with different viewpoints into one viewpoint and performing encoding / decoding using reference pictures that combine images with the unified viewpoints. [Solution] The video encoding method includes, when a second video having a different viewpoint from a first video having a first viewpoint exists, a step of converting the second video to the first viewpoint, a step of adding the second video to one side of the first video to generate a reference video, and a step of storing the reference video in a reference picture list.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present disclosure relates to video encoding / decoding methods, and more particularly, to methods for performing prediction in multi-view videos. [Background technology]

[0002] As high-resolution / high-quality broadcasting services become more commonplace due to technological advances, interest in UHD (Ultra High Definition), which exceeds HD (High Definition) resolution and has more than four times the resolution, is growing.

[0003] With this trend, interest is growing in immersive images such as stereoscopic images and omnidirectional video in addition to existing 2D images. With the development of new media, devices capable of playing immersive images, such as head-mounted displays, are appearing one after another, but immersive media is still encoded / decoded in the same way as 2D images. Therefore, in order to increase the compression efficiency of immersive media, a compression method that suits the characteristics of immersive media must be developed. Summary of the Invention [Problem to be solved by the invention]

[0004] A technical problem of the present disclosure is to provide a method for improving the encoding / decoding efficiency of multi-view videos.

[0005] Specifically, the technical objective of the present disclosure is to provide a method and apparatus for unifying images with different viewpoints into one viewpoint and then performing encoding / decoding using a reference picture that combines the images with the unified viewpoints.

[0006] Another technical object of the present disclosure is to provide a method for improving prediction efficiency of a current block by converting prediction information of a neighboring block when the current block and the neighboring block have different views.

[0007] The technical problems to be solved by the present disclosure are not limited to the above-mentioned technical problems, and technical problems not described above will be clearly understood by a person having ordinary skill in the technical field to which the present disclosure pertains from the following description. [Means for solving the problem]

[0008] According to one aspect of the present disclosure, a video encoding method is disclosed, which includes, when a second image having a different viewpoint from a first image having a first viewpoint exists, a step of converting the second image to the first viewpoint, a step of adding the second image to one side of the first image to generate a reference image, and a step of storing the reference image in a reference picture list.

[0009] According to one aspect of the present disclosure, a video decoding method is disclosed, which includes, when a second image having a different viewpoint from a first image having a first viewpoint exists, a step of converting the second image to the first viewpoint, a step of adding the second image to one side of the first image to generate a reference image, and a step of storing the reference image in a reference picture list.

[0010] The following points may be commonly applied to the video encoding method and the video decoding method.

[0011] The converted image may be generated based on a viewpoint difference between the first image and the second image, and the viewpoint difference may include at least one of a distance difference or an angle difference between the first image and the second image.

[0012] The viewpoint difference may be determined based on a characteristic of an omnidirectional image including the first image and the second image.

[0013] When the omnidirectional image is projected onto a regular polyhedron, the angular difference between the first image and the second image can be determined by the interior angles of the regular polyhedron.

[0014] The viewpoint difference is obtained based on a distance and an angle difference between a first camera used to capture the first image and a second camera used to capture the second image.

[0015] The position where the second image is added may be determined according to characteristics of a regular polyhedron including the first image and the second image.

[0016] The reference pictures may be stored in the reference picture list together with time period information corresponding to the first image and the second image.

[0017] The above briefly summarized features of the present disclosure are merely exemplary aspects of the following detailed description of the present disclosure and are not intended to limit the scope of the present disclosure. Effect of the Invention

[0018] According to the present disclosure, a method for improving the encoding / decoding efficiency of multi-view videos can be provided.

[0019] Specifically, the present disclosure provides a method and apparatus for unifying images with different viewpoints into one viewpoint and then performing encoding / decoding using a reference picture that combines the images with the unified viewpoints.

[0020] Specifically, according to the present disclosure, when a current block and a neighboring block have different views from each other, a method for improving prediction efficiency of the current block by converting prediction information of the neighboring block may be provided.

[0021] The effects obtained by the present disclosure are not limited to the effects described above, and other effects not described above will be clearly understood by those having ordinary skill in the art to which the present disclosure pertains from the following description. [Brief description of the drawings]

[0022] [Figure 1] FIG. 1 is a diagram illustrating an example of a type of camera for generating 3D multi-viewpoint video. [Diagram 2]FIG. 1 is a diagram for explaining divergent video. [Diagram 3] FIG. 1 is a diagram for explaining convergent video. [Figure 4] An example of 3D multi-view video projected onto the unfolded shape of a polyhedron is shown. [Diagram 5] 1 is a diagram illustrating an example of a two-dimensional expansion shape of a 3D multi-view video. [Figure 6] A diagram illustrating the three-dimensional shape of a 3D multi-view video. [Figure 7] FIG. 11 is a diagram for explaining an example in which a part of a 3D multi-viewpoint video is displayed. [Figure 8] FIG. 13 is a diagram illustrating an example of how a 3D video played back in a cubic form appears. [Figure 9] FIG. 1 is a diagram showing an example of dividing a coding tree unit (CTU) into CUs when encoding video. [Figure 10] FIG. 13 is a diagram for explaining an example in which a CU is divided into PUs. [Figure 11] FIG. 1 is a diagram for explaining an inter-prediction method. [Figure 12] A figure showing an example of generating a merged motion candidate list. [Figure 13] FIG. 1 is a diagram illustrating an example of how a particular frame of a cubic 3D video appears when actually played back. [Figure 14] FIG. 13 is a diagram showing in more detail an example of nonlinear distortion occurring at the boundaries between surfaces. [Figure 15] 11A and 11B are diagrams illustrating an example of generating a reference video by converting the viewpoint of an adjacent area. [Figure 16] 4 is a flowchart illustrating a process of generating a transform extended image according to the present invention. [Figure 17] FIG. 13 is a diagram illustrating an example for explaining inter-viewpoint characteristics. [Figure 18] FIG. 13 is a diagram illustrating an example for explaining inter-viewpoint characteristics. [Figure 19] 11A and 11B are diagrams for explaining an example in which an image is transformed according to the viewpoint of another image. [Figure 20] FIG. 13 is a diagram showing an example of generating a reference image based on a specific face of a cube. [Figure 21] FIG. 13 is a diagram showing an example of generating a reference image based on a specific face of a cube. [Figure 22] FIG. 13 is a diagram showing an example of generating a reference image for a divergent image. [Diagram 23] 11 is a diagram showing an example of generating a reference image by combining an image serving as a reference for a viewpoint and a transformed image. FIG. [Figure 24] FIG. 13 is a diagram illustrating whether a transformed image includes regions essential for temporal prediction. [Diagram 25] 13 is a diagram illustrating an example of generating a reference image for a convergent image. [Figure 26] 11 is a diagram showing an example of generating a reference image by combining an image serving as a reference for a viewpoint and a transformed image. FIG. [Figure 27] 11 is a diagram showing an example of generating a reference image list for 3D multi-view images that are rendered into a cuboid shape. FIG. [Figure 28] FIG. 13 is a diagram showing an example in which a reference picture list for a divergent picture is generated. [Figure 29] 11 is a diagram showing an example in which a reference picture list for a convergent picture is generated. [Diagram 30] 11 is a diagram for comparing a case where a reference video is generated according to the present invention with a case where a reference video is not generated. [Diagram 31] 1 is a diagram illustrating the aspects of encoding with and without the application of the present invention; [Diagram 32] 3 is a flowchart showing a method for converting prediction information according to the present invention. [Diagram 33] FIG. 13 is a diagram showing an example in which prediction information is transformed at a perspective boundary. [Diagram 34] 11 is a flowchart for explaining a process of determining MPM (Most Probable Mode) candidates for performing intra prediction based on prediction information of surrounding blocks. [Diagram 35]FIG. 13 is a diagram illustrating an example of generating MPM candidates depending on whether a current block is located on a viewpoint boundary. [Diagram 36] FIG. 13 is a diagram illustrating an example of generating MPM candidates depending on whether a current block is located on a viewpoint boundary. [Figure 37] FIG. 13 is a diagram illustrating an example of generating MPM candidates depending on whether a current block is located on a viewpoint boundary. [Figure 38] 11 is a flowchart illustrating a process of determining spatial merge candidates for performing inter prediction under a merge motion mode (merge mode) based on prediction information of neighboring blocks. [Figure 39] An example will be given in which a current block and a spatially adjacent block have different perspectives. [Diagram 40] 11 is a flowchart illustrating a process of determining a temporal merge candidate for performing inter prediction under a merge mode based on prediction information of a neighboring block. [Diagram 41] An example in which a current block and a temporally adjacent block have different views will be described. [Diagram 42] FIG. 2 is a block diagram showing the configuration of an encoder according to the present invention. [Diagram 43] FIG. 2 is a block diagram showing the configuration of a decoder according to the present invention. [Diagram 44] FIG. 2 is a block diagram of a reference image extension unit according to the present invention; DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0023] Since the present invention can be modified in various ways and can have various embodiments, a specific embodiment will be illustrated in the drawings and described in detail in the detailed description. However, this is not intended to limit the present invention to a specific embodiment, and should be understood to include all modifications, equivalents, or alternatives within the spirit and technical scope of the present invention. In the drawings, similar reference symbols refer to the same or similar functions over various aspects. The shapes and sizes of elements in the drawings may be exaggerated for clearer explanation. The detailed description of the exemplary embodiments described below refers to the accompanying drawings which illustrate specific embodiments as examples. These embodiments are described in detail so that those skilled in the art can fully implement the embodiments. It should be understood that the various embodiments are different from each other, but are not necessarily mutually exclusive. For example, specific shapes, structures, and characteristics described herein can be realized in other embodiments without departing from the spirit and scope of the present invention in relation to one embodiment. It should also be understood that the position or arrangement of individual components in each disclosed embodiment can be changed without departing from the spirit and scope of the embodiment. Accordingly, the following detailed description is not to be taken in a limiting sense, and the scope of the example embodiments is limited only by the appended claims, along with the full scope of equivalents to which those claims are entitled, if properly recited.

[0024] In the present invention, terms such as "first" and "second" can be used to describe various components, but the components are not limited by these terms. These terms are used only for the purpose of distinguishing one component from another. For example, a first component can be named a second component, and similarly, the second component can be named a first component, without departing from the scope of the present invention. The term "and / or" includes a combination of two or more related listed items or any of two or more related listed items.

[0025] When a component of the present invention is referred to as being "coupled" or "connected" to another component, it should be understood that while it may be directly coupled or connected to the other component, there may be other components between the components. In contrast, when a component is referred to as being "directly coupled" or "directly connected" to another component, it should be understood that there are no other components between the components.

[0026] The components appearing in the embodiments of the present invention are illustrated independently to show different characteristic functions, and do not mean that each component is composed of separate hardware or a single software unit. That is, each component is illustrated side by side as a single component for convenience of explanation, and at least two of each component can be combined into one component, or one component can be divided into multiple components to perform its function. Such integrated and separated embodiments of each component are also included in the scope of the present invention as long as they do not deviate from the essence of the present invention.

[0027] The terms used in the present invention are merely used to describe certain embodiments and are not intended to limit the present invention. A singular expression includes a plural expression unless the context clearly indicates a different meaning. In the present invention, the terms "include" or "have" indicate the presence of features, numbers, steps, operations, components, parts, or combinations thereof described in the specification, and should be understood not to preclude the presence or addition of one or more other features, numbers, steps, operations, components, parts, or combinations thereof. In other words, in the present invention, the content described as "including" a specific configuration does not exclude configurations other than the corresponding configuration, but means that additional configurations may be included in the implementation of the present invention or the technical idea of ​​the present invention.

[0028] Some components of the present invention may not be essential components for performing essential functions in the present invention, but may be optional components for simply improving performance. The present invention can be realized by including only components essential for realizing the essence of the present invention, excluding components used simply for improving performance, and a structure including only essential components, excluding optional components used simply for improving performance, is also included in the scope of the present invention.

[0029] The "viewpoint" described in the present invention is related to the direction and perspective of the camera, and is commonly referred to as the viewpoint position (Veiwpoint) and the viewpoint direction (Perspective). For convenience of explanation, in the embodiment described later, the 3D multi-view image will be described with the viewpoint direction (Perspective) as the center.

[0030] Hereinafter, the embodiments of the present invention will be described in detail with reference to the drawings. In describing the embodiments of the present specification, if it is determined that a detailed description of related known configurations or functions may make the gist of the specification unclear, the detailed description will be omitted, and the same reference numerals will be used for the same components in the drawings, and duplicate descriptions of the same components will be omitted.

[0031] Existing 2D videos are played from a fixed viewpoint, whereas omnidirectional videos (or 360-degree videos) can play videos from a viewpoint desired by the user. To generate omnidirectional videos, various types of cameras shown in FIG. 1 can be used. After shooting in a 3D space (e.g., in a 360-degree direction) from one location using multiple cameras as shown in FIG. 1(a), a fisheye lens as shown in FIG. 1(b), or a reflector as shown in FIG. 1(c), the shot 3D image can be projected onto a solid figure such as a polyhedron or a sphere.

[0032] In addition to omnidirectional video, immersive media can include divergent video and convergent video in which multiple cameras capture images in various directions and combine them together. Divergent video refers to an image generated by multiple cameras capturing images in various directions, and convergent video refers to an image generated by multiple cameras capturing images in a specific direction.

[0033] 2 and 3 are diagrams for explaining divergent video and convergent video, respectively. Divergent video means video captured with multiple cameras' shooting directions spreading out. As an example, in FIG. 2(a), the shooting directions W1, W2, and W3 of cameras C1, C2, and C3 spread out from each other.

[0034] A convergent image refers to an image captured by a plurality of cameras whose shooting directions converge toward one point. For example, in FIG. 3(a), the shooting directions W1, W2, W3, and W4 of the cameras C1, C2, C3, and C4 are all directed toward one point.

[0035] Omnidirectional 3D video or 3D multi-view video captured with converging or diverging cameras can be expanded into a polyhedron or an equirectangular shape that expands a sphere.

[0036] As an example, (a) and (b) of Figure 4 show an example in which a spherical 3D multi-view image is expanded into a cubic expansion figure. Referring to (a) and (b) of Figure 4, a 2D image in the shape of a cubic expansion figure can be obtained from an omnidirectional 3D image.

[0037] In addition to the example shown in Fig. 4, the 3D multi-view video can be expanded into various types of polyhedral development shapes. As an example, Fig. 5 is a diagram illustrating a 2D development shape of the 3D multi-view video. As in the example shown in Fig. 5, the 3D multi-view video can be projected into various solid shapes such as a regular tetrahedron, a cube, a regular octahedron, a regular dodecahedron, or a regular icosahedron.

[0038] When a video is played back, the two-dimensionally expanded image can be further reconstructed into a three-dimensional space such as a polyhedron or a sphere. For example, the three-dimensional video can be reconstructed into a regular tetrahedron, cube, octahedron, dodecahedron, or icosahedron, as shown in FIG. 6.

[0039] Assuming that the user's gaze is placed at the center of the polyhedron, it is impossible to see the entire area of ​​the polyhedron-shaped reconstructed 3D image at a glance. Therefore, when a 3D multi-view video is played, only the area corresponding to the specific point the user is looking at at a specific time or the specific point selected by the user is displayed out of the entire 3D constructed area.

[0040] Fig. 7 is a diagram for explaining an example in which a part of a 3D multi-view video is displayed. Fig. 7(a) and (b) are diagrams virtually showing a user watching a 3D multi-view video from outside, and Fig. 7(c) is a conceptual diagram showing an omnidirectional video centered on the user watching the 3D multi-view video.

[0041] When playing a 3D multi-view video, a portion of the entire area of ​​a 3D reconstructed image toward which the user's viewpoint is directed or a portion selected by the user can be played. As an example, the shaded areas in (a) and (b) of FIG. 7 indicate a portion of the 3D reconstructed image toward which the user's viewpoint is directed or a portion selected by the user. In this case, an area of ​​the multi-view image corresponding to the portion toward which the user's viewpoint is directed or the portion selected by the user can be output. As an example, when based on the user, only a portion of the entire area of ​​a 3D image can be displayed as in the example shown in (c) of FIG. 7.

[0042] In this case, the 3D multi-view image may have a plurality of viewpoints. Here, the plurality of viewpoints means that the multi-view image has a plurality of viewpoint positions (viewpoints) or a plurality of viewpoint directions (perspectives). This will be described in more detail with reference to the drawings.

[0043] FIG. 8 is a diagram illustrating an example of a state when a 3D video expanded in a cube is played. The eyes of a user watching a 3D video are at the center of the cube, and each face is a perspective from which the eyes view. For example, in the example shown in FIG. 8, assuming that the perspective of the front of the cube is 4 and the perspective of the top is 1, perspective 2 corresponds to the rear of the cube, perspective 3 corresponds to the left side of the cube, perspective 5 corresponds to the right side of the cube, and perspective 6 corresponds to the bottom of the cube. As a result, as shown in FIG. 8, each face of the hexahedron constituting the 3D image can have a different viewpoint from each other.

[0044] In the case of divergent images, the shooting directions of the cameras are different, which may cause perspective differences between the images. For example, in the example shown in FIG. 2(b), three cameras C1, C2, and C3 shoot in different directions, so that three images P1, P2, and P3 having different viewpoints can be generated.

[0045] In the case of convergent images, the images captured by each camera may have different perspectives. For example, in the example shown in FIG. 3(b), four cameras C1, C2, C3, and C4 capture images in different directions, generating four images P1, P2, P3, and P4 with different viewpoints.

[0046] For convenience of explanation, in the embodiments described below, it is assumed that "image" means any frame of a multi-view video or a partial area having any viewpoint. As an example, when any frame of a 3D multi-view video is expanded into a cube as in the example shown in FIG. 8, the frame may be called "image", and a partial area having any viewpoint in the frame (i.e., one side of the cube) may be called "image".

[0047] As described above, the 3D multi-view video may be projected into a two-dimensional space and encoded / decoded. Thus, the 3D multi-view video may be encoded / decoded in the same manner as the 2D video. As an example, an encoding / decoding method based on block division, intra-frame prediction (or spatial prediction, intra prediction), and inter-frame prediction (or temporal prediction, inter prediction) used in the 2D video encoding / decoding can also be used in the 3D multi-view video encoding / decoding. The following briefly describes encoding / decoding techniques that can be used in the 3D multi-view video encoding / decoding.

[0048] In HEVC, in order to efficiently code video, coding / decoding is performed in units of coding units (CUs). Fig. 9 is a diagram showing an example of dividing a coding tree unit (CTU) in units of CUs when coding video. A CTU may be called an LCU (Largest Coding Unit) or may have an equivalent concept.

[0049] As shown in the example of Fig. 9, an image is sequentially divided into CTU units, and then a division structure is determined for each CTU. Here, the division structure means a distribution of CUs for efficiently encoding / decoding an image in a CTU. The distribution of CUs may be determined based on whether to divide a CTU into a plurality of CUs having a width and / or height smaller than the width and / or height of the CTU. As an example, the distribution of CUs may be in a form in which a CTU is divided into four or two CUs.

[0050] The divided CU can be further divided recursively into multiple CUs with reduced horizontal and / or vertical lengths in a similar manner. In this case, the division of a CU can be performed up to a predefined depth, and depth information (Depth) indicates the size of the CU and can be stored for all CUs. For example, the depth of a CTU, which is a basic division target, is 0, which indicates a CU with the maximum depth of an SCU (Smallest Coding Unit). In other words, a CU with a predefined depth can be called an SCU. The depth value can be increased by 1 every time a CTU is divided into four or two CUs.

[0051] Assuming that a CU is split into four CUs, if no split is performed on a CU with a size of 2N×2N, the size of the CU will remain 2N×2N. In contrast, if split is performed on a CU with a size of 2N×2N, four CUs with a size of N×N will be generated as a result. Thus, the size of N is reduced by half every time the split depth of the CU increases by 1.

[0052] As an example, if the size of a CTU with a minimum depth of 0 is 64x64 pixels, a 64x64 pixel CU can be expressed as a depth of 0, a 32x32 pixel CU as a depth of 1, a 16x16 pixel CU as a depth of 2, and an 8x8 pixel CU as a depth of 3. If the maximum depth is 3, the size of the SCU is 8x8 pixels.

[0053] Information on whether a specific CU is to be divided can be expressed using CU-specific division information, which can be coded / signaled for all CUs except for SCUs.

[0054] In this case, the division information may include at least one flag information. The flag information indicates whether the CU is divided into four or two CUs. For example, the flag being '0' indicates that the CU is no longer divided, and the flag being '1' indicates that the CU is divided into multiple CUs.

[0055] A CU is a coding / decoding unit, and a coding mode can be set on a CU basis. For example, each CU may have an intra-picture coding (MODE_INTRA or INTRA) mode or an inter-picture coding (MODE_INTER or INTER) mode. In this case, the inter-picture coding mode may include a MODE_INTER mode and a MODE_SKIP (SKIP) mode.

[0056] A prediction unit (PU) refers to a unit in which prediction is performed. One CU may be divided into at least one PU. As an example, FIG. 10 is a diagram for explaining an example in which a CU is divided into PUs. When the coding mode of a CU is an intra-picture coding mode, all PUs included in the corresponding CU may be coded in the intra-picture coding mode. In this case, when the coding mode of a CU is an intra-picture coding mode, the division structure of the PU may be set to either 2N×2N or N×N in the examples shown in FIG. 10.

[0057] When the coding mode of a CU is an inter-picture coding mode, all PUs included in the corresponding CU can be coded in the inter-picture coding mode. In this case, when the coding mode of a CU is an inter-picture coding mode, the division structure of the PU can be set to any one of 2N×2N, 2N×N, N×2N, N×N, 2N×nU, 2N×nD, nL×2N, or nR×2N shown in FIG.

[0058] Inter-frame prediction (or temporal prediction) refers to a method of predicting a current frame from a reference frame based on the high correlation between frames with a close time difference.

[0059] FIG. 11 is a diagram for explaining the inter-picture prediction method.

[0060] In FIG. 11, (a) shows a reference image (Reference Frame) used to predict a current image, and (b) shows a current image (Current Frame) including a block to be coded / decoded. If block "A" included in the reference image can be used to predict block "B" to be coded / decoded included in the current image, there is no need to code all of the image information for block B of the current image. As a result, when temporal prediction is used, the amount of information to be coded for each image block can be significantly reduced, thereby improving the efficiency of image compression.

[0061] If a PU is coded by inter prediction (i.e., in an inter coding mode), a merge mode can be used as a coding / decoding method for motion information. Here, the motion information may include at least one of a motion vector, an index to a reference picture, and a prediction direction (e.g., unidirectional or bidirectional, etc.). The prediction direction may be set to unidirectional prediction or multidirectional prediction (e.g., bidirectional or tridirectional prediction, etc.) depending on whether a reference picture list (RefPicList) is used.

[0062] For example, assuming that there are two reference picture lists (List0, List1), unidirectional prediction can be divided into forward prediction (Pred_L0, Prediction L0) using the forward reference picture list (List0) and backward prediction (Pred_L1, Prediction L1) using the backward reference picture list (List1). Bidirectional prediction (Pred_BI, Prediction BI) can use both the forward reference picture list (List0) and the backward reference picture list (List1). Thus, bidirectional prediction can refer to the case where both forward prediction and bidirectional prediction exist.

[0063] As another example, bidirectional prediction may also include copying a forward reference picture list (List0) to a backward reference picture list (List1) to perform two forward predictions, and bidirectional prediction may also include copying a backward reference picture list (List1) to a forward reference picture list (List0) to perform two backward predictions.

[0064] The prediction direction as described above can be indicated by flag information (e.g., predFlagL0, predFlagL1) indicating the prediction direction. predFlagL0 indicates whether or not forward prediction using a forward reference picture list (List0) is performed, and predFlagL1 indicates whether or not backward prediction using a backward reference picture list (List1) is performed. As an example, for forward prediction of unidirectional prediction, predFlagL0 can be "1" and predFlagL1 can be "0". For backward prediction of unidirectional prediction, predFlagL0 can be "0" and predFlagL1 can be "1". For bidirectional prediction, predFlagL0 can be "1" and predFlagL1 can be "1".

[0065] Under the merging mode, merging may be performed on a coding unit (CU) basis or a prediction unit (PU) basis. When merging is performed on a predetermined block basis, such as a CU or PU basis, information on whether merging is performed for each block partition and information on whether merging is performed with any of the neighboring blocks adjacent to the block may be coded / signaled. Here, the neighboring blocks may include blocks that are spatially neighboring the current block (e.g., a CU or PU to be coded / decoded) or blocks that are temporally neighboring.

[0066] Here, the term "blocks spatially adjacent to the current block" may refer to blocks adjacent to the boundary of the current block while belonging to the same picture as the current block. The blocks spatially adjacent to the current block may include a left block, an upper block, a right upper block, a left upper block, and a right lower block.

[0067] A block temporally adjacent to the current block may refer to a block that belongs to a picture having a different temporal order from the current block and has the same position as the current block (collocated block).

[0068] The merged motion candidate list indicates a list in which motion information is stored. The merged motion candidate list can be generated before the merged motion is performed based on the motion information of neighboring blocks adjacent to the current block. The merged motion candidate list can also include new motion information generated by combining motion information already present in the merged motion candidate list.

[0069] 12 is a diagram showing an example of generating a merged motion candidate list. The merged motion candidate list can be generated based on at least one of neighboring blocks (e.g., A, B, C, D, and E in FIG. 12) that are spatially adjacent to the current block, and blocks (e.g., M and H in FIG. 12) that belong to a different picture from the current block but are located at the same position as the current block.

[0070] As an example, for a neighboring block of the current block, it is determined whether the usage information of the neighboring block can be used for merging motion of the current block. If available, the motion information of the neighboring block can be included in the merging motion candidate list. In this case, the merging motion candidate list for the current block (X in FIG. 8) can be included in the merging motion candidate list in a predetermined order. Here, the predetermined order can be A→B→C→D→E→H (or M), but is not limited thereto.

[0071] When generating the merged motion candidate list according to a predetermined order, if the motion information of a neighboring block is identical to that of another neighboring block, the motion information of the neighboring block is not included in the merged motion candidate list.

[0072] As an example, in the example shown in FIG. 12, if surrounding block A is included in the merged motion candidate list, surrounding block B may be included in the merged motion candidate list only if it does not have the same motion information as surrounding block A. In a similar manner, surrounding block C may be included in the merged motion candidate list only if it does not have the same motion information as surrounding block B. The same principle can be applied to surrounding blocks D and E. Here, the same motion information means that the motion vector, reference picture, and prediction direction (e.g., one direction (forward or backward) or both directions) are the same.

[0073] However, in the case of 3D multi-view video, there is a problem in that compression efficiency using inter-frame prediction or intra-frame prediction decreases at the boundary of viewpoints due to viewpoint differences. This will be considered in detail below.

[0074] Figure 13 shows an example of a specific frame of a cubic 3D video when it is actually played back. Figure 13(a) shows a specific frame projected onto the developed shape of a cube, and Figure 13(b) shows an example of when the specific frame is played back.

[0075] In (a) and (b) of Figure 13, the boundaries separating the six faces represent the boundaries between viewpoints. When playing back a 3D image, as in the example shown in (b) of Figure 13, the images are smoothly connected at the boundaries between viewpoints. However, when a 3D image is projected two-dimensionally, it can be seen that distortions occur, such as lines being abruptly bent at the boundaries, as in the example shown in (a) of Figure 13.

[0076] Fig. 14 is a diagram showing in more detail an example of nonlinear distortion occurring at the boundaries of each surface. In Fig. 14, a cubic 3D video is composed of six surfaces (P1 to P6). In this case, each surface has a different viewpoint.

[0077] The shape of an object in a captured image is expressed differently depending on the viewpoint of each surface. Therefore, when a certain object is continuously expressed at the boundary of two surfaces having different viewpoints, nonlinear movement of the object may occur. For example, in the example shown in FIG. 14(b), nonlinear movement is shown to occur between the P3 surface and the P4 surface, and between the P4 surface and the P1 surface.

[0078] As shown in the examples of Figures 13 and 14, since nonlinear distortion occurs at the viewpoint boundary, it is expected that the correlation of inter-block prediction information will be significantly reduced. As a result, it is expected that the correlation of inter-block prediction information located at the viewpoint boundary will be significantly reduced. Here, the prediction information includes motion information used in inter-frame prediction (e.g., motion vector, reference picture index, prediction direction, etc.) or a prediction direction used in intra-frame prediction (e.g., intra prediction mode, etc.).

[0079] As a result, if temporal prediction of a block contained in an area having a specific viewpoint is performed using a block contained in an area having a viewpoint different from the specific viewpoint, it can be expected that the encoding / decoding efficiency will be significantly reduced compared to when a block contained in an area having a specific viewpoint is used.

[0080] As mentioned above, if it is not appropriate to predict the current image using a temporal reference image, intra block coding or intra prediction (or spatial prediction) can be used, but using spatial prediction instead of temporal prediction can result in a problem of reduced compression efficiency.

[0081] Even if intra prediction is used, it is difficult to derive the intra prediction mode from adjacent blocks because of low correlation with the adjacent blocks.

[0082] Therefore, in order to solve the problem of the decrease in prediction efficiency of the boundary block adjacent to the boundary, the present invention proposes a method of linearly correcting the nonlinear motion appearing at the boundary of blocks with different viewpoints and a method of converting the prediction information of adjacent blocks with different viewpoints.As an example, FIG. 14(c) shows an example in which the nonlinear distortion appearing at the boundary between the P1 plane and the P4 plane and the nonlinear distortion appearing at the boundary between the P3 plane and the P4 plane are linearly corrected.

[0083] First, a method of linearly changing the nonlinear distortion appearing at the boundary between viewpoints, as in the example shown in FIG. 14(c), will be described.

[0084] FIG. 15 is a diagram for explaining an example of generating a reference video by converting the viewpoint of an adjacent area.

[0085] When there are consecutive viewpoints in terms of position, the efficiency of temporal prediction may decrease at the boundary part where the viewpoint changes in the image. This is because the reference area in the reference image used for prediction does not contain information on the neighboring area. Even if the reference area contains information on the neighboring area, it is not suitable for use as a reference image because the viewpoint is different from that of the current block.

[0086] 15, if only an area not including information on adjacent areas (i.e., P1) is used to restore a portion C1 of the current image, it is difficult to completely restore the current image C1. Even if an area including information on adjacent areas (i.e., O combining P1 and P2) is used to restore the current image, it is difficult to completely restore the current image C1 because the viewpoints of the current image and the newly expanded P2 area are different.

[0087] Therefore, by transforming an adjacent region having a different viewpoint from the reference region, and then combining the reference region with the transformed adjacent region to generate a reference image including the transformed extended region, it is possible to improve coding efficiency during temporal prediction.

[0088] Specifically, as shown in the example of (a) of FIG. 15, an image may be distorted due to a change in viewpoint at the boundary between the reference region and the adjacent region. However, as shown in the example of (b) of FIG. 15, when the adjacent region is transformed to match the viewpoint of the reference region, the distortion at the boundary is reduced. As a result, as shown in the example of (b) of FIG. 15, when an image TR is generated by transforming the adjacent region having a different viewpoint from the reference region, and then a current image C1 is predicted using a transformed extended image (R obtained by combining P1 and TR) obtained by combining the reference region P1 and the transformed adjacent region TR, prediction accuracy can be improved.

[0089] In order to obtain the transform-enhanced image, the following steps may be broadly performed.

[0090] First step - Calculating the direction and distance between images Second step: Generate transformed images for each viewpoint using the relation between images Third step - Extend the converted image to the reference image according to the viewpoint of the existing reference image Step 4 - Insert the transformed and expanded image into the reference image list The first step is to calculate the direction and distance relationship between images using image features (e.g., inherent attributes of a cubic image) or image data as well as additional data (e.g., in the case of divergent images, the viewing angle of each image, the angular difference and distance difference between viewpoints, etc.). The direction and distance relationship between images is exemplified as θ and d in (a) of Figure 15.

[0091] The second step is to generate a transformed image of the adjacent image based on the direction and distance difference between the images calculated in the first step. In this step, the adjacent image, which is an extension area of ​​the reference image, can be modified according to the viewpoint of the reference image. Here, modifying the adjacent image according to the viewpoint of the reference image means converting the adjacent image so that it is in the same viewpoint space as the reference image.

[0092] The third step is to generate the transformed extended video based on the transformed video and the reference video. Specifically, the transformed extended video can be generated by combining the transformed video and the reference video so that the transformed video is continuous with the reference video.

[0093] The fourth step is to store the generated transformed extended image in a reference image list. By storing the transformed extended image in the reference image list, the transformed extended image can be used for temporal prediction of an image to be decoded / encoded.

[0094] As described above, the efficiency of encoding / decoding omnidirectional video can be improved by combining the transformed image and the reference image to generate an image suitable for temporal prediction. The above-mentioned steps will be considered in more detail with the aid of the flow chart in FIG.

[0095] FIG. 16 is a flow chart illustrating a process for generating a transformed extended image according to the present invention.

[0096] Referring to Fig. 16, first, it can be determined whether images from different viewpoints exist spatially consecutively (S1610). Whether images from different viewpoints exist spatially consecutively can be confirmed based on data (e.g., metadata) added to the images or characteristics of the multi-view images (e.g., a development of a polyhedron has a fixed number of viewpoints). As an example, when an image is projected onto a development of a polyhedron, it can be determined that images from different viewpoints exist spatially consecutively.

[0097] When images with different viewpoints exist spatially consecutively, a viewpoint difference between the images with different viewpoints can be obtained (S1620). Here, the viewpoint difference can include at least one of an angle difference and a position difference. The angle means Euler angles or a subset thereof for displaying in a three-dimensional space, and the position means position coordinates or a subset thereof in the three-dimensional space.

[0098] In the case of 3D multi-view images projected onto a polyhedron, the angle difference between images from different viewpoints can have a fixed value. In addition, in the case of 3D multi-view images projected onto a polyhedron, the images from different viewpoints are continuous at the boundary, so the position difference (or distance difference) can be set to 0.

[0099] 17 and 18 are diagrams illustrating an example of characteristics between viewpoints. The characteristics between viewpoints can be obtained based on a viewpoint difference between images with different viewpoints. The viewpoint difference can include at least one of an angle difference and a position difference between images with different viewpoints. Here, the angle means Euler angles or a subset thereof for display in a three-dimensional space, and the position means position coordinates or a subset thereof in the three-dimensional space.

[0100] When a 3D multi-view image is deployed in a polyhedron as in the example shown in (a) of FIG. 17, the viewpoint difference can mean the angle difference and position difference between the surfaces with different viewpoints. In this case, in the case of an image projected in a polyhedron, the angle difference between the surfaces with different perspectives can have a fixed value. For example, when a 3D multi-view image is projected onto a cube as in (a) of FIG. 17, the angle difference between two surfaces P1 and P2 with different viewpoints can be fixed at 90 degrees, and when a 3D multi-view image is projected onto a regular dodecahedron as in the example shown in (b) of FIG. 17, the angle difference between two images P3 and P4 can be fixed at 138 degrees 11 minutes.

[0101] As in the examples shown in (a) and (b) of FIG. 17, the two planes with different viewpoints are positioned consecutively in space, so the distance difference between the two images can be set to zero.

[0102] When the 3D multi-view image is in the shape of an unfolded sphere or is not projected in the shape of a developed polyhedron, the angle difference and distance difference indicate the angle difference between the images and the position difference between the images acquired based on the camera positions, the camera viewing angles, the angles between the cameras, etc. As an example, when the 3D multi-view image is in the shape of a sphere as in the example shown in Fig. 17(c) or is not expanded into the shape of a developed polyhedron as in the example shown in Fig. 18, the position difference d2 and the angle difference θ4 between the images can be acquired based on the positions of the cameras C1 and C2, the camera position difference d1, the camera angles θ1 and θ2, and the camera angle difference θ3, etc.

[0103] As mentioned above, when the 3D multi-view video has a spherical or non-polyhedral shape or when there are no fixed rules for the arrangement of the images, the viewpoint difference between images with different viewpoints can be calculated from the camera positions, the camera viewing angles, the angles between the cameras, etc.

[0104] When the viewpoint difference between the images with different viewpoints is calculated, the images with different viewpoints can be converted to have the same viewpoint based on the calculated viewpoint difference (S1630). For example, for two images with different viewpoints, a process of converting one of the two images according to the viewpoint of the other image can be performed.

[0105] FIG. 19 is a diagram for explaining an example in which an image is transformed according to the viewpoint of another image.

[0106] FIG. 19(a) shows an example of 3D multi-view video unfolded into the shape of an unfolded cube, and FIG. 19(b) shows an example of a plan view of the cube when viewed from the top end (e.g., P1) or bottom end (e.g., P6).

[0107] Assuming that the 3D multi-viewpoint image projected onto 2D has a cubic development shape as shown in the example of (a) of FIG. 19, if a block included in the P4 plane of the current image is predicted using a reference area included in the P4 plane of the reference image, no viewpoint difference occurs. However, if a block included in the P4 plane of the current image is predicted using a reference area included in the P3 plane of the reference image, a problem may occur in which prediction efficiency is reduced due to the viewpoint difference between the P4 plane and the P3 plane. Assuming that a block included in the P4 plane is predicted based on a reference area included in the P3 plane, it is necessary to generate a reference image in which the P3 plane is converted to the P4 plane according to the viewpoint when the reference image is saved.

[0108] 19(b), the transformation of the P3 plane can be performed through a process of projecting a position x included in the P3 plane to a position y having a viewpoint like the P4 plane. At this time, the viewpoint difference between the P3 plane and the P4 plane can be simply expressed by the following Equation 1.

number

[0109] In the formula, a represents the length of one side of the cube.

[0110] When using a reference image in which the P3 plane has been converted to match the viewpoint of the P4 plane, the P3 plane of the reference image has the same viewpoint as the P4 plane of the current image, so that it is possible to avoid a decrease in prediction efficiency when predicting the P4 plane of the current image using the P3 plane of the reference image.

[0111] If there are additional spatially adjacent images with different viewpoints, the adjacent images may be further transformed based on the above-described principles (S1640).

[0112] When the adjacent images are transformed based on the viewpoint of the particular image, a reference image can be generated by combining the particular image with at least one transformed adjacent image (S1650).

[0113] As an example, when a 3D multi-view image is projected onto an unfolded figure of a cube, a specific face of the cube and multiple adjacent faces adjacent to it can be transformed according to the viewpoint of the specific face, and a reference image can be generated by combining the specific face with the transformed multiple adjacent faces.

[0114] As an example, Figures 20 and 21 are diagrams showing an example of generating a reference image based on a specific face of a cube. Referring to (a) of Figure 20, when viewed based on the P4 face, the P4 face is adjacent to the P1, P3, P5, and P6 faces. This allows the P1, P3, P5, and P6 faces to be transformed according to the viewpoint of the P4 face to generate T1, T3, T5, and T6, and the P4 face can be combined with the generated transformed images T1, T3, T5, and T6 to generate a reference image.

[0115] In this case, it is possible that the entire area of ​​the P4 plane and the adjacent planes is set as the conversion target, or it is also possible that only a portion of the area set by the encoder (e.g., the search range) is set as the conversion target.

[0116] (b) of Figure 20 is a diagram showing an example of a reference image being generated when the entire area of ​​an adjacent surface is to be transformed, and (c) of Figure 20 is a diagram showing an example of a reference image being generated when only a portion of the area of ​​an adjacent surface is to be transformed.

[0117] The position of the image that has been entirely or partially transformed is determined according to the image that is the reference of the viewpoint. In the case of an image that is projected onto a polyhedron, the position of the transformed image is determined according to the characteristics of the polyhedron. The transformed image can be aligned with the image that is the reference of the viewpoint according to its position.

[0118] As an example, in the example shown in (a) and (b) of Figure 21, the positions of the T1, T3, T5 and T6 images are determined relatively according to the image P4 that is the reference of the viewpoint. That is, each of the transformed images T1, T3, T5 and T6 is aligned with P4 at a projected position according to the viewpoint of P4.

[0119] (c) and (d) of Fig. 21 are diagrams illustrating a reference image R4 generated by combining P4 with transformed images T1, T3, T5, and T6. (c) of Fig. 21 is a diagram illustrating a case where the entire transformable area of ​​the adjacent image is projected according to the viewpoint of P4, and (d) of Fig. 21 is a diagram illustrating a case where a part of the adjacent image is projected according to the viewpoint of P4.

[0120] Next, a method for generating reference images when the 3D multi-view images are divergent images will be described.

[0121] Like 3D multi-view images projected onto a polyhedron, divergent images can also be transformed based on the angle difference and position difference between images with different viewpoints. However, unlike polyhedral 3D multi-view images, divergent images have no predefined rules for arranging images with different viewpoints, so it is difficult to determine the perspective difference (i.e., angle difference and distance difference) between images with different viewpoints based only on the characteristics of the images. Thus, the perspective difference of the divergent images can be encoded / signaled using additional data (e.g., metadata) added to the images. When the perspective difference between the images with different viewpoints is obtained from the additional data, transformation between the images with different viewpoints can be performed in the same manner as described above, and a reference image can be generated using the transformation result.

[0122] As an example, FIG. 22 is a diagram showing an example of generating a reference image for a divergent image. (a) of FIG. 22 shows the presence of a P2 image having a different viewpoint from the P1 image. When generating a reference image based on P1, the entire area or a part of P2 can be transformed according to the viewpoint of P1, and the transformed image can be combined with P1 to generate an image. (b) of FIG. 22 shows an example of generating a reference image by combining T2 generated by transforming the entire area of ​​P2 with P1, and (c) of FIG. 21 shows an example of generating a reference image by combining T'2 generated by transforming a part of P2 (e.g., a search range) with P1.

[0123] In the case of divergent images, the position of the transformed image can be determined based on the image serving as a reference for the viewpoint. In this case, the position of the transformed image can be determined based on the position information of each image. When the position of the transformed image is determined, the image serving as a reference for the viewpoint and the transformed image can be combined to generate a reference image.

[0124] As an example, Fig. 23 is a diagram showing an example in which a reference image is generated by combining a viewpoint reference image and a transformed image. In the example shown in Fig. 23, T2 generated by transforming the P2 image is located to the right of the divergent reference image P1. This allows the reference image R1 to be generated by generating at least a part of the transformed image T2 to the right of the P1 image.

[0125] Next, a method for generating a reference image when a 3D multi-view image is a convergent image will be described.

[0126] Unlike images projected onto a polyhedron or divergent images, convergent images have a viewpoint in which each image faces a specific direction. Thus, in one frame of a convergent image, a plurality of images may exist that are spatially continuous with a specific image and extended toward the same direction as the specific image, based on the specific image. Thus, when generating a reference image for a convergent image, a plurality of adjacent images that can be transformed while existing at the same position as the specific image may exist. Thus, the reference image for a convergent image may be generated based on a transformed image generated by transforming at least one of the specific image and a plurality of adjacent images that exist at the same position as the specific image.

[0127] When the spatial position difference between images with different viewpoints is not large, such as in the case of convergent images, a transformed image generated by transforming adjacent images adjacent to a specific image may have the following characteristics.

[0128] The first aspect is when the adjacent image transformed according to the viewpoint of the specific image contains a sufficient area that does not overlap with the specific image. In other words, the extension area added to the specific area (i.e., the part of the transformed adjacent image that does not overlap with the specific image) contains essential information (e.g., an area required for temporal prediction). In this case, a method similar to the prior generation of a reference image from a polyhedron or divergent image can be applied.

[0129] The second aspect is when an adjacent image transformed according to the viewpoint of a specific image almost overlaps with the specific image. In other words, the extension area added to a specific region does not contain sufficient additional information (e.g., an area required for temporal prediction). If the extension area added to a specific region does not contain sufficient additional information, it is difficult to use a reference image for temporal prediction.

[0130] Each aspect is considered in more detail with reference to FIG.

[0131] FIG. 24 is a diagram illustrating whether a transformed image includes a region essential for temporal prediction.

[0132] For ease of explanation, it is assumed that the convergent image includes a plurality of images (P1, P2, P3, ..., PN) as shown in the example of FIG. 24(a). FIG. 24(b) is a diagram showing an example of converting a P2 image adjacent to a P1 image according to the viewpoint of the P1 image. As shown in the example of FIG. 24(b), a reference image for the P1 image can be generated by converting at least one image adjacent to the P1 image according to the viewpoint of the P1 image. In this case, the converted adjacent image may completely include the required area depending on the degree of overlap with the P1 image, or may not completely include the required area. As an example, in FIG. 24(c), an image T2 converted from a P2 image includes an area smaller than the required area (e.g., a search range), but an image T3 converted from a P3 image includes the required area.

[0133] If the transformed image does not include the minimum necessary area, such as the T2 image shown in (c) of FIG. 24, it is difficult to perform temporal prediction with the reference image generated based on the T2 image. In this case, the reference image can be expanded by padding the area that is insufficient for performing temporal prediction using pixel values ​​of the transformed adjacent area. In other words, the area that is essential to be included for use in temporal prediction but cannot be obtained from the transformed portion of the adjacent image can be padded using edge samples of the transformed adjacent area.

[0134] Figure 25 is a diagram showing an example of generating a reference image for a convergent image. As described using the converted image T2 shown in (c) of Figure 25, if the residual area of ​​the P2 image excluding the part overlapping with P1 is not wide enough, the image T2 converted from P2 may not include the necessary area for use in temporal prediction. In this case, as in the examples shown in (a) and (b) of Figure 25, the area required for prediction can be padded using edge samples of the T2 image.

[0135] (a) of Figure 25 shows an example of padding the residual area using a right edge sample when the P2 image is transformed and extended to the right, and (b) of Figure 25 shows an example of padding the residual area using an upper edge sample when the P2 image is transformed and extended upward.

[0136] Figure 25 uses a convergent image as an example, but not only in convergent images but also in omnidirectional images or divergent images, if the transformed image does not contain sufficient area required for prediction use, the reference image can be extended using edge samples of the transformed image.

[0137] In the case of a convergent image, the position of the transformed image can be determined based on the viewpoint reference image. In this case, the position of the transformed image can be determined based on the position information of each image. In the case of a convergent image, since a plurality of transformed images extended to the same position can be obtained, at least one reference image can be generated by combining the viewpoint reference image and each transformed image.

[0138] As an example, Fig. 26 is a diagram showing an example of generating a reference image by combining an image serving as a reference for a viewpoint with a converted image. In the example shown in Fig. 26, a reference image R1 can be generated by combining T2 generated by converting a P2 image with a P1 image, and a reference image R2 can be generated by combining T3 generated by converting a P3 image with a P1 image. In this manner, N-1 reference images can be generated for N converted images based on the P1 image.

[0139] When the reference picture is generated, the reference picture can be stored in a reference picture list (S1660). In addition, if there are no spatially consecutive pictures with different viewpoints (S1610), the current picture can be stored in a reference picture list as a reference picture (S1660).

[0140] When the generated reference images are stored in a reference image list, the reference images may be grouped and stored based on the same time period.

[0141] FIG. 27 is a diagram showing an example of generating a reference video list for a 3D multi-view video image that is rendered into a cube shape.

[0142] When a 3D multi-view image is deployed in a cube, one reference image can be generated based on an image of a specific viewpoint at a specific time. In this case, there are a total of six images (i.e., each side of the cube) that can be the viewpoint reference at a specific time, so up to six reference images can be generated at a specific time. In this case, the six reference images can be grouped and saved based on the time period.

[0143] As an example, a total of six reference images (reference image R1 generated based on the viewpoint of P1, reference image R2 generated based on the viewpoint of P2, ..., reference image R6 generated based on the viewpoint of P6) can be generated for the omnidirectional image in time period t0. The reference images generated based on time period t0 can be grouped and saved in one group. Similarly, reference image lists such as t1, t2, ..., tN can be grouped based on a specific time period and saved in a list.

[0144] FIG. 28 is a diagram showing an example of generating a reference picture list for a divergent picture.

[0145] In the case of divergent images, one reference image can be generated based on an image from a specific viewpoint in a specific time period. The number of images that serve as the reference viewpoint is determined by the number of cameras that capture the divergent image, so reference images can be generated in a specific time period as many as the number of cameras. Similar to omnidirectional images that are deployed in a polyhedral shape, multiple reference images can be grouped and saved by time period.

[0146] For example, assuming that a total of three reference images (reference image R1 generated based on the viewpoint of P1, reference image R2 generated based on the viewpoint of P2, and reference image R3 generated based on the viewpoint of P3) are generated for a divergent image in time slot t0, the three reference images generated based on time slot t0 can be grouped and stored as one group. Similarly, reference image lists such as t1, t2, ..., tN can be grouped based on a predetermined time slot and stored in a list.

[0147] FIG. 29 is a diagram showing an example of generating a reference picture list for a convergent picture.

[0148] In the case of convergent images, at least one reference image can be generated based on an image of a specific time period and a specific viewpoint. For example, when the image serving as the reference viewpoint is the P1 image, a first reference image R1 can be generated based on the P1 image and the P2 image, and a second reference image can be generated based on the P1 image and the P3 image. As with omnidirectional images, the reference images for convergent images can also be stored by grouping multiple reference images generated in a specific time period.

[0149] For example, for a convergent image in time slot t0, there may be N reference images generated based on the viewpoint of P1, N reference images generated based on the viewpoint of P2, ..., N reference images generated based on the viewpoint of PN, etc. In this case, a plurality of reference images generated based on time slot t0 may be grouped and stored as one group. Similarly, reference image lists such as t1, t2, ..., tN may be grouped based on a predetermined time slot and stored in a list.

[0150] 27 to 29 show an example in which a plurality of reference images are grouped and stored based on a time period. Unlike the illustrated examples, a plurality of reference images may be grouped and stored based on an image serving as a reference for a viewpoint.

[0151] In order to select a reference picture, information for selecting a reference picture may be coded / signaled, where the information for selecting a reference picture may include at least one of information regarding a time period in which a reference picture is included or information for identifying at least one of a plurality of reference pictures included in a corresponding time period.

[0152] Taking Figure 27 as an example, if the information for selecting a reference image points to a reference image generated based on the viewpoint of P1 in time period t0, the corresponding reference image in the corresponding time period can be used for temporal prediction.

[0153] As another example, a reference picture to be selected from among a plurality of reference pictures included in a particular time period can be selected based on the position of the area to be currently encoded / decoded. For example, if the area to be currently encoded / decoded is included in the P6 plane of a cube, the encoder and decoder can use a reference picture generated based on the P6 viewpoint for temporal prediction.

[0154] As described above, when the viewpoints of spatially adjacent images are different from each other, distortion may occur in which the shape of an object projected based on the boundary between images changes depending on the viewpoint. In order to reduce the encoding / decoding efficiency due to distortion at the boundary between images as described above, the encoding / decoding efficiency can be improved by converting an adjacent image (or area) to match the viewpoint of an arbitrary viewpoint image used as a reference.

[0155] FIG. 30 is a diagram for comparing the case where a reference video is generated according to the present invention with the case where it is not generated.

[0156] As shown in the example of (a) of Figure 30, if temporal prediction is used without converting adjacent images, distortion due to viewpoint difference occurs at the boundary of the plane. (a) of Figure 30 shows that nonlinear distortion occurs at the boundary of the P6 plane. As a result, when temporal prediction is performed based on the boundary of a specific image, a problem may occur in which the efficiency of the temporal prediction is reduced due to viewpoint difference.

[0157] However, as in the example shown in (b) of FIG. 30, if a reference image is generated by converting an adjacent image and temporal prediction is performed based on the generated reference image, the distortion at the boundary of the planes can be significantly reduced. In the example shown in (b) of FIG. 30, the nonlinear change that existed at the boundary of the P6 plane is converted linearly. As a result, even if temporal prediction is performed based on the boundary of a specific image, the distortion due to the viewpoint difference is small, and the efficiency of the temporal prediction can be improved.

[0158] As described above, if temporal prediction is performed without transforming adjacent images, it is difficult to perform temporal prediction based on blocks located at image boundaries when encoding / decoding images. Therefore, when adjacent images are not transformed, boundary blocks adjacent to a boundary where a viewpoint changes are generally encoded using spatial prediction rather than temporal prediction.

[0159] However, when performing temporal prediction based on a reference image generated by converting an adjacent image as proposed in the present invention, temporal prediction can be performed based on blocks located at image boundaries when encoding / decoding an image, and thus, boundary blocks adjacent to a boundary where a viewpoint changes can also be encoded / decoded by temporal prediction, thereby improving image compression efficiency.

[0160] As an example, Figure 31 is a diagram illustrating the aspects of encoding depending on whether the present invention is applied. As shown in the example (a) of Figure 31, when the present invention is not applied, a block located at a boundary where a viewpoint changes is generally encoded by intra prediction. However, as shown in the example (b) of Figure 31, when the present invention is applied, a block located at a boundary where a viewpoint changes can also be encoded by temporal prediction.

[0161] According to the present invention, whether or not the image used for prediction is extended can be coded with coding parameters and signaled by a bitstream. As an example, whether or not the image used for prediction is extended can be coded and signaled by a 1-bit flag. If the flag indicates that the image used for prediction is extended, a method can be applied in which adjacent images are converted according to the viewpoint of a specific image, and then the specific image and the adjacent image are combined to generate a reference image. On the other hand, if the flag does not indicate that the image used for prediction is extended, the process of converting based on the viewpoint and extending the specific image is not performed.

[0162] In this case, whether or not to extend the image used for prediction may be signaled in units of a parameter set, a picture, a slice, or a coding target unit. Table 1 below shows an example in which information indicating whether or not to extend the image used for prediction is signaled via a VPS, and Table 2 shows an example in which the information is signaled via an SPS. [Table 1] [Table 2]

[0163] In Tables 1 and 2, 'perspective_reference_picture_enabled_flag' indicates whether or not the image used for prediction is extended. As proposed in the present invention, when the image used for prediction is to be extended, 'perspective_reference_picture_enabled_flag' may be set to '1', and when the image used for prediction is not to be extended, 'perspective_reference_picture_enabled_flag' may be set to '0'. Alternatively, whether or not the image used for prediction is extended may be set to a value opposite to that in the described example.

[0164] When 'perspective_reference_picture_enabled_flag' is '1', an extended reference picture can be generated that takes into account the direction and position of the picture when constructing the reference picture. In addition, prediction can be performed based on the extended reference picture.

[0165] Next, a method of converting prediction information at the boundary of viewpoints using characteristics of the viewpoints and increasing the correlation between blocks using the converted prediction information will be considered.

[0166] Fig. 32 is a flow chart showing a method for converting prediction information according to the present invention, and Fig. 33 is a diagram showing an example in which prediction information is converted at a perspective boundary. In the example shown in Fig. 33, the shaded block indicates a block currently to be coded / decoded (e.g., CU or PU, etc.). In addition, the arrows in the neighboring blocks adjacent to the current block indicate prediction information. In this case, the solid arrow indicates prediction information before conversion, and the dotted arrow indicates prediction information after conversion. In addition, the thick line between blocks indicates a boundary between perspectives.

[0167] First, it is determined whether the current block is located at the boundary between viewpoints (S3210). Here, the current block being located at the boundary between viewpoints means that the current block is adjacent to the boundary between viewpoints. (A) of Figure 33 shows an example where the current block is not located at the boundary between viewpoints, and (B) to (F) show examples where the current block is located at the boundary between viewpoints.

[0168] If the current block is not located at the boundary between views, prediction information of neighboring blocks adjacent to the current block is not converted. In contrast, if the current block is located at the boundary between views, prediction information of neighboring blocks having a different view from the view of the current block may be converted (S3220). In this case, the conversion may be performed based on the characteristics of the views.

[0169] Here, the inter-viewpoint characteristic may refer to a viewpoint difference between images having different viewpoints. The viewpoint difference between images having different viewpoints has been described with reference to FIG. 17 and FIG. 18, so a detailed description thereof will be omitted.

[0170] Referring again to FIG 32, prediction of the current block may be performed using prediction information of a neighboring block (S3230). In this case, the prediction information of the neighboring block may be non-transformed prediction information or transformed prediction information depending on whether the current block is located on a boundary between views.

[0171] Hereinafter, an example of predicting a current block using prediction information of neighboring blocks will be considered in more detail.

[0172] 34 is a flowchart illustrating a process of determining a Most Probable Mode (MPM) candidate for intra prediction based on prediction information of a neighboring block. Here, the intra prediction information may include the intra prediction mode (or MPM) of the neighboring block.

[0173] In order to obtain the intra prediction mode of the current block, an MPM candidate may be determined based on the intra prediction mode of a neighboring block adjacent to the current block, and an MPM candidate list may be generated based on the determined MPM candidate. If the intra prediction mode of the current block is included in the MPM candidate list, index information indicating the corresponding MPM candidate may be encoded / signaled. In this case, the neighboring block adjacent to the current block may include a neighboring block adjacent to the left side of the current block, a neighboring block adjacent to the upper side of the current block, etc. In addition, the neighboring block may include a neighboring block adjacent to the upper left side of the current block, a neighboring block adjacent to the upper right side of the current block, or a neighboring block adjacent to the lower left side of the current block.

[0174] For convenience of explanation, in the following embodiment, it is assumed that MPM candidates for the current block are derived from a left neighboring block adjacent to the left side of the current block and an upper neighboring block adjacent to the upper side of the current block.

[0175] In an embodiment described later, the intra prediction mode conversion may be performed only if the intra prediction mode of the neighboring block is a directional mode. If the intra prediction mode of the neighboring block is a non-directional mode (e.g., DC or PLANAR mode), the MPM can be generated without intra prediction mode conversion.

[0176] 34, first, it is determined whether the left side of the current block is adjacent to the inter-view boundary (S3410). If the left side of the current block is adjacent to the inter-view boundary, the intra prediction mode of the left adjacent block adjacent to the left side of the current block is converted using the inter-view characteristics to generate a first MPM (S3420).

[0177] If the left side of the current block is not adjacent to the boundary between views, the intra prediction mode of the left adjacent block adjacent to the left side of the current block can be used as the first MPM as it is (S3430).

[0178] Next, it is determined whether the top surface of the current block is adjacent to the inter-view boundary (S3440). If the top surface of the current block is adjacent to the inter-view boundary, the intra prediction mode of the upper adjacent block adjacent to the upper side of the current block is converted using the inter-view characteristics to generate a second MPM (S3450).

[0179] If the top surface of the current block is not adjacent to the boundary between viewpoints, the intra prediction mode of the upper adjacent block adjacent to the upper side of the current block can be used as the second MPM as it is (S3460).

[0180] 35 to 37 are diagrams illustrating an example of generating MPM candidates depending on whether the current block is located on a viewpoint boundary.

[0181] 35, a current block and a left adjacent block are adjacently located based on the boundary between viewpoints P1 and P2. In this case, a first MPM can be generated by converting the intra prediction mode of the left block based on the viewpoint difference between P1 and P2.

[0182] Since there is no inter-view boundary between the current block and the upper adjacent block, the second MPM can be generated based on the intra prediction mode of the upper adjacent block.

[0183] Referring to FIG. 36, since there is no inter-view boundary between the current block and the left adjacent block, the first MPM can be generated based on the intra prediction mode of the left adjacent block.

[0184] In contrast, the current block and the upper adjacent block are adjacently located based on the boundaries P1 and P2 between viewpoints, so that the second MPM can be generated by converting the intra prediction mode of the upper adjacent block based on the viewpoint difference between P1 and P2.

[0185] 37, a current block and a left adjacent block are adjacently located based on the boundary between viewpoints P1 and P2, and a first MPM can be generated by converting the intra prediction mode of the left adjacent block based on the viewpoint difference between P1 and P2.

[0186] The current block and the upper adjacent block are also adjacent to each other based on the boundaries P2 and P3 between the viewpoints. Therefore, the second MPM can be generated by converting the intra prediction mode of the upper adjacent block based on the viewpoint difference between the P2 viewpoint and the P3 viewpoint.

[0187] When the first MPM and the second MPM are generated, it is checked whether the first MPM and the second MPM are the same (S3470). If the first MPM and the second MPM are the same, it is determined whether the first MPM is a non-directional mode (i.e., whether the intra prediction mode is less than 2) (S3480). If the first MPM is a non-directional mode, N MPM candidates already defined can be generated (S3485). Here, N can mean a natural number equal to or greater than 1, for example, 2, 3, 4, etc. As an example, if the first MPM is a non-directional mode (e.g., DC or PLANAR mode), three MPM candidates fixed to planar, DC, and vertical prediction can be generated as follows.

[0188] MPM[0] = Intra_Planar MPM[1]=Intra_DC MPM[2]=Intra_Vertical(26) If the first MPM is a directional mode, the first MPM is added to the MPM candidates, while N-1 MPM candidates having a similar direction to the first MPM may be generated (S3490). Here, the MPM having a similar direction to the first MPM may have a value obtained by adding or subtracting k from the first MPM (where k is a natural number equal to or greater than 1). As an example, if the first MPM is a directional mode, three MPM candidates may be generated, including the first MPM, an intra prediction mode obtained by subtracting 1 from the first MPM, and an intra prediction mode obtained by adding 1 to the intra prediction mode of the left adjacent block.

[0189] MPM[0] = Left_Block_MPM MPM[1] = Left_Block_MPM-1 MPM[2]=Left_Block_MPM+1 If the first MPM and the second MPM are not the same, the first MPM and the second MPM are added as MPM candidates, while N-2 MPM candidates having the already defined intra prediction mode may be additionally generated (S3495). In this case, the number of additionally generated MPM candidates may be one or more. As an example, if the first MPM and the second MPM are different from each other, the first MPM and the second MPM may be generated as MPM candidates, and an additional MPM candidate set to planar, DC, or vertical mode may be generated as follows. The additional MPM candidate may be determined not to have the same value as the first MPM and the second MPM.

[0190] MPM[0] = Left_Block_MPM MPM[1]=Above_Block_MPM MPM[2]=Intra_Planar / Intra_DC / Intra_Vertical(26) Next, an example of performing inter-prediction on a current block using prediction information of neighboring blocks will be considered in detail.

[0191] FIG. 38 is a flowchart illustrating a process of determining spatial merge candidates for performing inter prediction under a merge motion mode based on prediction information of neighboring blocks.

[0192] 38, first, it is determined whether a neighboring block spatially adjacent to a current block has a different view from the current block (S3810). If the neighboring block spatially adjacent to the current block has a different view from the current block, motion information of the neighboring block is converted (S3820). At this time, the converted motion information includes a motion vector.

[0193] If the current block and the neighboring block are not located at the viewpoint boundary, the motion information of the neighboring block is not transformed.

[0194] Then, the availability of neighboring blocks that are spatially neighboring to the current block is determined (S3830). If the spatial neighboring blocks are available, the motion information or transformed motion information of the spatial neighboring blocks is included in the merging candidate list (S3840).

[0195] The process of including the motion list (S3810 to S3840) may be repeated for each of a plurality of adjacent blocks that are spatially adjacent to the current block (S3850). As an example, when the merged motion candidate list is generated in the order of A→B→C→D→E as in the example described with reference to FIG. 12, the process of including the motion list may be performed in the order of the left block (A), the top block (B), the top right block (C), the bottom left block (D) and the top left block (E).

[0196] However, the top left block may be included in the motion list only if at least one of the residual spatial neighboring blocks is not available for inter prediction, so that the steps of including the top left block in the motion list (S3810 to S3840) may be performed only if at least one of the residual spatial neighboring blocks is not available for inter prediction.

[0197] FIG. 39 shows an example in which a current block and a spatially adjacent block have different perspectives.

[0198] In FIG. 39(a), it is illustrated that A block, D block, and E block have a different viewpoint from the current block, and B block and C block have the same viewpoint as the current block. In this case, the motion information of A block, D block, and E block is transformed based on the viewpoint difference between viewpoints P1 and P2, and the motion information of B block and C block is not transformed. Then, the transformed motion information of A block, D block, and E block and the motion information of B block and C block can be used to construct a spatial merging candidate list in the order of A, B, C, D, and E.

[0199] In FIG. 39(b), it is illustrated that blocks B, C, and E have a different viewpoint from the current block, and blocks A and D have the same viewpoint as the current block. In this case, the motion information of blocks B, C, and E is transformed based on the viewpoint difference between viewpoints P1 and P2, and the motion information of blocks A and D is not transformed. Then, the transformed motion information of blocks B, C, and E and the motion information of blocks A and D can be used to construct a spatial merging candidate list in the order of A, B, C, D, and E.

[0200] In addition, examples in which the current block may have a different view from the spatial neighboring blocks are shown in (c) to (h) of Figure 39. When the current block has a different view from the spatial neighboring blocks, the motion information of the spatial neighboring blocks is converted based on the view difference between the current block and the spatial neighboring blocks, and when the current block has the same view as the spatial neighboring blocks, the motion information of the spatial neighboring blocks is not converted. This may also be applied to these examples.

[0201] FIG. 40 is a flowchart illustrating a process of determining temporal merge candidates for performing inter prediction under the merge motion mode based on prediction information of neighboring blocks. Here, the prediction information may include motion vectors of neighboring blocks.

[0202] A temporal merge candidate may be derived from a temporal neighboring block of the current block. In this case, the temporal neighboring block may refer to a collocated block in a collocated picture having a different temporal order from the current picture in which the current block is included. In this case, the collocated block may be variably determined according to the availability of a first block in the collocated picture. For example, if the first block is available for inter-prediction, the first block may be determined as the collocated block, and if the first block is unavailable, a second block located at a different position from the first block may be determined as the collocated block. Here, the first block and the second block may be different from each other among a block including a coordinate value of a lower left sample of the current block or a block including a central pixel value of the current block.

[0203] For convenience of explanation, it is assumed that the first block is a block including the coordinates of the lower left sample of the current block, and the second block is a block including the center coordinates of the current block.

[0204] Referring to Figure 40, first, it is determined whether the viewpoint of the first block is different from the viewpoint of the current block (S4010). Since the first block is adjacent to the current block in time, if the viewpoint of the first block is different from the viewpoint of the current block, it can be determined that the first block is located at the viewpoint boundary with the current block. If the viewpoint of the first block is different from the viewpoint of the current block, motion information of the first block is converted (S4020). At this time, the converted motion information includes a motion vector.

[0205] If the current block and the first block are not located on the boundary, the motion information of the first block is not transformed.

[0206] Then, the availability of the first block is determined (S4030). If the motion information of the first block can be used as a merging candidate, the motion information of the first block can be added to a merging candidate list (S4040).

[0207] Alternatively, if the first block is unavailable, the availability of the second block is determined (S4050). If the motion information of the second block can be used as a merging candidate, the motion information of the second block can be added to the merging candidate list (S4060).

[0208] Since the second block contains the center coordinates of the current block, it has the same viewpoint as the current block, so that the motion information of the second block can be added to the merging candidate list without being transformed.

[0209] FIG. 41 shows an example in which a current block and a temporally adjacent block have different perspectives.

[0210] In the example shown in Figure 41, for a current block X, the first block corresponds to an H block, and the second block corresponds to an M block. (a) to (c) of Figure 41 illustrate that the current block has a viewpoint P1, whereas the H block has a viewpoint P2. In this case, the motion information of the H block can be converted based on the viewpoint difference between the viewpoints P1 and P2.

[0211] In the case of block M, since it always has the same viewpoint as the current block X, the motion information of block M may not be transformed.

[0212] In FIG. 38 to FIG. 41, it is assumed that the inter-picture prediction mode of the current block is a merged motion mode. In addition to the above-described examples, the prediction information conversion method described with reference to FIG. 38 to FIG. 41 can be applied even when the inter-picture prediction mode of the current block is an Advanced Motion Vector Predictor (AMVP) mode. As an example, if a spatial neighboring block that is spatially adjacent to the current block or a temporal neighboring block that is temporally adjacent to the current block has a different viewpoint from the current block, the motion vector of the corresponding neighboring block can be converted and then added to a motion vector prediction candidate list (MVP List). If a spatial neighboring block or a temporal neighboring block of the current block has the same viewpoint as the current block, the motion vector of the corresponding neighboring block can be included in the motion vector prediction candidate list without being converted.

[0213] According to the present invention, information indicating whether to transform and code prediction information may be coded in coding parameters and signaled by a bitstream. As an example, information on whether to transform prediction information may be coded and signaled by a 1-bit flag. If the flag indicates to transform prediction information, a method of transforming prediction information of a neighboring block may be used depending on whether the current block and the neighboring block have different views.

[0214] In this case, whether to convert prediction information may be signaled in parameter set, picture, slice, or coding target unit (e.g., CU or PU) units. Table 3 shows an example in which information indicating whether to convert prediction information is signaled via a VPS, and Table 4 shows an example in which the above information is signaled via an SPS. Table 5 shows an example in which the above information is signaled per PU. [Table 3] [Table 4] [Table 5]

[0215] In Tables 3 and 4, "perspective_intra_pred_transform_enabled_flag" indicates whether or not to transform prediction information when an intra-screen prediction mode is applied, and "perspective_inter_pred_transform_enable_flag" indicates whether or not to transform prediction information when an inter-screen prediction mode is applied.

[0216] As an example, a value of "perspective_intra_pred_transform_enabled_flag" of "1" indicates that a method of converting prediction information is applied when an intra-screen prediction mode is applied, and a value of "perspective_intra_pred_transform_enabled_flag" of "0" indicates that a method of converting prediction information is not applied when an intra-screen prediction mode is applied. Alternatively, whether or not to convert prediction information when intra-screen prediction is applied can be set to a value opposite to that of the example described above.

[0217] The value of "perspective_inter_pred_transform_enable_flag" being "1" indicates that the method of converting prediction information is applied when the inter prediction mode is applied, and the value of "perspective_inter_pred_transform_enable_flag" being "0" indicates that the method of converting prediction information is not applied when the inter prediction mode is applied. Alternatively, whether or not to convert prediction information when inter prediction is applied can be set to a value opposite to that of the example described above.

[0218] In Table 5, "perspective_pred_transform_flag" indicates whether or not to apply a method of transforming prediction information regardless of the prediction mode of the PU.

[0219] As an example, a value of "perspective_pred_transform_flag" of "1" indicates that a method of converting prediction information is applied when an intra-frame prediction mode or an inter-frame prediction mode is applied, and a value of "perspective_pred_transform_flag" of "0" indicates that a method of converting prediction information is not applied when an intra-frame prediction mode or an inter-frame prediction mode is applied. Alternatively, whether or not to convert prediction information may be set to a value opposite to that of the example described above.

[0220] The configurations of the encoder and decoder according to the present invention will be described in detail with reference to FIGS.

[0221] FIG. 42 is a block diagram showing the configuration of an encoder according to the present invention.

[0222] The encoder refers to a device for encoding 3D multi-view images such as a development view of an omnidirectional image, a convergent camera image, and a divergent image. The encoder may include a projection unit 100, an inter-frame prediction unit 110, an intra-frame prediction unit 120, a transform unit 130, a quantization unit 140, an entropy encoding unit 150, an inverse quantization unit 160, an inverse transform unit 170, a reference image extension unit 180, a prediction information transform unit 185, and a restored picture buffer 190.

[0223] The encoder may perform encoding on the input image in an intra prediction mode (or spatial mode) and / or an inter prediction mode (or temporal mode). The encoder may also generate a bitstream through encoding on the input image and output the generated bitstream. When an intra prediction mode is used as a prediction mode, the switch may switch to intra prediction, and when an inter prediction mode is used as a prediction mode, the switch may switch to inter prediction. Here, the intra prediction mode may refer to an intra prediction mode (i.e., a spatial prediction mode), and the inter prediction mode may refer to an inter prediction mode (i.e., a temporal prediction mode).

[0224] The encoder may generate a prediction signal for an input block of an input image. The block-based prediction signal may be referred to as a prediction block. In addition, after the prediction block is generated, the encoder may encode a residual between the input block and the prediction block. The input image may be referred to as a current image currently being coded. The input block may be referred to as a current block currently being coded or a block to be coded.

[0225] The projection unit 100 serves to project a 3D multi-view image onto a 2D shape such as an equirectangular cylinder or a development of a polyhedron. This allows multiple images with irregular angles and positions to be converted into a 2D image according to the development of a polyhedron. The projection unit can also convert a 3D multi-view image into a 2D image using the position and angle of the camera.

[0226] When the prediction mode is an intra mode, the intra prediction unit 120 may use pixel values ​​of already-encoded blocks surrounding the current block as reference pixels. The intra prediction unit 120 may perform spatial prediction using the reference pixels and generate a prediction sample for an input block through the spatial prediction.

[0227] In this case, the intra prediction mode of the current block may be determined based on the intra prediction mode of a neighboring block adjacent to the current block. If the perspective of the current block and the perspective of the neighboring block are different from each other, the prediction information conversion unit 185 may convert the intra prediction mode of the neighboring block and determine the intra prediction mode of the current block based on the converted intra prediction mode.

[0228] When the prediction mode is an inter mode, the inter prediction unit 110 may search for an area that best matches the input block from a reference image during the motion prediction process, and may derive a motion vector using the searched area. The reference image may be stored in a reference picture buffer 190.

[0229] In this case, if a neighboring block for deriving a motion vector has a different view from that of the current block, the prediction information conversion unit 185 may convert the motion vector of the neighboring block. The motion vector of the current block may be derived based on the motion vector of the converted neighboring block.

[0230] The subtractor may use the difference between the input block and the predicted block to generate a residual block, also called a residual signal.

[0231] The transform unit 130 may perform a transform on the residual block to generate a transform coefficient, and may output the transform coefficient. Here, the transform coefficient may be a coefficient value generated by performing a transform on the residual block. When a transform skip mode is applied, the transform unit 130 may skip a transform on the residual block.

[0232] By applying quantization to the transform coefficients, quantized transform coefficient levels can be generated. Hereinafter, in the embodiments, the quantized transform coefficient levels are also referred to as transform coefficients.

[0233] The quantization unit 140 may generate a quantized transform coefficient level by quantizing the transform coefficient based on the quantization parameter, and may output the quantized transform coefficient level. In this case, the quantization unit 140 may quantize the transform coefficient using a quantization matrix.

[0234] The entropy coding unit 150 may generate a bitstream by performing entropy coding based on a probability distribution on a value calculated by the quantization unit 140 or a coding parameter value calculated during the coding process, and may output the bitstream. The entropy coding unit 150 may perform entropy coding on information for decoding the image in addition to information on pixels of the image. For example, the information for decoding the image may include syntax elements, etc.

[0235] When an encoder performs encoding using inter-prediction, the encoded current image can be used as a reference image for other images (and so on) that are processed later. Thus, the encoder can re-decode the encoded current image and store the decoded image as a reference image. For decoding, inverse quantization and inverse transformation can be performed on the encoded current image.

[0236] The quantized coefficients may be dequantized in an inverse quantization unit 160 and inverse transformed in an inverse transform unit 170. The dequantized and inverse transformed coefficients may be combined with a prediction block via an adder 175. A reconstructed block may be generated by combining a residual block generated through inverse quantization and inverse transform with the prediction block.

[0237] Although not shown, the reconstructed block may pass through a filter unit. The filter unit may apply at least one of a deblocking filter, a sample adaptive offset (SAO), and an adaptive loop filter (ALF) to the reconstructed block or the reconstructed image. The filter unit is also called an in-loop filter.

[0238] The reference image extension unit 180 serves to generate a reference image according to the perspective of each image included in the restored omnidirectional image, divergent image, or convergent image. The reference images generated by the reference image extension unit may be grouped by time period or perspective and stored in the reference picture buffer 190. The reference image extension unit will be described in more detail with reference to FIG. 44.

[0239] FIG. 43 is a block diagram showing the configuration of a decoder according to the present invention.

[0240] Referring to FIG. 43, the decoder may include an entropy decoding unit 210, an inverse quantization unit 220, an inverse transform unit 230, an intra prediction unit 240, an inter prediction unit 250, a reference image extension unit 260, a prediction information conversion unit 270 and a reference picture buffer 280.

[0241] The decoder may receive a bitstream output from the encoder, may perform decoding on the bitstream in an intra mode or an inter mode, may generate a reconstructed image through decoding, and may output the reconstructed image.

[0242] If the prediction mode used for decoding is an intra mode, the switch can be changed to intra. If the prediction mode used for decoding is an inter mode, the switch can be changed to inter.

[0243] The decoder can obtain a reconstructed residual block from the input bitstream and generate a prediction block. When the reconstructed residual block and the prediction block are obtained, the decoder can generate a reconstructed block, which is a block to be decoded, by adding the reconstructed residual block and the prediction block. The block to be decoded is also called a current block.

[0244] The entropy decoding unit 210 may generate symbols by performing entropy decoding based on a probability distribution for a bitstream. The generated symbols may include symbols in the form of quantized transform coefficient levels and information required for decoding video data. Here, the entropy decoding method may be the same as the above-mentioned entropy encoding method. For example, the entropy decoding method may be a reverse process of the above-mentioned entropy encoding method.

[0245] The entropy decoding unit 210 may convert one-dimensional vector form coefficients into two-dimensional block form coefficients by a transform coefficient scanning method in order to decode transform coefficient levels. For example, the two-dimensional block form coefficients may be converted by scanning the coefficients of a block using an upright scan. Depending on the size of the transform unit and the intra-picture prediction mode, vertical scan or horizontal scan may be used instead of the upright scan. That is, depending on the size of the transform unit and the intra-picture prediction mode, it may be possible to determine which scan method is used among the upright scan, vertical scan, and horizontal scan.

[0246] The quantized transform coefficient levels may be inversely quantized by the inverse quantization unit 220 and inversely transformed from the frequency domain to the spatial domain by the inverse transform unit 230. A reconstructed residual block may be generated as a result of the inverse quantization and inverse transformation of the quantized transform coefficient levels. In this case, the inverse quantization unit 220 may apply a quantization matrix to the quantized transform coefficient levels.

[0247] When intra mode is used, the intra prediction unit 240 can generate a prediction block by performing spatial prediction in the spatial domain using pixel values ​​of already decoded blocks surrounding the block to be decoded.

[0248] In this case, the intra prediction mode of the current block may be derived from the intra prediction mode of a neighboring block adjacent to the current block. If the perspective of the current block and the perspective of the neighboring block are different from each other, the prediction information conversion unit 185 may convert the intra prediction mode of the neighboring block and derive the intra prediction mode of the current block from the converted intra prediction mode.

[0249] When the inter mode is used, the inter prediction unit 250 may generate a prediction block by performing motion compensation using a motion vector and a reference image stored in the reference picture buffer 280 in the spatial domain. When a value of a motion vector does not have an integer value, the inter prediction unit 250 may generate a prediction block by applying an interpolation filter to a part of a reference image. In order to perform motion compensation, it may be determined whether a motion compensation method of a prediction unit included in a corresponding coding unit is a skip mode, a merge mode, an AMVP mode, or a current picture reference mode, based on a coding unit, and motion compensation may be performed according to each mode. Here, the current picture reference mode may mean a prediction mode using an already restored area in a current picture to which a block to be decoded belongs. The already restored area may be an area that is not adjacent to the block to be decoded. A predetermined vector for the current picture reference mode may be used to identify the already restored area. A flag or index indicating whether the block to be decoded is a block encoded in the current picture reference mode may be signaled, or may be inferred from the reference picture index of the block to be decoded. The current picture for the current picture reference mode may be located at a fixed position (e.g., a position where refIdx=0 or the last position) in the reference picture list for the block to be decoded. Alternatively, the current picture may be variably located in the reference picture list. For this purpose, a separate reference picture index indicating the position of the current picture may be signaled.

[0250] In the merge mode or AMVP mode, the motion vector of the current block may be derived based on the motion vector of a neighboring block that is spatially or temporally adjacent to the current block. In this case, if the neighboring block for deriving the motion vector has a different view from the current block, the prediction information conversion unit 270 may convert the motion vector of the neighboring block. The motion vector of the current block may be derived based on the motion vector of the converted neighboring block.

[0251] The reconstructed residual block and the prediction block may be added through an adder. Although not shown, a block generated by further adding the reconstructed residual block and the prediction block may pass through a filter unit. The filter unit may apply at least one of a deblocking filter, a sample adaptive offset, and an adaptive loop filter to the reconstructed block or the reconstructed image.

[0252] The reference image extension unit 260 serves to generate a reference image according to a viewpoint of each image included in the restored omnidirectional image, divergent image, or convergent image. The reference images generated by the reference image extension unit may be grouped by time period or viewpoint and stored in the reference picture buffer 270. The reference image extension unit will be described in more detail with reference to FIG. 44.

[0253] FIG. 44 is a block diagram of a reference image extension unit according to the present invention.

[0254] Referring to FIG. 44, the reference image extension unit may include a conversion unit 310, an extension unit 320, and a reference image list generation unit 330.

[0255] The conversion unit 310 checks whether images having different viewpoints that are consecutive in position and have the same time axis exist in the image used for prediction, and if so, converts the images to match the viewpoint of the image used for prediction. For example, for a 2D image in the form of a developed figure of a cube, the conversion unit can convert other images according to at least one viewpoint among spatially adjacent images having different viewpoints.

[0256] The extension unit 320 serves to combine the image used for prediction with the image transformed by the transformation unit. That is, the size of the image used for prediction (i.e., the reference image) by the extension unit may be increased by the sum of the transformed images. At this time, the position where the transformed image is extended may be determined based on the characteristics of the image or the position of the image.

[0257] The reference image list generator 330 serves to add a reference image generated by combining the image used for prediction and the converted image to a reference image list. The reference images can be input to the reference image list according to a time axis.

[0258] The components described in the above-described embodiments of the present invention may be realized by at least one of a digital signal processor (DSP), a processor, a controller, an application specific integrated circuit (ASIC), a programmable logic element (FPGA), other electronic devices, and combinations thereof. At least one function or process described in the above-described embodiments of the present invention may be realized by software, and the software may be recorded on a recording medium. Examples of recording media include magnetic media such as hard disks, floppy disks, and magnetic tapes, optical recording media such as CD-ROMs and DVDs, magneto-optical media such as floptical disks, and hardware devices specially configured to store and execute program instructions, such as ROMs, RAMs, and flash memories. Examples of program commands include not only machine language codes created by a compiler, but also high-level language codes that can be executed by a computer using an interpreter, etc. The hardware devices may be configured to operate as one or more software modules to perform the processes of the present invention, and vice versa. The components, functions, processes, etc. described through the embodiments of the present invention can also be realized by a combination of hardware and software.

[0259] Although the present invention has been described above using specific details such as specific components and limited embodiments and drawings, this is merely provided to assist in a more general understanding of the present invention, and the present invention is not limited to these embodiments. A person having ordinary knowledge in the technical field to which the present invention pertains can make various modifications and variations from such descriptions.

[0260] Therefore, the concept of the present invention should not be limited to the above-described embodiments, and it can be said that not only the scope of the claims described below, but also any equivalent or similar modifications to the scope of the claims fall within the scope of the concept of the present invention. [Industrial Applicability]

[0261] The present invention can be used to encode / decode video.

Claims

1. 1. A video encoding method for encoding omnidirectional video, comprising the steps of: storing the reconstructed picture in a picture buffer; The reconstructed picture includes a first image corresponding to a first viewpoint; obtaining a prediction block for the current block by using the reconstructed picture as a reference picture for the current block; Equipped with the restored picture further includes an extension region generated based on a second image, the second image being spherically adjacent to the first image; A flag is coded in the bitstream, the flag indicating whether inter prediction can be performed by referring to the extended region of the reconstructed picture; the extension region is composed of an image portion in which a transformed partial image obtained by transforming a partial region of the second image is filled, and a padded portion in which a sample obtained from an edge sample of the image portion is filled, 13. A method for encoding video, comprising: determining adaptively a size of the padded portion in the extended region based on a size of the transformed portion in the extended region.

2. A first reference picture and a second reference picture are generated based on the restored picture; 2. The method of claim 1, wherein the first reference picture is generated by adding an extension region to a first side of the reconstructed picture, and the second reference picture is generated by adding an extension region to a second side of the reconstructed picture that is different from the first side.

3. 2. The method of claim 1, wherein the extension region is added to at least one of four sides of the first image.

4. The method of claim 1 , wherein the second image corresponds to a second perspective that is different from the first perspective.

5. The omnidirectional video is projected onto an exploded view of a cube; 2. The method of claim 1, wherein the first image is projected onto a first plane of the development of the cube, and the second image is projected onto a second plane adjacent to the first plane of the development of the cube.

6. The method of claim 4 , wherein the transformation of the subregion of the second image is performed based on a viewpoint difference between the first viewpoint and the second viewpoint.

7. 1. A video decoding method, comprising: storing the decoded picture in a picture buffer; the decoded picture includes a first image corresponding to a first viewpoint; obtaining a prediction block for the current block by using the decoded picture as a reference picture for the current block; Equipped with the decoded picture further includes an extension region generated based on a second image, the second image being spherically adjacent to the first image; determining whether inter prediction can be performed with reference to the extended region of the decoded picture based on a flag decoded from a bitstream; the extension region is composed of an image portion in which a transformed partial image obtained by transforming a partial region of the second image is filled, and a padded portion in which a sample obtained from an edge sample of the image portion is filled, 13. A video decoding method, comprising: determining a size of the padded portion in the extended region adaptively based on a size of the transformed portion in the extended region.

Citation Information

Patent Citations

  • Image encoding method, image decoding method, image encoding apparatus, image decoding apparatus, image encoding program, image decoding program, and recording medium therefor

    JP2005159824A

  • Method and apparatus for generating virtual image regions for motion estimation and compensation of panoramic images - Patents.com

    JP2008509630A