WO2017086747A1 - 기하 변환 픽처를 이용한 영상의 부호화/복호화 방법 및 장치 - Google Patents

기하 변환 픽처를 이용한 영상의 부호화/복호화 방법 및 장치 Download PDF

Info

Publication number
WO2017086747A1
WO2017086747A1 PCT/KR2016/013364 KR2016013364W WO2017086747A1 WO 2017086747 A1 WO2017086747 A1 WO 2017086747A1 KR 2016013364 W KR2016013364 W KR 2016013364W WO 2017086747 A1 WO2017086747 A1 WO 2017086747A1
Authority
WO
WIPO (PCT)
Prior art keywords
picture
information
geometric
prediction
transform
Prior art date
Application number
PCT/KR2016/013364
Other languages
English (en)
French (fr)
Inventor
강정원
고현석
임성창
이진호
전동산
김휘용
박광훈
최진수
김태현
이대영
허영수
Original Assignee
한국전자통신연구원
경희대학교 산학협력단
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 한국전자통신연구원, 경희대학교 산학협력단 filed Critical 한국전자통신연구원
Priority to CN202210849172.0A priority Critical patent/CN115118969A/zh
Priority to CN201680066455.0A priority patent/CN108353165B/zh
Priority to CN202210849148.7A priority patent/CN115118968A/zh
Priority to CN202210849109.7A priority patent/CN115118966A/zh
Priority to US15/776,292 priority patent/US11412209B2/en
Priority to CN202210849112.9A priority patent/CN115118967A/zh
Priority to CN202210849097.8A priority patent/CN115118965A/zh
Publication of WO2017086747A1 publication Critical patent/WO2017086747A1/ko
Priority to US17/221,195 priority patent/US11425370B2/en
Priority to US17/820,539 priority patent/US11758128B2/en
Priority to US18/358,871 priority patent/US20230370585A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/102Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
    • H04N19/103Selection of coding mode or of prediction mode
    • H04N19/105Selection of the reference unit for prediction within a chosen coding or prediction mode, e.g. adaptive choice of position and number of pixels used for prediction
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/102Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
    • H04N19/103Selection of coding mode or of prediction mode
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/50Image enhancement or restoration by the use of more than one image, e.g. averaging, subtraction
    • G06T5/80
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/20Analysis of motion
    • G06T7/246Analysis of motion using feature-based methods, e.g. the tracking of corners or segments
    • G06T7/248Analysis of motion using feature-based methods, e.g. the tracking of corners or segments involving reference images or patches
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/102Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
    • H04N19/103Selection of coding mode or of prediction mode
    • H04N19/107Selection of coding mode or of prediction mode between spatial and temporal predictive coding, e.g. picture refresh
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/134Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or criterion affecting or controlling the adaptive coding
    • H04N19/136Incoming video signal characteristics or properties
    • H04N19/137Motion inside a coding unit, e.g. average field, frame or block difference
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/134Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or criterion affecting or controlling the adaptive coding
    • H04N19/136Incoming video signal characteristics or properties
    • H04N19/137Motion inside a coding unit, e.g. average field, frame or block difference
    • H04N19/139Analysis of motion vectors, e.g. their magnitude, direction, variance or reliability
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/134Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or criterion affecting or controlling the adaptive coding
    • H04N19/157Assigned coding mode, i.e. the coding mode being predefined or preselected to be further used for selection of another element or parameter
    • H04N19/159Prediction type, e.g. intra-frame, inter-frame or bidirectional frame prediction
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/169Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding
    • H04N19/17Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object
    • H04N19/172Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object the region being a picture, frame or field
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/169Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding
    • H04N19/17Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object
    • H04N19/176Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object the region being a block, e.g. a macroblock
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/169Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding
    • H04N19/182Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being a pixel
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/20Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using video object coding
    • H04N19/29Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using video object coding involving scalability at the object level, e.g. video object layer [VOL]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/44Decoders specially adapted therefor, e.g. video decoders which are asymmetric with respect to the encoder
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/50Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/50Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding
    • H04N19/503Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding involving temporal prediction
    • H04N19/51Motion estimation or motion compensation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/50Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding
    • H04N19/503Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding involving temporal prediction
    • H04N19/51Motion estimation or motion compensation
    • H04N19/513Processing of motion vectors
    • H04N19/521Processing of motion vectors for estimating the reliability of the determined motion vectors or motion vector field, e.g. for smoothing the motion vector field or for correcting motion vectors
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/50Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding
    • H04N19/503Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding involving temporal prediction
    • H04N19/51Motion estimation or motion compensation
    • H04N19/583Motion compensation with overlapping blocks
    • G06T3/02
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/169Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding
    • H04N19/17Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object
    • H04N19/174Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object the region being a slice, e.g. a line of blocks or a group of blocks

Definitions

  • the present invention relates to a method and apparatus for encoding / decoding an image using a geometrically modified picture generated by geometrically modifying a reference picture.
  • An inter-screen prediction technique for predicting pixel values included in the current picture from a picture before or after the current picture using an image compression technology
  • an intra-picture prediction technology for predicting pixel values included in the current picture using pixel information in the current picture
  • transformation and quantization techniques for compressing the energy of the residual signal
  • entropy coding technique for assigning short codes to high-frequency values and long codes for low-frequency values.
  • Image data can be effectively compressed and transmitted or stored.
  • the similarity between the reference picture and the current picture is degraded.
  • the degradation of the similarity between pictures results in a decrease in prediction efficiency.
  • the efficiency of the intra prediction may decrease. Therefore, there is a need for improvement to solve the above problems.
  • the present invention provides a method and apparatus for efficiently encoding / decoding an image.
  • the present invention also provides a method and apparatus for efficiently performing inter prediction and / or intra prediction.
  • the present invention also provides a method and apparatus for generating a geometrically transformed picture by geometrically transforming a reference picture.
  • the present invention also provides a method and apparatus for efficiently signaling information related to a geometric transform picture.
  • the present invention provides a method and apparatus for performing inter-screen prediction and / or intra-picture prediction with reference to a geometric transform picture.
  • a method for encoding an image which generates a first transform block of a current block by performing a geometric transform picture generation step of generating a geometric transform picture by performing a geometric transform on a reference picture, and performing inter-prediction referring to the geometric transform picture.
  • a first prediction block generation step may be included.
  • the method may further include selecting a final prediction block to be used for motion compensation of the current block among the prediction blocks.
  • the selection of the final prediction block may be performed by selecting a block having a smaller error between the current block among the first prediction block and the second prediction block.
  • the method may further include generating geometric transform information for generating geometric transform information, and the geometric transform picture generating step may be performed based on the geometric transform information and the reference picture.
  • the method may further include geometric transformation information encoding step of encoding the geometric transformation information.
  • the encoding of the geometric transform information includes reconstructing the geometric transform information, and reconstructing the geometric transform information simplifies the geometric transform information or predicts the geometric transform information. It may include.
  • the geometric transformation information may be generated based on a change in pixel information between a current picture including the current block and a reference picture.
  • the generating of the geometric transformation information may be performed based on matching information between feature points extracted from each of the current picture and the reference picture.
  • the geometric transform picture generating may include identifying a point in the reference picture corresponding to a point in the geometric transform picture, and pixel information of a corresponding point in the reference picture. May be set to pixel information of a point in the geometric transform picture.
  • a method of decoding an image includes: a prediction block for generating a prediction block of a current block by performing a geometric transform picture generation step of generating a geometrically transformed picture by geometrically transforming a reference picture, and performing inter-prediction with reference to the geometric transformed picture. It may include a generation step.
  • the method comprises: receiving motion compensation related information, and determining whether the geometry transformed picture is referenced to motion compensation of the current block based on the motion compensation related information.
  • the geometric transform picture generation step and the prediction block generation step may be performed when it is determined in the determining step that the geometric transform picture is referred to the motion compensation of the current block.
  • the determining may be performed based on information on whether the motion compensation related information includes information on geometric transformation information or whether to refer to a geometric transform picture included in the motion compensation related information. Can be performed.
  • the determining step when it is determined that the geometric transform picture is referred to the motion compensation of the current block, information about the geometric transform information included in the motion compensation related information is determined.
  • the method may further include restoring the geometric transform information based on the reference picture, and the geometric transform picture generating may be performed based on the reference picture and the reconstructed geometric transform information.
  • the information on the geometric transformation information includes differential geometric transformation information or a scaling factor
  • the restoring of the geometric transformation information comprises at least one of the differential geometric transformation information or the scaling coefficient.
  • the geometric transformation information may be restored based on one and the stored geometric transformation information.
  • the motion compensation related information includes information about the pre-stored geometric transformation information, and the information about the pre-stored geometric transformation information includes one of one or more pre-stored geometric transformation information. May be information identifying.
  • the geometric transform picture generating step includes: identifying a point in the reference picture corresponding to a point in the geometric transform picture, and pixel information of a corresponding point in the reference picture May be set to pixel information of a point in the geometric transform picture.
  • the corresponding point in the reference picture when the corresponding point in the reference picture has real coordinates, one or more points having integer coordinates are identified from the periphery of the corresponding point in the reference picture, and one having the integer coordinates.
  • the pixel information of the corresponding point in the reference picture may be derived based on the pixel information of the above point.
  • the geometric transform picture generating step may be performed in one or more units selected from a picture, a slice, a tile, a coding unit, and a prediction unit.
  • an image can be efficiently encoded / decoded.
  • inter prediction and / or intra prediction may be efficiently performed.
  • a geometry transform picture may be generated by transforming a reference picture.
  • inter prediction and / or intra prediction may be performed with reference to a geometric transform picture.
  • FIG. 1 is a block diagram illustrating a configuration of an encoding apparatus according to an embodiment of the present invention.
  • FIG. 2 is a block diagram illustrating a configuration of a decoding apparatus according to an embodiment of the present invention.
  • FIG. 3 is a diagram schematically illustrating a division structure of an image when encoding and decoding an image.
  • FIG. 4 is a diagram illustrating a form of a prediction unit PU that may be included in the coding unit CU.
  • FIG. 5 is a diagram illustrating a form of a transform unit (TU) that a coding unit CU may include.
  • TU transform unit
  • FIG. 6 is a diagram for explaining an embodiment of an intra prediction process.
  • FIG. 7 is a diagram for explaining an embodiment of an inter prediction process.
  • FIG. 8 is a diagram for describing a shift transformation as an example of geometric transformation of an image according to the present invention.
  • FIG. 9 is a diagram for explaining size deformation as an example of geometric transformation of an image according to the present invention.
  • FIG. 10 is a diagram for describing a rotational deformation as an example of geometric transformation of an image according to the present invention.
  • FIG. 11 is a diagram for describing an affine transformation as an example of geometric transformation of an image according to the present invention.
  • FIG. 12 is a diagram for describing a projection transformation as an example of geometric transformation of an image according to the present invention.
  • FIG. 13 is a view for explaining an example of a method for implementing homography according to the present invention.
  • FIG. 15 is a diagram for describing a method of generating a geometric transform image based on a geometric transform matrix and an original image according to the present invention.
  • FIG. 16 is a diagram for describing a method of generating a geometrically converted image using history in accordance with the present invention.
  • the geometric transformation matrix may correspond to the geometric transformation information.
  • FIG. 18 is a diagram for describing a bilinear interpolation method among various interpolation methods described with reference to FIG. 17 according to an embodiment of the present invention.
  • FIG. 19 is a diagram for describing a method of generating geometric transform information and a geometric transform picture in a video encoder, and performing motion prediction using a reference picture and a geometric transform picture according to the present invention.
  • 20 is a block diagram showing a configuration according to another embodiment of an encoder to which the present invention is applied.
  • FIG. 21 is a diagram for describing an operation and a structure of a geometric transform picture generator 2010 according to an embodiment of the encoder illustrated in FIG. 20.
  • FIG. 22 is a diagram for describing an operation and a structure of the geometric transform picture prediction unit 2015 according to an embodiment of the encoder illustrated in FIG. 20.
  • FIG. 23 is a flowchart illustrating motion prediction according to an embodiment of the present invention.
  • 24 is a flowchart for explaining a method of generating a geometric transform picture according to an embodiment of the present invention.
  • 25 is a flowchart illustrating an inter prediction method according to an embodiment of the present invention.
  • 26 is a flowchart illustrating a method of encoding geometric transformation information according to an embodiment of the present invention.
  • FIG. 27 is a diagram illustrating various embodiments of modifying geometric transformation information to reduce the amount of bits required for encoding the geometric transformation information.
  • FIG. 28 is a diagram for describing a method of generating a geometric transform picture from a reference picture using geometric transform information in a video decoder and performing motion compensation using the reference picture and the geometric transform picture according to the present invention.
  • 29 is a block diagram showing a configuration according to another embodiment of a decoder to which the present invention is applied.
  • FIG. 30 is a diagram for describing an operation and a structure of a geometrical transform picture generator 2970 according to an embodiment of the decoder illustrated in FIG. 29.
  • FIG. 31 is a diagram for describing an operation and a structure of the geometric transform picture predictor 2960 according to an embodiment of the decoder illustrated in FIG. 29.
  • 32 is a flowchart illustrating motion compensation in a decoder according to an embodiment of the present invention.
  • 33 is a conceptual diagram illustrating extended intra prediction according to an embodiment of the present invention.
  • 34 is a diagram for describing an operation and a structure of an extended intra prediction unit according to an embodiment of the present invention.
  • 35 is a diagram illustrating extended intra prediction according to an embodiment of the present invention.
  • 36 is a diagram for explaining an intra prediction direction according to the present invention.
  • FIG. 37 is a diagram illustrating an embodiment in which extended intra prediction is performed according to the present invention.
  • first and second may be used to describe various components, but the components should not be limited by the terms. The terms are used only for the purpose of distinguishing one component from another.
  • the first component may be referred to as the second component, and similarly, the second component may also be referred to as the first component.
  • the term “and / or” includes any combination of a plurality of related items or any item of a plurality of related items.
  • any component of the invention When any component of the invention is said to be “connected” or “connected” to another component, it may be directly connected to or connected to that other component, but other components may be present in between. It should be understood that it may. On the other hand, when a component is referred to as being “directly connected” or “directly connected” to another component, it should be understood that there is no other component in between.
  • each component shown in the embodiments of the present invention are shown independently to represent different characteristic functions, and do not mean that each component is made of separate hardware or one software component unit.
  • each component is included in each component for convenience of description, and at least two of the components may be combined into one component, or one component may be divided into a plurality of components to perform a function.
  • Integrated and separate embodiments of the components are also included within the scope of the present invention without departing from the spirit of the invention.
  • Some components of the present invention are not essential components for performing essential functions in the present invention but may be optional components for improving performance.
  • the present invention can be implemented including only the components essential for implementing the essentials of the present invention except for the components used for improving performance, and the structure including only the essential components except for the optional components used for improving performance. Also included in the scope of the present invention.
  • an image may mean one picture constituting a video and may represent a video itself.
  • "encoding and / or decoding of an image” may mean “encoding and / or decoding of a video” and may mean “encoding and / or decoding of one of images constituting the video.” It may be.
  • the picture may have the same meaning as the image.
  • Encoder This may mean an apparatus for performing encoding.
  • Decoder Refers to an apparatus for performing decoding.
  • Parsing This may mean determining a value of a syntax element by entropy decoding or may refer to entropy decoding itself.
  • An MxN array of samples where M and N are positive integer values, and a block can often mean a two-dimensional sample array.
  • Unit may mean a unit of image encoding and decoding.
  • a unit may be an area generated by division of one image.
  • a unit may mean a divided unit when a single image is divided into subdivided units to be encoded or decoded.
  • a predetermined process may be performed for each unit.
  • One unit may be further divided into subunits having a smaller size than the unit.
  • the unit may be a block, a macroblock, a coding tree unit, a coding tree block, a coding unit, a coding block, a prediction. It may mean a unit, a prediction block, a transform unit, a transform block, or the like.
  • the unit may refer to a luma component block, a chroma component block corresponding thereto, and a syntax element for each block in order to refer to the block separately.
  • the unit may have various sizes and shapes, and in particular, the shape of the unit may include a geometric figure that can be expressed in two dimensions such as a square, a trapezoid, a triangle, a pentagon, as well as a rectangle.
  • the unit information may include at least one of a type of a unit indicating a coding unit, a prediction unit, a transformation unit, and the like, a size of a unit, a depth of a unit, an encoding and decoding order of the unit, and the like.
  • a reconstructed neighbor unit may refer to a unit that has already been encoded or decoded in a spatial / temporal manner around the encoding / decoding target unit.
  • Unit Depth It means the degree of unit division. In the tree structure, the root node has the smallest depth, and the leaf node has the deepest depth.
  • This may mean a encoding / decoding target unit syntax element, a coding parameter, a value of a transform coefficient, or the like.
  • Parameter set may correspond to header information among structures in the bitstream, and includes a video parameter set, a sequence parameter set, a picture parameter set, and an adaptive parameter set. At least one or more of the adaptation parameter set may be included in the parameter set.
  • the parameter set may have a meaning including slice header and tile header information.
  • Bitstream may mean a string of bits including encoded image information.
  • Coding Parameter As well as information encoded by an encoder and transmitted to a decoder, such as a syntax element, it may include information that may be inferred during the encoding or decoding process, and refers to information necessary when encoding or decoding an image. can do.
  • the Prediction Unit This is a basic unit when performing inter prediction or intra prediction and compensation.
  • the prediction unit may be divided into a plurality of partitions. Each of the plurality of partitions becomes a basic unit in performing the prediction and compensation, and the partition in which the prediction unit is divided may also be called a prediction unit.
  • one prediction unit may be divided into a plurality of prediction units having a small size.
  • the prediction unit may have various sizes and shapes, and in particular, the shape of the prediction unit may include a geometric figure that can be expressed in two dimensions such as a square, a trapezoid, a triangle, a pentagon, as well as a rectangle.
  • Prediction Unit Partition This may mean a form in which a prediction unit is divided.
  • Reference Picture List refers to a list including one or more reference pictures used for inter prediction or motion compensation.
  • the types of reference picture lists may be LC (List Combined), L0 (List 0), L1 (List 1), L2 (List 2), L3 (List 3), and the like. Lists can be used.
  • Inter Prediction Indicator It may mean inter prediction direction (unidirectional prediction, bi-directional prediction, etc.) of a block to be encoded / decoded during inter prediction, and the block to be encoded / decoded will generate a prediction block. This may mean the number of reference pictures used, and may mean the number of prediction blocks used when the encoding / decoding target block performs inter prediction or motion compensation.
  • a reference picture index may mean an index of a specific reference picture in the reference picture list.
  • Reference Picture Refers to an image referred to by a specific unit for inter prediction or motion compensation.
  • the reference picture may also be referred to as a reference picture.
  • Motion Vector A two-dimensional vector used for inter prediction or motion compensation, and may mean an offset between an encoding / decoding target image and a reference image.
  • (mvX, mvY) may represent a motion vector
  • mvX may represent a horizontal component
  • mvY may represent a vertical component.
  • Motion Vector Candidate When a motion vector is predicted, it may mean a unit which is a prediction candidate or a motion vector of the unit.
  • a motion vector candidate list may mean a list constructed using motion vector candidates.
  • Motion Vector Candidate Index An indicator indicating a motion vector candidate in a motion vector candidate list, and may be referred to as an index of a motion vector predictor.
  • Motion Information Information including at least one of a motion vector, a reference picture index, an inter prediction indicator, as well as reference picture list information, a reference picture, a motion vector candidate, and a motion vector candidate index. It may mean.
  • a transform unit may refer to a basic unit when performing residual signal encoding / decoding such as transform, inverse transform, quantization, inverse quantization, and transform coefficient encoding / decoding. It may be divided into a plurality of transform units having a small size.
  • the transform unit may have various sizes and shapes, and in particular, the shape of the transform unit may include a geometric figure that can be expressed in two dimensions such as a square, a trapezoid, a triangle, a pentagon, as well as a rectangle.
  • Scaling This may mean a process of multiplying a transform coefficient level by a factor and generating a transform coefficient as a result. Scaling can also be called dequantization.
  • a quantization parameter may mean a value used when scaling transform coefficient levels in quantization and inverse quantization.
  • the quantization parameter may be a value mapped to a quantization step size.
  • a quantization parameter may mean a differential value between the predicted quantization parameter and the quantization parameter of the encoding / decoding target unit.
  • Scan Refers to a method of arranging the order of coefficients in a block or matrix. For example, aligning a two-dimensional array into a one-dimensional array is called a scan, and a one-dimensional array into a two-dimensional array. Sorting can also be called scan or inverse scan.
  • Transform Coefficient A coefficient value generated after performing a transform, and in the present invention, a quantized transform coefficient level in which quantization is applied to the transform coefficient may also be included in the meaning of the transform coefficient.
  • Non-zero Transform Coefficient may mean a transform coefficient whose magnitude is not zero or a transform coefficient level whose magnitude is not zero.
  • Quantization Matrix A matrix used in a quantization or inverse quantization process to improve the subjective or objective image quality of an image.
  • the quantization matrix may also be called a scaling list.
  • Quantization Matrix Coefficient It may mean each element in the quantization matrix. Quantization matrix coefficients may also be referred to as matrix coefficients.
  • a predetermined matrix may mean a predetermined quantization matrix defined in the encoder and the decoder.
  • Non-default Matrix A non-default matrix, which is not defined in advance in the encoder and the decoder, may mean a quantization matrix transmitted / received by a user.
  • FIG. 1 is a block diagram illustrating a configuration of an encoding apparatus according to an embodiment of the present invention.
  • the encoding apparatus 100 may be a video encoding apparatus or an image encoding apparatus.
  • the video may include one or more images.
  • the encoding apparatus 100 may sequentially encode one or more images of the video over time.
  • the encoding apparatus 100 may include a motion predictor 111, a motion compensator 112, an intra predictor 120, a switch 115, a subtractor 125, a transformer 130, and quantization.
  • the unit 140 may include an entropy encoder 150, an inverse quantizer 160, an inverse transform unit 170, an adder 175, a filter unit 180, and a reference picture buffer 190.
  • the encoding apparatus 100 may encode the input image in an intra mode and / or an inter mode. In addition, the encoding apparatus 100 may generate a bitstream through encoding of an input image, and may output the generated bitstream.
  • the switch 115 When the intra mode is used as the prediction mode, the switch 115 may be switched to intra, and when the inter mode is used as the prediction mode, the switch 115 may be switched to inter.
  • the intra mode may mean an intra prediction mode
  • the inter mode may mean an inter prediction mode.
  • the encoding apparatus 100 may generate a prediction block for the input block of the input image. In addition, after the prediction block is generated, the encoding apparatus 100 may encode a residual between the input block and the prediction block.
  • the input image may be referred to as a current image that is a target of current encoding.
  • the input block may be referred to as a current block or an encoding target block that is a target of the current encoding.
  • the intra prediction unit 120 may use the pixel value of a block that is already encoded around the current block as a reference pixel.
  • the intra predictor 120 may perform spatial prediction using the reference pixel, and generate prediction samples for the input block through spatial prediction.
  • Intra prediction may refer to intra prediction.
  • the motion predictor 111 may search an area that best matches the input block from the reference image in the motion prediction process, and derive a motion vector using the searched area.
  • the reference picture may be stored in the reference picture buffer 190.
  • the motion compensator 112 may generate a prediction block by performing motion compensation using a motion vector.
  • the motion vector may be a two-dimensional vector used for inter prediction.
  • the motion vector may indicate an offset between the current picture and the reference picture.
  • inter prediction may mean inter prediction.
  • the motion predictor 111 and the motion compensator 112 may generate a prediction block by applying an interpolation filter to a part of a reference image when the motion vector does not have an integer value.
  • a motion prediction and a motion compensation method of a prediction unit included in a coding unit based on a coding unit is performed in a skip mode, a merge mode, an AMVP mode, or an AMVP mode. ) May be determined, and inter prediction or motion compensation may be performed according to each mode.
  • the subtractor 125 may generate a residual block using the difference between the input block and the prediction block.
  • the residual block may be referred to as the residual signal.
  • the transform unit 130 may generate a transform coefficient by performing transform on the residual block, and output a transform coefficient.
  • the transform coefficient may be a coefficient value generated by performing transform on the residual block.
  • the transform unit 130 may omit the transform on the residual block.
  • Quantized transform coefficient levels may be generated by applying quantization to the transform coefficients.
  • the quantized transform coefficient level may also be referred to as transform coefficient.
  • the quantization unit 140 may generate a quantized transform coefficient level by quantizing the transform coefficient according to the quantization parameter, and output the quantized transform coefficient level. In this case, the quantization unit 140 may quantize the transform coefficients using the quantization matrix.
  • the entropy encoder 150 may generate a bitstream by performing entropy encoding according to probability distribution on values calculated by the quantizer 140 or coding parameter values calculated in the encoding process. And output a bitstream.
  • the entropy encoder 150 may perform entropy encoding on information for decoding an image in addition to information on pixels of an image.
  • the information for decoding the image may include a syntax element.
  • the entropy encoder 150 may use an encoding method such as exponential golomb, context-adaptive variable length coding (CAVLC), or context-adaptive binary arithmetic coding (CABAC) for entropy encoding.
  • CAVLC context-adaptive variable length coding
  • CABAC context-adaptive binary arithmetic coding
  • the entropy encoder 150 may perform entropy encoding using a variable length coding (VLC) table.
  • VLC variable length coding
  • the entropy encoder 150 derives a binarization method of a target symbol and a probability model of a target symbol / bin, and then performs arithmetic coding using the derived binarization method or a probability model. You may.
  • the entropy encoder 150 may change a two-dimensional block shape coefficient into a one-dimensional vector form through a transform coefficient scanning method to encode a transform coefficient level.
  • a transform coefficient scanning method For example, upright scanning can be used to scan the coefficients of a block to change it into a one-dimensional vector.
  • a vertical scan that scans two-dimensional block shape coefficients in a column direction instead of an upright scan and a horizontal scan that scans two-dimensional block shape coefficients in a row direction may be used. That is, according to the size of the conversion unit and the intra prediction mode, it is possible to determine which scan method among upright scan, vertical scan and horizontal scan is used.
  • a coding parameter may include information that can be inferred in the encoding or decoding process as well as information encoded by an encoder and transmitted to a decoder, such as a syntax element, and refers to information necessary when encoding or decoding an image. can do.
  • the residual signal may mean a difference between the original signal and the prediction signal.
  • the residual signal may be a signal generated by transforming a difference between the original signal and the prediction signal.
  • the residual signal may be a signal generated by transforming and quantizing the difference between the original signal and the prediction signal.
  • the residual block may be a residual signal in block units.
  • the encoded current image may be used as a reference image with respect to other image (s) to be processed later. Therefore, the encoding apparatus 100 may decode the encoded current image again and store the decoded image as a reference image. Inverse quantization and inverse transform on the encoded current image may be processed for decoding.
  • the quantized coefficients may be dequantized in inverse quantization unit 160.
  • the inverse transform unit 170 may perform an inverse transform.
  • the inverse quantized and inverse transformed coefficients may be summed with the prediction block via the adder 175.
  • a reconstructed block may be generated by adding the inverse quantized and inverse transformed coefficients and the prediction block.
  • the recovery block may pass through the filter unit 180.
  • the filter unit 180 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. Can be.
  • the filter unit 180 may be referred to as an in-loop filter.
  • the deblocking filter may remove block distortion generated at boundaries between blocks.
  • it may be determined whether to apply the deblocking filter to the current block based on the pixels included in the several columns or rows included in the block.
  • a strong filter or a weak filter may be applied according to the required deblocking filtering strength.
  • horizontal filtering and vertical filtering may be performed in parallel when vertical filtering and horizontal filtering are performed.
  • the sample adaptive offset may add an appropriate offset value to the pixel value to compensate for the encoding error.
  • the sample adaptive offset may correct the offset with the original image on a pixel basis for the deblocked image.
  • the pixels included in the image are divided into a predetermined number of areas, and then, the area to be offset is determined and the offset is applied to the corresponding area or the offset considering the edge information of each pixel. You can use this method.
  • the adaptive loop filter may perform filtering based on a comparison value between the reconstructed image and the original image. After dividing the pixels included in the image into a predetermined group, one filter to be applied to the group may be determined and filtering may be performed for each group. For information related to whether to apply the adaptive loop filter, a luminance signal may be transmitted for each coding unit (CU), and the shape and filter coefficient of the adaptive loop filter to be applied according to each block may vary. In addition, an adaptive loop filter of the same type (fixed form) may be applied regardless of the characteristics of the block to be applied.
  • the reconstructed block that has passed through the filter unit 180 may be stored in the reference picture buffer 190.
  • FIG. 2 is a block diagram illustrating a configuration of a decoding apparatus according to an embodiment of the present invention.
  • the decoding apparatus 200 may be a video decoding apparatus or an image decoding apparatus.
  • the decoding apparatus 200 may include an entropy decoder 210, an inverse quantizer 220, an inverse transform unit 230, an intra predictor 240, a motion compensator 250, and an adder 255.
  • the filter unit 260 may include a reference picture buffer 270.
  • the decoding apparatus 200 may receive a bitstream output from the encoding apparatus 100.
  • the decoding apparatus 200 may decode the bitstream in an intra mode or an inter mode.
  • the decoding apparatus 200 may generate a reconstructed image through decoding and output the reconstructed image.
  • the switch When the prediction mode used for decoding is an intra mode, the switch may be switched to intra. When the prediction mode used for decoding is an inter mode, the switch may be switched to inter.
  • the decoding apparatus 200 may obtain a reconstructed residual block from the input bitstream, and generate a prediction block.
  • the decoding apparatus 200 may generate a reconstruction block that is a decoding target block by adding the reconstructed residual block and the prediction block.
  • the decoding target block may be referred to as a current block.
  • the entropy decoder 210 may generate symbols by performing entropy decoding according to a probability distribution of the bitstream.
  • the generated symbols may include symbols in the form of quantized transform coefficient levels.
  • the entropy decoding method may be similar to the entropy encoding method described above.
  • the entropy decoding method may be an inverse process of the above-described entropy encoding method.
  • the entropy decoder 210 may change the one-dimensional vector form coefficient into a two-dimensional block form through a transform coefficient scanning method.
  • a transform coefficient scanning method For example, upright scanning can be used to scan the coefficients of a block to change it into a two-dimensional block shape.
  • vertical scan or horizontal scan may be used instead of upright scan. That is, according to the size of the conversion unit and the intra prediction mode, it is possible to determine which scan method among upright scan, vertical scan and horizontal scan is used.
  • the quantized transform coefficient level may be inversely quantized by the inverse quantizer 220 and inversely transformed by the inverse transformer 230.
  • a reconstructed residual block may be generated.
  • the inverse quantization unit 220 may apply a quantization matrix to the quantized transform coefficient level.
  • the intra predictor 240 may generate a prediction block by performing spatial prediction using pixel values of blocks that are already decoded around the decoding target block.
  • the motion compensator 250 may generate a predictive block by performing motion compensation using a reference vector stored in the motion vector and the reference picture buffer 270.
  • the motion compensator 250 may generate a prediction block by applying an interpolation filter to a portion of the reference image.
  • a motion compensation method of a prediction unit included in a coding unit based on a coding unit includes a skip mode, a merge mode, a merge mode, an AMVP mode, and a current picture reference mode. It may be determined whether or not it is a method, and motion compensation may be performed according to each mode.
  • the current picture reference mode may mean a prediction mode using a pre-restored region in the current picture to which the decoding target block belongs.
  • the pre-restored region may be a region that is not adjacent to the decoding target block.
  • a predetermined vector for the current picture reference mode may be used to specify the pre-restored region.
  • a flag or index indicating whether the decoding object block is a block encoded in the current picture reference mode may be signaled or may be inferred through the reference image index of the decoding object block.
  • the reference picture index may be variably positioned, and for this purpose, a separate reference picture index indicating the location of the current picture may be signaled.
  • the reconstructed residual block and the prediction block may be added through the adder 255.
  • the generated block may pass through the filter unit 260.
  • the filter unit 260 may apply at least one or more of a deblocking filter, a sample adaptive offset, and an adaptive loop filter to the reconstructed block or the reconstructed image.
  • the filter unit 260 may output the reconstructed image.
  • the reconstructed picture may be stored in the reference picture buffer 270 and used for inter prediction.
  • 3 is a diagram schematically illustrating a division structure of an image when encoding and decoding an image. 3 schematically shows an embodiment in which one unit is divided into a plurality of sub-units.
  • a coding unit may be used in encoding and decoding.
  • the coding unit may mean a coding unit.
  • a unit may be a term that collectively refers to a block including 1) a syntax element and 2) image samples.
  • "division of a unit” may mean “division of a block corresponding to a unit”.
  • the block division information may include information about a depth of a unit. The depth information may indicate the number and / or degree of division of the unit.
  • the image 300 is sequentially divided into units of a largest coding unit (LCU), and a split structure is determined by units of an LCU.
  • the LCU may be used as the same meaning as a coding tree unit (CTU).
  • CTU coding tree unit
  • One unit may be hierarchically divided with depth information based on a tree structure. Each divided subunit may have depth information. Since the depth information indicates the number and / or degree of division of the unit, the depth information may include information about the size of the sub-unit.
  • the partition structure may mean a distribution of a coding unit (CU) in the LCU 310.
  • the CU may be a unit for efficiently encoding an image. This distribution may be determined according to whether to divide one CU into a plurality of CUs (two or more positive integers including 2, 4, 8, 16, etc.).
  • the horizontal and vertical sizes of the CUs created by splitting are either half of the horizontal and vertical sizes of the CU before splitting, or smaller than the horizontal and vertical sizes of the CU before splitting, depending on the number of splits.
  • Can have The partitioned CU may be recursively divided into a plurality of CUs having reduced horizontal and vertical sizes in the same manner.
  • Depth information may be information indicating the size of a CU. Depth information may be stored for each CU. For example, the depth of the LCU may be 0, and the depth of the smallest coding unit (SCU) may be a predefined maximum depth.
  • the LCU may be a coding unit having a maximum coding unit size as described above, and the SCU may be a coding unit having a minimum coding unit size.
  • the division starts from the LCU 310, and the depth of the CU increases by one each time the division reduces the horizontal and vertical sizes of the CU.
  • the CU that is not divided may have a size of 2N ⁇ 2N.
  • a 2N ⁇ 2N sized CU may be divided into a plurality of CUs having an N ⁇ N size. The magnitude of N decreases in half for every 1 increase in depth.
  • an LCU having a depth of 0 may be 64 ⁇ 64 pixels. 0 may be the minimum depth.
  • An SCU of depth 3 may be 8x8 pixels. 3 may be the maximum depth.
  • a CU of 64x64 pixels, which is an LCU may be represented by a depth of zero.
  • a CU of 32x32 pixels may be represented by depth one.
  • a CU of 16 ⁇ 16 pixels may be represented by depth two.
  • a CU of 8x8 pixels, which is an SCU, may be represented by depth 3.
  • information on whether the CU is split may be expressed through split information of the CU.
  • the split information may be 1 bit of information. All CUs except the SCU may include partition information. For example, if the value of the partition information is 0, the CU may not be split. If the value of the partition information is 1, the CU may be split.
  • FIG. 4 is a diagram illustrating a form of a prediction unit PU that may be included in the coding unit CU.
  • a CU that is no longer split among CUs partitioned from the LCU may be divided into one or more prediction units (PUs). This process may also be called division.
  • PUs prediction units
  • the PU may be a basic unit for prediction.
  • the PU may be encoded and decoded in any one of a skip mode, an inter screen mode, and an intra screen mode.
  • the PU may be divided into various forms according to modes.
  • the skip mode there may be no partition in the CU.
  • the 2N ⁇ 2N mode 410 having the same size as the CU without splitting may be supported.
  • inter-screen mode eight divided forms in the CU can be supported.
  • 2Nx2N mode 410, 2NxN mode 415, Nx2N mode 420, NxN mode 425, 2NxnU mode 430, 2NxnD mode 435, nLx2N mode 440, and nRx2N mode 445 may be supported.
  • 2Nx2N mode 410 and NxN mode 425 may be supported.
  • FIG. 5 is a diagram illustrating a form of a transform unit (TU) that a coding unit CU may include.
  • TU transform unit
  • a transform unit may be a basic unit used for a process of transform, quantization, inverse transform, and inverse quantization in a CU.
  • the TU may have a shape such as a square shape or a rectangle.
  • the TU may be determined dependent on the size and / or shape of the CU.
  • a CU that is no longer split into CUs may be split into one or more TUs.
  • the partition structure of the TU may be a quad-tree structure.
  • one CU 510 may be divided one or more times according to the quadtree structure.
  • one CU 510 may be configured with TUs of various sizes. Or, it may be divided into one or more TUs based on the number of vertical lines and / or horizontal lines for dividing a CU.
  • the CU may be divided into symmetrical TUs and may be divided into asymmetrical TUs.
  • Information about the size / shape of the TU may be signaled or may be derived from information about the size / shape of the CU for division into an asymmetric TU.
  • the residual block may be transformed using at least one of a plurality of pre-defined transformation methods.
  • Discrete Cosine Transform DCT
  • DST Discrete Sine Transform
  • KLT KLT
  • Which transformation method is applied to transform the residual block may be determined using at least one or more of inter prediction mode information of the prediction unit, intra prediction mode information, and size / shape of the transform block. Indicative information may be signaled.
  • FIG. 6 is a diagram for explaining an embodiment of an intra prediction process.
  • the number of intra prediction modes may vary depending on the size of the prediction unit PU, or may be fixed to N regardless of the size of the prediction unit. In this case, N pieces may include 35 and 67, and may have a positive integer of 1 or more.
  • the intra prediction mode pre-defined in the encoder / decoder may include two non-directional modes and 65 directional modes as shown in FIG. 6. Two non-directional modes may include a DC mode and a planar mode.
  • the number of intra prediction modes may vary depending on the type of color component. For example, the number of intra prediction modes may vary depending on whether the color component is a luma signal or a chroma signal.
  • the PU may have a square shape, having a size of N ⁇ N or a size of 2N ⁇ 2N.
  • the size of NxN may include 4x4, 8x8, 16x16, 32x32, 64x64, 128x128, and the like.
  • the PU may have a size of MxN, where M and N may have a positive integer of 2 or more, and M and N may be different.
  • the unit of the PU may be the size of at least one of a CU, a PU, and a TU.
  • Intra-picture encoding and / or decoding may be performed using sample values or encoding parameters included in neighboring reconstructed units.
  • the prediction block may be generated after applying the reference sample filter to the reference pixel using at least one of the intra prediction mode and the size of the encoding / decoding target block.
  • the type of reference sample filter applied to the reference pixel may be different.
  • the type of the reference sample filter may be different according to the intra prediction mode of the encoding / decoding target block, the size / shape of the encoding / decoding target block, or the position of the reference pixel.
  • Different types of reference sample filters may refer to cases in which at least one of filter coefficients, the number of filter taps, the filter intensity, or the number of filtering of the reference sample filter is different.
  • the intra prediction mode of the current prediction unit may be predicted from the intra prediction mode of the prediction unit existing around the current prediction unit.
  • the current prediction is performed using predetermined flag information.
  • Information on the intra prediction modes of the unit and the neighboring prediction unit may be transmitted. If the intra prediction modes of the current prediction unit and the neighboring prediction unit are different, the entropy encoding may be performed to perform the intra prediction mode of the block to be encoded / decoded. Information can be encoded.
  • FIG. 7 is a diagram for explaining an embodiment of an inter prediction process.
  • the rectangle illustrated in FIG. 7 may represent an image (or a picture).
  • arrows in FIG. 7 may indicate prediction directions. That is, the image may be encoded and / or decoded according to the prediction direction.
  • Each picture may be classified into an I picture (Intra Picture), a P picture (U-predictive Picture), a B picture (Bi-predictive Picture), and the like.
  • Each picture may be encoded and decoded according to an encoding type of each picture.
  • the image to be encoded When the image to be encoded is an I picture, the image may be encoded in the picture with respect to the image itself without inter prediction.
  • the image to be encoded When the image to be encoded is a P picture, the image may be encoded through inter prediction or motion compensation using the reference image only in the forward direction. If the image to be encoded is a B picture, it may be encoded through inter prediction or motion compensation using reference pictures in both forward and reverse directions, and inter prediction or motion using the reference picture in one of the forward and reverse directions. Can be coded through compensation.
  • the encoder may perform inter prediction or motion compensation, and the decoder may perform motion compensation corresponding thereto.
  • the pictures of the P picture and the B picture that are encoded and / or decoded using the reference picture may be regarded as a picture using inter prediction.
  • Inter prediction or motion compensation may be performed using a reference picture and motion information.
  • inter prediction may use the skip mode described above.
  • the reference picture may be at least one of a previous picture of the current picture or a subsequent picture of the current picture.
  • the inter prediction may perform prediction on a block of the current picture based on the reference picture.
  • the reference picture may mean an image used for prediction of the block.
  • an area in the reference picture may be specified by using a reference picture index (refIdx) indicating a reference picture, a motion vector to be described later, and the like.
  • the inter prediction may select a reference picture corresponding to the current block within the reference picture and the reference picture, and generate a prediction block for the current block using the selected reference block.
  • the current block may be a block targeted for current encoding or decoding among blocks of the current picture.
  • the motion information may be derived in the inter prediction process by each of the encoding apparatus 100 and the decoding apparatus 200.
  • the derived motion information may be used to perform inter prediction.
  • the encoding apparatus 100 and the decoding apparatus 200 use encoding information and / or decoding efficiency by using motion information of a reconstructed neighboring block and / or motion information of a collocated block (col block).
  • the call block may be a block corresponding to a spatial position of a block to be encoded / decoded in a collocated picture (col picture).
  • the reconstructed neighboring block may be a block within the current picture and may be a block that is already reconstructed through encoding and / or decoding.
  • the reconstruction block may be a neighboring block adjacent to the encoding / decoding object block and / or a block located at an outer corner of the encoding / decoding object block.
  • the block located at the outer corner of the encoding / decoding target block is a block vertically adjacent to a neighboring block horizontally adjacent to the encoding / decoding target block or a block horizontally adjacent to a neighboring block vertically adjacent to the encoding / decoding target block. Can be.
  • Each of the encoding apparatus 100 and the decoding apparatus 200 may determine a block existing at a position corresponding to a block to be encoded / decoded spatially within a call picture, and determines a predetermined relative position based on the determined block. Can be.
  • the predefined relative position may be a position inside and / or outside of a block existing at a position corresponding to a block to be encoded / decoded spatially.
  • each of the encoding apparatus 100 and the decoding apparatus 200 may derive a call block based on the determined predetermined relative position.
  • the call picture may be one picture among at least one reference picture included in the reference picture list.
  • the method of deriving the motion information may vary according to the prediction mode of the encoding / decoding target block.
  • a prediction mode applied for inter prediction there may be an advanced motion vector prediction (AMVP) and a merge mode.
  • AMVP advanced motion vector prediction
  • the merge mode may be referred to as a motion merge mode.
  • each of the encoding apparatus 100 and the decoding apparatus 200 uses a motion vector of the reconstructed neighboring block and / or a motion vector of the call block. create a motion vector candidate list.
  • the motion vector of the reconstructed neighboring block and / or the motion vector of the call block may be used as a motion vector candidate.
  • the motion vector of the call block may be referred to as a temporal motion vector candidate
  • the motion vector of the reconstructed neighboring block may be referred to as a spatial motion vector candidate.
  • the bitstream generated by the encoding apparatus 100 may include a motion vector candidate index. That is, the encoding apparatus 100 may generate a bitstream by entropy encoding a motion vector candidate index.
  • the motion vector candidate index may indicate an optimal motion vector candidate selected from the motion vector candidates included in the motion vector candidate list.
  • the motion vector candidate index may be transmitted from the encoding apparatus 100 to the decoding apparatus 200 through a bitstream.
  • the decoding apparatus 200 may entropy decode the motion vector candidate index from the bitstream, and select the motion vector candidate of the decoding target block from the motion vector candidates included in the motion vector candidate list using the entropy decoded motion vector candidate index. .
  • the encoding apparatus 100 may calculate a motion vector difference (MVD) between the motion vector of the encoding target block and the motion vector candidate, and may entropy encode the MVD.
  • the bitstream may include entropy coded MVD.
  • the MVD may be transmitted from the encoding apparatus 100 to the decoding apparatus 200 through a bitstream.
  • the decoding apparatus 200 may entropy decode the received MVD from the bitstream.
  • the decoding apparatus 200 may derive the motion vector of the decoding object block through the sum of the decoded MVD and the motion vector candidate.
  • the bitstream may include a reference picture index and the like indicating a reference picture.
  • the reference picture index may be entropy encoded and transmitted from the encoding apparatus 100 to the decoding apparatus 200 through a bitstream.
  • the decoding apparatus 200 may predict the motion vector of the decoding object block using the motion information of the neighboring block, and may derive the motion vector of the decoding object block using the predicted motion vector and the motion vector difference.
  • the decoding apparatus 200 may generate a prediction block for the decoding target block based on the derived motion vector and the reference image index information.
  • the merge mode may mean merging of motions for a plurality of blocks.
  • the merge mode may mean applying motion information of one block to other blocks.
  • each of the encoding apparatus 100 and the decoding apparatus 200 may generate a merge candidate list using the motion information of the reconstructed neighboring block and / or the motion information of the call block.
  • the motion information may include at least one of 1) a motion vector, 2) a reference picture index, and 3) an inter prediction prediction indicator.
  • the prediction indicator may be unidirectional (L0 prediction, L1 prediction) or bidirectional.
  • the merge mode may be applied in a CU unit or a PU unit.
  • the encoding apparatus 100 may entropy-code predetermined information to generate a bitstream and then transmit the encoded stream to the decoding apparatus 200.
  • the bitstream may include predefined information.
  • the predefined information includes: 1) a merge flag, which is information indicating whether to perform a merge mode for each block partition, and 2) which one of neighboring blocks adjacent to an encoding target block is merged with. It may include a merge index that is information about the merge.
  • the neighboring blocks of the encoding object block may include a left neighboring block of the encoding object block, an upper neighboring block of the encoding object block, and a temporal neighboring block of the encoding object block.
  • the merge candidate list may represent a list in which motion information is stored.
  • the merge candidate list may be generated before the merge mode is performed.
  • the motion information stored in the merge candidate list includes motion information of neighboring blocks adjacent to the encoding / decoding target block, motion information of a block corresponding to the encoding / decoding target block in the reference image, and motion already existing in the merge candidate list. At least one or more of the new motion information and the zero merge candidate generated by the combination of the information.
  • the motion information of the neighboring block adjacent to the encoding / decoding target block is a spatial merge candidate and the motion information of the block corresponding to the encoding / decoding target block in the reference image is a temporal merge candidate. It may be referred to as).
  • the skip mode may be a mode in which motion information of a neighboring block is applied to an encoding / decoding target block as it is.
  • the skip mode may be one of modes used for inter prediction.
  • the encoding apparatus 100 may entropy-encode information on which block motion information is to be used as the motion information of the encoding target block and transmit the information to the decoding apparatus 200 through the bitstream.
  • the encoding apparatus 100 may not transmit other information to the decoding apparatus 200.
  • the other information may be syntax element information.
  • the syntax element information may include at least one of motion vector difference information, a coding block flag, and a transform coefficient level.
  • FIGS. 8 to 18 are diagrams for describing a method of generating a geometrically converted image by geometrically transforming an image.
  • Geometric transformation of an image means that the position of light information contained in the image is geometrically transformed.
  • the light information may mean brightness, color, or chrominance of each point of the image.
  • Light information may mean a sample value in a digital image.
  • the geometric deformation may refer to the parallel movement, rotation, change of size, etc. of each point in the image having light information.
  • FIGS. 8 to 12 are diagrams for explaining an example of geometric transformation of an image according to the present invention.
  • (x, y) means a point of the original image before conversion.
  • (x ', y') is a point of the image after conversion, and means a point corresponding to (x, y).
  • the corresponding point means a point where the light information of (x, y) is moved through the transformation.
  • FIG. 8 is a diagram for describing a shift transformation as an example of geometric transformation of an image according to the present invention.
  • tx denotes a displacement of each point in the image on the x-axis
  • ty denotes a displacement of each point in the image on the y-axis. Therefore, by adding tx and ty to a point (x, y) in the image before conversion, a point (x ', y') in the image after conversion can be derived.
  • the shift transform can be expressed as in the determinant of FIG. 8.
  • FIG. 9 is a diagram for describing size transformation as an example of geometric transformation of an image according to the present invention.
  • sx represents a magnitude conversion multiple in the x-axis direction and sy represents a magnitude conversion multiple in the y-axis direction.
  • the size conversion multiple may mean a ratio of sizes of a pre-conversion image and a post-conversion image. If the size conversion factor is 1, it means that the pre-conversion image and the post-conversion image have the same size. If the magnitude conversion multiple is greater than 1, it means that the size is enlarged by the conversion. If the magnitude conversion multiple is less than 1, it means that the size is reduced by the conversion. The magnitude conversion multiple always has a value greater than zero.
  • the point (x ', y') in the image after the transformation can be derived.
  • the magnitude transformation may be represented as in the determinant of FIG. 9.
  • FIG. 10 is a diagram for describing a rotation transformation as an example of geometric transformation of an image according to the present invention.
  • means a rotation angle of an image.
  • the (0, 0) point of the image before conversion is the center of rotation.
  • Points (x ', y') in the image after rotation transformation using the ⁇ and trigonometric functions may be derived.
  • the rotation transformation can be expressed as in the determinant of FIG. 10.
  • FIG. 11 is a diagram for describing an affine transformation as an example of geometric transformation of an image according to the present invention.
  • Affine transformation refers to a case where a combination of movement transformation, size transformation, and rotation transformation occurs.
  • the geometric transformation form due to the affine transformation may vary depending on the order in which each of the shift transformation, the scale transformation and / or the rotation transformation is applied.
  • the application order between the plurality of transforms constituting the affine transform and the combination of each transform not only the shift transform, the magnitude transform, the rotation transform, but also the transform in which the image is inclined may be performed.
  • M i may be a 3 ⁇ 3 matrix for shift transform, magnitude transform or rotation transform.
  • the matrix for each transformation may be multiplied by a matrix and represented in the form of one 3x3 matrix.
  • the matrix A of FIG. 11 may correspond to a 3 ⁇ 3 matrix obtained by matrix multiplying the matrices M 1 to M n .
  • the matrix A may be composed of elements of a1 to a6.
  • the matrix p is a matrix of points in the image before conversion.
  • the matrix p ' is a point in the image after transformation and corresponds to point p in the image before transformation.
  • FIG. 12 is a diagram for describing a projection transformation as an example of geometric transformation of an image according to the present invention.
  • the projection transformation may be an extended affine transformation that may further apply a transformation by perspective to the affine transformation.
  • perspective deformation may be made depending on the viewing angle of the camera or observer.
  • Perspective deformations can include small objects in the distance and large objects in the distance.
  • matrix H can be used for projection transformation.
  • the values of elements h1 to h6 constituting the matrix H may correspond to elements a1 to a6 constituting the matrix A for the affine transformation of FIG. 11.
  • the projection transformation may include an affine transformation.
  • Elements h7 and h8 constituting the matrix H may be elements related to transformation by perspective.
  • Geometric transformation of an image is a method used when transforming an image into a specific form.
  • the geometric transformation of the image represented by the determinant may calculate a point in the post-conversion image corresponding to a point in the pre-conversion image.
  • homography refers to a method of inversely deriving a geometric transformation matrix from two images having corresponding points.
  • FIG. 13 is a view for explaining an example of a method for implementing homography according to the present invention.
  • Homography may derive a geometric transformation relationship between two images based on identification of two points corresponding to each other in the two images. Feature point matching may be used for this.
  • the feature point of the image refers to a point having a characteristic that can be described in the image.
  • feature points may be extracted from the original image and the geometrically converted image, respectively.
  • the feature points of the image may be extracted differently according to a method of extracting feature points or a purpose of use.
  • the point where the brightness value in the image changes rapidly, the center point of the region having a specific shape, the corner point of the object in the image, and the like may be used as the feature point of the image.
  • SIFT, SURF, and blob detection may be used as an algorithm for extracting feature points of an image.
  • feature point matching may be performed based on feature points extracted from the original image and the geometrically transformed image.
  • each extracted feature point may be depicted, and the feature point may be matched between two images by finding similar points.
  • the matched feature points may be used as corresponding points between the original image and the geometric transform image.
  • Step S1304 may be selectively performed according to the feature point matching result in step S1303. That is, in some cases, step S1304 may not be performed. Alternatively, steps S1303 and S1304 may be performed by merging. Alternatively, matching of effective feature points may be performed instead of steps S1303 and S1304.
  • the relation between two points in the two images may be calculated using the selected effective feature points.
  • the geometric transformation matrix may be calculated in step S1306 using the calculated relational expression.
  • step S1306 may not be performed, and the information about the relational expression calculated in step S1305 may be output in a form other than the geometric transformation matrix.
  • Geometric transformation of an image may be performed by a 3 ⁇ 3 matrix H.
  • p means a point in the original image
  • p 'corresponding to p means a point in the geometric transformation image.
  • K1 to k8 in FIG. 14 correspond to a value obtained by dividing h1 to h8 by h9.
  • the same geometric transformation can be performed for the geometric transformation matrix in which h9 is changed to 1 and h1 to h8 are changed to k1 to k8, respectively. Therefore, a process of calculating eight unknowns may be necessary.
  • the final equations for one pair of corresponding points may appear in two forms for x 'and y'. Since eight unknowns have to be calculated, at least four pairs of corresponding points may be needed.
  • matching of corresponding points may include cases of inconsistencies, as mentioned above.
  • matching of corresponding points may exist in some cases with errors. This error may remain even if only valid feature points are selected. Using many correspondence points to produce the geometric transformation matrix can reduce the effects of these errors. Thus, the number of corresponding points to use may be determined in consideration of this.
  • FIG. 15 is a diagram for describing a method of generating a geometric transform image based on a geometric transform matrix and an original image according to the present invention.
  • the generation of the geometrically converted image may correspond to generating light information of a corresponding point in the geometrically transformed image by using light information of a point in the original image as shown in FIG. 15.
  • (X0, y0), (x1, y1), and (x2, y2) of FIG. 15 mean different points in the original image.
  • (x'0, y'0), (x'1, y'1), (x'2, y'2) are equal to (x0, y0), (x1, y1), (x2, y2)
  • the f function is a function for calculating the x-axis coordinate x 'of a corresponding point in the geometrically transformed image by using a point (x, y) in the original image and additional information ⁇ necessary for geometric transformation.
  • the g function calculates the y-axis coordinate y 'of the corresponding point in the geometrically transformed image by using a point (x, y) in the original image and additional information ⁇ required for geometric transformation.
  • the geometric transformation method described with reference to FIG. 15 may be a problem in a discrete image signal that is sampled.
  • discrete video signals only the position of integer coordinates has light information. Therefore, when the coordinate of the point in the geometric transformation image corresponding to a point in the original image is a real region instead of an integer, light information is allocated to the nearest integer coordinate position. As a result, light information may be allocated to some integer coordinate positions in the geometric transformation image, or light information may not be allocated. In this case, inverse mapping can be used.
  • FIG. 16 is a diagram for describing a method of generating a geometrically converted image using history in accordance with the present invention.
  • the dotted rectangular area of FIG. 16 means an area of the geometrically transformed image that we actually want to observe.
  • Each point in the dotted rectangular region may be searched for a point in the original image corresponding to the point reversely. Therefore, the light information of the original image can be allocated to all the points in the geometric transformation image.
  • corresponding points (x3, y3) as shown in (x'3, y'3) of FIG. 16 may exist outside the original image. This point may not have light information of the corresponding original image.
  • Surrounding light information may be allocated to a point where there is no light information of the original image. That is, light information in the nearest original image, for example, light information of the points (x4, y4) may be allocated.
  • the geometric transformation matrix may correspond to the geometric transformation information.
  • information about a current point of an original image, a geometric transformation matrix, and / or a geometric transformation image may be input.
  • the corresponding point of the original image corresponding to the current point of the geometrically transformed image may be calculated using the original image and the geometric transformation matrix.
  • the corresponding point of the calculated original image may be a real corresponding point having real coordinates.
  • step S1702 If the determination result of step S1702 is "no", the point in the original image closest to the corresponding point calculated in step S1703 may be changed to the corresponding point.
  • step S1704 may be performed. In step S1703, step S1704 may be performed even if the corresponding point is changed.
  • step S1704 when the corresponding point is the real coordinate, the nearest integer point can be confirmed. If the corresponding point is an integer coordinate, steps S1704 and S1705 may be omitted and the process may move to step S1706.
  • light information of the real integer corresponding point may be generated by interpolating the light information of the identified integer point (for example, the pixel value).
  • the interpolation method a bilinear interpolation method, a Lanzzos interpolation method, an S-Spline interpolation method, or a bicubic interpolation method may be used.
  • operation S1706 it may be confirmed whether the geometric transformation is completed for all points in the geometric transformation image, and the finally generated geometric transformation image may be output.
  • step S1706 If it is determined in step S1706 that the geometric transformation is not completed, the current point of the geometric transformation image may be changed to the next point in step S1707, and the above-described steps S1701 to S1706 may be repeated.
  • FIG. 18 is a diagram for describing a bilinear interpolation method among various interpolation methods described with reference to FIG. 17 according to an embodiment of the present invention.
  • the real coordinates (x, y) may correspond to the real correspondence point mentioned in step S1704 of FIG. 17.
  • I (x, y) may mean light information (eg, brightness) at the point (x, y).
  • a means the x-axis distance between i and x
  • b means the y-axis distance between j and y, respectively.
  • 1-a means the x-axis distance between i + 1 and x
  • 1-b means the distance between j + 1 and y, respectively.
  • the surrounding four coordinates (i, j), (i, j + 1), (i + 1, j), the light information at the point (x, y) can be calculated from the light information at (i + 1, j + 1).
  • the inter-predictor of the video encoder may predict the encoding target region in the encoding target picture by referring to the reference picture when performing the motion prediction.
  • the distance between the reference picture and the coded picture is too long, or global movement such as rotation, zoom-in, zoom-out, or perspective change of an object occurs.
  • the similarity between the pixels of the two pictures is poor. Therefore, the prediction accuracy is lowered, and the compression efficiency can be greatly reduced.
  • the video encoder may calculate a motion change between the encoded picture and the reference picture, and may geometrically transform the reference picture to have a form similar to the picture to be encoded.
  • Geometric transformation of the reference picture may be performed on a frame, slice, and / or block basis.
  • a picture generated by geometrically converting a reference picture may be defined as a geometrically transformed picture.
  • a reference picture and / or a geometrically transformed picture are not limited to the size of a frame or picture constituting one frame of video.
  • some regions of the reference picture having a picture (frame) size defined in the parameter set may also be referred to as a reference picture.
  • the geometric transform picture generated by transforming a reference picture or a partial region of the reference picture may have a size corresponding to the size of an image before conversion. That is, if the image before the geometric transformation is a reference picture having a picture (frame) size, the geometry transformed picture may also have a size corresponding to the picture (frame) size. If the image before the transformation is a partial region of the reference picture having a picture (frame) size, the geometric transformation picture may also have a size corresponding to the partial region.
  • the video decoder may receive information necessary for geometric transformation when encoding is performed by referring to the geometric transform picture in the video encoder.
  • Information required for the geometric transformation may be defined as geometric transformation information.
  • the video decoder may generate the geometric transform picture from the reference picture based on the received geometric transform information.
  • the video decoder may perform inter prediction by referring to the generated geometric transform picture.
  • FIG. 19 is a diagram for describing a method of generating geometric transform information and a geometric transform picture in a video encoder, and performing motion prediction using a reference picture and a geometric transform picture according to the present invention.
  • the operation of generating geometric transform information from the reference picture and generating the geometric transform picture from the reference picture using the same may be performed by the geometric transform picture generator of the video encoder.
  • the generated geometric transform picture may be stored in an encoder so that the geometric transform picture predictor may be used as a reference signal.
  • the geometric transform picture may be stored in at least one of a reconstructed picture buffer (DPB), a reference picture list, and a geometric transform picture buffer of the encoder.
  • DPB reconstructed picture buffer
  • the inter prediction using the generated geometric transform picture and / or the reference picture may be performed by the geometric transform picture predictor of the video encoder.
  • the configuration of the encoder including the geometric transform picture generation unit, the geometric transform picture buffer, and / or the geometric transform picture prediction unit will be described later.
  • geometric transformation information may be generated based on a picture to be encoded and a reference picture.
  • the reference picture may be selected from one or more reference pictures included in a reference picture list composed of reconstructed pictures that are already decoded.
  • the reference picture may be a reference picture with global motion.
  • the geometric transformation information may be generated by reflecting global motion information between a picture to be encoded and a reference picture having global motion.
  • the geometric transformation information may be generated or configured in units of whole images or partial regions, such as frames, slices, or blocks.
  • the global motion information may be partially or fully reflected.
  • the global motion may be a motion related to the geometric transformation of the above-described image, such as a movement, enlargement, reduction, or rotation.
  • the geometric transform picture may be generated based on the reference picture and the generated geometric transform information.
  • the geometric transform picture may be a geometric transform picture that reflects global motion.
  • the homography described with reference to FIG. 13 may be used.
  • Homography can provide geometric transformation information reflecting rotation, scaling, and transfer between two images to explain the 2-D (two-dimensional) geometric transformation relationship of planar objects. have.
  • the image in the reference picture of FIG. 19 may be geometrically transformed into the image in the geometrical transform picture of FIG. 19 by rotating, enlarging, reducing, or transferring the image through the geometric transformation information.
  • the reference picture and the geometric transform picture of FIG. 19 may have rectangular shapes having different shapes by geometric transform.
  • Arbitrary coordinates (a, b) in the reference picture of FIG. 19 become (a ', b') through the relational expression calculated as in FIG. May correspond to.
  • the video encoder may generate an image similar to the encoded picture from the reference picture by calculating geometric transformation information between the picture to be encoded and the reference picture.
  • the region A in the geometric transform picture of FIG. 19 has a very high visual similarity with the region B in the picture to be encoded in FIG. 19. That is, since the similarity of pixel values between the A region and the B region is high, the prediction accuracy can be improved by referring to the geometric transform picture when the video encoder predicts the motion.
  • a reference picture composed of a pre-decoded picture may be referred to.
  • the reference picture is not an image at the same time as the picture to be encoded, there is a high possibility that a change in pixel value occurs during a time interval between the reference picture and the picture to be encoded. Therefore, it is preferable to also refer to the geometric transform picture generated based on the geometric transform information reflecting the change in the pixel value between the reference picture and the encoded picture. Changes in pixel values may include, for example, those caused by global motion.
  • an optimal prediction signal may be generated by referring to both a reference picture and a geometric transform picture.
  • the geometrically transformed picture is an image reflecting a change in pixel value between the encoded target picture and the reference picture
  • the encoded target picture and the geometrically transformed picture have a high similarity in pixel distribution.
  • noise or an error may occur in the geometric transform picture due to the occurrence of a new pixel that does not exist in the previous image or a large error in the geometric transform information such as a new object appearing in the image.
  • the accuracy of motion prediction referring to the geometric transform picture may be degraded. Therefore, during motion prediction, the motion prediction is performed by referring to both the reference picture and the geometric transform picture, and then the information with high accuracy of motion prediction is updated to the optimal prediction information.
  • the encoder can encode information about motion prediction having an optimal encoding efficiency into a bitstream.
  • the geometric transform information may not be encoded in a region not referring to the geometric transform picture. That is, coding efficiency can be improved by encoding only necessary geometric transformation information.
  • 20 is a block diagram showing a configuration according to another embodiment of an encoder to which the present invention is applied.
  • the encoder illustrated in FIG. 20 includes a geometric transform picture generator 2010, a geometric transform picture prediction unit 2015, an extended intra prediction unit 2020, a subtractor 2025, a transform unit 2030, and a quantizer 2040. ), An entropy encoder 2050, an inverse quantizer 2060, an inverse transform unit 2070, an adder 2075, a deblocking filter unit 2080, and a sample adaptive offset unit 2090. .
  • the geometric transform picture generation unit 2010 calculates the geometric transform information, which is information reflecting a change in pixel value between the reference picture of the reference picture list configured from the reconstructed picture buffer 2013 and the encoding target picture 2011, and calculates the geometric transform picture 2012. ) Can be created.
  • the generated geometric transform picture 2012 may be stored in the geometric transform picture buffer 2016.
  • the geometric transform picture predictor 2015 may include a geometric transform picture buffer 2016 and an inter-screen predictor 2017.
  • the geometric transform picture buffer 2016 may store a geometric transform picture generated by the geometric transform picture generator 2010.
  • the inter prediction unit 2017 may perform motion prediction by using both the geometry transform picture stored in the geometry transform picture buffer and the reference picture of the reference picture list configured from the reconstruction picture buffer 2013 as reference signals.
  • the geometric transform information used to generate the geometric transform picture may be transmitted to the entropy encoder 2050 and encoded.
  • the geometric transform picture generation unit 2010 may perform reconstruction of the geometric transform information described later. Reconstruction of the geometric transform information may be performed at the time of generating the geometric transform picture.
  • the extended intra prediction unit 2020 may perform extended intra prediction by referring not only to the pre-encoded / decoded signal of the current picture but also to the geometric transform picture. The extended intra prediction is described later.
  • FIG. 21 is a diagram for describing an operation and a structure of a geometric transform picture generator 2010 according to an embodiment of the encoder illustrated in FIG. 20.
  • the geometric transform picture generator 2010 may generate a geometric transform picture 2108 that may be used as a reference signal by the geometric transform picture predictor 2015.
  • the geometric transformation information configuration unit 2105 may receive the reference picture 2103 and the encoding target picture 2104 of the reference picture list 2102 configured from the reconstructed picture buffer 2101 to configure the geometric transformation information 2106. .
  • the picture geometry transform calculation unit 2107 may generate the geometry transform picture 2108 by converting the reference picture 2103 based on the geometry transform information 2106.
  • the geometric transformation information configuration unit 2105 may calculate a change in pixel value, in particular, global motion information between the reference picture 2103 and the picture to be encoded 2104.
  • the geometric transformation information configuration unit 2105 may calculate global motion information by finding feature points that can be matched between two input pictures and calculating movement, rotation, and / or size change between the matching points.
  • the geometric transformation information constructing unit 2105 may construct and output geometric transformation information 2106 capable of generating the geometric transformation picture 2108 from the reference picture 2103 based on the calculated global motion information.
  • the picture geometry transform calculation unit 2107 may receive the reference picture 2103 and the geometry transform information 2106 to generate the geometry transform picture 2108 from the reference picture 2103.
  • the picture geometric transform calculator 2107 may generate the geometric transform picture 2108 from the reference picture 2103 using the geometric transform information 2106.
  • the generated geometric transform picture 2108 may be stored in the geometric transform picture buffer 2016 and then referenced by the inter prediction unit 2017 when the inter prediction is performed.
  • FIG. 22 is a diagram for describing an operation and a structure of the geometric transform picture prediction unit 2015 according to an embodiment of the encoder illustrated in FIG. 20.
  • the reference picture 2202 of the reference picture list 2201 and the geometry transform picture 2204 of the geometry transform picture buffer 2203 may be input to the inter prediction unit 2205 and used as a reference signal for motion prediction.
  • the inter prediction unit 2205 may derive the optimal motion prediction information 2206 by referring to both the reference picture 2202 and the geometric transform picture 2204 when the motion is predicted.
  • the optimal motion prediction information 2206 may mean motion prediction information when the prediction accuracy is the highest in the motion prediction and the encoding efficiency is the best.
  • the geometric transform information may be encoded and included in the bitstream.
  • the configuration of the encoder described with reference to FIGS. 20 through 22 is only one of various embodiments of the present invention, and the scope of the present invention is not limited thereto. Some of the configurations of the encoders illustrated in FIGS. 20 to 22 may be merged or omitted with other configurations. Or additional configuration may be added. In addition, some of the plurality of components included in the geometric transform picture generator 2010 and the geometric transform picture predictor 2015 may be configured independently of the geometric transform picture generator 2010 and the geometric transform picture predictor 2015. It may be included as a subcomponent of another component or merged with another component.
  • FIG. 23 is a flowchart illustrating motion prediction according to an embodiment of the present invention.
  • a picture to be encoded and a reference picture may be specified.
  • the reference picture may be selected from the reference picture list.
  • geometric transformation information may be generated based on the encoding target picture and the reference picture.
  • the above-described method may be applied to the method for generating the geometric transformation information.
  • the geometric transform picture may be generated from the reference picture based on the generated geometric transform information.
  • the generated geometric transform picture may be stored in the geometric transform picture buffer.
  • motion prediction may be performed with reference to the reference picture and / or the geometric transform picture.
  • optimal prediction information may be stored or updated based on a reference signal having an optimal encoding efficiency.
  • a cost index for determining an optimal encoding efficiency a rate-distortion cost (RD Cost) may be used.
  • step S2307 if it is determined that the processing for all the reference pictures in the reference picture list is not finished, the process may move to step S2302 and the above steps may be repeated.
  • the finally determined optimal motion prediction information and / or geometric transform information may be encoded (S2308).
  • the geometric transform information may be encoded and transmitted only when the geometric transform picture is used for motion prediction.
  • 24 is a flowchart for explaining a method of generating a geometric transform picture according to an embodiment of the present invention.
  • one reference picture selected from the encoding target picture and the reference picture list may be input.
  • feature points may be extracted from the two pictures, and matching using the extracted feature points may be performed.
  • the extracted feature points may be used to calculate changes in pixel values between two pictures, in particular, global motion information.
  • the feature point may mean a pixel that can be distinguished from the surroundings.
  • geometric transformation information reflecting the rotation, enlargement, and / or movement of the feature points in the two pictures may be calculated (S2403).
  • the calculation of the geometric transformation information may be performed according to various algorithms, for example, the homography of FIG. 13 may be used.
  • the geometric transform picture may be generated.
  • the generation of the geometric transform picture may be performed by applying geometric transform information to each pixel of the reference picture to derive which position of the geometric transform picture corresponds to each pixel of the reference picture.
  • the generated geometric transform picture may be stored.
  • the generated geometric transform picture may be stored in, for example, a geometric transform picture buffer.
  • the storage location of the geometric transform picture is not limited thereto, and may be stored in, for example, a reconstructed picture buffer or a reference picture list.
  • 25 is a flowchart illustrating an inter prediction method according to an embodiment of the present invention.
  • motion prediction referring to the reference picture and motion prediction referring to the geometric transform picture may be performed.
  • the order of motion prediction is not limited to this. That is, motion prediction with reference to the geometric transform picture may be performed first. Alternatively, motion prediction with reference to both pictures may be performed at the same time.
  • the reference picture may be selected from the reference picture list.
  • operation S2503 it may be determined whether the efficiency of the motion prediction with reference to the reference picture or the motion prediction with reference to the geometric transform picture is better.
  • information about the reference picture may be stored or updated as the optimal prediction information in step S2504.
  • the information about the geometrical transformed picture may be stored or updated as the optimal prediction information in step S2505.
  • the geometric transform information can be encoded (S2506).
  • the geometric transformation information may be composed of a plurality of arguments as in the matrix of FIG. 14.
  • Each argument can also be a real type. Since encoding a matrix composed of a plurality of real-type arguments requires a large amount of bits, compression efficiency may decrease.
  • various methods may be applied. For example, real type arguments can be approximated to integer type arguments.
  • some of the generated geometric transformation information may be removed to simplify the geometric transformation information.
  • the geometric transformation information to be encoded may be predicted from the previously used geometric transformation information, and only difference values between the geometric transformation information may be transmitted.
  • various methods for reducing the bit amount may be applied. In addition, one or more of the aforementioned methods may be applied together.
  • 26 is a flowchart illustrating a method of encoding geometric transformation information according to an embodiment of the present invention.
  • geometric transformation information that is encoding target may be input.
  • Simplification of the geometric transformation information in step S2602, and prediction of the geometric transformation information may be performed in step S2603.
  • Simplification of the geometric transformation information and processing order of prediction of the geometric transformation information may be interchanged. Alternatively, only one of the two procedures can be used.
  • the real type arguments constituting the geometric transformation information can be approximated.
  • Approximation can reduce the number of bits to represent the arguments.
  • various operations such as rounding, rounding, rounding, rounding, truncation, cutting, etc. may be applied based on a predetermined number of digits.
  • integerization may be performed.
  • the geometric transformation information to be encoded may be predicted from previously used geometric transformation information, and a difference value between the two geometric transformation information may be transmitted.
  • the previously used geometric transformation information may be geometric transformation information used immediately before, or may be geometric transformation information of a previously encoded picture.
  • information for indicating the geometric transformation information to be referred may be further encoded.
  • the decoding apparatus can determine the reference geometric transformation information based on the information indicating the geometric transformation information to be referred to, and can restore the geometric transformation information to be decoded based on this.
  • information indicating the reference geometric transformation information may not be transmitted.
  • step S2604 information necessary to recover the geometric transformation information may be encoded.
  • FIG. 27 is a diagram illustrating various embodiments of modifying geometric transformation information to reduce the amount of bits required for encoding the geometric transformation information.
  • FIG. 27 (1) shows an example in which the real type factor of the geometric transformation information is integerized.
  • FIG. 27 (2) is a simplified example by omitting a part of the geometric transformation information.
  • the two left factors, 0.1 and 0.7 are the factors used for the projection transformation described with reference to FIG.
  • Arguments used for projection transformations occur with small values that are statistically close to zero. Arguments close to zero have only a small effect when generating geometric transform pictures. Therefore, even if omitted, it does not adversely affect the accuracy of the geometric transform picture.
  • the rightmost argument 1 is always fixed to 1 when generating the geometric transformation information, and thus it does not need to be transmitted to the decoder.
  • FIG. 27 (3) shows an example of constructing the geometric transformation information B by multiplying the coefficient transformation 2 by the geometric transformation information A already present. Instead of passing both the geometric transformation information A and the geometric transformation information B, only the geometric transformation information A and the coefficient 2 may be transmitted to restore the geometric transformation information B.
  • FIG. 27 (4) shows an example of constructing the geometric transformation information B using the geometric transformation information A as the reference geometric transformation information.
  • Information to be encoded is geometric transformation information A and differential geometric transformation information B d .
  • B d may correspond to a difference value between the geometric transformation information A and the geometric transformation information B.
  • the decoding apparatus can restore the geometric transformation information B by adding the differential geometric transformation information B d to the geometric transformation information A.
  • FIG. 28 is a diagram for describing a method of generating a geometric transform picture from a reference picture using geometric transform information in a video decoder and performing motion compensation using the reference picture and the geometric transform picture according to the present invention.
  • the video decoder may receive geometric transformation information generated by the video encoder through a bitstream.
  • the video decoder may generate the geometric transform picture by applying the geometric transform information to the reference picture selected from the reference picture list.
  • the generation of the geometric transform picture may be performed by the geometric transform picture generation unit of the decoder to be described later.
  • the unit of the geometric transform picture generated by the geometric transform picture generator may be a unit of various regions determined at the time of encoding by a video encoder such as a frame, slice, or block.
  • the process of generating the geometric transform picture by applying the geometric transform information to the reference picture may correspond to the above-described operation in the video encoder. Unlike the video encoder, however, the video decoder receives the geometric transformation information through the bitstream. Thus, the complexity of the video decoder does not increase significantly.
  • the generated geometric transform picture may be stored in a geometric transform picture buffer of a decoder which will be described later.
  • the video decoder may refer to both the reference picture as well as the geometric transform picture for inter prediction of the picture to be decoded.
  • Inter-screen prediction referring to the reference picture and / or the geometric transform picture may be performed by the inter-screen prediction unit of the decoder to be described later.
  • the inter prediction unit may perform inter prediction using a reference picture of a reconstructed picture buffer (DPB) and / or a geometric transform picture of a geometric transform picture buffer of a decoder, which will be described later, as a reference signal.
  • DPB reconstructed picture buffer
  • the geometric transform picture, or both for the decoding target picture or inter-picture prediction of the decoding target region may be signaled through the bitstream.
  • the signaling may be performed by a separate syntax element.
  • the signaling may be performed by the presence of the geometric transformation information.
  • the video decoder may receive the geometric transform information, generate the geometric transform picture, and / or inter-screen predict the geometric transform picture based on the information indicating that the decoding target picture or the decoding target region is predicted by referring to the geometric transform picture. have.
  • the video decoder may not receive the geometric transform information, generate the geometric transform picture, and / or perform inter prediction based on the geometric transform picture based on information indicating that the decoding target picture or the decoding target area is predicted with reference to the reference picture. have.
  • 29 is a block diagram showing a configuration according to another embodiment of a decoder to which the present invention is applied.
  • the decoder illustrated in FIG. 29 includes an entropy decoder 2910, an inverse quantizer 2920, an inverse transformer 2930, an adder 2935, a filter unit 2940, an expanded intra prediction unit 2950, and a geometric transform.
  • the picture predictor 2960 and the geometric transform picture generator 2970 may be configured.
  • the decoding apparatus may receive the bitstream 2900 and output the decoded picture 2980.
  • the geometric transform picture generation unit 2970 may generate the geometric transform picture 2972 using geometric transform information extracted from a reference picture and a bitstream of a reference picture list configured from the reconstructed picture buffer 2971 and entropy decoded.
  • the geometric transform picture predictor 2960 may include a geometric transform picture buffer 2961 and an inter-prediction predictor 2962 for storing the geometric transform picture.
  • the geometric transform picture 2972 generated by the geometric transform picture generator 2970 may be stored in the geometric transform picture buffer 2961.
  • the geometric transform picture stored in the geometric transform picture buffer 2961 may be referred to as a reference signal by the inter prediction unit 2962.
  • the inter prediction unit 2962 may reconstruct the decoding target picture using the reference picture and / or the geometric transform picture as a reference signal for motion compensation based on the information transmitted from the encoder.
  • FIG. 30 is a diagram for describing an operation and a structure of a geometrical transform picture generator 2970 according to an embodiment of the decoder illustrated in FIG. 29.
  • the picture geometry transform calculation unit 3005 of the geometry transform picture generation unit 2970 receives the geometry transform information 3004 and the reference picture 3003 and generates a geometry transform picture 3006.
  • the reference picture 3003 may be selected from the reference picture list 3002 constructed from the reconstructed picture buffer 3001. Information necessary for the selection of the reference picture 3003 may be included in the bitstream and transmitted. Information necessary for the selection of the reference picture 3003 may be transmitted in a separate syntax element or may be transmitted by being explicitly or implicitly included in the geometric transformation information.
  • the generated geometric transform picture 3006 may be output to the geometric transform picture buffer 2961 as described above.
  • FIG. 31 is a diagram for describing an operation and a structure of the geometric transform picture predictor 2960 according to an embodiment of the decoder illustrated in FIG. 29.
  • the inter prediction unit 3105 of the geometric transform picture prediction unit 2960 may perform inter prediction by referring to the reference picture 3102 and / or the geometric transform picture 3104 and output the prediction signal 3106. have. Whether to refer to either the reference picture 3102 or the geometric transform picture 3104, or both, may be signaled as a separate syntax element through the bitstream or based on the presence of geometric transform information, as described above. May be signaled.
  • the reference picture 3102 may be selected from the reference picture list 3101.
  • the geometric transform picture 3104 may be selected from the geometric transform picture buffer 3103.
  • the geometric transform picture 3104 may be configured only with a portion necessary for inter prediction.
  • the configuration of the decoder described with reference to FIGS. 29 to 31 is only one of various embodiments of the present invention, and the scope of the present invention is not limited thereto. Some of the components of the decoders illustrated in FIGS. 29 to 31 may be merged or omitted with other components. Or additional configuration may be added. In addition, some of the plurality of components included in the geometric transform picture generator 2970 and the geometric transform picture predictor 2960 may be configured independently of the geometric transform picture generator 2970 and the geometric transform picture predictor 2960. It may be included as a subcomponent of another component or merged with another component.
  • 32 is a flowchart illustrating motion compensation in a decoder according to an embodiment of the present invention.
  • the decoder may parse the bitstream and receive motion compensation related information (S3201).
  • the motion compensation related information may include at least one of reference picture information and geometric transformation information.
  • the reference picture information may be information for specifying one reference picture among a plurality of reference pictures included in the reference picture list.
  • the reference picture information may be information for indicating whether a picture referenced in motion compensation is a reference picture or a geometrically transformed picture.
  • the reference picture information may be information for indicating whether both the reference picture and the geometric transform picture are used in motion compensation.
  • the reference picture information may be information including two or more pieces of the above information.
  • the reference picture information may be signaled by one syntax element or may be signaled by a plurality of syntax elements.
  • the reference picture information may be signaled by a method explicitly and / or implicitly defined between the decoder and the encoder. Whether the picture referenced in the motion compensation is the reference picture or the geometric transform picture may be signaled by the presence of the geometric transform information.
  • step S3202 on the basis of the motion compensation related information, it may be determined whether the geometric transform picture is referred to at the time of motion compensation.
  • the determination in step S3202 may be performed based on the presence of reference picture information and / or geometric transformation information, as described above.
  • the geometric transform information for example, when the geometric transform information is received, it may be determined to perform motion compensation with reference to the geometric transform picture.
  • the geometric transform picture may be generated in step S3203. Generation of the geometric transform picture may be performed based on the reference picture selected from the reference picture list and the geometric transform information parsed from the bitstream. In this case, only a part of the geometric transform picture required for motion compensation may be generated.
  • motion compensation may be performed with reference to the generated geometric transform picture.
  • step S3202 If the determination result of step S3202 is "no", motion compensation may be performed by referring to the reference picture selected from the reference picture list in step S3205.
  • a geometrically transformed picture is generated 3203 based on whether the geometrically transformed picture is referenced (S3202).
  • the present invention is not limited thereto, and when geometric transform information is received, a geometric transform picture may be generated regardless of whether the geometric transform picture is referred to.
  • the geometric transform picture may be generated from the reference picture using the geometric transform information.
  • the reference picture and / or the geometric transform picture in the inter prediction it is possible to improve the accuracy of the inter prediction.
  • Prediction using geometric transform pictures is not limited to inter prediction.
  • intra prediction may be performed using a geometric transform picture.
  • extended intra prediction using a geometry transform picture according to an embodiment of the present invention will be described with reference to FIGS. 33 to 37.
  • the current block means a decoding target block.
  • a previously decoded region of the current picture may be referenced. That is, the left, i.e., upper, left and / or right upper region of the current block may be referenced. However, since the right, lower, lower left and / or lower right regions of the current block have not yet been decoded, they cannot be referenced for intra prediction of the current block.
  • the corresponding signal or pre-decoding of the pre-decoded picture corresponding to the current picture may be referred to as a reference signal of intra prediction.
  • the geometrically transformed picture may be a geometrically transformed picture in which a reference picture of the current picture is reconstructed similarly to the current picture using the geometrical transform information.
  • the reference signals for intra prediction may be present in all regions surrounding the current block.
  • the intra prediction of the current block becomes possible for all directions (i.e., top, left, top, right, bottom, bottom, left and / or bottom).
  • the efficiency of the intra prediction can be improved.
  • 34 is a diagram for describing an operation and a structure of an extended intra prediction unit according to an embodiment of the present invention.
  • the extended intra prediction unit of FIG. 34 may correspond to the extended intra prediction unit of the encoder illustrated in FIG. 20.
  • the extended intra prediction unit may include a reference signal selection unit 3404 and a prediction execution unit 3405.
  • the reference signal selector 3404 may receive a current block 3403 which is a decoding target.
  • the reference signal selector 3404 may receive a current picture 3401 and / or a geometric transform picture 3402 to be used as a reference signal for intra prediction.
  • the input current picture 3401 may be a signal of an area encoded / decoded before the current block 3403.
  • the input geometric transform picture 3402 may be a reference picture of the current picture.
  • the input geometric transform picture 3402 may be a geometric transform picture generated by geometric transforming a reference picture of the current picture by geometric transform information.
  • the information about the current block 3403 input to the reference signal selector 3404 may be information such as the position and / or size of the current block in the current picture.
  • the reference signal selector 3404 may select a reference signal from the current picture 3401 and the geometric transform picture 3402. Alternatively, the reference signal selector 3404 may select to reference one picture of the current picture 3401 and the geometrically transformed picture 3402. For example, when performing prediction from the right region of the current block, the reference signal selector 3404 may select the geometric transform picture 3402 as a reference picture.
  • the prediction execution unit 3405 may perform intra prediction with reference to the reference signal and generate a prediction block (prediction signal) of the current block.
  • a prediction block prediction signal
  • information necessary to perform intra prediction in the decoder may be generated as intra prediction information.
  • the intra prediction information may include information about an intra prediction direction or a reference signal.
  • Intra-picture prediction may be performed on all available reference signals, and a reference signal indicating optimal efficiency may be determined.
  • the extended intra prediction unit of the decoder may selectively refer to a pre-decoded region or a geometric transform picture (or a reference picture) of the current picture based on the intra prediction information transmitted from the encoder. For example, if the intra prediction direction indicated by the intra prediction information is the right side of the current block, the intra prediction may be performed using the geometric transform picture.
  • the decoder may generate the geometric transform picture only when the geometric transform picture is referenced. Whether the geometry transformed picture is referenced may be determined from the intra prediction direction as described above. Alternatively, whether the geometric transform picture is referenced may be determined based on the existence of the geometric transform information. Alternatively, whether a geometric transform picture is referenced may be signaled by a separate one or more syntax elements, or may be signaled according to rules explicitly and / or implicitly defined in the encoder and the decoder.
  • the method of generating a geometrically transformed picture referred to for intra prediction according to the present invention may be the same as the method of generating the geometrically transformed picture referred to for inter prediction according to the present invention.
  • the method of constructing or using the geometric transformation information may be the same as the method described in the inter prediction.
  • 35 is a diagram illustrating extended intra prediction according to an embodiment of the present invention.
  • a reference region to be used for intra prediction is selected.
  • the reference area can be selected from all directions around the current block.
  • the prediction direction in the picture may be expressed as an angle subdivided at regular intervals, or may be represented by an index indexing each. In addition, all other possible representations may be used.
  • the encoder can perform intra prediction on all directions sequentially or in parallel. In the decoder, one intra prediction direction may be specified based on the transmitted intra prediction information.
  • step S3502 it may be determined whether the reference region selected in the screen, that is, the reference region indicated by the intra prediction direction is valid within the current picture. That is, it is valid if the selected reference region belongs to the region encoded / decoded prior to the current block, otherwise it is invalid.
  • the determination of step S3502 can be determined by selecting the reference region in step S3501. For example, it may be determined whether the reference area is valid for the current picture from an angle, an index, or a direction indicating the selected reference area.
  • intra prediction may be performed by referring to a pre-decoded signal of the current picture. If the selected reference region is not valid in the current picture, in operation S3503, intra prediction may be performed by referring to the geometric transform picture.
  • 36 is a diagram for explaining an intra prediction direction according to the present invention.
  • prediction modes 0 and 1 belong to a non-angular mode.
  • Prediction mode 0 means a planar (Intra_Planar) mode
  • prediction mode 1 means a DC (Intra_DC) mode.
  • prediction modes 2 to 34 mean angular modes.
  • prediction modes 2 to 65 mean a directional mode.
  • an arrow indicates a reference signal of intra prediction of the current block.
  • FIG. 36 (1) shows an intra prediction direction when only the pre-decoded signal of the current picture can be referred to.
  • the intra prediction of prediction modes 2 to 34 may refer to only signals located on the left side of the current block, that is, on the upper side, the upper left side, and / or the upper right side.
  • FIG. 36 (2) shows an intra prediction direction in which not only the pre-decoded signal of the current picture but also the pre-decoded picture or the geometrically transformed picture of the pre-decoded picture can be referred to.
  • the intra prediction of prediction modes 2 to 65 is not limited to the left, top, top left and / or top right sides of the current block, as well as the right, bottom, bottom left and / or right side of the current block. Reference can be made to signals located in all directions, such as the right and bottom sides.
  • FIG. 37 is a diagram illustrating an embodiment in which extended intra prediction is performed according to the present invention.
  • a neighboring pixel in the current picture refers to a pixel in the current picture that can be referred to in prediction in the picture.
  • An adjacent pixel in a geometrically transformed picture refers to a pixel in a geometrically transformed picture (or a reference picture) corresponding to the current picture, which may be referred to in intra prediction.
  • An area without information refers to an area without pixel information that can be referred to in the prediction of the screen among adjacent pixels of the current block.
  • the solid arrow indicates the intra prediction direction when intra prediction is performed by referring to adjacent pixels in the current picture.
  • the intra prediction direction indicated by the solid arrow may correspond to the prediction directions of the prediction modes 2 to 34 of FIG. 36.
  • the thick solid arrow indicates the intra prediction direction when intra prediction is performed by referring to adjacent pixels in the geometric transform picture (or the reference picture) corresponding to the current picture.
  • the thick solid arrow may correspond to the prediction direction of the prediction modes 35 to 65 of FIG. 36. Dotted arrows indicate directions that cannot be predicted in the picture because there is no reference signal.
  • FIG. 37A and 37C illustrate an example of performing intra prediction by referring to only adjacent pixels in a current picture. Since a reference signal exists in the prediction direction shown in (a), intra prediction may be performed. However, since there is no reference signal in the prediction direction shown in (c), intra prediction may not be performed.
  • intra prediction may be performed by referring to adjacent pixels in the current picture.
  • intra prediction may be performed by referring to adjacent pixels in the geometric transform picture.
  • the coding efficiency can be increased by increasing the accuracy of the intra prediction.
  • the geometric transform picture when generating a geometric transform picture, is composed of a coding unit (CU), a prediction unit (PU), a slice unit, or an image frame unit. Can be. If there is a change in pixel value in image frame or slice unit, picture geometry transformation is performed for large unit region such as slice or frame than picture geometry transformation for small unit region such as each CU or PU. It may be desirable to perform. By doing so, it is possible to prevent the redundant generation of geometric transformation information for a small unit area, and to be much more efficient in terms of complexity.
  • “modification_image_generation_flag” may be information indicating whether a geometry transform picture is used as a reference picture when motion information is predicted.
  • the “modification_image_generation_flag” may be included in a sequence unit, a frame unit, a slice unit, or the like to signal whether or not a geometry transform picture is used in each unit.
  • “modification_image_generation_flag” may be set to '1'.
  • “modification_image_generation_flag” may be set to '0'. Or in each case, it may be configured to have the opposite value.
  • “Modification_image_generation_flag” may be used to indicate whether to use a geometric transform picture in each unit, and may be used to determine whether geometric transform information is included in the transmitted bitstream.
  • Tables 1 and 2 are examples of syntax structures when signaling through the PPS and the slice header, respectively.
  • Image_modification_info is a syntax element for geometric transformation information and may be composed of matrix or nonlinear data.
  • “Image_modification_info” may be a syntax element present in the bitstream when referring to the geometric transformation picture in each unit such as a frame or slice unit (or “modification_image_generation_flag” is “1”). Examples shown in Tables 1 and 2 are cases where "image_modification_info" has geometric transformation information in matrix form.
  • the geometric transformation information matrix includes nine coefficients, one of which can transmit eight coefficients since a fixed value can be used. The coefficients of the matrix to be transmitted may be reduced to eight or less through approximation or prediction of matrix coefficients.
  • matrix coefficients are transmitted in the form of "image_modification_info [x] [y] [z]", where x is the index of the reference picture list, y is the index of the reference picture in the reference picture list, and z is It may mean an index of matrix coefficients.
  • all reference pictures may each have a separate matrix.
  • the video encoder configures and references a geometry transformed picture in the CU and / or PU, as shown in Tables 3 and 4, as the syntax elements for the CU and / or PU, “modification_image_generation_flag” and "Image_modification_info” may be included.
  • “modification_image_generation_flag” and “Image_modification_info” may be included.
  • the matrix coefficient may be transmitted in the form of "image_modification_info [z]".
  • Z denotes an index of the matrix coefficient.
  • Tables 3 and 4 are examples of syntax structures when signaling through CUs and PUs, respectively.
  • the CU and the PU may signal information “reference_modification_info” necessary for reference.
  • the information required for reference may include information such as a reference index and a residual signal.
  • Tables 5 and 6 are examples of syntax structures when signaling through the CU and the PU, respectively.
  • Unidirectional prediction and / or bidirectional prediction may be used in motion prediction.
  • the types of motion prediction may be signaled through the syntax structures of Tables 7 and 8 in CU and PU units.
  • a geometric transform picture may be generated using geometric transform information signaled at a higher level such as a slice header or a PPS.
  • Each CU or PU unit may signal a prediction type for bidirectional prediction using a geometric transform picture, unidirectional prediction using a geometric transform picture, or prediction without using a geometric transform picture.
  • information about whether to use a geometric transform picture for each direction may be signaled as, for example, flag information.
  • “modification_image_reference_type” may be a flag indicating one of a plurality of prediction methods including bidirectional prediction using a geometric transform picture, unidirectional prediction using a geometric transform picture, and prediction without using a geometric transform picture.
  • "Ref_0_modification_flag” is a flag indicating whether to refer to the geometry transform picture of the reference picture of the first reference picture list of the two reference picture lists that the picture currently being decoded can refer to.
  • “Ref_1_modification_flag” is a flag indicating whether to refer to the geometric transform picture of the reference picture of the second reference picture list.
  • Table 7 and Table 8 are examples of syntax structures when signaling through the CU and the PU, respectively.
  • a geometric transform picture geometrically transformed at a higher level such as a slice header or a PPS or geometric transform information transmitted at a higher level may be corrected and used at the CU and / or PU level.
  • "modification_image_using_revision_flag” and “modification_revision_info” may be included as syntax elements at the CU and PU levels.
  • Modification_image_using_revision_flag When “modification_image_using_revision_flag” is “1”, this may mean that there is information to be corrected at the CU or PU level. In this case, “modification_revision_info” may be additionally signaled.
  • Modification_image_using_revision_flag When “modification_image_using_revision_flag” is “0”, this may mean that there is no information to be corrected at the CU or PU level. Since there is no information to correct, “modification_revision_info” may not be signaled.
  • Modification_image_using_revision_flag” and “modification_revision_info” may be directly signaled as syntax elements, as in the examples of Tables 9 and 10, and may be explicitly and / or implicit according to predefined rules in the encoder and decoder without using syntax elements. May be signaled as.
  • Table 9 and Table 10 are examples of syntax structures when signaling through the CU and the PU, respectively.
  • the methods are described based on a flowchart as a series of steps or units, but the present invention is not limited to the order of steps, and certain steps may occur in a different order or simultaneously from other steps as described above. Can be. Also, one of ordinary skill in the art appreciates that the steps shown in the flowcharts are not exclusive, that other steps may be included, or that one or more steps in the flowcharts may be deleted without affecting the scope of the present invention. I can understand.
  • Embodiments according to the present invention described above may be implemented in the form of program instructions that may be executed by various computer components, and may be recorded in a computer-readable recording medium.
  • the computer-readable recording medium may include program instructions, data files, data structures, etc. alone or in combination.
  • Program instructions recorded on the computer-readable recording medium may be those specially designed and configured for the present invention, or may be known and available to those skilled in the computer software arts.
  • Examples of computer-readable recording media include magnetic media such as hard disks, floppy disks, and magnetic tape, optical recording media such as CD-ROMs, DVDs, and magneto-optical media such as floptical disks.
  • Examples of program instructions include not only machine code generated by a compiler, but also high-level language code that can be executed by a computer using an interpreter or the like.
  • the hardware device may be configured to operate as one or more software modules to perform the process according to the invention, and vice versa.
  • the present invention can be used to encode / decode an image.

Abstract

본 발명은 기하 변환 픽처를 활용한 비디오 부호화/복호화 방법 및 장치에 관한 것이다. 본 발명에 따른 영상의 부호화 방법은 참조 픽처를 기하 변환하여 기하 변환 픽처를 생성하는 기하 변환 픽처 생성 단계, 및 기하 변환 픽처를 참조한 화면 간 예측을 수행하여 현재 블록의 제1 예측 블록을 생성하는 제1 예측 블록 생성 단계를 포함할 수 있다.

Description

기하 변환 픽처를 이용한 영상의 부호화/복호화 방법 및 장치
본 발명은 참조 픽처를 기하 변환(geometric modification)하여 생성되는 기하 변환 픽처(geometrically modified picture)를 이용한 영상의 부호화/복호화 방법 및 장치에 관한 것이다.
최근 HD(High Definition) 해상도를 가지는 방송 서비스가 국내뿐만 아니라 세계적으로 확대되면서, 많은 사용자들이 고해상도, 고화질의 영상에 익숙해지고 있으며 이에 따라 많은 기관들이 차세대 영상기기에 대한 개발에 박차를 가하고 있다. 또한 HDTV와 더불어 HDTV의 4배 이상의 해상도를 갖는 UHD(Ultra High Definition)에 대한 관심이 증대되면서 보다 높은 해상도, 고화질의 영상에 대한 압축기술이 요구되고 있다.
영상 압축 기술로 현재 픽처의 이전 또는 이후 픽처로부터 현재 픽처에 포함된 화소값을 예측하는 화면 간 예측 기술, 현재 픽처 내의 화소 정보를 이용하여 현재 픽처에 포함된 화소값을 예측하는 화면 내 예측 기술, 잔여 신호의 에너지를 압축하기 위한 변환 및 양자화 기술, 출현 빈도가 높은 값에 짧은 부호를 할당하고 출현 빈도가 낮은 값에 긴 부호를 할당하는 엔트로피 부호화 기술 등 다양한 기술이 존재하고 이러한 영상 압축 기술을 이용해 영상 데이터를 효과적으로 압축하여 전송 또는 저장할 수 있다.
화면 간 예측 시 참조되는 참조 픽처에 전역(global) 움직임 등이 포함되는 경우, 참조 픽처와 현재 픽처 사이의 유사성이 저하된다. 픽처 간 유사성의 저하는 예측 효율의 저하를 초래한다. 또한, 화면 내 예측 시 현재 블록의 화면 내 예측 방향이 제한됨에 따라, 화면 내 예측의 효율이 저하될 수 있다. 따라서, 상기 문제점들을 해결하기 위한 개선안이 요구되고 있다.
본 발명에서는 영상을 효율적으로 부호화/복호화하는 방법 및 장치를 제공한다.
또한, 본 발명에서는 화면간 예측 및/또는 화면내 예측을 효율적으로 수행하는 방법 및 장치를 제공한다.
또한, 본 발명에서는 참조 픽처를 기하 변환하여 기하 변환 픽처를 생성하는 방법 및 장치를 제공한다.
또한, 본 발명에서는 기하 변환 픽처와 관련된 정보를 효율적으로 시그널링하는 방법 및 장치를 제공한다.
또한, 본 발명에서는 기하 변환 픽처를 참조하여 화면간 예측 및/또는 화면내 예측을 수행하는 방법 및 장치를 제공한다.
본 발명에 따른 영상의 부호화 방법은, 참조 픽처를 기하 변환하여 기하 변환 픽처를 생성하는 기하 변환 픽처 생성 단계, 및 기하 변환 픽처를 참조한 화면 간 예측을 수행하여 현재 블록의 제1 예측 블록을 생성하는 제1 예측 블록 생성 단계를 포함할 수 있다.
본 발명에 따른 영상의 부호화 방법에 있어서, 상기 참조 픽처를 참조한 화면 간 예측을 수행하여 상기 현재 블록의 제2 예측 블록을 생성하는 제2 예측 블록 생성 단계, 및 상기 제1 예측 블록과 상기 제2 예측 블록 중에서, 상기 현재 블록의 움직임 보상에 이용될 최종 예측 블록을 선택하는 단계를 더 포함할 수 있다.
본 발명에 따른 영상의 부호화 방법에 있어서, 상기 최종 예측 블록의 선택은 상기 제1 예측 블록과 상기 제2 예측 블록 중 상기 현재 블록과의 오차가 더 작은 블록을 선택함으로써 수행될 수 있다.
본 발명에 따른 영상의 부호화 방법에 있어서, 기하 변환 정보를 생성하는 기하 변환 정보 생성 단계를 더 포함하고, 상기 기하 변환 픽처 생성 단계는 상기 기하 변환 정보 및 상기 참조 픽처에 기초하여 수행될 수 있다.
본 발명에 따른 영상의 부호화 방법에 있어서, 상기 기하 변환 정보를 부호화하는 기하 변환 정보 부호화 단계를 더 포함할 수 있다.
본 발명에 따른 영상의 부호화 방법에 있어서, 상기 기하 변환 정보 부호화 단계는 상기 기하 변환 정보를 재구성하는 단계를 포함하고, 상기 기하 변환 정보의 재구성은 상기 기하 변환 정보의 간소화 또는 상기 기하 변환 정보의 예측을 포함할 수 있다.
본 발명에 따른 영상의 부호화 방법에 있어서, 상기 기하 변환 정보는 상기 현재 블록을 포함하는 현재 픽처와 참조 픽처 사이의 화소 정보의 변화에 기초하여 생성될 수 있다.
본 발명에 따른 영상의 부호화 방법에 있어서, 상기 기하 변환 정보 생성 단계는, 상기 현재 픽처와 상기 참조 픽처의 각각으로부터 추출된 특징점 사이의 매칭 정보에 기초하여 수행될 수 있다.
본 발명에 따른 영상의 부호화 방법에 있어서, 상기 기하 변환 픽처 생성 단계는, 상기 기하 변환 픽처 내의 한 지점에 대응되는 상기 참조 픽처 내의 한 지점을 식별하는 단계, 및 상기 참조 픽처 내의 대응 지점의 화소 정보를 상기 기하 변환 픽처 내의 지점의 화소 정보로 설정하는 단계를 포함할 수 있다.
본 발명에 따른 영상의 부호화 방법에 있어서, 상기 기하 변환 픽처 내의 지점에 대응되는 지점이 상기 참조 픽처 내에 존재하지 않는 경우, 상기 대응되는 지점에 가장 인접한 상기 참조 픽처 내의 지점을 상기 대응되는 지점으로 식별할 수 있다.
본 발명에 따른 영상의 복호화 방법은, 참조 픽처를 기하 변환하여 기하 변환 픽처를 생성하는 기하 변환 픽처 생성 단계, 및 기하 변환 픽처를 참조한 화면 간 예측을 수행하여 현재 블록의 예측 블록을 생성하는 예측 블록 생성 단계를 포함할 수 있다.
본 발명에 따른 영상의 복호화 방법에 있어서, 움직임 보상 관련 정보를 수신하는 단계, 및 상기 움직임 보상 관련 정보에 기초하여, 상기 현재 블록의 움직임 보상에 상기 기하 변환 픽처가 참조되는지 여부를 판단하는 판단 단계를 더 구비하고, 상기 기하 변환 픽처 생성 단계 및 예측 블록 생성 단계는, 상기 판단 단계에서, 상기 현재 블록의 움직임 보상에 상기 기하 변환 픽처가 참조된 것으로 판단된 경우 수행될 수 있다.
본 발명에 따른 영상의 복호화 방법에 있어서, 상기 판단 단계는 상기 움직임 보상 관련 정보가 기하 변환 정보에 관한 정보를 포함하는지 여부 또는 상기 움직임 보상 관련 정보에 포함된 기하 변환 픽처 참조 여부에 관한 정보에 기초하여 수행될 수 있다.
본 발명에 따른 영상의 복호화 방법에 있어서, 상기 판단 단계에서, 상기 현재 블록의 움직임 보상에 상기 기하 변환 픽처가 참조된 것으로 판단되는 경우, 상기 움직임 보상 관련 정보에 포함된 기하 변환 정보에 관한 정보에 기초하여 상기 기하 변환 정보를 복원하는 단계를 더 포함하고, 상기 기하 변환 픽처 생성 단계는 상기 참조 픽처와 상기 복원된 기하 변환 정보에 기초해서 수행될 수 있다.
본 발명에 따른 영상의 복호화 방법에 있어서, 상기 기하 변환 정보에 관한 정보는 차분 기하 변환 정보 또는 스케일링 계수를 포함하고, 상기 기하 변환 정보의 복원 단계는, 상기 차분 기하 변환 정보 또는 상기 스케일링 계수 중 적어도 하나와 기 저장된 기하 변환 정보에 기초하여 상기 기하 변환 정보를 복원할 수 있다.
본 발명에 따른 영상의 복호화 방법에 있어서, 상기 움직임 보상 관련 정보는 상기 기 저장된 기하 변환 정보에 관한 정보를 포함하고, 상기 기 저장된 기하 변환 정보에 관한 정보는 하나 이상의 기 저장된 기하 변환 정보 중 하나를 식별하는 정보일 수 있다.
본 발명에 따른 영상의 복호화 방법에 있어서, 상기 기하 변환 픽처 생성 단계는, 상기 기하 변환 픽처 내의 한 지점에 대응되는 상기 참조 픽처 내의 한 지점을 식별하는 단계, 및 상기 참조 픽처 내의 대응 지점의 화소 정보를 상기 기하 변환 픽처 내의 지점의 화소 정보로 설정하는 단계를 포함할 수 있다.
본 발명에 따른 영상의 복호화 방법에 있어서, 상기 기하 변환 픽처 내의 지점에 대응되는 지점이 상기 참조 픽처 내에 존재하지 않는 경우, 상기 대응되는 지점에 가장 인접한 상기 참조 픽처 내의 지점을 상기 대응되는 지점으로 식별할 수 있다.
본 발명에 따른 영상의 복호화 방법에 있어서, 상기 참조 픽처 내의 대응 지점이 실수 좌표를 갖는 경우, 상기 참조 픽처 내의 대응 지점의 주변으로부터 정수 좌표를 갖는 하나 이상의 지점을 식별하고, 상기 정수 좌표를 갖는 하나 이상의 지점의 화소 정보에 기초하여 상기 참조 픽처 내의 대응 지점의 화소 정보를 유도할 수 있다.
본 발명에 따른 영상의 복호화 방법에 있어서, 상기 기하 변환 픽처 생성 단계는, 픽처, 슬라이스, 타일, 코딩 유닛(Coding Unit) 및 예측 유닛(Prediction Unit)으로부터 선택된 하나 이상의 단위로 수행될 수 있다.
본 발명에 따르면, 영상을 효율적으로 부호화/복호화할 수 있다.
또한, 본 발명에 따르면, 화면간 예측 및/또는 화면내 예측을 효율적으로 수행할 수 있다.
또한, 본 발명에 따르면, 참조 픽처를 변환하여 기하 변환 픽처를 생성할 수 있다.
또한, 본 발명에 따르면, 기하 변환 픽처와 관련된 정보를 효율적으로 시그널링할 수 있다.
또한, 본 발명에 따르면, 기하 변환 픽처를 참조하여 화면간 예측 및/또는 화면내 예측을 수행할 수 있다.
도 1은 본 발명이 적용되는 부호화 장치의 일 실시예에 따른 구성을 나타내는 블록도이다.
도 2는 본 발명이 적용되는 복호화 장치의 일 실시예에 따른 구성을 나타내는 블록도이다.
도 3은 영상을 부호화 및 복호화할 때의 영상의 분할 구조를 개략적으로 나타내는 도면이다.
도 4는 부호화 유닛(CU)이 포함할 수 있는 예측 유닛(PU)의 형태를 도시한 도면이다.
도 5는 부호화 유닛(CU)이 포함할 수 있는 변환 유닛(TU)의 형태를 도시한 도면이다.
도 6은 화면 내 예측 과정의 실시예를 설명하기 위한 도면이다.
도 7은 화면 간 예측 과정의 실시예를 설명하기 위한 도면이다.
도 8은 본 발명에 따른 영상의 기하학적 변환의 일 예로서, 이동 변환을 설명하기 위한 도면이다.
도 9는 본 발명에 따른 영상의 기하학적 변환의 일 예로서, 크기 변형을 설명하기 위한 도면이다.
도 10은 본 발명에 따른 영상의 기하학적 변환의 일 예로서, 회전 변형을 설명하기 위한 도면이다.
도 11은 본 발명에 따른 영상의 기하학적 변환의 일 예로서, 어파인(Affine) 변환을 설명하기 위한 도면이다.
도 12는 본 발명에 따른 영상의 기하학적 변환의 일 예로서, 투영(projective) 변환을 설명하기 위한 도면이다.
도 13은 본 발명에 따라, 호모그래피를 구현하는 방법의 일 예를 설명하기 위한 도면이다.
도 14는 본 발명에 따른, 두 영상 내의 대응되는 두 지점간의 관계식을 산출하는 방법의 일 예이다.
도 15는 본 발명에 따라 기하 변환 행렬과 원본 영상에 기초하여 기하 변환 영상을 생성하는 방법을 설명하기 위한 도면이다.
도 16은 본 발명에 따른, 역사상을 이용하여 기하 변환 영상을 생성하는 방법을 설명하기 위한 도면이다.
도 17은 본 발명에 따른, 기하 변환 행렬과 원본 영상에 기초하여 기하 변환 영상을 생성하는 방법을 설명하기 위한 도면이다. 기하 변환 행렬은 기하 변환 정보에 대응될 수 있다.
도 18은, 본 발명의 일 실시예에 따라, 도 17을 참조하여 설명된 다양한 보간법 중, 양선형 보간법을 설명하기 위한 도면이다.
도 19는 본 발명에 따른, 비디오 부호화기에서 기하 변환 정보와 기하 변환 픽처를 생성하고, 참조 픽처와 기하 변환 픽처를 이용하여 움직임 예측을 수행하는 방법을 설명하기 위한 도면이다.
도 20은 본 발명이 적용되는 부호화기의 다른 실시예에 따른 구성을 나타내는 블록도이다.
도 21은 도 20에 도시된 부호화기의 일 실시예에 따른 기하 변환 픽처 생성부(2010)의 동작 및 구조를 설명하기 위한 도면이다.
도 22는 도 20에 도시된 부호화기의 일 실시예에 따른 기하 변환 픽처 예측부(2015)의 동작 및 구조를 설명하기 위한 도면이다.
도 23은 본 발명의 일 실시예에 따른 움직임 예측을 설명하기 위한 순서도이다.
도 24는 본 발명의 일 실시예에 따른 기하 변환 픽처 생성 방법을 설명하기 위한 순서도이다.
도 25는 본 발명의 일 실시예에 따른 화면간 예측 방법을 설명하기 위한 순서도이다.
도 26은 본 발명의 일 실시예에 따른 기하 변환 정보 부호화 방법을 설명하기 위한 순서도이다.
도 27은 기하 변환 정보의 부호화에 필요한 비트량을 줄이기 위해 기하 변환 정보를 변형하는 다양한 실시 예를 도시한 도면이다.
도 28은 본 발명에 따라 비디오 복호화기에서 기하 변환 정보를 이용하여 참조 픽처로부터 기하 변환 픽처를 생성하고, 참조 픽처와 기하 변환 픽처를 이용하여 움직임 보상을 수행하는 방법을 설명하기 위한 도면이다.
도 29는 본 발명이 적용되는 복호화기의 다른 실시예에 따른 구성을 나타내는 블록도이다.
도 30은 도 29에 도시된 복호화기의 일 실시예에 따른 기하 변환 픽처 생성부(2970)의 동작 및 구조를 설명하기 위한 도면이다.
도 31은 도 29에 도시된 복호화기의 일 실시예에 따른 기하 변환 픽처 예측부(2960)의 동작 및 구조를 설명하기 위한 도면이다.
도 32는 본 발명의 일 실시예에 따른 복호화기에서의 움직임 보상을 설명하기 위한 순서도이다.
도 33은 본 발명의 일 실시예에 따른, 확장된 화면 내 예측을 설명하기 위한 개념도이다.
도 34는 본 발명에 일 실시예에 따른 확장된 화면 내 예측부의 동작 및 구조를 설명하기 위한 도면이다.
도 35는 본 발명의 일 실시예에 따른 확장된 화면 내 예측을 설명하기 위한 도면이다.
도 36은 본 발명에 따른 화면 내 예측 방향을 설명하기 위한 도면이다.
도 37은 본 발명에 따라 확장된 화면 내 예측이 수행되는 일 실시예를 설명하기 위한 도면이다.
본 발명은 다양한 변경을 가할 수 있고 여러 가지 실시예를 가질 수 있는 바, 특정 실시예들을 도면에 예시하고 상세하게 설명하고자 한다. 그러나, 이는 본 발명을 특정한 실시 형태에 대해 한정하려는 것이 아니며, 본 발명의 사상 및 기술 범위에 포함되는 모든 변경, 균등물 내지 대체물을 포함하는 것으로 이해되어야 한다. 도면에서 유사한 참조부호는 여러 측면에 걸쳐서 동일하거나 유사한 기능을 지칭한다. 도면에서의 요소들의 형상 및 크기 등은 보다 명확한 설명을 위해 과장될 수 있다. 후술하는 예시적 실시예들에 대한 상세한 설명은, 특정 실시예를 예시로서 도시하는 첨부 도면을 참조한다. 이들 실시예는 당업자가 실시예를 실시할 수 있기에 충분하도록 상세히 설명된다. 다양한 실시예들은 서로 다르지만 상호 배타적일 필요는 없음이 이해되어야 한다. 예를 들어, 여기에 기재되어 있는 특정 형상, 구조 및 특성은 일 실시예에 관련하여 본 발명의 정신 및 범위를 벗어나지 않으면서 다른 실시예로 구현될 수 있다. 또한, 각각의 개시된 실시예 내의 개별 구성요소의 위치 또는 배치는 실시예의 정신 및 범위를 벗어나지 않으면서 변경될 수 있음이 이해되어야 한다. 따라서, 후술하는 상세한 설명은 한정적인 의미로서 취하려는 것이 아니며, 예시적 실시예들의 범위는, 적절하게 설명된다면, 그 청구항들이 주장하는 것과 균등한 모든 범위와 더불어 첨부된 청구항에 의해서만 한정된다.
본 발명에서 "제1, 제2" 등의 용어는 다양한 구성요소들을 설명하는데 사용될 수 있지만, 상기 구성요소들은 상기 용어들에 의해 한정되어서는 안 된다. 상기 용어들은 하나의 구성요소를 다른 구성요소로부터 구별하는 목적으로만 사용된다. 예를 들어, 본 발명의 권리 범위를 벗어나지 않으면서 제1 구성요소는 제2 구성요소로 명명될 수 있고, 유사하게 제2 구성요소도 제1 구성요소로 명명될 수 있다. "및/또는" 이라는 용어는 복수의 관련된 기재된 항목들의 조합 또는 복수의 관련된 기재된 항목들 중의 어느 항목을 포함한다.
본 발명의 어떤 구성 요소가 다른 구성 요소에 “연결되어” 있다거나 “접속되어” 있다고 언급된 때에는, 그 다른 구성 요소에 직접적으로 연결되어 있거나 또는 접속되어 있을 수도 있으나, 중간에 다른 구성 요소가 존재할 수도 있다고 이해되어야 할 것이다. 반면에, 어떤 구성요소가 다른 구성요소에 "직접 연결되어"있다거나 "직접 접속되어"있다고 언급된 때에는, 중간에 다른 구성요소가 존재하지 않는 것으로 이해되어야 할 것이다.
본 발명의 실시예에 나타나는 구성부들은 서로 다른 특징적인 기능들을 나타내기 위해 독립적으로 도시되는 것으로, 각 구성부들이 분리된 하드웨어나 하나의 소프트웨어 구성단위로 이루어짐을 의미하지 않는다. 즉, 각 구성부는 설명의 편의상 각각의 구성부로 나열하여 포함한 것으로 각 구성부 중 적어도 두 개의 구성부가 합쳐져 하나의 구성부로 이루어지거나, 하나의 구성부가 복수 개의 구성부로 나뉘어져 기능을 수행할 수 있고 이러한 각 구성부의 통합된 실시예 및 분리된 실시예도 본 발명의 본질에서 벗어나지 않는 한 본 발명의 권리범위에 포함된다.
본 발명에서 사용한 용어는 단지 특정한 실시예를 설명하기 위해 사용된 것으로, 본 발명을 한정하려는 의도가 아니다. 단수의 표현은 문맥상 명백하게 다르게 뜻하지 않는 한, 복수의 표현을 포함한다. 본 발명에서, "포함하다" 또는 "가지다" 등의 용어는 명세서상에 기재된 특징, 숫자, 단계, 동작, 구성요소, 부품 또는 이들을 조합한 것이 존재함을 지정하려는 것이지, 하나 또는 그 이상의 다른 특징들이나 숫자, 단계, 동작, 구성요소, 부품 또는 이들을 조합한 것들의 존재 또는 부가 가능성을 미리 배제하지 않는 것으로 이해되어야 한다. 즉, 본 발명에서 특정 구성을 “포함”한다고 기술하는 내용은 해당 구성 이외의 구성을 배제하는 것이 아니며, 추가적인 구성이 본 발명의 실시 또는 본 발명의 기술적 사상의 범위에 포함될 수 있음을 의미한다.
본 발명의 일부의 구성 요소는 본 발명에서 본질적인 기능을 수행하는 필수적인 구성 요소는 아니고 단지 성능을 향상시키기 위한 선택적 구성 요소일 수 있다. 본 발명은 단지 성능 향상을 위해 사용되는 구성 요소를 제외한 본 발명의 본질을 구현하는데 필수적인 구성부만을 포함하여 구현될 수 있고, 단지 성능 향상을 위해 사용되는 선택적 구성 요소를 제외한 필수 구성 요소만을 포함한 구조도 본 발명의 권리범위에 포함된다.
이하, 도면을 참조하여 본 발명의 실시 형태에 대하여 구체적으로 설명한다. 본 명세서의 실시예를 설명함에 있어, 관련된 공지 구성 또는 기능에 대한 구체적인 설명이 본 명세서의 요지를 흐릴 수 있다고 판단되는 경우에는 그 상세한 설명은 생략하고, 도면상의 동일한 구성요소에 대해서는 동일한 참조부호를 사용하고 동일한 구성요소에 대해서 중복된 설명은 생략한다.
또한, 이하에서 영상은 동영상(video)을 구성하는 하나의 픽처를 의미할 수 있으며, 동영상 자체를 나타낼 수도 있다. 예를 들면, "영상의 부호화 및/또는 복호화"는 "비디오의 부호화 및/또는 복호화"를 의미할 수 있으며, "비디오를 구성하는 영상들 중 하나의 영상의 부호화 및/또는 복호화"를 의미할 수도 있다. 여기서, 픽처는 영상과 동일한 의미를 가질 수 있다.
부호화기(Encoder): 부호화를 수행하는 장치를 의미할 수 있다.
복호화기(Decoder): 복호화를 수행하는 장치를 의미할 수 있다.
파싱(Parsing): 엔트로피 복호화하여 구문 요소(Syntax Element)의 값을 결정하는 것을 의미하거나, 엔트로피 복호화 자체를 의미할 수 있다.
블록(Block): 샘플(Sample)의 MxN 배열이며, 여기서 M과 N은 양의 정수 값을 의미하며, 블록은 흔히 2차원 형태의 샘플 배열을 의미할 수 있다.
유닛(Unit): 영상 부호화 및 복호화의 단위를 의미할 수 있다. 영상의 부호화 및 복호화에 있어서, 유닛은 하나의 영상의 분할에 의해 생성된 영역일 수 있다. 또한, 유닛은 하나의 영상을 세분화 된 유닛으로 분할하여 부호화 혹은 복호화 할 때 그 분할된 단위를 의미할 수 있다. 영상의 부호화 및 복호화에 있어서, 유닛 별로 기정의된 처리가 수행될 수 있다. 하나의 유닛은 유닛에 비해 더 작은 크기를 갖는 하위 유닛으로 더 분할될 수 있다. 기능에 따라서, 유닛은 블록(Block), 매크로블록(Macroblock), 부호화 트리 유닛(Coding Tree Unit), 부호화 트리 블록(Coding Tree Block), 부호화 유닛(Coding Unit), 부호화 블록(Coding Block), 예측 유닛(Prediction Unit), 예측 블록(Prediction Block), 변환 유닛(Transform Unit), 변환 블록(Transform Block) 등을 의미할 수 있다. 또한, 유닛은 블록과 구분하여 지칭하기 위해 휘도(Luma) 성분 블록과 그에 대응하는 색차(Chroma) 성분 블록 그리고 각 블록에 대한 구문 요소를 포함한 것을 의미할 수 있다. 유닛은 다양한 크기와 형태를 가질 수 있으며, 특히 유닛의 형태는 직사각형뿐만 아니라 정사각형, 사다리꼴, 삼각형, 오각형 등 2차원으로 표현할 수 있는 기하학적 도형을 포함할 수 있다. 또한, 유닛 정보에는 부호화 유닛, 예측 유닛, 변환 유닛 등을 가리키는 유닛의 타입, 유닛의 크기, 유닛의 깊이, 유닛의 부호화 및 복호화 순서 등 중 적어도 하나 이상을 포함할 수 있다.
복원된 주변 유닛(Reconstructed Neighbor Unit): 부호화/복호화 대상 유닛 주변에 공간적(Spatial)/시간적(Temporal)으로 이미 부호화 혹은 복호화되어 복원된 유닛을 의미할 수 있다.
유닛 깊이(Depth): 유닛이 분할된 정도를 의미하며, 트리 구조(Tree Structure)에서 루트 노드(Root Node)는 깊이가 가장 얕고, 리프 노드(Leaf Node)는 깊이가 가장 깊다고 할 수 있다.
심볼(Symbol): 부호화/복호화 대상 유닛 구문 요소 및 부호화 파라미터(coding parameter), 변환 계수(Transform Coefficient)의 값 등을 의미할 수 있다.
파라미터 세트(Parameter Set): 비트스트림 내의 구조 중 헤더 정보에 해당할 수 있으며, 비디오 파라미터 세트(video parameter set), 시퀀스 파라미터 세트(sequence parameter set), 픽처 파라미터 세트(picture parameter set), 적응 파라미터 세트(adaptation parameter set) 중 적어도 하나 이상이 파라미터 세트에 포함될 수 있다. 또한, 파라미터 세트에는 슬라이스(slice) 헤더 및 타일(tile) 헤더 정보를 포함한 의미를 가질 수 있다.
비트스트림(Bitstream): 부호화된 영상 정보를 포함하는 비트의 열을 의미할 수 있다.
부호화 파라미터(Coding Parameter): 구문 요소와 같이 부호화기에서 부호화되어 복호화기로 전송되는 정보뿐만 아니라, 부호화 혹은 복호화 과정에서 유추될 수 있는 정보를 포함할 수 있으며, 영상을 부호화하거나 복호화할 때 필요한 정보를 의미할 수 있다. 예를 들어, 화면 내 예측 모드, 화면 간 예측 모드, 화면 내 예측 방향, 움직임 정보, 움직임 벡터, 참조 영상 색인, 화면 간 예측 방향, 화면 간 예측 지시자, 참조 영상 리스트, 움직임 벡터 예측기, 움직임 병합 후보, 변환 종류, 변환 크기, 추가 변환 사용 유무, 루프 내 필터 정보, 잔여 신호 유무, 양자화 매개변수, 문맥 모델, 변환 계수, 변환 계수 레벨, 부호화 블록 패턴(Coded Block Pattern), 부호화 블록 플래그(Coded Block Flag), 영상 디스플레이/출력 순서, 슬라이스 정보, 타일 정보, 픽처 타입, 움직임 병합 모드 사용 유무, 스킵 모드 사용 유무, 블록 크기, 블록 깊이, 블록 분할 정보, 유닛 크기, 유닛 깊이, 유닛 분할 정보 등의 값 및/또는 통계 중 적어도 하나 이상이 부호화 파라미터에 포함될 수 있다.
예측 유닛(Prediction Unit): 화면 간 예측 또는 화면 내 예측 및 그에 대한 보상을 수행할 때의 기본 유닛이며, 예측 유닛은 복수의 파티션(Partition)으로 분할 될 수도 있다. 복수의 파티션 각각이 상기 예측 및 보상 수행 시의 기본 유닛이 되며, 예측 유닛이 분할된 파티션도 예측 유닛이라고 할 수 있다. 또한, 하나의 예측 유닛은 분할되어 크기가 작은 복수의 예측 유닛으로 분할될 수 있다. 예측 유닛은 다양한 크기와 형태를 가질 수 있으며, 특히 예측 유닛의 형태는 직사각형뿐만 아니라 정사각형, 사다리꼴, 삼각형, 오각형 등 2차원으로 표현할 수 있는 기하학적 도형을 포함할 수 있다.
예측 유닛 파티션(Prediction Unit Partition): 예측 유닛이 분할된 형태를 의미할 수 있다.
참조 영상 리스트(Reference Picture List): 화면 간 예측 혹은 움직임 보상에 사용되는 하나 이상의 참조 영상이 포함된 리스트를 의미할 수 있다. 참조 영상 리스트의 종류는 LC (List Combined), L0 (List 0), L1 (List 1), L2 (List 2), L3 (List 3) 등이 있을 수 있으며, 화면 간 예측에는 1개 이상의 참조 영상 리스트가 사용될 수 있다.
화면 간 예측 지시자(Inter Prediction Indicator): 화면 간 예측시에 부호화/복호화 대상 블록의 화면 간 예측 방향(단방향 예측, 쌍방향 예측 등)을 의미할 수 있으며, 부호화/복호화 대상 블록이 예측 블록을 생성할 때 사용하는 참조 영상 수를 의미할 수 있으며, 부호화/복호화 대상 블록이 화면 간 예측 혹은 움직임 보상을 수행할 때 사용하는 예측 블록의 수를 의미할 수 있다.
참조 영상 색인(Reference Picture Index): 참조 영상 리스트에서 특정 참조 영상에 대한 색인을 의미할 수 있다.
참조 영상(Reference Picture): 화면 간 예측 혹은 움직임 보상을 위해서 특정 유닛이 참조하는 영상을 의미할 수 있으며, 참조 영상을 참조 픽처라고도 지칭할 수 있다.
움직임 벡터(Motion Vector): 화면 간 예측 혹은 움직임 보상에 사용되는 2차원 벡터이며, 부호화/복호화 대상 영상과 참조 영상 사이의 오프셋을 의미할 수 있다. 예를 들어, (mvX, mvY)는 움직임 벡터를 나타낼 수 있으며, mvX는 가로(horizontal) 성분, mvY는 세로(vertical) 성분을 나타낼 수 있다.
움직임 벡터 후보(Motion Vector Candidate): 움직임 벡터를 예측할 때 예측 후보가 되는 유닛 혹은 그 유닛의 움직임 벡터를 의미할 수 있다.
움직임 벡터 후보 리스트(Motion Vector Candidate List): 움직임 벡터 후보를 이용하여 구성된 리스트를 의미할 수 있다.
움직임 벡터 후보 색인(Motion Vector Candidate Index): 움직임 벡터 후보 리스트 내의 움직임 벡터 후보를 가리키는 지시자, 움직임 벡터 예측기(Motion Vector Predictor)의 색인(index)이라고도 할 수 있다.
움직임 정보(Motion Information): 움직임 벡터, 참조 영상 색인, 화면 간 예측 지시자(Inter Prediction Indicator) 뿐만 아니라 참조 영상 리스트 정보, 참조 영상, 움직임 벡터 후보, 움직임 벡터 후보 색인 등 중 적어도 하나 이상을 포함하는 정보를 의미할 수 있다.
변환 유닛(Transform Unit): 변환, 역변환, 양자화, 역양자화, 변환 계수 부호화/복호화와 같이 잔여 신호(residual signal) 부호화/복호화를 수행할 때의 기본 유닛을 의미할 수 있으며, 하나의 변환 유닛은 분할되어 크기가 작은 복수의 변환 유닛으로 분할될 수 있다. 변환 유닛은 다양한 크기와 형태를 가질 수 있으며, 특히 변환 유닛의 형태는 직사각형뿐만 아니라 정사각형, 사다리꼴, 삼각형, 오각형 등 2차원으로 표현할 수 있는 기하학적 도형을 포함할 수 있다.
스케일링(Scaling): 변환 계수 레벨에 인수를 곱하는 과정을 의미할 수 있으며, 결과로 변환 계수를 생성할 수 있다. 스케일링을 역양자화(dequantization)라고도 부를 수 있다.
양자화 매개변수(Quantization Parameter): 양자화 및 역양자화에서 변환 계수 레벨(transform coefficient level)을 스케일링(scaling)할 때 사용하는 값을 의미할 수 있다. 이때, 양자화 매개변수는 양자화 스텝 크기(step size)에 매핑된 값일 수 있다.
잔여 양자화 매개변수(Delta Quantization Parameter): 예측된 양자화 매개변수와 부호화/복호화 대상 유닛의 양자화 매개변수의 차분된 값을 의미할 수 있다.
스캔(Scan): 블록 혹은 행렬 내 계수의 순서를 정렬하는 방법을 의미할 수 있으며, 예를 들어 2차원 배열을 1차원 배열 형태로 정렬하는 것을 스캔이라고 하며, 1차원 배열을 2차원 배열 형태로 정렬하는 것도 스캔 혹은 역 스캔(Inverse Scan)이라고 부를 수 있다.
변환 계수(Transform Coefficient): 변환을 수행하고 나서 생성된 계수 값, 본 발명에서는 변환 계수에 양자화를 적용한 양자화된 변환 계수 레벨(transform coefficient level)도 변환 계수의 의미에 포함될 수 있다.
넌제로 변환 계수(Non-zero Transform Coefficient): 변환 계수 값의 크기가 0이 아닌 변환 계수 혹은 값의 크기가 0이 아닌 변환 계수 레벨을 의미할 수 있다.
양자화 행렬(Quantization Matrix): 영상의 주관적 화질 혹은 객관적 화질을 향상시키기 위해서 양자화 혹은 역양자화 과정에서 이용하는 행렬을 의미할 수 있다. 양자화 행렬을 스케일링 리스트(scaling list)라고도 부를 수 있다.
양자화 행렬 계수(Quantization Matrix Coefficient): 양자화 행렬내의 각 원소(element)를 의미할 수 있다. 양자화 행렬 계수를 행렬 계수(matrix coefficient)라고도 할 수 있다.
기본 행렬(Default Matrix): 부호화기와 복호화기에서 미리 정의되어 있는 소정의 양자화 행렬을 의미할 수 있다.
비 기본 행렬(Non-default Matrix): 부호화기와 복호화기에서 미리 정의되지 않고, 사용자에 의해서 전송/수신되는 양자화 행렬을 의미할 수 있다.
도 1은 본 발명이 적용되는 부호화 장치의 일 실시예에 따른 구성을 나타내는 블록도이다.
부호화 장치(100)는 비디오 부호화 장치 또는 영상 부호화 장치일 수 있다. 비디오는 하나 이상의 영상들을 포함할 수 있다. 부호화 장치(100)는 비디오의 하나 이상의 영상들을 시간에 따라 순차적으로 부호화할 수 있다.
도 1을 참조하면, 부호화 장치(100)는 움직임 예측부(111), 움직임 보상부(112), 인트라 예측부(120), 스위치(115), 감산기(125), 변환부(130), 양자화부(140), 엔트로피 부호화부(150), 역양자화부(160), 역변환부(170), 가산기(175), 필터부(180) 및 참조 픽처 버퍼(190)를 포함할 수 있다.
부호화 장치(100)는 입력 영상에 대해 인트라 모드 및/또는 인터 모드로 부호화를 수행할 수 있다. 또한, 부호화 장치(100)는 입력 영상에 대한 부호화를 통해 비트스트림을 생성할 수 있고, 생성된 비트스트림을 출력할 수 있다. 예측 모드로 인트라 모드가 사용되는 경우 스위치(115)는 인트라로 전환될 수 있고, 예측 모드로 인터 모드가 사용되는 경우 스위치(115)는 인터로 전환될 수 있다. 여기서 인트라 모드는 화면 내 예측 모드를 의미할 수 있으며, 인터 모드는 화면 간 예측 모드를 의미할 수 있다. 부호화 장치(100)는 입력 영상의 입력 블록에 대한 예측 블록을 생성할 수 있다. 또한, 부호화 장치(100)는 예측 블록이 생성된 후, 입력 블록 및 예측 블록의 차분(residual)을 부호화할 수 있다. 입력 영상은 현재 부호화의 대상인 현재 영상으로 칭해질 수 있다. 입력 블록은 현재 부호화의 대상인 현재 블록 혹은 부호화 대상 블록으로 칭해질 수 있다.
예측 모드가 인트라 모드인 경우, 인트라 예측부(120)는 현재 블록의 주변에 이미 부호화된 블록의 픽셀 값을 참조 화소로서 이용할 수 있다. 인트라 예측부(120)는 참조 화소를 이용하여 공간적 예측을 수행할 수 있고, 공간적 예측을 통해 입력 블록에 대한 예측 샘플들을 생성할 수 있다. 여기서 인트라 예측은 화면 내 예측을 의미할 수 있다.
예측 모드가 인터 모드인 경우, 움직임 예측부(111)는, 움직임 예측 과정에서 참조 영상으로부터 입력 블록과 가장 매치가 잘 되는 영역을 검색할 수 있고, 검색된 영역을 이용하여 움직임 벡터를 도출할 수 있다. 참조 영상은 참조 픽처 버퍼(190)에 저장될 수 있다.
움직임 보상부(112)는 움직임 벡터를 이용하는 움직임 보상을 수행함으로써 예측 블록을 생성할 수 있다. 여기서, 움직임 벡터는 인터 예측에 사용되는 2차원 벡터일 수 있다. 또한 움직임 벡터는 현재 영상 및 참조 영상 간의 오프셋(offset)을 나타낼 수 있다. 여기서 인터 예측은 화면 간 예측을 의미할 수 있다.
상기 움직임 예측부(111)과 움직임 보상부(112)는 움직임 벡터의 값이 정수 값을 가지지 않을 경우에 참조 영상 내의 일부 영역에 대해 보간 필터(Interpolation Filter)를 적용하여 예측 블록을 생성할 수 있다. 화면 간 예측 혹은 움직임 보상을 수행하기 위해 부호화 유닛을 기준으로 해당 부호화 유닛에 포함된 예측 유닛의 움직임 예측 및 움직임 보상 방법이 스킵 모드(Skip Mode), 머지 모드(Merge 모드), AMVP 모드(AMVP Mode) 중 어떠한 방법인지 여부를 판단할 수 있고, 각 모드에 따라 화면 간 예측 혹은 움직임 보상을 수행할 수 있다.
감산기(125)는 입력 블록 및 예측 블록의 차분을 사용하여 잔여 블록(residual block)을 생성할 수 있다. 잔여 블록은 잔여 신호로 칭해질 수도 있다.
변환부(130)는 잔여 블록에 대해 변환(transform)을 수행하여 변환 계수(transform coefficient)를 생성할 수 있고, 변환 계수를 출력할 수 있다. 여기서, 변환 계수는 잔여 블록에 대한 변환을 수행함으로써 생성된 계수 값일 수 있다. 변환 생략(transform skip) 모드가 적용되는 경우, 변환부(130)는 잔여 블록에 대한 변환을 생략할 수도 있다.
변환 계수에 양자화를 적용함으로써 양자화된 변환 계수 레벨(transform coefficient level)이 생성될 수 있다. 이하, 실시예들에서는 양자화된 변환 계수 레벨도 변환 계수로 칭해질 수 있다.
양자화부(140)는 변환 계수를 양자화 매개변수에 따라 양자화함으로써 양자화된 변환 계수 레벨(transform coefficient level)을 생성할 수 있고, 양자화된 변환 계수 레벨을 출력할 수 있다. 이때, 양자화부(140)에서는 양자화 행렬을 사용하여 변환 계수를 양자화할 수 있다.
엔트로피 부호화부(150)는, 양자화부(140)에서 산출된 값들 또는 부호화 과정에서 산출된 부호화 파라미터(Coding Parameter) 값들 등에 대하여 확률 분포에 따른 엔트로피 부호화를 수행함으로써 비트스트림(bitstream)을 생성할 수 있고, 비트스트림을 출력할 수 있다. 엔트로피 부호화부(150)는 영상의 픽셀의 정보 외에 영상의 복호화를 위한 정보에 대한 엔트로피 부호화를 수행할 수 있다. 예를 들면, 영상의 복호화를 위한 정보는 구문 요소(syntax element) 등을 포함할 수 있다.
엔트로피 부호화가 적용되는 경우, 높은 발생 확률을 갖는 심볼(symbol)에 적은 수의 비트가 할당되고 낮은 발생 확률을 갖는 심볼에 많은 수의 비트가 할당되어 심볼이 표현됨으로써, 부호화 대상 심볼들에 대한 비트열의 크기가 감소될 수 있다. 따라서 엔트로피 부호화를 통해서 영상 부호화의 압축 성능이 높아질 수 있다. 엔트로피 부호화부(150)는 엔트로피 부호화를 위해 지수 골롬(exponential golomb), CAVLC(Context-Adaptive Variable Length Coding), CABAC(Context-Adaptive Binary Arithmetic Coding)과 같은 부호화 방법을 사용할 수 있다. 예를 들면, 엔트로피 부호화부(150)는 가변 길이 부호화(Variable Lenghth Coding/Code; VLC) 테이블을 이용하여 엔트로피 부호화를 수행할 수 있다. 또한 엔트로피 부호화부(150)는 대상 심볼의 이진화(binarization) 방법 및 대상 심볼/빈(bin)의 확률 모델(probability model)을 도출한 후, 도출된 이진화 방법 또는 확률 모델을 사용하여 산술 부호화를 수행할 수도 있다.
엔트로피 부호화부(150)는 변환 계수 레벨을 부호화하기 위해 변환 계수 스캐닝(Transform Coefficient Scanning) 방법을 통해 2차원의 블록 형태 계수를 1차원의 벡터 형태로 변경할 수 있다. 예를 들어, 업라이트(up right) 스캐닝을 이용하여 블록의 계수를 스캔함으로써 1차원 벡터 형태로 변경시킬 수 있다. 변환 유닛의 크기 및 화면 내 예측 모드에 따라 업라이트 스캔 대신 2차원의 블록 형태 계수를 열 방향으로 스캔하는 수직 스캔, 2차원의 블록 형태 계수를 행 방향으로 스캔하는 수평 스캔이 사용될 수도 있다. 즉, 변환 유닛의 크기 및 화면 내 예측 모드에 따라 업라이트 스캔, 수직 방향 스캔 및 수평 방향 스캔 중 어떠한 스캔 방법이 사용될지 여부를 결정할 수 있다.
부호화 파라미터(Coding Parameter)는 구문 요소와 같이 부호화기에서 부호화되어 복호화기로 전송되는 정보뿐만 아니라, 부호화 혹은 복호화 과정에서 유추될 수 있는 정보를 포함할 수 있으며, 영상을 부호화하거나 복호화할 때 필요한 정보를 의미할 수 있다. 예를 들어, 화면 내 예측 모드, 화면 간 예측 모드, 화면 내 예측 방향, 움직임 정보, 움직임 벡터, 참조 영상 색인, 화면 간 예측 방향, 화면 간 예측 지시자, 참조 영상 리스트, 움직임 벡터 예측기, 움직임 병합 후보, 변환 종류, 변환 크기, 추가 변환 사용 유무, 루프 내 필터 정보, 잔여 신호 유무, 양자화 매개변수, 문맥 모델, 변환 계수, 변환 계수 레벨, 부호화 블록 패턴(Coded Block Pattern), 부호화 블록 플래그(Coded Block Flag), 영상 디스플레이/출력 순서, 슬라이스 정보, 타일 정보, 픽처 타입, 움직임 병합 모드 사용 유무, 스킵 모드 사용 유무, 블록 크기, 블록 깊이, 블록 분할 정보, 유닛 크기, 유닛 깊이, 유닛 분할 정보 등의 값 및/또는 통계 중 적어도 하나 이상이 부호화 파라미터에 포함될 수 있다.
잔여 신호는 원 신호 및 예측 신호 간의 차이(difference)를 의미할 수 있다. 또는, 잔여 신호는 원신호 및 예측 신호 간의 차이를 변환(transform) 함으로써 생성된 신호일 수 있다. 또는, 잔여 신호는 원 신호 및 예측 신호 간의 차이를 변환 및 양자화함으로써 생성된 신호일 수 있다. 잔여 블록은 블록 단위의 잔여 신호일 수 있다.
부호화 장치(100)가 인터 예측을 통한 부호화를 수행할 경우, 부호화된 현재 영상은 이후에 처리되는 다른 영상(들)에 대하여 참조 영상으로서 사용될 수 있다. 따라서, 부호화 장치(100)는 부호화된 현재 영상을 다시 복호화할 수 있고, 복호화된 영상을 참조 영상으로 저장할 수 있다. 복호화를 위해 부호화된 현재 영상에 대한 역양자화 및 역변환이 처리될 수 있다.
양자화된 계수는 역양자화부(160)에서 역양자화(dequantization)될 수 있고. 역변환부(170)에서 역변환(inverse transform)될 수 있다. 역양자화 및 역변환된 계수는 가산기(175)를 통해 예측 블록과 합해질 수 있다, 역양자화 및 역변환된 계수 및 예측 블록을 합함으로써 복원 블록(reconstructed block) 이 생성될 수 있다.
복원 블록은 필터부(180)를 거칠 수 있다. 필터부(180)는 디블록킹 필터(deblocking filter), 샘플 적응적 오프셋(Sample Adaptive Offset; SAO), 적응적 루프 필터(Adaptive Loop Filter; ALF) 중 적어도 하나 이상을 복원 블록 또는 복원 영상에 적용할 수 있다. 필터부(180)는 인루프 필터(in-loop filter)로 칭해질 수도 있다.
디블록킹 필터는 블록들 간의 경계에 생긴 블록 왜곡을 제거할 수 있다. 디블록킹 필터를 수행할지 여부를 판단하기 위해 블록에 포함된 몇 개의 열 또는 행에 포함된 픽셀을 기초로 현재 블록에 디블록킹 필터 적용할지 여부를 판단할 수 있다. 블록에 디블록킹 필터를 적용하는 경우 필요한 디블록킹 필터링 강도에 따라 강한 필터(Strong Filter) 또는 약한 필터(Weak Filter)를 적용할 수 있다. 또한 디블록킹 필터를 적용함에 있어 수직 필터링 및 수평 필터링 수행시 수평 방향 필터링 및 수직 방향 필터링이 병행 처리되도록 할 수 있다.
샘플 적응적 오프셋은 부호화 에러를 보상하기 위해 픽셀 값에 적정 오프셋(offset) 값을 더할 수 있다. 샘플 적응적 오프셋은 디블록킹을 수행한 영상에 대해 픽셀 단위로 원본 영상과의 오프셋을 보정할 수 있다. 특정 픽처에 대한 오프셋 보정을 수행하기 위해 영상에 포함된 픽셀을 일정한 수의 영역으로 구분한 후 오프셋을 수행할 영역을 결정하고 해당 영역에 오프셋을 적용하는 방법 또는 각 픽셀의 에지 정보를 고려하여 오프셋을 적용하는 방법을 사용할 수 있다.
적응적 루프 필터는 복원 영상 및 원래의 영상을 비교한 값에 기반하여 필터링을 수행할 수 있다. 영상에 포함된 픽셀을 소정의 그룹으로 나눈 후 해당 그룹에 적용될 하나의 필터를 결정하여 그룹마다 차별적으로 필터링을 수행할 수 있다. 적응적 루프 필터를 적용할지 여부에 관련된 정보는 휘도 신호는 부호화 유닛(Coding Unit, CU) 별로 전송될 수 있고, 각각의 블록에 따라 적용될 적응적 루프 필터의 모양 및 필터 계수는 달라질 수 있다. 또한, 적용 대상 블록의 특성에 상관없이 동일한 형태(고정된 형태)의 적응적 루프 필터가 적용될 수도 있다.
필터부(180)를 거친 복원 블록은 참조 픽처 버퍼(190)에 저장될 수 있다.
도 2는 본 발명이 적용되는 복호화 장치의 일 실시예에 따른 구성을 나타내는 블록도이다.
복호화 장치(200)는 비디오 복호화 장치 또는 영상 복호화 장치일 수 있다.
도 2를 참조하면, 복호화 장치(200)는 엔트로피 복호화부(210), 역양자화부(220), 역변환부(230), 인트라 예측부(240), 움직임 보상부(250), 가산기(255), 필터부(260) 및 참조 픽처 버퍼(270)를 포함할 수 있다.
복호화 장치(200)는 부호화 장치(100)에서 출력된 비트스트림을 수신할 수 있다. 복호화 장치(200)는 비트스트림에 대하여 인트라 모드 또는 인터 모드로 복호화를 수행할 수 있다. 또한, 복호화 장치(200)는 복호화를 통해 복원 영상을 생성할 수 있고, 복원 영상을 출력할 수 있다.
복호화에 사용되는 예측 모드가 인트라 모드인 경우 스위치가 인트라로 전환될 수 있다. 복호화에 사용되는 예측 모드가 인터 모드인 경우 스위치가 인터로 전환될 수 있다.
복호화 장치(200)는 입력된 비트스트림으로부터 복원된 잔여 블록(reconstructed residual block)을 획득할 수 있고, 예측 블록을 생성할 수 있다.
복원된 잔여 블록 및 예측 블록이 획득되면, 복호화 장치(200)는 복원된 잔여 블록과 및 예측 블록을 더함으로써 복호화 대상 블록인 복원 블록을 생성할 수 있다. 복호화 대상 블록은 현재 블록으로 칭해질 수 있다.
엔트로피 복호화부(210)는 비트스트림에 대한 확률 분포에 따른 엔트로피 복호화를 수행함으로써 심볼들을 생성할 수 있다. 생성된 심볼들은 양자화된 변환 계수 레벨(transform coefficient level) 형태의 심볼을 포함할 수 있다. 여기에서, 엔트로피 복호화 방법은 상술된 엔트로피 부호화 방법과 유사할 수 있다. 예를 들면, 엔트로피 복호화 방법은 상술된 엔트로피 부호화 방법의 역과정일 수 있다.
엔트로피 복호화부(210)는 변환 계수 레벨을 복호화하기 위해 변환 계수 스캐닝(Transform Coefficient Scanning) 방법을 통해 1차원의 벡터 형태 계수를 2차원의 블록 형태로 변경할 수 있다. 예를 들어, 업라이트(up right) 스캐닝을 이용하여 블록의 계수를 스캔함으로써 2차원 블록 형태로 변경시킬 수 있다. 변환 유닛의 크기 및 화면 내 예측 모드에 따라 업라이트 스캔 대신 수직 스캔, 수평 스캔이 사용될 수도 있다. 즉, 변환 유닛의 크기 및 화면 내 예측 모드에 따라 업 라이트 스캔, 수직 방향 스캔 및 수평 방향 스캔 중 어떠한 스캔 방법이 사용될지 여부를 결정할 수 있다.
양자화된 변환 계수 레벨은 역양자화부(220)에서 역양자화될 수 있고, 역변환부(230)에서 역변환될 수 있다. 양자화된 변환 계수 레벨이 역양자화 및 역변환 된 결과로서, 복원된 잔여 블록이 생성될 수 있다. 이때, 역양자화부(220)는 양자화된 변환 계수 레벨에 양자화 행렬을 적용할 수 있다.
인트라 모드가 사용되는 경우, 인트라 예측부(240)는 복호화 대상 블록 주변의 이미 복호화된 블록의 픽셀 값을 이용하는 공간적 예측을 수행함으로써 예측 블록을 생성할 수 있다.
인터 모드가 사용되는 경우, 움직임 보상부(250)는 움직임 벡터 및 참조 픽처 버퍼(270)에 저장되어 있는 참조 영상을 이용하는 움직임 보상을 수행함으로써 예측 블록을 생성할 수 있다. 상기 움직임 보상부(250)는 움직임 벡터의 값이 정수 값을 가지지 않을 경우에 참조 영상 내의 일부 영역에 대해 보간 필터(Interpolation Filter)를 적용하여 예측 블록을 생성할 수 있다. 움직임 보상을 수행하기 위해 부호화 유닛을 기준으로 해당 부호화 유닛에 포함된 예측 유닛의 움직임 보상 방법이 스킵 모드(Skip Mode), 머지 모드(Merge 모드), AMVP 모드(AMVP Mode), 현재 픽처 참조 모드 중 어떠한 방법인지 여부를 판단할 수 있고, 각 모드에 따라 움직임 보상을 수행할 수 있다. 여기서, 현재 픽처 참조 모드는 복호화 대상 블록이 속한 현재 픽처 내의 기-복원된 영역을 이용한 예측 모드를 의미할 수 있다. 상기 기-복원된 영역은 복호화 대상 블록에 인접하지 않은 영역일 수 있다. 상기 기-복원된 영역을 특정하기 위해 현재 픽처 참조 모드를 위한 소정의 벡터가 이용될 수도 있다. 복호화 대상 블록이 현재 픽처 참조 모드로 부호화된 블록인지 여부를 나타내는 플래그 혹은 인덱스가 시그날링될 수도 있고, 복호화 대상 블록의 참조 영상 색인을 통해 유추될 수도 있다. 현재 픽처 참조 모드로 부호화된 블록인 경우, 현재 픽처는 복호화 대상 블록을 위한 참조 영상 리스트 내에서 고정된 위치(예를 들어, refIdx=0 인 위치 또는 가장 마지막 위치)에 존재할 수 있다. 또는, 참조 영상 리스트 내에 가변적으로 위치할 수도 있으며, 이를 위해 현재 픽처의 위치를 나타내는 별도의 참조 영상 색인이 시그날링될 수도 있다.
복원된 잔여 블록 및 예측 블록은 가산기(255)를 통해 더해질 수 있다. 복원된 잔여 블록 및 예측 블록이 더해짐에 따라 생성된 블록은 필터부(260)를 거칠 수 있다. 필터부(260)는 디블록킹 필터, 샘플 적응적 오프셋 및 적응적 루프 필터 중 적어도 하나 이상을 복원 블록 또는 복원 영상에 적용할 수 있다. 필터부(260)는 복원 영상을 출력할 수 있다. 복원 영상은 참조 픽처 버퍼(270)에 저장되어 인터 예측에 사용될 수 있다.
도 3은 영상을 부호화 및 복호화할 때의 영상의 분할 구조를 개략적으로 나타내는 도면이다. 도 3은 하나의 유닛이 복수의 하위 유닛으로 분할되는 실시예를 개략적으로 나타낸다.
영상을 효율적으로 분할하기 위해, 부호화 및 복호화에 있어서, 부호화 유닛(Coding Unit; CU)이 사용될 수 있다. 여기서 부호화 유닛은 코딩 유닛을 의미할 수 있다. 유닛은 1) 구문 요소(syntax element) 및 2) 영상 샘플들을 포함하는 블록을 합쳐서 지칭하는 용어일 수 있다. 예를 들면, "유닛의 분할"은 "유닛에 해당하는 블록의 분할"을 의미할 수 있다. 블록 분할 정보에는 유닛의 깊이(depth)에 관한 정보가 포함될 수 있다. 깊이 정보는 유닛이 분할되는 회수 및/또는 정도를 나타낼 수 있다.
도 3을 참조하면, 영상(300)은 최대 부호화 유닛(Largest Coding Unit; LCU) 단위로 순차적으로 분할되고, LCU 단위로 분할 구조가 결정된다. 여기서, LCU는 부호화 트리 유닛(Coding Tree Unit; CTU)과 동일한 의미로 사용될 수 있다. 하나의 유닛은 트리 구조(tree structure)를 기초로 깊이 정보(depth)를 가지고 계층적으로 분할될 수 있다. 각각의 분할된 하위 유닛은 깊이 정보를 가질 수 있다. 상기 깊이 정보는 유닛이 분할된 회수 및/또는 정도를 나타내므로, 상기 하위 유닛의 크기에 관한 정보를 포함할 수도 있다.
분할 구조는 LCU(310) 내에서의 부호화 유닛(Coding Unit; CU)의 분포를 의미할 수 있다. CU는 영상을 효율적으로 부호화하기 위한 유닛일 수 있다. 이러한 분포는 하나의 CU를 복수(2, 4, 8, 16 등을 포함하는 2 이상의 양의 정수)의 CU들로 분할할지 여부에 따라 결정할 수 있다. 분할에 의해 생성된 CU의 가로 크기 및 세로 크기는 각각 분할 전의 CU의 가로 크기의 절반 및 세로 크기의 절반이거나, 분할된 개수에 따라 분할 전의 CU의 가로 크기보다 작은 크기 및 세로 크기보다 작은 크기를 가질 수 있다. 분할된 CU는 동일한 방식으로 가로 크기 및 세로 크기가 감소된 복수의 CU로 재귀적으로 분할될 수 있다.
이때, CU의 분할은 기정의된 깊이까지 재귀적으로 이루어질 수 있다. 깊이 정보는 CU의 크기를 나타내는 정보일 수 있다. 깊이 정보는 각 CU마다 저장될 수 있다. 예컨대, LCU의 깊이는 0일 수 있고, 최소 부호화 유닛(Smallest Coding Unit; SCU)의 깊이는 기정의된 최대 깊이일 수 있다. 여기서, LCU는 상술된 것과 같이 최대의 부호화 유닛 크기를 가지는 부호화 유닛일 수 있고, SCU는 최소의 부호화 유닛 크기를 가지는 부호화 유닛일 수 있다.
LCU(310)로부터 분할이 시작되고, 분할에 의해 CU의 가로 크기 및 세로 크기가 줄어들 때마다 CU의 깊이는 1씩 증가한다. 각각의 깊이 별로, 분할되지 않는 CU는 2Nx2N 크기를 가질 수 있다. 분할되는 CU의 경우, 2Nx2N 크기의 CU가 NxN 크기를 가지는 복수의 CU들로 분할될 수 있다. N의 크기는 깊이가 1씩 증가할 때마다 절반으로 감소한다.
도 3을 참조하면, 깊이가 0인 LCU는 64x64 화소들일 수 있다. 0은 최소 깊이일 수 있다. 깊이가 3인 SCU는 8x8 화소들일 수 있다. 3은 최대 깊이일 수 있다. 이때, LCU인 64x64 화소들의 CU는 깊이 0으로 표현될 수 있다. 32x32 화소들의 CU는 깊이 1로 표현될 수 있다. 16x16 화소들의 CU는 깊이 2로 표현될 수 있다. SCU인 8x8 화소들의 CU는 깊이 3으로 표현될 수 있다.
또한, CU가 분할되는지 여부에 대한 정보는 CU의 분할 정보를 통해 표현될 수 있다. 분할 정보는 1비트의 정보일 수 있다. SCU를 제외한 모든 CU는 분할 정보를 포함할 수 있다. 예를 들면, 분할 정보의 값이 0이면, CU가 분할되지 않을 수 있고, 분할 정보의 값이 1이면, CU가 분할될 수 있다.
도 4는 부호화 유닛(CU)이 포함할 수 있는 예측 유닛(PU)의 형태를 도시한 도면이다.
LCU로부터 분할된 CU 중 더 이상 분할되지 않는 CU는 하나 이상의 예측 유닛(Prediction Unit; PU)들로 나뉘어질 수 있다. 이러한 처리 또한, 분할로 칭해질 수 있다.
PU는 예측에 대한 기본 단위일 수 있다. PU는 스킵(skip) 모드, 화면 간 모드 및 화면 내 모드 중 어느 하나로 부호화 및 복호화될 수 있다. PU는 모드에 따라서 다양한 형태로 분할될 수 있다.
도 4에서 도시된 것과 같이, 스킵 모드에서는, CU 내에 분할이 존재하지 않을 수 있다. 스킵 모드에서는 분할 없이 CU와 동일한 크기를 갖는 2Nx2N 모드(410)가 지원될 수 있다.
화면 간 모드에서는, CU 내에서 8가지로 분할된 형태들이 지원될 수 있다. 예를 들면, 화면 간 모드에서는 2Nx2N 모드(410), 2NxN 모드(415), Nx2N 모드(420), NxN 모드(425), 2NxnU 모드(430), 2NxnD 모드(435), nLx2N 모드(440) 및 nRx2N 모드(445)가 지원될 수 있다. 화면 내 모드에서는, 2Nx2N 모드(410) 및 NxN 모드(425)가 지원될 수 있다.
도 5는 부호화 유닛(CU)이 포함할 수 있는 변환 유닛(TU)의 형태를 도시한 도면이다.
변환 유닛(Transform Unit; TU)은 CU 내에서 변환, 양자화, 역변환 및 역양자화의 과정을 위해 사용되는 기본 단위일 수 있다. TU는 정사각형 형태 또는 직사각형 등의 형태를 가질 수 있다. TU는 CU의 크기 및/또는 형태에 의존적으로(dependnent) 결정될 수도 있다.
LCU로부터 분할된 CU 중, 더 이상 CU들로 분할되지 않는 CU는 하나 이상의 TU들로 분할될 수 있다. 이때, TU의 분할 구조는 쿼드트리(quad-tree) 구조일 수 있다. 예컨대, 도 5에서 도시된 것과 같이, 하나의 CU(510)가 쿼드트리 구조에 따라서 한 번 혹은 그 이상 분할될 수 있다. 분할을 통해, 하나의 CU(510)는 다양한 크기의 TU들로 구성될 수 있다. 또는, CU를 분할하는 Vertical line 및/또는 Horizontal line의 개수에 기초하여 하나 이상의 TU로 분할될 수도 있다. CU는 대칭형의 TU로 분할될 수도 있고, 비대칭형의 TU로 분할될 수도 있다. 비대칭형의 TU로의 분할을 위해 TU의 크기/형태에 관한 정보가 시그날링될 수도 있고, CU의 크기/형태에 관한 정보로부터 유도될 수도 있다.
변환 수행 시 잔여 블록을 기-정의된 복수의 변환 방법 중 적어도 하나를 사용하여 변환 시킬 수 있다. 일예로, 기-정의된 복수의 변환 방법으로 DCT(Discrete Cosine Transform), DST(Discrete Sine Transform) 또는 KLT 등이 이용될 수 있다. 잔여 블록을 변환하기 위해 어떤 변환 방법이 적용되는지는 예측 유닛의 화면 간 예측 모드 정보, 화면 내 예측 모드 정보, 변환 블록의 크기/형태 중 적어도 하나 이상을 이용하여 결정될 수도 있고, 일정한 경우 변환 방법을 지시하는 정보가 시그날링될 수도 있다.
도 6은 화면 내 예측 과정의 실시예를 설명하기 위한 도면이다.
화면 내 예측 모드의 개수는 예측 유닛(PU)의 크기에 따라 가변적이거나, 또는 예측 유닛의 크기에 관계없이 N개로 고정될 수 있다. 이때, N개는 35, 67을 포함할 수 있으며, 1 이상의 양의 정수를 가질 수 있다. 일예로 부호화기/복호화기에 기-정의된 화면 내 예측 모드는 도 6에서 도시된 것과 같이 2개의 비방향성 모드들 및 65개의 방향성 모드들을 포함할 수 있다. 2개의 비방향성 모드들은 DC 모드 및 플래너(Planar) 모드를 포함할 수 있다.
화면 내 예측 모드의 개수는 색 성분(color component)의 타입에 따라 상이할 수 있다. 예를 들면, 색 성분이 휘도(luma) 신호인지 아니면 색차(chroma) 신호인지에 따라 화면 내 예측 모드의 개수가 다를 수 있다.
PU는 NxN의 크기 또는 2Nx2N의 크기를 갖는, 정사각형 형태를 가질 수 있다. NxN의 크기는 4x4, 8x8, 16x16, 32x32, 64x64, 128x128 등을 포함할 수 있다. 또한, PU는 MxN의 크기를 가질 수 있으며, 이때 M과 N은 2 이상의 양의 정수를 가질 수 있고, M과 N은 상이할 수 있다. PU의 단위는 CU, PU 및 TU 중 적어도 하나의 크기일 수 있다.
화면 내 부호화 및/또는 복호화는 주변의 복원된 유닛에 포함되는 샘플 값 또는 부호화 파라미터를 이용하여 수행될 수 있다.
화면 내 예측 시 화면 내 예측 모드 및 부호화/복호화 대상 블록의 크기 중 적어도 하나 이상을 이용하여 참조 화소에 참조 샘플 필터를 적용한 후 예측 블록을 생성할 수 있다. 참조 화소에 적용되는 참조 샘플 필터의 종류는 상이할 수 있다. 일예로, 부호화/복호화 대상 블록의 화면 내 예측 모드, 부호화/복호화 대상 블록의 크기/형태 또는 참조 화소의 위치 등에 따라 참조 샘플 필터의 종류는 상이할 수 있다. 참조 샘플 필터의 종류가 상이하다라 함은, 참조 샘플 필터의 필터 계수, 필터 탭(tap)의 수, 필터 강도 또는 필터링의 횟수 중 적어도 하나가 상이한 경우를 의미할 수 있다.
화면 내 예측 방법을 수행하기 위해 현재 예측 유닛의 화면 내 예측 모드는 현재 예측 유닛의 주변에 존재하는 예측 유닛의 화면 내 예측 모드로부터 예측할 수 있다. 주변 화면 내 예측 모드로부터 예측된 모드 정보를 이용하여 현재 예측 유닛의 화면 내 예측 모드를 예측하는 경우, 현재 예측 유닛과 주변 예측 유닛의 화면 내 예측 모드가 동일하면 소정의 플래그 정보를 이용하여 현재 예측 유닛과 주변 예측 유닛의 화면 내 예측 모드가 동일하다는 정보를 전송할 수 있고, 만약 현재 예측 유닛과 주변 예측 유닛의 화면 내 예측 모드가 상이하면 엔트로피 부호화를 수행하여 부호화/복호화 대상 블록의 화면 내 예측 모드 정보를 부호화할 수 있다.
도 7은 화면 간 예측 과정의 실시예를 설명하기 위한 도면이다.
도 7에 도시된 사각형은 영상(또는, 픽처)를 나타낼 수 있다. 또한, 도 7에서 화살표는 예측 방향을 나타낼 수 있다. 즉, 영상은 예측 방향에 따라 부호화 및/또는 복호화될 수 있다. 각 영상은 부호화 타입에 따라 I 픽처(Intra Picture), P 픽처(Uni-predictive Picture), B 픽처(Bi-predictive Picture) 등으로 분류될 수 있다. 각 픽처는 각 픽처의 부호화 타입에 따라 부호화되고 복호화될 수 있다.
부호화의 대상인 영상이 I 픽처인 경우, 영상은 화면 간 예측 없이 영상 자체에 대해 화면 내 부호화될 수 있다. 부호화의 대상인 영상이 P 픽처인 경우, 영상은 순방향으로만 참조 영상을 이용하는 화면 간 예측 혹은 움직임 보상을 통해 부호화될 수 있다. 부호화의 대상인 영상이 B 픽처인 경우, 순방향 및 역방향의 양측으로 참조 픽처들을 이용하는 화면 간 예측 혹은 움직임 보상을 통해 부호화될 수 있으며, 순방향 및 역방향 중 하나의 방향으로 참조 픽처를 이용하는 화면 간 예측 혹은 움직임 보상을 통해 부호화될 수 있다. 여기서, 화면 간 예측 모드가 사용되는 경우, 부호화기에서는 화면 간 예측 혹은 움직임 보상을 수행할 수 있고, 복호화기에서는 그에 대응하는 움직임 보상을 수행할 수 있다. 참조 영상을 이용하여 부호화 및/또는 복호화되는 P 픽처 및 B 픽처의 영상은 화면 간 예측이 사용되는 영상으로 간주될 수 있다.
아래에서, 실시예에 따른 화면 간 예측에 대해 구체적으로 설명된다.
화면 간 예측 혹은 움직임 보상은 참조 픽처 및 움직임 정보를 이용하여 수행될 수 있다. 또한, 화면 간 예측은 상술된 스킵 모드를 이용할 수도 있다.
참조 픽처(reference picture)는 현재 픽처의 이전 픽처 또는 현재 픽처의 이후 픽처 중 적어도 하나일 수 있다. 이때, 화면 간 예측은 참조 픽처에 기반하여 현재 픽처의 블록에 대한 예측을 수행할 수 있다. 여기에서, 참조 픽처는 블록의 예측에 이용되는 영상을 의미할 수 있다. 이때, 참조 픽처 내의 영역은 참조 픽처를 지시하는 참조 영상 색인(reference picture index; refIdx) 및 후술될 움직임 벡터(motion vector) 등을 이용함으로써 특정될 수 있다.
화면 간 예측은 참조 픽처 및 참조 픽처 내에서 현재 블록에 대응하는 참조 블록을 선택할 수 있고, 선택된 참조 블록을 사용하여 현재 블록에 대한 예측 블록을 생성할 수 있다. 현재 블록은 현재 픽처의 블록들 중 현재 부호화 또는 복호화의 대상인 블록일 수 있다.
움직임 정보는 부호화 장치(100) 및 복호화 장치(200)의 각각에 의해 화면 간 예측 과정에서 도출될 수 있다. 또한, 도출된 움직임 정보는 화면 간 예측을 수행하는데 사용될 수 있다. 이때, 부호화 장치(100) 및 복호화 장치(200)는 복원된 주변 블록(reconstructed neighboring block)의 움직임 정보 및/또는 콜 블록(collocated block; col block)의 움직임 정보를 이용함으로써 부호화 및/또는 복호화 효율을 향상시킬 수 있다. 콜 블록은 이미 복원된 콜 픽처(collocated picture; col picture) 내에서 부호화/복호화 대상 블록의 공간적 위치에 대응하는 블록일 수 있다. 복원된 주변 블록은 현재 픽처 내의 블록이면서, 이미 부호화 및/또는 복호화를 통해 복원된 블록일 수 있다. 또한, 복원 블록은 부호화/복호화 대상 블록에 인접한 이웃 블록 및/또는 부호화/복호화 대상 블록의 외부 코너에 위치한 블록일 수 있다. 여기에서, 부호화/복호화 대상 블록의 외부 코너에 위치한 블록이란, 부호화/복호화 대상 블록에 가로로 인접한 이웃 블록에 세로로 인접한 블록 또는 부호화/복호화 대상 블록에 세로로 인접한 이웃 블록에 가로로 인접한 블록일 수 있다.
부호화 장치(100) 및 복호화 장치(200)의 각각은 콜 픽처 내에서 공간적으로 부호화/복호화 대상 블록에 대응하는 위치에 존재하는 블록을 결정할 수 있고, 결정된 블록을 기준으로 기정의된 상대적인 위치를 결정할 수 있다. 기정의된 상대적인 위치는 공간적으로 부호화/복호화 대상 블록에 대응하는 위치에 존재하는 블록의 내부 및/또는 외부의 위치일 수 있다. 또한, 부호화 장치(100) 및 복호화 장치(200)의 각각은 결정된 기정의된 상대적인 위치에 기반하여 콜 블록을 도출할 수 있다. 여기서, 콜 픽처는 참조 픽처 리스트에 포함된 적어도 하나의 참조 픽처 중에서 하나의 픽처일 수 있다.
움직임 정보의 도출 방식은 부호화/복호화 대상 블록의 예측 모드에 따라 변할 수 있다. 예를 들면, 화면 간 예측을 위해 적용되는 예측 모드로서, 향상된 움직임 벡터 예측(Advanced Motion Vector Prediction; AMVP) 및 머지 모드(merge mode) 등이 있을 수 있다. 여기서 머지 모드를 움직임 병합 모드(motion merge mode)라고 지칭할 수 있다.
예를 들면, 예측 모드로서, AMVP가 적용되는 경우, 부호화 장치(100) 및 복호화 장치(200)의 각각은 복원된 주변 블록의 움직임 벡터 및/또는 콜 블록의 움직임 벡터를 이용하여 움직임 벡터 후보 리스트(motion vector candidate list)를 생성할 수 있다. 복원된 주변 블록의 움직임 벡터 및/또는 콜 블록의 움직임 벡터는 움직임 벡터 후보로 사용될 수 있다. 여기서, 콜 블록의 움직임 벡터를 시간적 움직임 벡터 후보(temporal motion vector candidate)라 지칭할 수 있고, 복원된 주변 블록의 움직임 벡터를 공간적 움직임 벡터 후보(spatial motion vector candidate)라 지칭할 수 있다.
부호화 장치(100)에 의해 생성된 비트스트림은 움직임 벡터 후보 색인(motion vector candidate index)를 포함할 수 있다. 즉, 부호화 장치(100)은 움직임 벡터 후보 색인을 엔트로피 부호화하여 비트스트림을 생성할 수 있다. 움직임 벡터 후보 색인은 움직임 벡터 후보 리스트에 포함된 움직임 벡터 후보 중에서 선택된 최적의 움직임 벡터 후보를 지시할 수 있다. 움직임 벡터 후보 색인은 비트스트림을 통해 부호화 장치(100)로부터 복호화 장치(200)로 전송될 수 있다.
복호화 장치(200)는 움직임 벡터 후보 색인을 비트스트림으로부터 엔트로피 복호화하고, 엔트로피 복호화된 움직임 벡터 후보 색인을 이용하여 움직임 벡터 후보 리스트에 포함된 움직임 벡터 후보 중에서 복호화 대상 블록의 움직임 벡터 후보를 선택할 수 있다.
부호화 장치(100)는 부호화 대상 블록의 움직임 벡터 및 움직임 벡터 후보 간의 움직임 벡터 차분(MVD: Motion Vector Difference)을 계산할 수 있고, MVD를 엔트로피 부호화할 수 있다. 비트스트림은 엔트로피 부호화된 MVD를 포함할 수 있다. MVD는 비트스트림을 통해 부호화 장치(100)로부터 복호화 장치(200)로 전송될 수 있다. 이 때, 복호화 장치(200)는 수신된 MVD를 비트스트림으로부터 엔트로피 복호화할 수 있다. 복호화 장치(200)는 복호화된 MVD 및 움직임 벡터 후보의 합을 통해 복호화 대상 블록의 움직임 벡터를 도출할 수 있다.
비트스트림은 참조 픽처를 지시하는 참조 영상 색인 등을 포함할 수 있다. 참조 픽처 색인은 엔트로피 부호화되어 비트스트림을 통해 부호화 장치(100)로부터 복호화 장치(200)로 전송될 수 있다. 복호화 장치(200)는 주변 블록의 움직임 정보들을 이용하여 복호화 대상 블록의 움직임 벡터를 예측할 수 있고, 예측된 움직임 벡터 및 움직임 벡터 차분을 이용하여 복호화 대상 블록의 움직임 벡터를 유도할 수 있다. 복호화 장치(200)는 유도된 움직임 벡터와 참조 영상 색인 정보에 기반하여 복호화 대상 블록에 대한 예측 블록을 생성할 수 있다.
움직임 정보의 도출 방식의 다른 예로, 머지 모드(merge mode)가 있다. 머지 모드란 복수의 블록들에 대한 움직임의 병합을 의미할 수 있다. 머지 모드는 하나의 블록의 움직임 정보를 다른 블록에도 함께 적용시키는 것을 의미할 수 있다. 머지 모드가 적용되는 경우, 부호화 장치(100) 및 복호화 장치(200)의 각각은 복원된 주변 블록의 움직임 정보 및/또는 콜 블록의 움직임 정보를 이용하여 머지 후보 리스트(merge candidate list)를 생성할 수 있다. 움직임 정보는 1) 움직임 벡터, 2) 참조 영상 색인, 및 3) 화면 간 예측 지시자 중 적어도 하나를 포함할 수 있다. 예측 지시자는 단방향 (L0 예측, L1 예측) 또는 쌍방향일 수 있다.
이때, 머지 모드는 CU 단위 또는 PU 단위로 적용될 수 있다. CU 단위 또는 PU 단위로 머지 모드가 수행되는 경우, 부호화 장치(100)는 기정의된 정보를 엔트로피 부호화하여 비트스트림을 생성한 후 복호화 장치(200)로 전송할 수 있다. 비트스트림은 기정의된 정보를 포함할 수 있다. 기정의된 정보는, 1) 블록 파티션(partition)별로 머지 모드를 수행할지 여부를 나타내는 정보인 머지 플래그(merge flag), 2) 부호화 대상 블록에 인접한 주변 블록들 중 어떤 블록과 머지를 할 것인가에 대한 정보인 머지 인덱스(merge index)를 포함할 수 있다. 예를 들면, 부호화 대상 블록의 주변 블록들은 부호화 대상 블록의 좌측 인접 블록, 부호화 대상 블록의 상단 인접 블록 및 부호화 대상 블록의 시간적(temporal) 인접 블록 등을 포함할 수 있다.
머지 후보 리스트는 움직임 정보들이 저장된 리스트를 나타낼 수 있다. 또한, 머지 후보 리스트는 머지 모드가 수행되기 전에 생성될 수 있다. 머지 후보 리스트에 저장되는 움직임 정보는, 부호화/복호화 대상 블록에 인접한 주변 블록의 움직임 정보 및 참조 영상에서 부호화/복호화 대상 블록에 대응되는(collocated) 블록의 움직임 정보, 이미 머지 후보 리스트에 존재하는 움직임 정보들의 조합에 의해 생성된 새로운 움직임 정보 및 제로 머지 후보 중 적어도 하나 이상일 수 있다. 여기서, 부호화/복호화 대상 블록에 인접한 주변 블록의 움직임 정보는 공간적 머지 후보(spatial merge candidate) 및 참조 영상에서 부호화/복호화 대상 블록에 대응되는(collocated) 블록의 움직임 정보는 시간적 머지 후보(temporal merge candidate)라 지칭할 수 있다.
스킵 모드는 주변 블록의 움직임 정보를 그대로 부호화/복호화 대상 블록에 적용하는 모드일 수 있다. 스킵 모드는 화면 간 예측에 이용되는 모드 중 하나일 수 있다. 스킵 모드가 사용되는 경우, 부호화 장치(100)는 어떤 블록의 움직임 정보를 부호화 대상 블록의 움직임 정보로서 이용할 것인지에 대한 정보를 엔트로피 부호화하여 비트스트림을 통해 복호화 장치(200)에 전송할 수 있다. 부호화 장치(100)는 다른 정보는 복호화 장치(200)에 전송하지 않을 수 있다. 예를 들면, 다른 정보는 구문 요소(syntax element) 정보일 수 있다. 구문 요소 정보는 움직임 벡터 차분 정보, 부호화 블록 플래그 및 변환 계수 레벨 중 적어도 하나 이상을 포함할 수 있다.
도 8 내지 도 18은 영상을 기하 변환하여 기하 변환 영상을 생성하는 방법을 설명하기 위한 도면이다.
영상의 기하 변환은 영상이 담고 있는 빛 정보(light information)의 위치를 기하적으로 변형시키는 것을 의미한다. 빛 정보라 함은 영상의 각 지점이 가지고 있는 밝기(luminance), 색상(color) 또는 채도(chrominance) 등을 의미할 수 있다. 빛 정보는 디지털 영상에서는 화소 값(sample value)을 의미할 수 있다. 기하적 변형은 빛 정보를 갖는 영상 내의 각 지점의 평행 이동, 회전, 크기의 변화 등을 의미할 수 있다.
도 8 내지 도 12의 각각은 본 발명에 따른 영상의 기하적인 변환의 예를 설명하기 위한 도면이다. 각 도에서 (x, y)는 변환 전 원본 영상의 한 지점을 의미한다. (x', y’)는 변환 후 영상의 한 지점으로서, (x, y)에 대응되는 지점을 의미한다. 대응되는 지점이란 (x, y)의 빛 정보가 변환을 통해 이동된 지점을 의미한다.
도 8은 본 발명에 따른 영상의 기하학적 변환의 일 예로서, 이동 변환을 설명하기 위한 도면이다.
도 8에서, tx는 영상 내의 각 지점이 x축으로 이동한 변위를 의미하며, ty는 영상 내의 각 지점이 y축으로 이동한 변위를 의미한다. 따라서 tx와 ty를 변환 전 영상 내의 지점 (x, y)에 더하는 것으로 변환 후 영상 내의 지점 (x’, y’)를 유도할 수 있다. 이동 변환은 도 8의 행렬식과 같이 나타낼 수 있다.
도 9는 본 발명에 따른 영상의 기하학적 변환의 일 예로서, 크기 변환을 설명하기 위한 도면이다.
도 9에서, sx는 x축 방향의 크기 변환 배수, sy는 y축 방향의 크기 변환 배수를 의미한다. 크기 변환 배수는 변환 전 영상과 변환 후 영상의 크기 비율을 의미할 수 있다. 크기 변환 배수가 1 이면, 변환 전 영상과 변환 후 영상의 크기가 같음을 의미한다. 크기 변환 배수가 1 보다 크면, 변환에 의해 크기가 확대됨을 의미한다. 크기 변환 배수가 1 보다 작으면, 변환에 의해 크기가 축소됨을 의미한다. 크기 변환 배수는 항상 0보다 큰 값을 지닌다. 따라서 sx와 sy를 변환 전 영상 내의 지점 (x, y)에 곱하는 것으로 크기가 변환된 변환 후 영상 내의 지점 (x’, y’)을 유도할 수 있다. 크기 변환은 도 9의 행렬식과 같이 나타낼 수 있다.
도 10은 본 발명에 따른 영상의 기하학적 변환의 일 예로서, 회전 변환을 설명하기 위한 도면이다.
도 10에서, θ는 영상의 회전 각도를 의미한다. 도 10의 예시는 변환 전 영상의 (0, 0) 지점을 회전의 중심으로 하고 있다. θ와 삼각 함수를 이용하여 회전 변환된 변환 후 영상 내의 지점 (x’, y’)을 유도할 수 있다. 회전 변환은 도 10의 행렬식과 같이 나타낼 수 있다.
도 11은 본 발명에 따른 영상의 기하학적 변환의 일 예로서, 어파인(Affine) 변환을 설명하기 위한 도면이다.
어파인 변환은 이동 변환, 크기 변환, 회전 변환이 복합적으로 발생하는 경우를 의미한다. 이동 변환, 크기 변환 및/또는 회전 변환의 각각이 적용되는 순서에 따라 어파인 변환으로 인한 기하적 변환 형태가 달라질 수 있다. 어파인 변환을 구성하는 복수의 변환 사이의 적용 순서 및 각 변환의 복합에 따라 이동 변환, 크기 변환, 회전 변환뿐 아니라 영상이 기울어지는 형태의 변환도 이루어질 수 있다.
도 11에서, Mi은 이동 변환, 크기 변환 또는 회전 변환을 위한 3x3 행렬일 수 있다. 어파인 변환을 구성하는 복수의 변환의 적용 순서에 따라, 각 변환을 위한 행렬을 행렬 곱하여 하나의 3x3 행렬의 형태로 나타낼 수 있다. 도 11의 행렬 A는 행렬 M1 내지 행렬 Mn을 행렬 곱하여 얻어진 3x3 행렬에 대응될 수 있다. 행렬 A는 a1 내지 a6의 원소들로 구성될 수 있다. 행렬 p는 변환 전 영상 내의 한 지점을 행렬로 나타낸 것이다. 행렬 p’는 변환 후 영상 내의 한 지점이며, 변환 전 영상 내의 지점 p에 대응한다. 따라서, 어파인 변환은 p'=Ap의 행렬식으로 나타낼 수 있다.
도 12는 본 발명에 따른 영상의 기하학적 변환의 일 예로서, 투영(projective) 변환을 설명하기 위한 도면이다.
투영 변환은 어파인 변환에 원근에 의한 변환을 추가적으로 적용할 수 있는 확장된 어파인 변환일 수 있다. 3차원 공간상의 물체를 2차원 평면상에 투영할 때, 카메라 혹은 관측자의 시야각에 따라 원근 변형이 이루어질 수 있다. 멀리있는 물체는 작게, 가까이 있는 물체는 크게 나타나는 것 등이 원근 변형에 해당할 수 있다.
도 12에서, 투영 변환을 위해 행렬 H가 사용될 수 있다. 행렬 H를 구성하는 요소 h1 내지 h6의 값은 도 11의 어파인 변환을 위한 행렬 A를 구성하는 요소 a1 내지 a6에 대응될 수 있다. 그럼으로써, 투영 변환은 어파인 변환을 포함할 수 있다. 행렬 H를 구성하는 요소 h7과 h8은 원근에 의한 변환과 관련된 요소일 수 있다.
영상의 기하 변환은 영상을 특정한 형태로 변환시킬 때 사용되는 방법이다. 행렬식으로 표현된 영상의 기하 변환을 통해 변환 전 영상 내의 한 지점에 대응하는 변환 후 영상 내의 지점을 산출할 수 있다. 반대로 호모그래피(homography)는 서로 대응되는 지점들을 가지는 두 영상으로부터 상호간의 기하 변환 행렬을 역으로 도출해내는 방법을 말한다.
도 13은 본 발명에 따라, 호모그래피를 구현하는 방법의 일 예를 설명하기 위한 도면이다.
호모그래피는 두 영상에서 서로 대응되는 두 지점의 식별에 기초하여 두 영상 상호간의 기하 변환 관계를 도출할 수 있다. 이를 위해 특징점 매칭이 사용될 수 있다. 영상의 특징점은 영상 내에서 묘사할 수 있는 특성을 가진 지점을 의미한다.
단계 S1301, S1302에서는 원본 영상과 기하 변환 영상으로부터 각각 특징점을 추출할 수 있다. 영상의 특징점은 특징점 추출의 방법이나 사용 목적에 따라 서로 다르게 추출될 수 있다. 영상내 밝기 값이 급격히 변화하는 지점, 특정 형태를 가지는 영역의 중심 지점, 영상내 물체의 모서리 지점 등을 영상의 특징점으로서 사용할 수 있다. 영상의 특징점을 추출하는 알고리즘으로는 SIFT, SURF, Blob Detection 등이 사용될 수 있다.
단계 S1303에서는 원본 영상과 기하 변환 영상으로부터 추출된 특징점에 기초하여 특징점 매칭을 수행할 수 있다. 구체적으로, 추출된 각각의 특징점은 묘사될 수 있으며, 이러한 묘사 정보가 유사한 지점을 찾음으로써 두 영상 간 특징점을 매칭시킬 수 있다. 매칭된 특징점들은 원본 영상과 기하 변환 영상 간의 대응 지점으로 사용될 수 있다.
그러나 특징점 매칭은 실제로 대응되는 지점을 매칭시키지 않을 수도 있다. 따라서 단계 S1304에서는 도출된 여러 특징점 매칭들 중 유효 특징점 만을 선택할 수 있다. 유효 특징점을 선택하는 방법은 특징점 산출 알고리즘에 따라 달라질 수 있다. 예컨대, 특징점 추출에 의한 묘사 정보를 기준으로 기준치를 만족하지 못하는 특징점을 배제하는 방법, 매칭된 결과들의 분포를 통해 일치성이 떨어지는 매칭 결과를 배제하는 방법, RANSAC 알고리즘을 사용하는 방법 등이 사용될 수 있다. 단계 S1304는 단계 S1303에서의 특징점 매칭 결과에 따라 선택적으로 수행될 수 있다. 즉, 경우에 따라서는 단계 S1304는 수행되지 않을 수 있다. 또는 단계 S1303과 S1304는 병합하여 수행될 수도 있다. 또는 단계 S1303, S1304 대신에 유효 특징점에 대한 매칭이 수행될 수도 있다.
단계 S1305에서는 선택된 유효 특징점들을 사용하여 두 영상(원본 영상과 기하 변환 영상) 내의 두 지점간의 관계식을 산출할 수 있다. 산출된 관계식을 이용하여 단계 S1306에서 기하 변환 행렬을 산출할 수 있다. 또는 단계 S1306은 수행되지 않고, 단계 S1305에서 산출된 관계식에 관한 정보가 기하 변환 행렬 이외의 다른 형태로 출력될 수도 있다.
도 14는 본 발명에 따른, 두 영상 내의 대응되는 두 지점간의 관계식을 산출하는 방법의 일 예이다.
영상의 기하 변환은 3x3 행렬 H에 의해 수행될 수 있다. 따라서, 행렬 H의 요소 h1 내지 h9를 미지수로 포함하는 연립 방정식이 행렬식 p'= Hp로부터 도출될 수 있다. 여기서 p는 원본 영상 내의 한 지점을 의미하고, p에 대응되는 p’은 기하 변환 영상 내의 한 지점을 의미한다. 행렬 H의 모든 요소를 h9로 나누어 h9를 1로 고정함으로써 식의 계산을 더욱 간단히 할 수 있다. 또한 미지수의 수를 9개에서 8개로 줄일 수 있다.
도 14의 k1 내지 k8은 h1 내지 h8을 h9로 나눈 값에 해당한다. h9를 1로, h1 내지 h8을 각각 k1 내지 k8로 변경한 기하 변환 행렬 역시 동일한 기하 변환을 수행할 수 있다. 따라서, 8개의 미지수를 산출하는 과정이 필요할 수 있다. 도 14에서 하나의 대응 지점 쌍에 대해 최종적으로 정리된 식은 x’와 y’에 대한 두 가지 형태로 나타날 수 있다. 8개의 미지수를 산출해야 하기 때문에, 최소한 4개의 대응 지점 쌍이 필요할 수 있다. 그러나 대응 지점의 매칭은 앞서 언급한 것과 같이 일치하지 않는 경우를 포함할 수 있다. 또한, 대응 지점의 매칭은 다소간의 오차를 갖는 경우도 존재할 수 있다. 유효 특징점들 만을 선택했다고 하여도 이러한 오류는 남아있을 수 있다. 많은 대응 지점을 사용하여 기하 변환 행렬을 산출할 경우 이러한 오류의 영향을 줄일 수 있다. 따라서, 사용할 대응 지점의 수는 이를 고려하여 결정할 수 있다.
도 15는 본 발명에 따라 기하 변환 행렬과 원본 영상에 기초하여 기하 변환 영상을 생성하는 방법을 설명하기 위한 도면이다.
기하 변환 영상의 생성은 도 15에서와 같이 원본 영상 내의 한 지점의 빛 정보를 이용하여 기하 변환 영상 내의 대응 지점의 빛 정보를 생성하는 것에 대응될 수 있다. 도 15의 (x0, y0), (x1, y1), (x2, y2)는 각각 원본 영상 내의 서로 다른 지점을 의미한다. 또한, (x’0, y’0), (x’1, y’1), (x’2, y’2)는 (x0, y0), (x1, y1), (x2, y2)에 각각 대응하는 기하 변환 영상 내의 지점을 의미한다. f 함수는 원본 영상 내의 한 지점 (x, y)와 기하 변환을 위해 필요한 추가 정보 α를 이용하여 기하 변환 영상 내의 대응되는 지점의 x축 좌표 x’를 산출하는 함수이다. g 함수는 원본 영상 내의 한 지점 (x, y)와 기하 변환을 위해 필요한 추가 정보 β를 이용하여 기하 변환 영상 내의 대응되는 지점의 y축 좌표 y’를 산출하는 함수이다. (x, y) 와 (x’, y’), f 함수와 g 함수의 관계를 행렬식으로 표현할 때 행렬 H가 기하 변환 방법을 의미할 수 있다. 따라서 행렬 H를 통해 원본 영상과 기하 변환 영상의 상호 대응되는 지점을 찾을 수 있다.
도 15를 참조하여 설명된 기하 변환 방법은 샘플링(Sampling) 되어있는 이산적(discrete) 영상 신호에서는 문제가 될 수 있다. 이산적 영상 신호는 정수 좌표의 위치만이 빛 정보를 가지고 있다. 따라서, 원본 영상 내의 한 지점에 대응되는 기하 변환 영상 내의 지점의 좌표가 정수가 아닌 실수 영역인 경우 가장 인접한 정수 좌표 위치에 빛 정보를 할당하게 된다. 그럼으로써 기하 변환 영상 내의 일부 정수 좌표 위치에는 빛 정보가 중복으로 할당되거나, 또는 빛 정보가 할당되지 않을 수 있다. 이러한 경우는 역사상(inverse mapping)을 이용할 수 있다.
도 16은 본 발명에 따른, 역사상을 이용하여 기하 변환 영상을 생성하는 방법을 설명하기 위한 도면이다.
도 16의 점선으로 된 사각형 영역은 실제 우리가 관측하고 싶은 기하 변환 영상의 영역을 의미한다. 점선으로 된 사각형 영역 내의 각 지점에서 역으로 대응되는 원본 영상 내의 지점을 찾아갈 수 있다. 따라서, 기하 변환 영상 내의 모든 지점에 대하여 원본 영상의 빛 정보를 할당할 수 있게 된다. 하지만 도 16의 (x’3, y’3)과 같이 대응되는 지점 (x3, y3)이 원본 영상의 밖에 존재할 수 있다. 이러한 지점은 대응되는 원본 영상의 빛 정보가 없을 수 있다. 원본 영상의 빛 정보가 없는 지점에 대해서는 주변의 빛 정보를 할당할 수 있다. 즉, 가장 인접한 원본 영상 내의 빛 정보, 예컨대, 지점 (x4, y4)의 빛 정보가 할당될 수 있다.
도 17은 본 발명에 따른, 기하 변환 행렬과 원본 영상이 기초하여 기하 변환 영상을 생성하는 방법을 설명하기 위한 도면이다. 기하 변환 행렬은 기하 변환 정보에 대응될 수 있다.
단계 S1701은 원본 영상, 기하 변환 행렬 및/또는 기하 변환 영상의 현재 지점에 관한 정보를 입력받을 수 있다. 원본 영상과 기하 변환 행렬을 사용하여, 기하 변환 영상의 현재 지점에 대응하는 원본 영상의 대응 지점을 산출할 수 있다. 산출된 원본 영상의 대응 지점은 실수 좌표를 갖는 실수 대응 지점일 수 있다.
단계 S1702에서는, 산출된 대응 지점이 원본 영상의 내부인지에 대한 판단이 수행될 수 있다.
단계 S1702의 판단 결과가 "아니오"인 경우, 단계 S1703에서 산출된 대응 지점에 가장 가까운 원본 영상 내의 지점을 대응 지점으로 변경할 수 있다.
단계 S1702의 판단 결과가 "예"인 경우, 단계 S1704가 수행될 수 있다. 단계 S1703에서, 대응 지점이 변경된 경우에도 단계 S1704가 수행될 수 있다.
단계 S1704에서는, 대응 지점이 실수 좌표인 경우, 가장 인접한 정수 지점을 확인할 수 있다. 대응 지점이 정수 좌표인 경우 단계 S1704, S1705는 생략되고 단계 S1706으로 이동할 수 있다.
단계 S1705에서는, 확인된 정수 지점의 빛 정보(예컨대, 화소 값 등)를 보간하여 실수 대응 지점의 빛 정보를 생성할 수 있다. 보간 방법에는 양선형 보간법, 란조쉬(Lanczos) 보간법, S-Spline보간법, 바이큐빅(Bicubic) 보간법 등이 사용될 수 있다.
단계 S1706에서는, 기하 변환 영상 내의 모든 지점에 대하여 기하 변환이 완료되었는지 확인하고, 최종적으로 생성된 기하 변환 영상을 출력할 수 있다.
단계 S1706에서, 기하 변환이 완료되지 않은 것으로 판단되면, 단계 S1707에서 기하 변환 영상의 현재 지점을 다음 지점으로 변경하고, 전술한 단계 S1701 내지 S1706의 단계를 반복할 수 있다.
도 18은, 본 발명의 일 실시예에 따라, 도 17을 참조하여 설명된 다양한 보간법 중, 양선형 보간법을 설명하기 위한 도면이다.
도 18에서, 실수 좌표 (x, y)는 도 17의 단계 S1704에서 언급된 실수 대응 지점에 대응할 수 있다. 실수 좌표 (x, y)의 주변의 네 좌표 (i,j), (i,j+1), (i+1,j), (i+1,j+1)는 도 17의 단계 S1704에서 언급된 인접 정수 지점에 대응될 수 있다. I(x,y)는 (x,y) 지점의 빛 정보(예컨대, 밝기 등)를 의미할 수 있다. a는 i와 x사이의 x축 거리를, b는 j와 y사이의 y축 거리를 각각 의미한다. 1-a는 i+1과 x사이의 x축 거리를, 1-b는 j+1과 y사이의 거리를 각각 의미한다. x축으로는 a와 1-a의 비를 이용하고 y축으로는 b와 1-b의 비를 이용하여 주변 네 좌표 (i, j), (i, j+1), (i+1, j), (i+1, j+1)의 빛 정보로부터 (x, y) 지점의 빛 정보를 산출할 수 있다.
비디오 부호화기의 화면 간 예측기는 움직임 예측을 수행할 때, 참조 픽처를 참조하여 부호화 대상 픽처 내의 부호화 대상 영역을 예측할 수 있다. 이 때, 참조 픽처와 부호화 픽처 사이의 간격이 멀거나 화면의 회전(Rotation), 확대(Zoom-in), 축소(Zoom-out), 또는 물체의 원근 변경과 같은 전역(global) 움직임이 발생하는 경우, 두 픽처의 화소 간 유사성이 떨어진다. 따라서, 예측 정확도가 낮아지고, 압축 효율은 크게 저하될 수 있다. 이 경우, 비디오 부호화기는 부호화 픽처와 참조 픽처 간의 움직임 변화를 계산하여, 부호화 대상 픽처와 비슷한 형태를 가지도록 참조 픽처를 기하 변환할 수 있다. 참조 픽처의 기하 변환은 프레임, 슬라이스 및/또는 블록 단위로 수행될 수 있다. 참조 픽처를 기하 변환하여 생성되는 픽처는 기하 변환 픽처로 정의될 수 있다. 참조 픽처 대신 기하 변환 픽처를 참조함으로써, 움직임 예측의 정확도를 높일 수 있다.
본 명세서에 있어서, 참조 픽처 및/또는 기하 변환 픽처는 비디오의 한 프레임을 구성하는 프레임 또는 픽처의 크기로 제한되지 않는다. 본 명세서에서는 파라미터 세트에 정의된 픽처(프레임) 사이즈를 갖는 참조 픽처의 일부 영역도 참조 픽처로 지칭될 수 있다. 참조 픽처 또는 참조 픽처의 일부 영역을 변환하여 생성되는 기하 변환 픽처는 변환 전의 이미지의 사이즈에 대응되는 사이즈를 가질 수 있다. 즉, 기하 변환 전의 이미지가 픽처(프레임) 사이즈를 갖는 참조 픽처라면, 기하 변환 픽처도 픽처(프레임) 사이즈에 대응되는 사이즈를 가질 수 있다. 변환 전의 이미지가 픽처(프레임) 사이즈를 갖는 참조 픽처의 일부 영역이라면, 기하 변환 픽처도 그 일부 영역에 대응되는 사이즈를 가질 수 있다.
비디오 복호화기는 비디오 부호화기에서 기하 변환 픽처를 참조하여 부호화를 수행한 경우 기하 변환에 필요한 정보를 수신할 수 있다. 기하 변환에 필요한 정보는 기하 변환 정보로 정의될 수 있다. 비디오 복호화기는 수신한 기하 변환 정보에 기초하여 참조 픽처로부터 기하 변환 픽처를 생성할 수 있다. 비디오 복호화기는 생성된 기하 변환 픽처를 참조하여 화면 간 예측을 수행할 수 있다.
도 19는 본 발명에 따른, 비디오 부호화기에서 기하 변환 정보와 기하 변환 픽처를 생성하고, 참조 픽처와 기하 변환 픽처를 이용하여 움직임 예측을 수행하는 방법을 설명하기 위한 도면이다.
참조 픽처로부터 기하 변환 정보를 생성하고, 이를 이용하여 참조 픽처로부터 기하 변환 픽처를 생성하는 동작은 비디오 부호화기의 기하 변환 픽처 생성부에서 수행될 수 있다. 생성된 기하 변환 픽처는 기하 변환 픽처 예측부에서 참조 신호로 사용될 수 있도록 부호화기에 저장될 수 있다. 기하 변환 픽처는 부호화기의 복원 픽처 버퍼(DPB), 참조 픽처 리스트 및 기하 변환 픽처 버퍼 중 적어도 하나에 저장될 수 있다. 생성된 기하 변환 픽처 및/또는 참조 픽처를 이용한 화면 간 예측은 비디오 부호화기의 기하 변환 픽처 예측부에서 수행될 수 있다. 기하 변환 픽처 생성부, 기하 변환 픽처 버퍼 및/또는 기하 변환 픽처 예측부를 포함하는 부호화기의 구성에 대해서는 후술한다.
도 19에 도시된 바와 같이, 부호화 대상 픽처와 참조 픽처에 기초하여 기하 변환 정보를 생성할 수 있다. 참조 픽처는 이미 복호화된 복원 픽처들로 구성된 참조 픽처 리스트에 포함된 하나 이상의 참조 픽처들로부터 선택될 수 있다. 참조 픽처는 전역 움직임을 갖는 참조 픽처일 수 있다. 기하 변환 정보는 부호화 대상 픽처와 전역 움직임을 갖는 참조 픽처 간의 전역 움직임 정보를 반영하여 생성될 수 있다. 기하 변환 정보는 프레임, 슬라이스 또는 블록 등, 전체 영상 또는 부분 영역 단위로 생성되거나 구성될 수 있다. 기하 변환 정보의 생성 시, 전역 움직임 정보는 일부 또는 전부가 반영될 수 있다. 전역 움직임은 이동, 확대, 축소 또는 회전 등 전술한 영상의 기하학적 변환에 관한 움직임일 수 있다. 참조 픽처와 생성된 기하 변환 정보에 기초하여 기하 변환 픽처가 생성될 수 있다. 기하 변환 픽처는 전역 움직임이 반영된 기하 변환 픽처일 수 있다.
부호화 대상 픽처와 참조 픽처 간의 화소의 이동, 확대, 축소 또는 회전에 관한 기하 변환 정보를 구성하는 방법으로서, 도 13을 참조하여 설명된 호모그래피가 사용될 수 있다. 호모그래피는 평면 물체의 2-D(2-dimension) 기하 변환 관계를 설명하기 위해, 두 영상 간의 회전(Rotation), 크기 변화(Scaling), 이동(Transfer) 등을 반영한 기하 변환 정보를 제공할 수 있다.
기하 변환 정보를 통해 영상을 회전, 확대, 축소 또는 이전시켜, 도 19의 참조 픽처 내의 영상을 도 19의 기하 변환 픽처 내의 영상으로 기하 변환할 수 있다. 도 19의 참조 픽처와 기하 변환 픽처는 기하 변환에 의해 서로 다른 모양의 사각형 형태를 가질 수 있다. 도 19의 참조 픽처 내의 임의의 좌표 (a,b)는 도 14와 같이 산출된 관계식을 거쳐 (a’, b’)가 되고, 이는 도 19의 기하 변환 픽처 내의 좌표 (a’, b’)에 대응될 수 있다.
따라서 비디오 부호화기는 부호화 대상 픽처와 참조 픽처 간의 기하 변환 정보를 계산함으로써, 참조 픽처로부터 부호화 픽처와 유사한 영상을 생성할 수 있다. 구체적으로, 도 19의 기하 변환 픽처 내의 A 영역은 도 19의 부호화 대상 픽처 내의 B 영역과 시각적인 유사도가 매우 높다. 즉, A 영역과 B 영역 간의 화소 값의 유사도가 높기 때문에, 비디오 부호화기에서 움직임 예측 시 기하 변환 픽처를 참조함으로써 예측 정확도를 높일 수 있다.
전술한 바와 같이, 비디오 부호화기에 화면 간 예측을 수행할 때, 미리 복호화된 영상으로 구성된 참조 픽처가 참조될 수 있다. 그러나, 참조 픽처는 부호화 대상 픽처와 동일 시간 상의 영상이 아니기 때문에, 참조 픽처와 부호화 대상 픽처 간의 시간 차(time interval) 동안 화소 값에 변화가 발생할 가능성이 높다. 따라서, 참조 픽처와 부호화 픽처 간의 화소 값의 변화를 반영한 기하 변환 정보에 기초하여 생성된 기하 변환 픽처도 함께 참조하는 것이 바람직하다. 화소 값의 변화는 예컨대, 전역 움직임에 의해 발생한 것을 포함할 수 있다. 움직임 예측 시에는 참조 픽처와 기하 변환 픽처를 모두 참조함으로써 최적의 예측 신호를 생성할 수 있다.
구체적으로, 기하 변환 픽처는 부호화 대상 픽처와 참조 픽처 간의 화소 값의 변화를 반영한 영상이므로, 부호화 대상 픽처와 기하 변환 픽처는 화소 분포의 유사도가 높다. 그러나, 영상 내에 새로운 물체가 등장하는 등, 이전 영상에는 없던 새로운 화소가 발생하거나 기하 변환 정보의 오차가 큰 경우 등이 원인이 되어 기하 변환 픽처에 잡음이나 오류가 발생할 가능성이 있다. 이러한 경우에는 기하 변환 픽처를 참조하는 움직임 예측의 정확도가 저하될 수 있다. 따라서 움직임 예측 시, 참조 픽처와 기하 변환 픽처를 모두 참조하여 움직임 예측을 수행한 후, 움직임 예측의 정확도가 높은 정보를 최적의 예측 정보로 갱신한다. 그럼으로써, 기하 변환 픽처의 잡음이나 오류 등으로 인한 부호화 효율의 저하를 방지할 수 있다. 부호화기는 최적의 부호화 효율을 갖는 움직임 예측에 관한 정보를 비트스트림으로 부호화할 수 있다. 이 경우 기하 변환 픽처를 참조하지 않는 영역에 대해서는 기하 변환 정보를 부호화하지 않을 수 있다. 즉, 필요한 기하 변환 정보만을 부호화함으로써, 부호화 효율을 향상 시킬 수 있다.
도 20은 본 발명이 적용되는 부호화기의 다른 실시예에 따른 구성을 나타내는 블록도이다.
도 20에 도시된 부호화기는 기하 변환 픽처 생성부(2010), 기하 변환 픽처 예측부(2015), 확장된 화면 내 예측부(2020), 감산기(2025), 변환부(2030), 양자화부(2040), 엔트로피 부호화부(2050), 역양자화부(2060), 역변환부(2070), 가산기(2075), 디블록킹 필터부(2080) 및 샘플 적응적 오프셋부(2090)를 포함하여 구성될 수 있다.
기하 변환 픽처 생성부(2010)는 복원 픽처 버퍼(2013)로부터 구성된 참조 픽처 리스트의 참조 픽처와 부호화 대상 픽처(2011) 간의 화소 값의 변화를 반영한 정보인 기하 변환 정보를 계산하여 기하 변환 픽처(2012)를 생성할 수 있다. 생성된 기하 변환 픽처(2012)는 기하 변환 픽처 버퍼(2016)에 저장될 수 있다.
기하 변환 픽처 예측부(2015)는 기하 변환 픽처 버퍼(2016)와 화면 간 예측부(2017)를 포함할 수 있다. 기하 변환 픽처 버퍼(2016)는 기하 변환 픽처 생성부(2010)에서 생성된 기하 변환 픽처를 저장할 수 있다. 화면 간 예측부(2017)는 기하 변환 픽처 버퍼에 저장된 기하 변환 픽처와 복원 픽처 버퍼(2013)로부터 구성된 참조 픽처 리스트의 참조 픽처를 모두 참조 신호로 활용하여 움직임 예측을 수행할 수 있다. 움직임 예측 시 기하 변환 픽처가 참조되면, 기하 변환 픽처 생성에 사용된 기하 변환 정보는 엔트로피 부호화부(2050)로 전달되어 부호화될 수 있다.
기하 변환 픽처 생성부(2010)는 후술하는 기하 변환 정보의 재구성을 수행할 수 있다. 기하 변환 정보의 재구성은 기하 변환 픽처 생성 시 수행될 수 있다.
확장된 화면 내 예측부(2020)는 현재 픽처의 기 부호화/복호화된 신호 뿐만 아니라 기하 변환 픽처도 참조하여 확장된 화면 내 예측을 수행할 수 있다. 확장된 화면 내 예측에 대해서는 후술한다.
도 21은 도 20에 도시된 부호화기의 일 실시예에 따른 기하 변환 픽처 생성부(2010)의 동작 및 구조를 설명하기 위한 도면이다.
기하 변환 픽처 생성부(2010)는 기하 변환 픽처 예측부(2015)에서 참조 신호로 활용될 수 있는 기하 변환 픽처(2108)를 생성할 수 있다. 기하 변환 정보 구성부(2105)는 복원 픽처 버퍼(2101)로부터 구성된 참조 픽처 리스트(2102)의 참조 픽처(2103) 및 부호화 대상 픽처(2104)를 입력 받아 기하 변환 정보(2106)를 구성할 수 있다. 픽처 기하 변환 계산부(2107)는 기하 변환 정보(2106)를 바탕으로 참조 픽처(2103)를 변환하여 기하 변환 픽처(2108)를 생성할 수 있다.
기하 변환 정보 구성부(2105)는 참조 픽처(2103)와 부호화 대상 픽처(2104) 간의 화소 값의 변화, 특히, 전역 움직임 정보를 계산할 수 있다. 기하 변환 정보 구성부(2105)는 입력 받은 두 픽처 사이에 매칭이 가능한 특징점들을 찾아서 매칭점 간의 이동, 회전 및/또는 크기 변화를 계산하여 전역 움직임 정보를 계산할 수 있다. 기하 변환 정보 구성부(2105)는 계산된 전역 움직임 정보를 바탕으로 참조 픽처(2103)로부터 기하 변환 픽처(2108)를 생성할 수 있는 기하 변환 정보(2106)를 구성하여 출력할 수 있다.
픽처 기하 변환 계산부(2107)는 참조 픽처(2103)로부터 기하 변환 픽처(2108)를 생성하기 위해 참조 픽처(2103)와 기하 변환 정보(2106)를 입력 받을 수 있다. 픽처 기하 변환 계산부(2107)는 기하 변환 정보(2106)을 이용하여 참조 픽처(2103)로부터 기하 변환 픽처(2108)를 생성할 수 있다. 생성된 기하 변환 픽처(2108)는 기하 변환 픽처 버퍼(2016)에 저장된 후, 화면 간 예측부(2017)에서 화면 간 예측시 참조될 수 있다.
도 22는 도 20에 도시된 부호화기의 일 실시예에 따른 기하 변환 픽처 예측부(2015)의 동작 및 구조를 설명하기 위한 도면이다.
참조 픽처 리스트(2201)의 참조 픽처(2202)와 기하 변환 픽처 버퍼(2203)의 기하 변환 픽처(2204)는 화면 간 예측부(2205)에 입력되어 움직임 예측의 참조 신호로 사용될 수 있다.
화면 간 예측부(2205)는 움직임 예측 시 참조 픽처(2202)와 기하 변환 픽처(2204)를 모두 참조하여 최적의 움직임 예측 정보(2206)를 도출할 수 있다. 최적의 움직임 예측 정보(2206)는 움직임 예측에서 예측 정확도가 가장 높아 부호화 효율이 가장 좋은 경우의 움직임 예측 정보를 의미할 수 있다. 기하 변환 픽처(2204)를 참조하여 최적의 움직임 예측 정보(2206)를 도출한 경우, 기하 변환 정보가 부호화되어 비트스트림에 포함될 수 있다.
도 20 내지 도 22를 참조하여 설명된 부호화기의 구성은 본 발명의 다양한 실시예 중 하나에 불과하며, 본 발명의 범위가 이에 한정되지 않는다. 도 20 내지 도 22에 도시된 부호화기의 구성 중 일부는 다른 구성과 병합되거나 생략될 수 있다. 또는 추가적인 구성이 부가될 수도 있다. 또한, 기하 변환 픽처 생성부(2010) 및 기하 변환 픽처 예측부(2015)가 포함하는 복수의 구성 중 일부는 기하 변환 픽처 생성부(2010) 및 기하 변환 픽처 예측부(2015)와 독립적으로 구성될 수도 있으며, 다른 구성부의 하위 구성으로 포함되거나 다른 구성부와 병합될 수도 있다.
도 23은 본 발명의 일 실시예에 따른 움직임 예측을 설명하기 위한 순서도이다.
단계 S2301, S2302에서 부호화 대상 픽처와 참조 픽처가 특정될 수 있다. 참조 픽처는 참조 픽처 리스트로부터 선택될 수 있다.
단계 S2303에서, 부호화 대상 픽처와 참조 픽처에 기초하여 기하 변환 정보를 생성할 수 있다. 기하 변환 정보를 생성하는 방법은 전술한 방법이 적용될 수 있다.
단계 S2304에서, 생성된 기하 변환 정보에 기초하여, 참조 픽처로부터 기하 변환 픽처를 생성할 수 있다. 생성된 기하 변환 픽처는 기하 변환 픽처 버퍼에 저장될 수 있다.
단계 S2305에서, 참조 픽처 및/또는 기하 변환 픽처를 참조하여 움직임 예측을 수행할 수 있다.
단계 S2306에서, 최적의 부호화 효율을 갖는 참조 신호에 기초하여 최적 예측 정보를 저장 또는 갱신할 수 있다. 최적의 부호화 효율을 결정하기 위한 Cost 지표의 예로 RD Cost(Rate-distortion Cost) 등이 사용될 수 있다.
단계 S2307에서, 참조 픽처 리스트 내의 모든 참조 픽처에 대한 처리가 끝나지 않은 것으로 판단되면 단계 S2302로 이동하여 상기 단계들을 반복할 수 있다. 참조 픽처 리스트 내의 모든 참조 픽처에 대한 처리가 끝나면, 최종적으로 결정된 최적 움직임 예측 정보 및/또는 기하 변환 정보는 부호화될 수 있다(S2308). 기하 변환 정보는 움직임 예측 시 기하 변환 픽처가 사용되는 경우에만 부호화되어 전송될 수 있다.
도 24는 본 발명의 일 실시예에 따른 기하 변환 픽처 생성 방법을 설명하기 위한 순서도이다.
단계 S2401에서, 부호화 대상 픽처와 참조 픽처 리스트로부터 선택된 하나의 참조 픽처가 입력될 수 있다.
단계 S2402에서, 두 픽처로부터 특징점이 추출되고 추출된 특징점을 이용한 매칭이 수행될 수 있다. 추출된 특징점은 두 픽처 간의 화소 값의 변화, 특히, 전역 움직임 정보 등을 계산하기 위해 사용될 수 있다. 특징점은 전술한 바와 같이 주변과 구별될 수 있는 화소를 의미할 수 있다. 두 픽처의 추출된 특징점을 일치시키는 매칭 과정을 거쳐 두 픽처에서의 특징점의 회전, 확대 및/또는 이동을 반영한 기하 변환 정보를 계산할 수 있다(S2403). 기하 변환 정보의 계산은 다양한 알고리즘에 따라 수행될 수 있으며, 예컨대, 도 13의 호모그래피가 사용될 수 있다.
단계 S2404에서, 기하 변환 픽처를 생성할 수 있다. 기하 변환 픽처의 생성은, 참조 픽처의 각 화소에 기하 변환 정보를 적용하여 참조 픽처의 각 화소가 기하 변환 픽처의 어느 위치에 대응되는지를 도출함으로써 수행될 수 있다.
단계 S2405에서, 생성된 기하 변환 픽처는 저장될 수 있다. 생성된 기하 변환 픽처는 예컨대, 기하 변환 픽처 버퍼에 저장될 수 있다. 그러나, 기하 변환 픽처의 저장 위치는 이에 한정되지 않으며, 예컨대, 복원 픽처 버퍼 또는 참조 픽처 리스트 등에 저장될 수도 있다.
도 25는 본 발명의 일 실시예에 따른 화면간 예측 방법을 설명하기 위한 순서도이다.
단계 S2501, S2502에서, 참조 픽처를 참조한 움직임 예측과 기하 변환 픽처를 참조한 움직임 예측이 수행될 수 있다. 움직임 예측의 순서는 이에 한정되지 않는다. 즉, 기하 변환 픽처를 참조한 움직임 예측이 먼저 수행될 수도 있다. 또는 두 픽처를 참조한 움직임 예측이 동시에 수행될 수도 있다. 참조 픽처는 참조 픽처 리스트로부터 선택될 수 있다.
단계 S2503에서, 참조 픽처를 참조한 움직임 예측과 기하 변환 픽처를 참조한 움직임 예측 중 어느 쪽의 효율이 더 좋은지를 판단할 수 있다.
참조 픽처를 참조한 움직임 예측의 효율이 더 좋은 경우, 단계 S2504에서 최적 예측 정보로서 참조 픽처에 관한 정보를 저장 또는 갱신할 수 있다.
기하 변환 픽처를 참조한 움직임 예측의 효율이 더 좋은 경우, 단계 S2505에서 최적 예측 정보로서 기하 변환 픽처에 관한 정보를 저장 또는 갱신할 수 있다.
최적 예측 정보로서 최종적으로 기하 변환 픽처에 관한 정보를 부호화하는 경우, 기하 변환 정보를 부호화할 수 있다(S2506).
도 26, 도 27을 참조하여, 기하 변환 정보를 효율적으로 부호화 방법을 설명한다.
기하 변환 정보는 도 14의 행렬과 같이 복수 개의 인수들로 구성될 수 있다. 또한 각 인수들은 실수 타입일 수 있다. 실수 타입의 복수 개의 인수들로 구성된 행렬을 부호화하기 위해서는 많은 비트량이 소요되므로 압축 효율이 저하될 수 있다. 기하 변환 정보 전송에 소요되는 비트량을 감소시키기 위하여, 다양한 방법이 적용될 수 있다. 예컨대, 실수 타입의 인수들을 정수 타입의 인수들로 근사화시킬 수 있다. 또는 생성된 기하 변환 정보 중 일부를 제거하여 기하 변환 정보를 간소화시킬 수 있다. 또는 이전에 사용된 기하 변환 정보로부터 부호화 대상인 기하 변환 정보를 예측하고, 기하 변환 정보 간의 차분값 만을 전송할 수 있다. 전술한 방법 외에 비트량을 감소시키기 위한 다양한 방법이 적용될 수 있다. 또한, 전술한 방법들 중 하나 또는 그 이상이 함께 적용될 수 있다.
도 26은 본 발명의 일 실시예에 따른 기하 변환 정보 부호화 방법을 설명하기 위한 순서도이다.
단계 S2601에서 부호화 대상인 기하 변환 정보가 입력될 수 있다.
단계 S2602에서 기하 변환 정보의 간소화, 단계 S2603에서 기하 변환 정보의 예측이 수행될 수 있다. 기하 변환 정보의 간소화 및 기하 변환 정보의 예측의 처리 순서는 서로 바뀔 수 있다. 또는 두 과정 중 하나만을 선택적으로 사용할 수도 있다.
단계 S2602의 기하 변환 정보의 간소화에서는, 기하 변환 정보를 구성하는 실수 타입의 인수들을 근사화할 수 있다. 근사화를 통해 인수들을 표현하기 위한 비트수를 줄일 수 있다. 비트수를 줄이기 위해, 소정의 자리수를 기준으로 반올림, 올림, 반내림, 내림, 버림, 절삭 등의 다양한 연산이 적용될 수 있다. 근사화의 일 예로서, 정수화가 수행될 수 있다.
단계 S2603의 기하 변환 정보의 예측에서는, 부호화 대상인 기하 변환 정보를 이전에 사용된 기하 변환 정보로부터 예측하고, 두 기하 변환 정보 간의 차분 값을 전송할 수 있다. 이전에 사용된 기하 변환 정보는 직전에 사용된 기하 변환 정보거나, 이전에 부호화된 픽처의 기하 변환 정보일 수 있다. 부호화 대상인 기하 변환 정보의 예측을 위해 참조될 수 있는 기하 변환 정보가 복수 개 존재하는 경우, 참조되는 기하 변환 정보를 지시하기 위한 정보가 추가로 부호화될 수 있다. 이 경우, 복호화 장치에서는 참조되는 기하 변환 정보를 지시하는 정보에 기초하여 참조 기하 변환 정보를 결정하고, 이에 기초하여 복호화 대상인 기하 변환 정보를 복원할 수 있다. 특정 기하 변환 정보, 예컨대, 직전에 사용된 기하 변환 정보만이 참조 기하 변환 정보로 사용되는 경우에는 참조 기하 변환 정보를 지시하는 정보는 전송되지 않을 수 있다.
단계 S2604에서 기하 변환 정보를 복원하는데 필요한 정보가 부호화될 수 있다.
도 27은 기하 변환 정보의 부호화에 필요한 비트량을 줄이기 위해 기하 변환 정보를 변형하는 다양한 실시 예를 도시한 도면이다.
도 27의 (1)은 기하 변환 정보의 실수 타입 인자를 정수화한 예이다.
도 27의 (2)는 기하 변환 정보의 일부를 생략함으로써 간소화한 예이다. 삭제된 3개의 인수들 중, 왼쪽의 2 개의 인수인 0.1과 0.7은 도 12를 참조하여 설명된 투영 변환에 사용되는 인수이다. 투영 변환에 사용되는 인수는 통계적으로 0에 가까운 작은 값으로 발생한다. 기하 변환 픽처 생성 시 0에 가까운 인수는 작은 영향만을 미친다. 따라서 생략되더라도 기하 변환 픽처의 정확도에는 악영향을 미치지 않는다. 또한, 삭제한 3개의 인수들 중, 가장 오른쪽의 인수 1은 기하 변환 정보 생성 시 항상 1로 고정되기 때문에, 복호화기로 전송될 필요가 없다.
도 27의 (3)은 이미 존재하는 기하 변환 정보 A에 계수 2를 곱하여 기하 변환 정보 B를 구성하는 예이다. 기하 변환 정보 A와 기하 변환 정보 B를 모두 전달하는 대신에 기하 변환 정보 A와 계수 2만을 전달하여 기하 변환 정보 B를 복원할 수 있다.
도 27의 (4)는 기하 변환 정보 A를 참조 기하 변환 정보로 이용하여 기하 변환 정보 B를 구성하는 예이다. 부호화되는 정보는 기하 변환 정보 A와 차분 기하 변환 정보 Bd이다. Bd는 기하 변환 정보 A와 기하 변환 정보 B의 차이 값에 대응될 수 있다. 복호화 장치에서는 기하 변환 정보 A에 차분 기하 변환 정보 Bd를 더함으로써, 기하 변환 정보 B를 복원할 수 있다.
도 28은 본 발명에 따라 비디오 복호화기에서 기하 변환 정보를 이용하여 참조 픽처로부터 기하 변환 픽처를 생성하고, 참조 픽처와 기하 변환 픽처를 이용하여 움직임 보상을 수행하는 방법을 설명하기 위한 도면이다.
본 발명에 따른 비디오 복호화기는 비디오 부호화기에서 생성된 기하 변환 정보를 비트스트림을 통해 입력 받을 수 있다.
비디오 복호화기는 참조 픽처 리스트로부터 선택된 참조 픽처에 기하 변환 정보를 적용하여 기하 변환 픽처를 생성할 수 있다. 기하 변환 픽처의 생성은 후술하는 복호화기의 기하 변환 픽처 생성부에서 수행될 수 있다. 기하 변환 픽처 생성부에서 생성되는 기하 변환 픽처의 단위는 프레임, 슬라이스 또는 블록 등 비디오 부호화기에서 부호화 시에 결정된 다양한 영역의 단위가 될 수 있다.
참조 픽처에 기하 변환 정보를 적용하여 기하 변환 픽처를 생성하는 과정은 전술한 비디오 부호화기에서의 동작에 대응될 수 있다. 다만, 비디오 부호화기와는 달리 비디오 복호화기는 비트스트림을 통해 기하 변환 정보를 입력 받는다. 따라서, 비디오 복호화기의 복잡도는 크게 증가하지 않는다. 생성된 기하 변환 픽처는 후술하는 복호화기의 기하 변환 픽처 버퍼에 저장될 수 있다.
비디오 복호화기는 복호화 대상 픽처의 화면 간 예측을 위해, 참조 픽처 뿐만 아니라 기하 변환 픽처를 모두 참조할 수 있다. 참조 픽처 및/또는 기하 변환 픽처를 참조한 화면 간 예측은 후술하는 복호화기의 화면 간 예측부에서 수행될 수 있다. 화면 간 예측부는 후술하는 복호화기의 복원 픽처 버퍼(DPB)의 참조 픽처 및/또는 기하 변환 픽처 버퍼의 기하 변환 픽처를 참조 신호로 사용하여 화면 간 예측을 수행할 수 있다.
복호화 대상 픽처 또는 복호화 대상 영역의 화면 간 예측을 위해 참조 픽처를 사용할지 또는 기하 변환 픽처를 사용할지 또는 양쪽 모두를 사용할 지의 여부는 비트스트림을 통해 시그널링될 수 있다. 상기 시그널링은 별도의 신택스 요소에 의해 수행될 수 있다. 또는 상기 시그널링은 기하 변환 정보의 존재에 의해 수행될 수 있다.
비디오 복호화기는 복호화 대상 픽처 또는 복호화 대상 영역이 기하 변환 픽처를 참조하여 예측되었음을 나타내는 정보에 기초하여 기하 변환 정보의 수신, 기하 변환 픽처의 생성 및/또는 기하 변환 픽처를 참조한 화면 간 예측을 수행할 수 있다.
비디오 복호화기는 복호화 대상 픽처 또는 복호화 대상 영역이 참조 픽처를 참조하여 예측되었음을 나타내는 정보에 기초하여 기하 변환 정보의 수신, 기하 변환 픽처의 생성 및/또는 기하 변환 픽처를 참조한 화면 간 예측을 수행하지 않을 수 있다.
도 29는 본 발명이 적용되는 복호화기의 다른 실시예에 따른 구성을 나타내는 블록도이다.
도 29에 도시된 복호화기는 엔트로피 복호화부(2910), 역양자화부(2920), 역변환부(2930), 가산기(2935), 필터부(2940), 확장된 화면 내 예측부(2950), 기하 변환 픽처 예측부(2960), 기하 변환 픽처 생성부(2970)를 포함하여 구성될 수 있다. 복호화 장치는 비트스트림(2900)을 입력받아 복호화 픽처(2980)를 출력할 수 있다.
기하 변환 픽처 생성부(2970)는 복원 픽처 버퍼(2971)로부터 구성된 참조 픽처 리스트의 참조 픽처와 비트스트림으로부터 추출되어 엔트로피 복호화된 기하 변환 정보를 사용하여 기하 변환 픽처(2972)를 생성할 수 있다.
기하 변환 픽처 예측부(2960)는 기하 변환 픽처를 저장하기 위한 기하 변환 픽처 버퍼(2961)와 화면 간 예측부(2962)로 구성될 수 있다.
기하 변환 픽처 생성부(2970)에서 생성된 기하 변환 픽처(2972)는 기하 변환 픽처 버퍼(2961)에 저장될 수 있다. 기하 변환 픽처 버퍼(2961)에 저장된 기하 변환 픽처는 화면 간 예측부(2962)에서 참조 신호로서 참조될 수 있다.
화면 간 예측부(2962)는 부호화기에서 전송된 정보에 기초하여 참조 픽처 및/또는 기하 변환 픽처를 움직임 보상의 참조 신호로 사용하여 복호화 대상 픽처를 복원할 수 있다.
도 30은 도 29에 도시된 복호화기의 일 실시예에 따른 기하 변환 픽처 생성부(2970)의 동작 및 구조를 설명하기 위한 도면이다.
기하 변환 픽처 생성부(2970)의 픽처 기하 변환 계산부(3005)는 기하 변환 정보(3004)와 참조 픽처(3003)를 입력 받아 기하 변환 픽처(3006)를 생성한다. 참조 픽처(3003)는 복원 픽처 버퍼(3001)로부터 구성된 참조 픽처 리스트(3002)로부터 선택될 수 있다. 참조 픽처(3003)의 선택에 필요한 정보는 비트스트림에 포함되어 전송될 수 있다. 참조 픽처(3003)의 선택에 필요한 정보는 별개의 신택스 요소로 전송되거나, 기하 변환 정보에 명시적으로 또는 암묵적으로 포함되어 전송될 수 있다.
생성된 기하 변환 픽처(3006)는 전술한 바와 같이 기하 변환 픽처 버퍼(2961)로 출력될 수 있다.
도 31은 도 29에 도시된 복호화기의 일 실시예에 따른 기하 변환 픽처 예측부(2960)의 동작 및 구조를 설명하기 위한 도면이다.
기하 변환 픽처 예측부(2960)의 화면 간 예측부(3105)는 참조 픽처(3102) 및/또는 기하 변환 픽처(3104)를 참조하여 화면 간 예측을 수행하고, 예측 신호(3106)를 출력할 수 있다. 참조 픽처(3102)와 기하 변환 픽처(3104) 중 어느 픽처를 참조할지 또는 양쪽 모두를 참조할 지의 여부는 전술한 바와 같이, 비트스트림을 통해 별도의 신택스 요소로 시그널링되거나 기하 변환 정보의 존재에 기초하여 시그널링될 수도 있다.
참조 픽처(3102)는 참조 픽처 리스트(3101)로부터 선택될 수 있다. 기하 변환 픽처(3104)는 기하 변환 픽처 버퍼(3103)로부터 선택될 수 있다. 기하 변환 픽처(3104)는 화면 간 예측에 필요한 부분만 구성될 수도 있다.
도 29 내지 도 31을 참조하여 설명된 복호화기의 구성은 본 발명의 다양한 실시예 중 하나에 불과하며, 본 발명의 범위가 이에 한정되지 않는다. 도 29 내지 도 31에 도시된 복호화기의 구성 중 일부는 다른 구성과 병합되거나 생략될 수 있다. 또는 추가적인 구성이 부가될 수도 있다. 또한, 기하 변환 픽처 생성부(2970) 및 기하 변환 픽처 예측부(2960)가 포함하는 복수의 구성 중 일부는 기하 변환 픽처 생성부(2970) 및 기하 변환 픽처 예측부(2960)와 독립적으로 구성될 수도 있으며, 다른 구성부의 하위 구성으로 포함되거나 다른 구성부와 병합될 수도 있다.
도 32는 본 발명의 일 실시예에 따른 복호화기에서의 움직임 보상을 설명하기 위한 순서도이다.
복호화기는 비트스트림을 파싱하여 움직임 보상 관련 정보를 수신할 수 있다(S3201). 움직임 보상 관련 정보는 참조 픽처 정보, 기하 변환 정보 중 적어도 하나를 포함할 수 있다. 참조 픽처 정보는 참조 픽처 리스트에 포함된 복수의 참조 픽처 중 하나의 참조 픽처를 특정하기 위한 정보일 수 있다. 또는 참조 픽처 정보는 움직임 보상 시 참조되는 픽처가 참조 픽처인지 또는 기하 변환 픽처인지를 지시하기 위한 정보일 수 있다. 또는 참조 픽처 정보는 움직임 보상 시 참조 픽처와 기하 변환 픽처가 모두 사용되는지 여부를 지시하기 위한 정보일 수 있다. 또는 참조 픽처 정보는 전술한 정보를 둘 이상 포함하는 정보일 수 있다. 참조 픽처 정보는 하나의 신택스 요소에 의해 시그널링 될 수도 있고, 복수의 신택스 요소에 의해 시그널링 될 수도 있다. 또는 참조 픽처 정보는 복호화기와 부호화기 사이에 명시적 및/또는 암묵적으로 정의된 방법에 의해 시그널링 될 수도 있다. 움직임 보상 시 참조되는 픽처가 참조 픽처인지 또는 기하 변환 픽처인지의 여부는 기하 변환 정보의 존재에 의해서 시그널링 될 수도 있다.
단계 S3202에서, 움직임 보상 관련 정보에 기초하여, 움직임 보상 시 기하 변환 픽처가 참조되는지 여부를 판단할 수 있다. 단계 S3202에서의 판단은 전술한 바와 같이, 참조 픽처 정보 및/또는 기하 변환 정보의 존재에 기초하여 수행될 수 있다. 기하 변환 정보의 존재에 기초하여 수행되는 경우, 예컨대, 기하 변환 정보가 수신되면, 기하 변환 픽처를 참조하여 움직임 보상을 수행하는 것으로 결정될 수 있다.
단계 S3202의 판단 결과가 "예"인 경우, 단계 S3203에서 기하 변환 픽처가 생성될 수 있다. 기하 변환 픽처의 생성은 참조 픽처 리스트로부터 선택된 참조 픽처와 비트스트림으로부터 파싱된 기하 변환 정보에 기초하여 수행될 수 있다. 이 때, 움직임 보상에 필요한 기하 변환 픽처의 일부만이 생성될 수도 있다.
단계 S3204에서, 생성된 기하 변환 픽처를 참조하여 움직임 보상이 수행될 수 있다.
단계 S3202의 판단 결과가 "아니오"인 경우, 단계 S3205에서 참조 픽처 리스트로부터 선택된 참조 픽처를 참조하여 움직임 보상이 수행될 수 있다.
도 32를 참조하여 설명한 움직임 보상에서는 기하 변환 픽처의 참조 여부(S3202)에 기초하여 기하 변환 픽처를 생성(3203)한다. 그러나, 반드시 이에 한정되지 않으며, 기하 변환 정보가 수신되면, 기하 변환 픽처의 참조 여부에 관계없이, 기하 변환 픽처를 생성할 수도 있다.
전술한 바와 같이, 기하 변환 정보를 이용하여 참조 픽처로부터 기하 변환 픽처를 생성할 수 있다. 화면 간 예측 시 참조 픽처 및/또는 기하 변환 픽처를 참조함으로써, 화면 간 예측의 정확도를 향상시킬 수 있다.
기하 변환 픽처를 이용한 예측은 화면 간 예측에 국한되지 않는다. 예컨대, 기하 변환 픽처를 이용하여 화면 내 예측을 수행할 수 있다. 이하, 도 33 내지 도 37을 참조하여 본 발명의 일 실시예 따른, 기하 변환 픽처를 이용한 확장된 화면 내 예측에 대해 설명한다.
도 33은 본 발명의 일 실시예에 따른, 확장된 화면 내 예측을 설명하기 위한 개념도이다. 도 33에서 현재 블록은 복호화 대상 블록을 의미한다.
도 33의 (1)에 도시된 바와 같이, 현재 블록의 화면 내 예측을 위해, 현재 픽처의 기 복호화된 영역이 참조될 수 있다. 즉, 현재 블록의 좌즉, 상측, 좌상측 및/또는 우상측 영역이 참조될 수 있다. 그러나, 현재 블록의 우측, 하측, 좌하측 및/또는 우하측 영역은 아직 복호화되지 않았기 때문에, 현재 블록의 화면 내 예측을 위해 참조될 수 없다.
도 33의 (2)에 도시된 바와 같이, 참조할 수 없는 현재 블록의 우측, 하측, 좌하측 및/또는 우하측 영역에 대해서는, 현재 픽처에 상응하는 기 복호화된 픽처의 대응하는 신호 또는 기 복호화된 픽처를 기하 변환하여 생성되는 기하 변환 픽처의 대응하는 신호가 화면 내 예측의 참조 신호로서 참조될 수 있다. 기하 변환 픽처란, 전술한 바와 같이, 현재 픽처의 참조 픽처를 기하 변환 정보를 사용하여 현재 픽처와 유사하게 재구성한 기하 변환 픽처일 수 있다.
도 33의 (3)에 도시된 바와 같이, (1)과 (2)의 화면 내 예측의 참조 신호를 모두 사용함으로써, 현재 블록을 둘러싼 모든 영역에 화면 내 예측을 위한 참조 신호가 존재할 수 있다. 따라서, 현재 블록의 화면 내 예측은 모든 방향(좌즉, 상측, 좌상측, 우상측, 우측, 하측, 좌하측 및/또는 우하측)에 대해 가능해진다. 그럼으로써, 화면 내 예측의 효율을 향상시킬 수 있다.
도 34는 본 발명에 일 실시예에 따른 확장된 화면 내 예측부의 동작 및 구조를 설명하기 위한 도면이다.
도 34의 확장된 화면 내 예측부는 도 20에 도시된 부호화기의 확장된 화면 내 예측부에 대응될 수 있다.
확장된 화면 내 예측부는 참조 신호 선택부(3404)와 예측 실행부(3405)를 포함할 수 있다. 참조 신호 선택부(3404)는 복호화 대상인 현재 블록(3403)을 입력받을 수 있다. 또한, 참조 신호 선택부(3404)는 화면 내 예측의 참조 신호로 사용될 현재 픽처(3401) 및/또는 기하 변환 픽처(3402)를 입력받을 수 있다. 입력되는 현재 픽처(3401)는 현재 블록(3403)보다 먼저 부호화/복호화된 영역의 신호일 수 있다. 입력되는 기하 변환 픽처(3402)는 현재 픽처의 참조 픽처일 수 있다. 또는 입력되는 기하 변환 픽처(3402)는 현재 픽처의 참조 픽처를 기하 변환 정보에 의해 기하 변환하여 생성된 기하 변환 픽처일 수 있다. 참조 신호 선택부(3404)에 입력되는 현재 블록(3403)에 관한 정보는 현재 픽처 내에서의 현재 블록의 위치 및/또는 크기 등의 정보일 수 있다. 참조 신호 선택부(3404)는 현재 픽처(3401)와 기하 변환 픽처(3402)로부터 참조 신호를 선택할 수 있다. 또는 참조 신호 선택부(3404)는 현재 픽처(3401)와 기하 변환 픽처(3402) 중 하나의 픽처를 참조하기 위해 선택할 수 있다. 예컨대, 현재 블록의 우측 영역으로부터 예측을 수행하는 경우, 참조 신호 선택부(3404)는 기하 변환 픽처(3402)를 참조 픽처로서 선택할 수 있다.
참조 신호가 선택되면 예측 실행부(3405)는 참조 신호를 참조하여 화면 내 예측을 수행하고, 현재 블록의 예측 블록(예측 신호)을 생성할 수 있다. 또한, 복호화기에서 화면 내 예측을 수행하는데 필요한 정보를 화면 내 예측 정보로서 생성할 수 있다. 화면 내 예측 정보는 화면 내 예측 방향 또는 참조 신호 등에 관한 정보를 포함할 수 있다.
화면 내 예측은 모든 가용한 참조 신호에 대해 수행될 수 있으며, 최적의 효율을 나타내는 참조 신호가 결정될 수 있다.
복호화기의 확장된 화면 내 예측부는 부호화기로부터 전송된 화면 내 예측 정보에 기초하여 현재 픽처의 기 복호화된 영역 또는 기하 변환 픽처(또는 참조 픽처)를 선택적으로 참조할 수 있다. 예컨대, 화면 내 예측 정보가 지시하는 화면 내 예측 방향이 현재 블록의 우측이라면, 기하 변환 픽처를 이용하여 화면 내 예측을 수행할 수 있다. 복호화기는 기하 변환 픽처가 참조되는 경우에만 기하 변환 픽처를 생성할 수 있다. 기하 변환 픽처가 참조되는지의 여부는 전술한 바와 같이 화면 내 예측 방향으로부터 판단할 수 있다. 또는 기하 변환 픽처가 참조되는지의 여부는 기하 변환 정보의 존재에 기초하여 판단할 수 있다. 또는 기하 변환 픽처가 참조되는지의 여부는 별도의 하나 이상의 신택스 요소에 의해 시그널링될 수도 있고, 부호화기와 복호화기에서 명시적 및/또는 암묵적으로 정의된 규칙에 따라 시그널링될 수도 있다.
또한, 본 발명에 따른 화면 내 예측을 위해 참조되는 기하 변환 픽처의 생성 방법은 본 발명에 따른 화면 간 예측을 위해 참조되는 기하 변환 픽처의 생성 방법과 동일할 수 있다. 또한 기하 변환 정보를 구성하거나 이용하는 방법도 화면 간 예측에서 설명된 방법과 동일할 수 있다.
도 35는 본 발명의 일 실시예에 따른 확장된 화면 내 예측을 설명하기 위한 도면이다.
단계 S3501에서 화면 내 예측에 사용될 참조 영역을 선택한다. 참조 영역은 현재 블록 주변의 모든 방향으로부터 선택될 수 있다. 화면 내 예측 방향은 일정한 간격으로 세분화된 각도로 표현될 수 있으며, 각각을 인덱싱한 인덱스로 표현될 수도 있다. 또한, 그 밖의 가능한 모든 표현 방식이 이용될 수 있다. 부호화기에서는 순차적으로 또는 병렬적으로 모든 방향에 대해 화면 내 예측을 수행할 수 있다. 복호화기에서는 전송된 화면 내 예측 정보에 기초하여 하나의 화면 내 예측 방향이 특정될 수 있다.
단계 S3502에서 선택된 참조 영역, 즉, 화면 내 예측 방향이 지시하는 참조 영역이 현재 픽처 내에서 유효한지를 판단할 수 있다. 즉, 선택한 참조 영역이 현재 블록에 앞서 부호화/복호화된 영역에 속한다면 유효하며, 그렇지 않다면 유효하지 않다. 단계 S3502의 판단은 단계 S3501에서 참조 영역을 선택함으로써 판단될 수 있다. 예컨대, 선택된 참조 영역을 지시하는 각도, 인덱스 또는 방향 등으로부터 참조 영역이 현재 픽처에 유효한지 여부를 판단할 수 있다.
선택한 참조 영역이 현재 픽처에서 유효하면, 단계 S3504에서, 현재 픽처의 기 복호화된 신호를 참조하여 화면 내 예측을 수행할 수 있다. 선택한 참조 영역이 현재 픽처에서 유효하지 않다면, 단계 S3503에서, 기하 변환 픽처를 참조하여 화면 내 예측을 수행할 수 있다.
도 36은 본 발명에 따른 화면 내 예측 방향을 설명하기 위한 도면이다.
도 36에 있어서, 예측 모드 0과 1은 비방향성 모드(non-angular mode)에 속한다. 예측 모드 0은 플레이너(Intra_Planar) 모드, 예측 모드 1은 DC(Intra_DC) 모드를 의미한다. 도 36의 (1)에서, 예측 모드 2 내지 34는 방향성 모드(angular modes)를 의미한다. 도 36의 (2)에서, 예측 모드 2 내지 65는 방향성 모드를 의미한다. 도 36에서, 화살표는 현재 블록의 화면 내 예측의 참조 신호를 지시한다.
도 36의 (1)은 현재 픽처의 기 복호화된 신호만을 참조할 수 있는 경우의 화면 내 예측 방향을 도시한 도면이다. 도 36의 (1)에 도시된 바와 같이, 예측 모드 2 내지 34의 화면 내 예측은 현재 블록의 좌즉, 상측, 좌상측 및/또는 우상측에 위치하는 신호만을 참조할 수 있다.
도 36의 (2)는 현재 픽처의 기 복호화된 신호뿐만 아니라, 기 복호화된 픽처 또는 기 복호화된 픽처의 기하 변환 픽처를 참조할 수 있는 경우의 화면 내 예측 방향을 도시한 도면이다. 도 36의 (2)에 도시된 바와 같이, 예측 모드 2 내지 65의 화면 내 예측은 현재 블록의 좌측, 상측, 좌상측 및/또는 우상측 뿐만 아니라 현재 블록의 우측, 하측, 좌하측 및/또는 우하측 등 모든 방향에 위치하는 신호를 참조할 수 있다.
도 37은 본 발명에 따라 확장된 화면 내 예측이 수행되는 일 실시예를 설명하기 위한 도면이다.
도 37에 있어서, 현재 픽처 내 인접 화소는 화면 내 예측 시 참조할 수 있는 현재 픽처 내 화소를 의미한다. 기하 변환 픽처 내 인접 화소는 화면 내 예측 시 참조할 수 있는, 현재 픽처에 대응하는 기하 변환 픽처(또는 참조 픽처) 내 화소를 의미한다. 정보가 없는 영역은 현재 블록의 인접 화소들 중, 화면 내 예측 시 참조할 수 있는 화소 정보가 없는 영역을 의미한다. 실선의 화살표는 현재 픽처 내 인접 화소를 참조하여 화면 내 예측이 수행되는 경우의 화면 내 예측 방향을 나타낸다. 실선의 화살표가 나타내는 화면 내 예측 방향은 도 36의 예측 모드 2 내지 34의 예측 방향에 대응될 수 있다. 굵은 실선의 화살표는 현재 픽처에 대응하는 기하 변환 픽처(또는 참조 픽처) 내 인접 화소를 참조하여 화면 내 예측이 수행되는 경우의 화면 내 예측방향을 나타낸다. 굵은 실선의 화살표는 도 36의 예측 모드 35 내지 65의 예측 방향에 대응될 수 있다. 점선의 화살표는 참조 신호가 없기 때문에 화면 내 예측이 불가능한 방향을 나타낸다.
도 37의 (a) 및 (c)는 현재 픽처 내 인접 화소만을 참조하여 화면 내 예측을 수행하는 경우이다. (a)에 도시된 예측 방향에 대해서는 참조 신호가 존재하므로 화면 내 예측이 수행될 수 있다. 그러나 (c)에 도시된 예측 방향에 대해서는 참조 신호가 존재하지 않기 때문에 화면 내 예측을 수행할 수 없다.
도 37의 (b)와 (d)는 현재 픽처 내 인접 화소 뿐만 아니라 기하 변환 픽처(또는 참조 픽처) 내 인접 화소를 참조하여 화면 내 예측을 수행하는 경우이다. (b)에 도시된 예측 방향에 대해서는 현재 픽처 내 인접 화소를 참조하여 화면 내 예측을 수행할 수 있다. (d)에 도시된 예측 방향에 대해서는 기하 변환 픽처 내 인접 화소를 참조하여 화면 내 예측을 수행할 수 있다. (b), (d)와 같이, 현재 픽처 내 인접 화소 뿐만 아니라 기하 변환 픽처 내 인접 화소를 참조하여 화면 내 예측을 수행함으로써, 화면 내 예측의 정확도를 높여 부호화 효율을 높일 수 있다.
본 발명에 따라, 기하 변환 픽처를 생성할 때, 기하 변환 픽처는 코딩 유닛 단위(Coding Unit, CU), 예측 단위(Prediction Unit, PU), 슬라이스(Slice) 단위 또는 영상 프레임(Frame) 단위로 구성될 수 있다. 만약 영상 프레임이나 슬라이스 단위로 화소 값에 변화가 발생하는 경우, 각각의 CU나 PU 등의 작은 단위 영역에 대해 픽처 기하 변환을 수행하는 것보다 슬라이스나 프레임 등의 큰 단위 영역에 대해 픽처 기하 변환을 수행하는 것이 바람직할 수 있다. 그럼으로써, 작은 단위 영역에 대한 기하 변환 정보의 중복적인 생성을 방지할 수 있고, 복잡도 측면에서도 훨씬 효율적일 수 있다. 또한 프레임이나 슬라이스 영역 단위로 기하 변환 픽처를 참조하지 않는 경우, 프레임 또는 슬라이스 단위로 기하 변환 픽처 참조 여부에 관한 정보를 포함시킴으로써, 부호화기/복호화기에서 불필요한 기하 변환 정보를 구성하지 않도록 할 수 있다. 예컨대, 아래의 픽처 파라미터 세트(Picture Parameter Set, PPS), 슬라이스 헤더(Slice Header)의 신택스 구조 및 시맨틱스(Semantics)가 적용될 수 있다.
표 1과 표 2에서 “modification_image_generation_flag”는 움직임 정보 예측 시 참조 픽처로서 기하 변환 픽처의 사용 여부를 알려주는 정보일 수 있다. “modification_image_generation_flag”는 시퀀스 단위, 프레임 단위, 슬라이스 단위 등에 포함되어 각각의 단위에서의 기하 변환 픽처의 사용 여부를 시그널링할 수 있다. 각각의 단위에서 기하 변환 픽처가 참조 정보로서 사용되는 경우, “modification_image_generation_flag”는 '1’로 설정될 수 있다. 기하 변환 픽처가 참조 정보로서 사용되지 않는 경우, “modification_image_generation_flag”은 ‘0’으로 설정될 수 있다. 또는 각각의 경우에, 반대의 값을 갖도록 구성될 수도 있다. “modification_image_generation_flag”는 각각의 단위에서 기하 변환 픽처의 사용 여부를 나타내는 용도로 사용될 수 있으며, 전송된 비트스트림에 기하 변환 정보가 포함되는지 여부를 판단하는 용도로 사용될 수 있다.
표 1 및 표 2는 각각 PPS 및 슬라이스 헤더를 통해 시그널링하는 경우의 신택스 구조의 일 예이다.
표 1
pic_parameter_set_rbsp(){ Descriptor
pic _parameter_set_id ue(v)
seq _parameter_set_id ue(v)
entropy_coding_mode_flag u(1)
...
for(i = 0; i <= num_ref_idx_l0_active_minus1; i++){
modification_image_generation_flag u(1)
if(modification_image_generation_flag){
for(j = 0; j <= 8; j++)
image_modification_info[0][i][j] ae(v)
}
}
if(slice_type == B){
for(i = 0; i <= num_ref_idx_l1_active_minus1; i++){
modification_image_generation_flag u(1)
if(modification_image_generation_flag){
for(j = 0; j <= 8; j++)
image_modification_info[1][i][j] ae(v)
}
}
}
...
표 2
slice_header(){ Descriptor
lightweight_slice_flag u(1)
if(lightweight_slice_flag){
slice_type ue(v)
pic _parameter_set_id ue(v)
frame_ num u(v)
...
for(i = 0; i <= num_ref_idx_l0_active_minus1; i++){
modification_image_generation_flag u(1)
if(modification_image_generation_flag){
for(j = 0; j <= 8; j++)
image_modification_info[0][i][j] ae(v)
}
}
if(slice_type == B){
for(i = 0; i <= num_ref_idx_l1_active_minus1; i++){
modification_image_generation_flag u(1)
if(modification_image_generation_flag){
for(j = 0; j <= 8; j++)
image_modification_info[1][i][j] ae(v)
}
}
}
...
“image_modification_info”는 기하 변환 정보에 관한 신택스 요소로서, 매트릭스(matrix)나 비선형적 데이터들로 구성될 수 있다. “image_modification_info”는 프레임 또는 슬라이스 단위 등 각각의 단위에서 기하 변환 픽처를 참조하는 경우(혹은 “modification_image_generation_flag”가 '1'인 경우) 비트스트림에 존재하는 신택스 요소일 수 있다. 표 1 및 표 2에 도시된 예는 “image_modification_info”가 매트릭스 형태의 기하 변환 정보를 갖는 경우이다. 전술한 바와 같이, 기하 변환 정보 매트릭스는 9개의 계수를 포함하고, 이중 하나는 고정된 값이 사용될 수 있으므로, 8개의 계수를 전송할 수 있다. 전송할 매트릭스의 계수는 매트릭스 계수의 근사화 또는 예측 등을 통해 8개 이하로 줄어들 수 있다. 표 1 및 표 2에서, 매트릭스 계수는 "image_modification_info[x][y][z]"의 형태로 전송되며, x는 참조 픽처 리스트의 인덱스, y는 해당 참조 픽처 리스트 내의 참조 픽처의 인덱스, z는 매트릭스 계수의 인덱스를 의미할 수 있다. 따라서, 모든 참조 픽처는 각각 별개의 매트릭스를 가질 수 있다.
만약, 비디오 부호화기가 CU 및/또는 PU에서 기하 변환 픽처를 구성하여 참조하는 경우를 최적이라고 판단할 경우, 표 3 및 표 4와 같이, CU 및/또는 PU에 대한 신택스 요소로서, “modification_image_generation_flag” 와 “image_modification_info”가 포함될 수 있다. 표 3 및 표 4의 경우 CU는 자신이 참조하는 참조 프레임의 정보를 지니고 있으므로, 해당 참조 픽처의 기하 변환에 필요한 하나의 기하 변환 정보 매트릭스만을 필요로 할 수 있다. 따라서, 표 1 및 표 2의 경우와 달리, 매트릭스 계수가 "image_modification_info[z]"의 형태로 전송될 수 있다. 이때 z는 매트릭스 계수의 인덱스를 의미한다.
표 3 및 표 4는 각각 CU 및 PU를 통해 시그널링하는 경우의 신택스 구조의 일 예이다.
표 3
coding_unit(x0, y0, log2CbSize){ Descriptor
...
modification_image_generation_flag ae(v)
if(modification_image_generation_flag){
for(i = 0; i <= 8; i++)
image_modification_info[i] ae(v)
...
표 4
prediction_unit(x0, y0, nPbW, nPbH){ Descriptor
...
modification_image_generation_flag ae(v)
if(modification_image_generation_flag){
for(i = 0; i <= 8; i++)
image_modification_info[i] ae(v)
...
표 1 및 표 2와 같이 슬라이스 헤더 또는 PPS가 기하 변환 정보를 가지는 경우 CU나 PU 단위에서는 기하 변환 정보를 전송할 필요가 없다. 따라서, 표 5 및 표 6과 같이, CU, PU를 구성할 수 있다. 표 5 및 표 6에서 “modification_image_reference_flag”가 ‘1’이 되면 참조 신호로 기하 변환 픽처를 사용하고, “modification_image_reference_flag”가 ‘0’이 되면 참조 신호로 기하 변환 픽처를 사용하지 않는 것을 의미할 수 있다. 또는 그 반대로 정의될 수도 있다. CU나 PU단위에서 참조 정보로 기하 변환 픽처를 사용(혹은 “modification_image_reference_flag”가 '1'일 경우)하는 경우, CU와 PU는 참조에 필요한 정보 “reference_modification_info”를 시그널링할 수 있다. 참조에 필요한 정보는 참조 인덱스, 잔차 신호 등의 정보를 포함할 수 있다.
표 5 및 표 6은 각각 CU 및 PU를 통해 시그널링하는 경우의 신택스 구조의 일 예이다.
표 5
coding_unit(x0, y0, log2CbSize){ Descriptor
...
modification_image_reference_flag ae(v)
if(modification_image_reference_flag){
reference_modification_info ae(v)
...
표 6
prediction_unit(x0, y0, nPbW, nPbH){ Descriptor
...
modification_image_reference_flag ae(v)
if(modification_image_reference_flag){
reference_modification_info ae(v)
...
움직임 예측시 단방향 예측 및/또는 양방향 예측이 사용될 수 있다. 기하 변환 픽처를 참조하는 경우, CU와 PU 단위에서 표 7, 표 8의 신택스 구조를 통해 움직임 예측의 타입을 시그널링할 수 있다.
구체적으로, 슬라이스 헤더나 PPS와 같은 상위 레벨에서 시그널링되는 기하 변환 정보를 이용하여 기하 변환 픽처가 생성될 수 있다. 그리고, 각 CU나 PU 단위에서는 기하 변환 픽처를 이용한 양방향 예측, 기하 변환 픽처를 이용한 단방향 예측 또는 기하 변환 픽처를 이용하지 않는 예측 등에 대한 예측 타입을 시그널링할 수 있다. 또한, 각 방향에 대해 기하 변환 픽처를 이용하는지에 관한 정보를 예컨대, 플래그(flag) 정보로써 시그널링할 수 있다.
표 7 및 표 8에서 “modification_image_reference_type”은 기하 변환 픽처를 이용한 양방향 예측, 기하 변환 픽처를 이용한 단방향 예측, 기하 변환 픽처를 이용하지 않는 예측을 포함하는 복수의 예측 방법 중 하나를 나타내는 flag일 수 있다. “ref_0_modification_flag”는 현재 복호화중인 픽처가 참조할 수 있는 두 개의 참조 픽처 리스트 중 첫번째 참조 픽처 리스트의 참조 픽처의 기하 변환 픽처를 참조할지의 여부를 나타내는 플래그이다. “ref_1_modification_flag”는 두번째 참조 픽처 리스트의 참조 픽처의 기하 변환 픽처를 참조할지의 여부를 나타내는 플래그이다. “ref_X_modification_flag”(여기서, X는 0 또는 1)이 “참(true)(1)”으로 설정되면, 해당하는 참조 픽처의 기하 변환 픽처를 참조하여 예측을 수행할 수 있다. “ref_X_modification_flag”(여기서, X는 0 또는 1)이 “거짓(false)(0)”으로 설정되면, 해당하는 참조 픽처의 기하 변환 픽처를 참조하지 않고 예측을 수행할 수 있다.
CU나 PU에서 “modification_image_modification_type”이 “NONE_USE”일 경우 “ref_0_modification_flag”와 “ref_1_modification_flag”를 “false”로 설정하여 양방향 모두에 대해 참조 픽처의 기하 변환 픽처를 참조하지 않도록 할 수 있다.
“modification_image_reference_type”이 “REF_0_USE”일 경우 “ref_0_modification_flag”를 “true”로 설정하고, “ref_1_modification_flag”을 “false”로 설정하여 list 0 방향의 예측 시에만 기하 변환 픽처를 참조하도록 설정할 수 있다.
“modification_image_reference_type”이 “REF_1_USE”일 경우 “ref_0_modification_flag”를 “false”로 설정하고, “ref_1_modification_flag”을 “true”로 설정하여 list 1 방향의 예측 시에만 기하 변환 픽처를 참조하도록 설정할 수 있다.
“modification_image_reference_type”이 “BOTH_USE”일 경우 “ref_0_modification_flag”와 “ref_1_modification_flag”를 “true”로 설정하여 양방향 모두에 대해 기하 변환 픽처를 참조하여 예측을 수행하도록 설정할 수 있다.
표 7 및 표 8은 각각 CU 및 PU를 통해 시그널링하는 경우의 신택스 구조의 일 예이다.
표 7
coding_unit(x0, y0, log2CbSize){ Descriptor
...
modification_image_reference_type ae(v)
if(modification_image_reference_type==NONE_USE){
ref_0_modification_flag = false
ref_1_modification_flag = false
}
if(modification_image_reference_type==REF_0_USE){
ref_0_modification_flag = true
ref_1_modification_flag = false
}
if(modification_image_reference_type==REF_1_USE){
ref_0_modification_flag = false
ref_1_modification_flag = true
}
if(modification_image_reference_type==BOTH_USE){
ref_0_modification_flag = true
ref_1_modification_flag = true
}
...
표 8
prediction_unit(x0, y0, nPbW, nPbH){ Descriptor
...
modification_image_reference_type ae(v)
if(modification_image_reference_type==NONE_USE){
ref_0_modification_flag = false
ref_1_modification_flag = false
}
if(modification_image_reference_type==REF_0_USE){
ref_0_modification_flag = true
ref_1_modification_flag = false
}
if(modification_image_reference_type==REF_1_USE){
ref_0_modification_flag = false
ref_1_modification_flag = true
}
if(modification_image_reference_type==BOTH_USE){
ref_0_modification_flag = true
ref_1_modification_flag = true
}
...
본 발명의 응용 예로 슬라이스 헤더 또는 PPS등의 상위 레벨에서 기하 변환된 기하 변환 픽처 또는 상위 레벨에서 전송된 기하 변환 정보를 CU 및/또는 PU 레벨에서 보정하여 이용할 수도 있다. 표 9 및 표 10에서와 같이 CU, PU 레벨에서 신택스 요소로서 “modification_image_using_revision_flag” 와 “modification_revision_info”를 포함할 수 있다.
“modification_image_using_revision_flag”이 “1”일 경우 CU나 PU 레벨에서 보정할 정보가 있음을 의미할 수 있다. 이 경우, “modification_revision_info”를 추가적으로 시그널링할 수 있다.
“modification_image_using_revision_flag”이 “0”일 경우 CU나 PU 레벨에서 보정할 정보가 없음을 의미할 수 있다. 보정할 정보가 없으므로 “modification_revision_info”를 시그널링하지 않을 수 있다.
“modification_image_using_revision_flag” 와 “modification_revision_info”는 표 9 및 표 10의 일 예와 같이 신택스 요소로서 직접 시그널링될 수도 있고, 신택스 요소를 이용하지 않고 부호화기와 복호화기에서 미리 정의된 규칙에 따라 명시적 및/또는 암묵적으로 시그널링될 수도 있다.
표 9 및 표 10은 각각 CU 및 PU를 통해 시그널링하는 경우의 신택스 구조의 일 예이다.
표 9
coding_unit(x0, y0, log2CbSize){ Descriptor
...
modification_image_using_revision_flag ae(v)
if(modification_image_using_revision_flag){
modification_revision_info ae(v)
...
표 10
prediction_unit(x0, y0, nPbW, nPbH){ Descriptor
...
modification_image_using_revision_flag ae(v)
if(modification_image_using_revision_flag){
modification_revision_info ae(v)
...
상술한 실시예들에서, 방법들은 일련의 단계 또는 유닛으로서 순서도를 기초로 설명되고 있으나, 본 발명은 단계들의 순서에 한정되는 것은 아니며, 어떤 단계는 상술한 바와 다른 단계와 다른 순서로 또는 동시에 발생할 수 있다. 또한, 당해 기술 분야에서 통상의 지식을 가진 자라면 순서도에 나타난 단계들이 배타적이지 않고, 다른 단계가 포함되거나, 순서도의 하나 또는 그 이상의 단계가 본 발명의 범위에 영향을 미치지 않고 삭제될 수 있음을 이해할 수 있을 것이다.
상술한 실시예는 다양한 양태의 예시들을 포함한다. 다양한 양태들을 나타내기 위한 모든 가능한 조합을 기술할 수는 없지만, 해당 기술 분야의 통상의 지식을 가진 자는 다른 조합이 가능함을 인식할 수 있을 것이다. 따라서, 본 발명은 이하의 특허청구범위 내에 속하는 모든 다른 교체, 수정 및 변경을 포함한다고 할 것이다.
이상 설명된 본 발명에 따른 실시예들은 다양한 컴퓨터 구성요소를 통하여 수행될 수 있는 프로그램 명령어의 형태로 구현되어 컴퓨터 판독 가능한 기록 매체에 기록될 수 있다. 상기 컴퓨터 판독 가능한 기록 매체는 프로그램 명령어, 데이터 파일, 데이터 구조 등을 단독으로 또는 조합하여 포함할 수 있다. 상기 컴퓨터 판독 가능한 기록 매체에 기록되는 프로그램 명령어는 본 발명을 위하여 특별히 설계되고 구성된 것들이거나 컴퓨터 소프트웨어 분야의 당업자에게 공지되어 사용 가능한 것일 수도 있다. 컴퓨터 판독 가능한 기록 매체의 예에는, 하드 디스크, 플로피 디스크 및 자기 테이프와 같은 자기 매체, CD-ROM, DVD와 같은 광기록 매체, 플롭티컬 디스크(floptical disk)와 같은 자기-광 매체(magnetooptical media), 및 ROM, RAM, 플래시 메모리 등과 같은 프로그램 명령어를 저장하고 수행하도록 특별히 구성된 하드웨어 장치가 포함된다. 프로그램 명령어의 예에는, 컴파일러에 의해 만들어지는 것과 같은 기계어 코드뿐만 아니라 인터프리터 등을 사용해서 컴퓨터에 의해서 실행될 수 있는 고급 언어 코드도 포함된다. 상기 하드웨어 장치는 본 발명에 따른 처리를 수행하기 위해 하나 이상의 소프트웨어 모듈로서 작동하도록 구성될 수 있으며, 그 역도 마찬가지이다.
이상에서 본 발명이 구체적인 구성요소 등과 같은 특정 사항들과 한정된 실시예 및 도면에 의해 설명되었으나, 이는 본 발명의 보다 전반적인 이해를 돕기 위해서 제공된 것일 뿐, 본 발명이 상기 실시예들에 한정되는 것은 아니며, 본 발명이 속하는 기술분야에서 통상적인 지식을 가진 자라면 이러한 기재로부터 다양한 수정 및 변형을 꾀할 수 있다.
따라서, 본 발명의 사상은 상기 설명된 실시예에 국한되어 정해져서는 아니 되며, 후술하는 특허청구범위뿐만 아니라 이 특허청구범위와 균등하게 또는 등가적으로 변형된 모든 것들은 본 발명의 사상의 범주에 속한다고 할 것이다.
본 발명은 영상을 부호화/복호화하는데 이용될 수 있다.

Claims (20)

  1. 영상의 부호화 방법에 있어서,
    참조 픽처를 기하 변환하여 기하 변환 픽처를 생성하는 기하 변환 픽처 생성 단계; 및
    기하 변환 픽처를 참조한 화면 간 예측을 수행하여 현재 블록의 제1 예측 블록을 생성하는 제1 예측 블록 생성 단계를 포함하는 부호화 방법.
  2. 제1 항에 있어서,
    상기 참조 픽처를 참조한 화면 간 예측을 수행하여 상기 현재 블록의 제2 예측 블록을 생성하는 제2 예측 블록 생성 단계; 및
    상기 제1 예측 블록과 상기 제2 예측 블록 중에서, 상기 현재 블록의 움직임 보상에 이용될 최종 예측 블록을 선택하는 단계를 더 포함하는 부호화 방법.
  3. 제2 항에 있어서,
    상기 최종 예측 블록의 선택은 상기 제1 예측 블록과 상기 제2 예측 블록 중 상기 현재 블록과의 오차가 더 작은 블록을 선택함으로써 수행되는 부호화 방법.
  4. 제1 항에 있어서,
    기하 변환 정보를 생성하는 기하 변환 정보 생성 단계를 더 포함하고,
    상기 기하 변환 픽처 생성 단계는 상기 기하 변환 정보 및 상기 참조 픽처에 기초하여 수행되는 부호화 방법.
  5. 제4 항에 있어서,
    상기 기하 변환 정보를 부호화하는 기하 변환 정보 부호화 단계를 더 포함하는 부호화 방법.
  6. 제5 항에 있어서,
    상기 기하 변환 정보 부호화 단계는 상기 기하 변환 정보를 재구성하는 단계를 포함하고,
    상기 기하 변환 정보의 재구성은 상기 기하 변환 정보의 간소화 또는 상기 기하 변환 정보의 예측을 포함하는 부호화 방법.
  7. 제4 항에 있어서,
    상기 기하 변환 정보는 상기 현재 블록을 포함하는 현재 픽처와 참조 픽처 사이의 화소 정보의 변화에 기초하여 생성되는 부호화 방법.
  8. 제7 항에 있어서,
    상기 기하 변환 정보 생성 단계는,
    상기 현재 픽처와 상기 참조 픽처의 각각으로부터 추출된 특징점 사이의 매칭 정보에 기초하여 수행되는 부호화 방법.
  9. 제1 항에 있어서,
    상기 기하 변환 픽처 생성 단계는,
    상기 기하 변환 픽처 내의 한 지점에 대응되는 상기 참조 픽처 내의 한 지점을 식별하는 단계; 및
    상기 참조 픽처 내의 대응 지점의 화소 정보를 상기 기하 변환 픽처 내의 지점의 화소 정보로 설정하는 단계를 포함하는 부호화 방법.
  10. 제9 항에 있어서,
    상기 기하 변환 픽처 내의 지점에 대응되는 지점이 상기 참조 픽처 내에 존재하지 않는 경우,
    상기 대응되는 지점에 가장 인접한 상기 참조 픽처 내의 지점을 상기 대응되는 지점으로 식별하는 부호화 방법.
  11. 영상의 복호화 방법에 있어서,
    참조 픽처를 변환하여 기하 변환 픽처를 생성하는 기하 변환 픽처 생성 단계; 및
    기하 변환 픽처를 참조한 화면 간 예측을 수행하여 현재 블록의 예측 블록을 생성하는 예측 블록 생성 단계를 포함하는 복호화 방법.
  12. 제11 항에 있어서,
    움직임 보상 관련 정보를 수신하는 단계; 및
    상기 움직임 보상 관련 정보에 기초하여, 상기 현재 블록의 움직임 보상에 상기 기하 변환 픽처가 참조되는지 여부를 판단하는 판단 단계를 더 구비하고,
    상기 기하 변환 픽처 생성 단계 및 예측 블록 생성 단계는,
    상기 판단 단계에서, 상기 현재 블록의 움직임 보상에 상기 기하 변환 픽처가 참조된 것으로 판단된 경우 수행되는 복호화 방법.
  13. 제12 항에 있어서,
    상기 판단 단계는 상기 움직임 보상 관련 정보가 기하 변환 정보에 관한 정보를 포함하는지 여부 또는 상기 움직임 보상 관련 정보에 포함된 기하 변환 픽처 참조 여부에 관한 정보에 기초하여 수행되는 복호화 방법.
  14. 제12 항에 있어서,
    상기 판단 단계에서, 상기 현재 블록의 움직임 보상에 상기 기하 변환 픽처가 참조된 것으로 판단되는 경우,
    상기 움직임 보상 관련 정보에 포함된 기하 변환 정보에 관한 정보에 기초하여 상기 기하 변환 정보를 복원하는 단계를 더 포함하고,
    상기 기하 변환 픽처 생성 단계는 상기 참조 픽처와 상기 복원된 기하 변환 정보에 기초해서 수행되는 복호화 방법.
  15. 제14 항에 있어서,
    상기 기하 변환 정보에 관한 정보는 차분 기하 변환 정보 또는 스케일링 계수를 포함하고,
    상기 기하 변환 정보의 복원 단계는, 상기 차분 기하 변환 정보 또는 상기 스케일링 계수 중 적어도 하나와 기 저장된 기하 변환 정보에 기초하여 상기 기하 변환 정보를 복원하는 복호화 방법.
  16. 제15 항에 있어서,
    상기 움직임 보상 관련 정보는 상기 기 저장된 기하 변환 정보에 관한 정보를 포함하고,
    상기 기 저장된 기하 변환 정보에 관한 정보는 하나 이상의 기 저장된 기하 변환 정보 중 하나를 식별하는 정보인 복호화 방법.
  17. 제11 항에 있어서,
    상기 기하 변환 픽처 생성 단계는,
    상기 기하 변환 픽처 내의 한 지점에 대응되는 상기 참조 픽처 내의 한 지점을 식별하는 단계; 및
    상기 참조 픽처 내의 대응 지점의 화소 정보를 상기 기하 변환 픽처 내의 지점의 화소 정보로 설정하는 단계를 포함하는 복호화 방법.
  18. 제17 항에 있어서,
    상기 기하 변환 픽처 내의 지점에 대응되는 지점이 상기 참조 픽처 내에 존재하지 않는 경우,
    상기 대응되는 지점에 가장 인접한 상기 참조 픽처 내의 지점을 상기 대응되는 지점으로 식별하는 복호화 방법.
  19. 제17 항에 있어서,
    상기 참조 픽처 내의 대응 지점이 실수 좌표를 갖는 경우,
    상기 참조 픽처 내의 대응 지점의 주변으로부터 정수 좌표를 갖는 하나 이상의 지점을 식별하고,
    상기 정수 좌표를 갖는 하나 이상의 지점의 화소 정보에 기초하여 상기 참조 픽처 내의 대응 지점의 화소 정보를 유도하는 복호화 방법.
  20. 제11 항에 있어서,
    상기 기하 변환 픽처 생성 단계는,
    픽처, 슬라이스, 타일, 코딩 유닛(Coding Unit) 및 예측 유닛(Prediction Unit)으로부터 선택된 하나 이상의 단위로 수행되는 복호화 방법.
PCT/KR2016/013364 2015-11-20 2016-11-18 기하 변환 픽처를 이용한 영상의 부호화/복호화 방법 및 장치 WO2017086747A1 (ko)

Priority Applications (10)

Application Number Priority Date Filing Date Title
CN202210849172.0A CN115118969A (zh) 2015-11-20 2016-11-18 用于对图像进行编/解码的方法和存储比特流的方法
CN201680066455.0A CN108353165B (zh) 2015-11-20 2016-11-18 使用几何修改图片对图像进行编码/解码的方法和设备
CN202210849148.7A CN115118968A (zh) 2015-11-20 2016-11-18 用于对图像进行编/解码的方法
CN202210849109.7A CN115118966A (zh) 2015-11-20 2016-11-18 用于对图像进行编/解码的方法和存储比特流的方法
US15/776,292 US11412209B2 (en) 2015-11-20 2016-11-18 Method and device for encoding/decoding image using geometrically modified picture
CN202210849112.9A CN115118967A (zh) 2015-11-20 2016-11-18 用于对图像进行编/解码的方法和存储比特流的方法
CN202210849097.8A CN115118965A (zh) 2015-11-20 2016-11-18 用于对图像进行编/解码的方法和存储比特流的方法
US17/221,195 US11425370B2 (en) 2015-11-20 2021-04-02 Method and device for encoding/decoding image using geometrically modified picture
US17/820,539 US11758128B2 (en) 2015-11-20 2022-08-17 Method and device for encoding/decoding image using geometrically modified picture
US18/358,871 US20230370585A1 (en) 2015-11-20 2023-07-25 Method and device for encoding/decoding image using geometrically modified picture

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
KR20150163246 2015-11-20
KR10-2015-0163246 2015-11-20

Related Child Applications (2)

Application Number Title Priority Date Filing Date
US15/776,292 A-371-Of-International US11412209B2 (en) 2015-11-20 2016-11-18 Method and device for encoding/decoding image using geometrically modified picture
US17/221,195 Continuation US11425370B2 (en) 2015-11-20 2021-04-02 Method and device for encoding/decoding image using geometrically modified picture

Publications (1)

Publication Number Publication Date
WO2017086747A1 true WO2017086747A1 (ko) 2017-05-26

Family

ID=58719185

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/KR2016/013364 WO2017086747A1 (ko) 2015-11-20 2016-11-18 기하 변환 픽처를 이용한 영상의 부호화/복호화 방법 및 장치

Country Status (4)

Country Link
US (4) US11412209B2 (ko)
KR (1) KR20170059422A (ko)
CN (6) CN115118969A (ko)
WO (1) WO2017086747A1 (ko)

Families Citing this family (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6665611B2 (ja) * 2016-03-18 2020-03-13 富士通株式会社 符号化処理プログラム、符号化処理方法及び符号化処理装置
CN116634182A (zh) * 2016-10-04 2023-08-22 株式会社Kt 对图像进行解码和编码的方法、图像数据的发送方法
US10999602B2 (en) 2016-12-23 2021-05-04 Apple Inc. Sphere projected motion estimation/compensation and mode decision
US11259046B2 (en) 2017-02-15 2022-02-22 Apple Inc. Processing of equirectangular object data to compensate for distortion by spherical projections
US10924747B2 (en) 2017-02-27 2021-02-16 Apple Inc. Video coding techniques for multi-view video
US11093752B2 (en) 2017-06-02 2021-08-17 Apple Inc. Object tracking in multi-view video
US10754242B2 (en) * 2017-06-30 2020-08-25 Apple Inc. Adaptive resolution and projection format in multi-direction video
US20190005709A1 (en) * 2017-06-30 2019-01-03 Apple Inc. Techniques for Correction of Visual Artifacts in Multi-View Images
JP7151141B2 (ja) * 2018-04-12 2022-10-12 富士フイルムビジネスイノベーション株式会社 符号化装置、復号装置及びプログラム
WO2019231256A1 (ko) * 2018-05-30 2019-12-05 엘지전자 주식회사 어파인 움직임 예측을 이용하여 비디오 신호를 처리하는 방법 및 장치
US20210274217A1 (en) * 2018-06-29 2021-09-02 Electronics And Telecommunications Research Institute Image encoding/decoding method and apparatus for throughput enhancement, and recording medium storing bitstream
CN117692651A (zh) * 2018-10-08 2024-03-12 华为技术有限公司 用于译码块的几何划分块的帧间预测的装置及方法
KR20220113836A (ko) * 2018-12-31 2022-08-16 베이징 다지아 인터넷 인포메이션 테크놀로지 컴퍼니 리미티드 비디오 코딩에서 움직임 병합 모드의 시그널링을 위한 시스템 및 방법
CN110662078B (zh) * 2019-09-28 2021-10-15 杭州当虹科技股份有限公司 适用于avs2和hevc的4k/8k超高清编码帧间编码帧快速算法
JP7253573B2 (ja) * 2020-04-09 2023-04-06 センスタイム インターナショナル ピーティーイー.リミテッド マッチング方法、装置、電子機器及びコンピュータ可読記憶媒体

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000032456A (ja) * 1998-07-15 2000-01-28 Nippon Telegr & Teleph Corp <Ntt> スプライト符号化を用いた動画像符号化方法、復号方法、符号化器、復号器および動画像符号化プログラム、動画像復号プログラムを記録した記録媒体
JP2004364333A (ja) * 2004-08-06 2004-12-24 Sharp Corp 画像符号化装置
KR100832872B1 (ko) * 2006-12-28 2008-05-28 충북대학교 산학협력단 기하학적 변환을 이용한 영상 부호화 효율 향상 방법 및장치
KR20090067176A (ko) * 2006-10-30 2009-06-24 니폰덴신뎅와 가부시키가이샤 예측 참조 정보 생성방법, 동영상 부호화 및 복호방법, 그들의 장치 및 그들의 프로그램과 프로그램을 기록한 기억매체
JP2012080151A (ja) * 2009-02-09 2012-04-19 Toshiba Corp 幾何変換動き補償予測を用いる動画像符号化及び動画像復号化の方法と装置

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101233854B1 (ko) 2005-02-18 2013-02-15 톰슨 라이센싱 저해상도 픽처로부터 고해상도 픽처에 대한 코딩 정보를도출하기 위한 방법 및 이 방법을 구현하는 코딩 및 디코딩장치
CN101227601B (zh) 2007-01-15 2011-09-14 飞思卡尔半导体公司 在视频再现中进行几何变换的方法和设备
BRPI0818649A2 (pt) * 2007-10-16 2015-04-07 Thomson Licensing Métodos e aparelho para codificação e decodificação de vídeo em superblocos geometricamente particionados.
KR101768207B1 (ko) 2010-01-19 2017-08-16 삼성전자주식회사 축소된 예측 움직임 벡터의 후보들에 기초해 움직임 벡터를 부호화, 복호화하는 방법 및 장치
US8879632B2 (en) * 2010-02-18 2014-11-04 Qualcomm Incorporated Fixed point implementation for geometric motion partitioning
CN103039075B (zh) * 2010-05-21 2015-11-25 Jvc建伍株式会社 图像编码装置、图像编码方法、以及图像解码装置、图像解码方法
KR20140121315A (ko) 2013-04-04 2014-10-15 한국전자통신연구원 참조 픽처 리스트를 이용한 다 계층 기반의 영상 부호화/복호화 방법 및 그 장치
US9510001B2 (en) 2013-07-09 2016-11-29 Electronics And Telecommunications Research Institute Video decoding method and apparatus using the same

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000032456A (ja) * 1998-07-15 2000-01-28 Nippon Telegr & Teleph Corp <Ntt> スプライト符号化を用いた動画像符号化方法、復号方法、符号化器、復号器および動画像符号化プログラム、動画像復号プログラムを記録した記録媒体
JP2004364333A (ja) * 2004-08-06 2004-12-24 Sharp Corp 画像符号化装置
KR20090067176A (ko) * 2006-10-30 2009-06-24 니폰덴신뎅와 가부시키가이샤 예측 참조 정보 생성방법, 동영상 부호화 및 복호방법, 그들의 장치 및 그들의 프로그램과 프로그램을 기록한 기억매체
KR100832872B1 (ko) * 2006-12-28 2008-05-28 충북대학교 산학협력단 기하학적 변환을 이용한 영상 부호화 효율 향상 방법 및장치
JP2012080151A (ja) * 2009-02-09 2012-04-19 Toshiba Corp 幾何変換動き補償予測を用いる動画像符号化及び動画像復号化の方法と装置

Also Published As

Publication number Publication date
US20180332279A1 (en) 2018-11-15
CN108353165B (zh) 2022-08-09
CN108353165A (zh) 2018-07-31
US11412209B2 (en) 2022-08-09
CN115118966A (zh) 2022-09-27
CN115118969A (zh) 2022-09-27
US20210227210A1 (en) 2021-07-22
CN115118968A (zh) 2022-09-27
CN115118967A (zh) 2022-09-27
US20230370585A1 (en) 2023-11-16
CN115118965A (zh) 2022-09-27
US11425370B2 (en) 2022-08-23
US20220408083A1 (en) 2022-12-22
US11758128B2 (en) 2023-09-12
KR20170059422A (ko) 2017-05-30

Similar Documents

Publication Publication Date Title
WO2017086747A1 (ko) 기하 변환 픽처를 이용한 영상의 부호화/복호화 방법 및 장치
WO2018026118A1 (ko) 영상 부호화/복호화 방법
WO2017204532A1 (ko) 영상 부호화/복호화 방법 및 이를 위한 기록 매체
WO2018066867A1 (ko) 영상 부호화/복호화 방법, 장치 및 비트스트림을 저장한 기록 매체
WO2018030773A1 (ko) 영상 부호화/복호화 방법 및 장치
WO2018026166A1 (ko) 영상 부호화/복호화 방법, 장치 및 비트스트림을 저장한 기록 매체
WO2017086748A1 (ko) 기하 변환 영상을 이용하는 영상의 부호화/복호화 방법 및 장치
WO2018030599A1 (ko) 인트라 예측 모드 기반 영상 처리 방법 및 이를 위한 장치
WO2017222326A1 (ko) 비디오 신호 처리 방법 및 장치
WO2018012886A1 (ko) 영상 부호화/복호화 방법 및 이를 위한 기록 매체
WO2018097607A1 (ko) 영상 부호화/복호화 방법, 장치 및 비트스트림을 저장한 기록 매체
WO2019182385A1 (ko) 영상 부호화/복호화 방법, 장치 및 비트스트림을 저장한 기록 매체
WO2018070742A1 (ko) 영상 부호화/복호화 방법, 장치 및 비트스트림을 저장한 기록 매체
WO2017026681A1 (ko) 비디오 코딩 시스템에서 인터 예측 방법 및 장치
WO2019172705A1 (ko) 샘플 필터링을 이용한 영상 부호화/복호화 방법 및 장치
WO2018124843A1 (ko) 영상 부호화/복호화 방법, 장치 및 비트스트림을 저장한 기록 매체
WO2017018664A1 (ko) 인트라 예측 모드 기반 영상 처리 방법 및 이를 위한 장치
WO2018080122A1 (ko) 영상 부호화/복호화 방법, 장치 및 비트스트림을 저장한 기록 매체
WO2018097589A1 (ko) 영상 부호화/복호화 방법, 장치 및 비트스트림을 저장한 기록 매체
WO2017086746A1 (ko) 화면내 예측 모드 부호화/복호화 방법 및 장치
WO2017086738A1 (ko) 영상 부호화/복호화 방법 및 장치
WO2017069505A1 (ko) 영상의 부호화/복호화 방법 및 이를 위한 장치
WO2018066958A1 (ko) 비디오 신호 처리 방법 및 장치
WO2018056701A1 (ko) 비디오 신호 처리 방법 및 장치
WO2015133838A1 (ko) 폴리곤 유닛 기반 영상 인코딩/디코딩 방법 및 이를 위한 장치

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16866699

Country of ref document: EP

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: 15776292

Country of ref document: US

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16866699

Country of ref document: EP

Kind code of ref document: A1