KR101379189B1 - Video Coding Method and Apparatus by Using Filtering Motion Compensation Frame - Google Patents

Video Coding Method and Apparatus by Using Filtering Motion Compensation Frame Download PDF

Info

Publication number
KR101379189B1
KR101379189B1 KR1020090099339A KR20090099339A KR101379189B1 KR 101379189 B1 KR101379189 B1 KR 101379189B1 KR 1020090099339 A KR1020090099339 A KR 1020090099339A KR 20090099339 A KR20090099339 A KR 20090099339A KR 101379189 B1 KR101379189 B1 KR 101379189B1
Authority
KR
South Korea
Prior art keywords
frame
motion compensation
motion
block
filtering
Prior art date
Application number
KR1020090099339A
Other languages
Korean (ko)
Other versions
KR20110042602A (en
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 KR1020090099339A priority Critical patent/KR101379189B1/en
Priority to PCT/KR2010/007027 priority patent/WO2011049321A2/en
Publication of KR20110042602A publication Critical patent/KR20110042602A/en
Application granted granted Critical
Publication of KR101379189B1 publication Critical patent/KR101379189B1/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/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/60Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using transform coding
    • H04N19/61Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using transform coding in combination with 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/80Details of filtering operations specially adapted for video compression, e.g. for pixel interpolation
    • H04N19/82Details of filtering operations specially adapted for video compression, e.g. for pixel interpolation involving filtering within a prediction loop

Abstract

본 발명은 움직임 보상 프레임의 필터링을 이용한 영상 부호화/복호화 방법 및 장치에 관한 것이다.The present invention relates to a method and apparatus for image encoding / decoding using filtering of a motion compensation frame.

본 발명은 영상의 현재 프레임의 움직임을 추정하고 보상하여 생성되는 움직임 보상 프레임을 필터링하며, 현재 프레임과 필터링된 움직임 보상 프레임의 차인 잔여 프레임을 변환 및 양자화하고 부호화하는 것을 특징으로 하는 영상 부호화 방법을 제공한다.The present invention provides a video encoding method comprising filtering a motion compensation frame generated by estimating and compensating for a motion of a current frame of an image, and converting, quantizing, and encoding a residual frame that is a difference between the current frame and the filtered motion compensation frame. to provide.

본 발명에 의하면, 움직임 보상 프레임을 필터링함으로써 그 잔여 프레임에 잔존하는 시간적 중복성을 더욱 많이 제거할 수 있으므로 동영상의 압축 효율을 향상시킬 수 있다.According to the present invention, since the temporal redundancy remaining in the remaining frame can be removed by filtering the motion compensation frame, the compression efficiency of the video can be improved.

영상, 부호화, 복호화, 압축, 움직임 보상, 프레임, 필터링 Image, Encoding, Decoding, Compression, Motion Compensation, Frame, Filtering

Description

움직임 보상 프레임의 필터링을 이용한 영상 부호화/복호화 방법 및 장치{Video Coding Method and Apparatus by Using Filtering Motion Compensation Frame}Video Coding Method and Apparatus by Using Filtering Motion Compensation Frame

본 발명은 움직임 보상 프레임의 필터링을 이용한 영상 부호화/복호화 방법 및 장치에 관한 것이다. 더욱 상세하게는, 동영상 부호화와 복호화 과정에서 움직임 추정과 움직임 보상을 통해 생성되는 움직임 보상 프레임을 필터링하여 동영상의 압축 효율을 향상시키기 위한 방법 및 장치에 관한 것이다.The present invention relates to a method and apparatus for image encoding / decoding using filtering of a motion compensation frame. More particularly, the present invention relates to a method and apparatus for improving motion picture compression efficiency by filtering motion compensation frames generated through motion estimation and motion compensation in a moving picture encoding and decoding process.

동영상 데이터를 효율적으로 저장하거나 전송하기 위해서는 부호화하여 데이터를 압축할 필요가 있다. 동영상 데이터를 압축하는 기술로는 H.261, H.263, H.264, MPEG-2, MPEG-4 등이 있다. 이러한 동영상 데이터의 압축 기술에서는 동영상의 각 프레임 영상의 휘도 성분과 색차 성분이 움직임 추정과 움직임 보상을 통하여 시간적으로 예측되고, 예측 잔여는 변환 및 양자화, 엔트로피 부호화가 수행 되어 비트스트림 형태로 전송된다.In order to efficiently store or transmit moving image data, it is necessary to encode and compress the data. Techniques for compressing video data include H.261, H.263, H.264, MPEG-2, and MPEG-4. In the compression technique of moving picture data, luminance components and chrominance components of each frame image of the moving picture are temporally predicted through motion estimation and motion compensation, and prediction residuals are transformed, quantized, and entropy-encoded to be transmitted in bit stream form.

가장 최근의 동영상 압축 기술인 H.264/AVC는 MPEG(Moving Picture Experts Group)과 VCEG(Video Coding Experts Group)가 공동으로 개발한 기술로서, 매크로 블록은 16x16, 16x8, 8x16, 8x8, 8x4, 4x8, 4x4 크기를 가지는 더 작은 블록으로 분할되어 움직임 추정과 움직임 보상이 수행되며, 이때 움직임 추정과 움직임 보상을 위한 참조 프레임도 최대 16 개의 프레임이 이용될 수 있다. 또한, H.264/AVC에서는 1/4 화소 보간 방법을 채택함으로써, 기존의 동영상 압축 기술인 MPEG-4와 비교할 때 영상의 화질을 유지하면서 압축률을 향상시킬 수 있다.H.264 / AVC, the latest video compression technology, was developed jointly by the Moving Picture Experts Group (MPEG) and the Video Coding Experts Group (VCEG). Macroblocks are 16x16, 16x8, 8x16, 8x8, 8x4, 4x8, Motion estimation and motion compensation are performed by dividing into smaller blocks having a size of 4x4. In this case, up to 16 frames may also be used for the reference frame for motion estimation and motion compensation. In addition, by adopting the 1/4 pixel interpolation method in H.264 / AVC, it is possible to improve the compression ratio while maintaining the image quality when compared with MPEG-4, which is a conventional moving picture compression technique.

이와 같이 기존의 통상적인 동영상 압축 기술에서는 움직임 추정과 움직임 보상 등을 이용하여 영상 내의 시간적인 중복성을 제거함으로써 높은 압축률을 달성할 수 있지만, 움직임 추정과 움직임 보상을 통해 생성되는 움직임 보상 프레임에는 여전히 시간적 중복성이 많이 남게 되어, 변환 및 양자화되고 엔트로피 부호화되는 예측 잔여가 커지게 되고 그에 따라 많은 양의 잔여 데이터가 부호화되어야 하기 때문에 효율적인 부호화가 어려운 문제점이 있다.As described above, in the conventional moving picture compression technique, a high compression ratio can be achieved by eliminating temporal redundancy in an image by using motion estimation and motion compensation. However, in a motion compensation frame generated through motion estimation and motion compensation, There is a problem in that redundancy is much left, and prediction residuals that are transformed, quantized, and entropy-encoded become large, and thus a large amount of residual data must be coded.

전술한 문제점을 해결하기 위해 본 발명은, 동영상 부호화와 복호화 과정에서 움직임 추정과 움직임 보상을 통해 생성되는 움직임 보상 프레임을 필터링하고 그 잔여 프레임을 부호화함으로써 동영상의 압축 효율을 향상시키기는 데 주된 목적이 있다.In order to solve the above problems, the present invention is to improve the compression efficiency of a video by filtering a motion compensation frame generated through motion estimation and motion compensation and encoding the remaining frames during video encoding and decoding. have.

전술한 목적을 달성하기 위해 본 발명은, 영상을 부호화하는 방법에 있어서, 영상의 현재 프레임의 움직임을 추정하고 보상하여 생성되는 움직임 보상 프레임을 필터링하는 단계; 및 현재 프레임과 필터링된 움직임 보상 프레임의 차인 잔여 프레임을 변환 및 양자화하고 부호화하는 단계를 포함하는 것을 특징으로 하는 영상 부호화 방법을 제공한다.In order to achieve the above object, the present invention provides a method of encoding an image, the method comprising: filtering a motion compensation frame generated by estimating and compensating for a motion of a current frame of an image; And transforming, quantizing, and encoding the remaining frame that is a difference between the current frame and the filtered motion compensation frame.

또한, 본 발명의 다른 목적에 의하면, 영상을 부호화하는 장치에 있어서, 영상의 현재 프레임의 움직임을 추정하고 보상하여 생성되는 움직임 보상 프레임을 필터링하는 예측기; 현재 프레임과 필터링된 움직임 보상 프레임을 감산하여 잔여 프레임을 생성하는 감산기; 잔여 프레임을 변환 및 양자화하는 변환기 및 양자화기; 및 변환 및 양자화된 잔여 프레임을 부호화하는 부호화기를 포함하는 것을 특징으로 하는 영상 부호화 장치.According to another object of the present invention, there is provided an apparatus for encoding an image, comprising: a predictor for filtering a motion compensation frame generated by estimating and compensating for a motion of a current frame of an image; A subtractor for generating a residual frame by subtracting the current frame and the filtered motion compensation frame; A converter and quantizer for transforming and quantizing residual frames; And an encoder for encoding the transformed and quantized residual frames.

또한, 본 발명의 또 다른 목적에 의하면, 영상을 복호화하는 방법에 있어서, 비트스트림으로부터 추출되는 움직임 정보 데이터를 복호화하여 복원되는 움직임 정보에 의해 식별되는 움직임 벡터 및 참조 프레임 인덱스를 이용하여 현재 프레임의 움직임을 보상하여 움직임 보상 프레임을 생성하고 움직임 보상 프레임을 필터링하는 단계; 및 비트스트림으로부터 추출되고 복호화되어 복원되는 잔여 프레임과 필터링된 움직임 보상 프레임을 가산하여 현재 프레임을 복원하는 단계를 포함하는 것을 특징으로 하는 영상 복호화 방법을 제공한다.According to still another object of the present invention, in a method of decoding an image, the current frame is obtained by using a motion vector and a reference frame index identified by the motion information reconstructed by decoding motion information data extracted from the bitstream. Compensating for motion to generate a motion compensation frame and filtering the motion compensation frame; And reconstructing the current frame by adding the filtered motion compensation frame and the residual frame extracted and decoded from the bitstream to recover the current frame.

또한, 본 발명의 또 다른 목적에 의하면, 영상을 복호화하는 장치에 있어서, 비트스트림으로부터 추출되는 움직임 정보 데이터와 영상 부호화 데이터를 복호화하여 움직임 정보와 변환 및 양자화된 잔여 프레임을 복원하는 복호화기; 복원되는 변환 및 양자화된 잔여 프레임을 역 양자화 및 역 변환하여 잔여 프레임을 복원하 는 역 양자화기 및 역 변환기; 복원되는 움직임 정보에 의해 식별되는 움직임 벡터 및 참조 프레임 인덱스를 이용하여 현재 프레임의 움직임을 보상하여 움직임 보상 프레임을 생성하고 움직임 보상 프레임을 필터링하는 예측기; 및 복원되는 잔여 프레임과 필터링되는 움직임 보상 프레임을 가산하여 현재 프레임을 복원하는 가산기를 포함하는 것을 특징으로 하는 영상 복호화 장치를 제공한다.According to still another aspect of the present invention, there is provided an apparatus for decoding an image, comprising: a decoder for decoding motion information data and image encoded data extracted from a bitstream and restoring motion information, transformed and quantized residual frames; An inverse quantizer and an inverse converter that inverse quantizes and inverse transforms the reconstructed transform and quantized residual frames to recover the residual frames; A predictor for generating a motion compensation frame by compensating for the motion of the current frame by using the motion vector identified by the reconstructed motion information and the reference frame index, and filtering the motion compensation frame; And an adder for reconstructing the current frame by adding the reconstructed residual frame and the filtered motion compensation frame.

또한, 본 발명의 또 다른 목적에 의하면, 인터 예측 방법에 있어서, 영상의 현재 프레임 내에서 블록 모드가 인터 모드인 블록에 대해 움직임 벡터와 참조 프레임 색인을 결정하는 단계; 결정되는 움직임 벡터와 참조 프레임 색인을 이용하여 움직임 보상 블록을 생성하고 움직임 보상 블록을 포함하는 움직임 보상 프레임을 생성하는 단계; 및 움직임 보상 프레임을 필터링하는 단계를 포함하는 것을 특징으로 하는 인터 예측 방법을 제공한다.According to still another object of the present invention, there is provided an inter prediction method comprising: determining a motion vector and a reference frame index for a block in which a block mode is an inter mode within a current frame of an image; Generating a motion compensation block using the determined motion vector and the reference frame index and generating a motion compensation frame including the motion compensation block; And filtering the motion compensation frame.

또한, 본 발명의 또 다른 목적에 의하면, 인터 예측 장치에 있어서, 영상의 현재 프레임 내에서 블록 모드가 인터 모드인 블록에 대해 움직임 벡터와 참조 프레임 색인을 결정하는 움직임 추정기; 결정되는 움직임 벡터와 참조 프레임 색인을 이용하여 움직임 보상 블록을 생성하고 움직임 보상 블록을 포함하는 움직임 보상 프레임을 생성하는 움직임 보상기; 및 움직임 보상 프레임을 필터링하는 움직임 보상 필터를 포함하는 것을 특징으로 하는 인터 예측 장치를 제공한다.According to still another object of the present invention, there is provided an inter prediction apparatus comprising: a motion estimator for determining a motion vector and a reference frame index for a block in which a block mode is an inter mode within a current frame of an image; A motion compensator for generating a motion compensation block using the determined motion vector and the reference frame index and generating a motion compensation frame including the motion compensation block; And a motion compensation filter for filtering the motion compensation frame.

또한, 본 발명의 또 다른 목적에 의하면, 인터 예측 방법에 있어서, 비트스트림으로부터 추출되고 복호화되어 복원되는 움직임 정보에 의해 식별되는 움직임 벡터 및 참조 프레임 인덱스를 이용하여 움직임 보상 블록을 생성하고 움직임 보상 블록을 포함하는 움직임 보상 프레임을 생성하는 단계; 및 움직임 보상 프레임을 필터링하는 단계를 포함하는 것을 특징으로 하는 인터 예측 방법을 제공한다.In addition, according to another object of the present invention, in the inter prediction method, a motion compensation block is generated by using a motion vector and a reference frame index identified by motion information extracted from the bitstream, and decoded from the bitstream. Generating a motion compensation frame comprising a; And filtering the motion compensation frame.

또한, 본 발명의 또 다른 목적에 의하면, 인터 예측 장치에 있어서, 비트스트림으로부터 추출되고 복호화되어 복원되는 움직임 정보에 의해 식별되는 움직임 벡터 및 참조 프레임 인덱스를 이용하여 움직임 보상 블록을 생성하고 움직임 보상 블록을 포함하는 움직임 보상 프레임을 생성하는 움직임 보상기; 및 움직임 보상 프레임을 필터링하는 움직임 보상 필터를 포함하는 것을 특징으로 하는 인터 예측 장치를 제공한다.According to still another object of the present invention, in an inter prediction apparatus, a motion compensation block is generated by using a motion vector and a reference frame index identified by motion information extracted from a bitstream, decoded, and recovered. A motion compensator for generating a motion compensation frame comprising a; And a motion compensation filter for filtering the motion compensation frame.

이상에서 설명한 바와 같이 본 발명에 의하면, 움직임 보상 프레임을 필터링함으로써 그 잔여 프레임에 잔존하는 시간적 중복성을 더욱 많이 제거할 수 있으므로 동영상의 압축 효율을 향상시킬 수 있다.As described above, according to the present invention, since the temporal redundancy remaining in the remaining frames can be further removed by filtering the motion compensation frame, the compression efficiency of the video can be improved.

이하, 본 발명의 일부 실시예들을 예시적인 도면을 통해 상세하게 설명한다. 각 도면의 구성요소들에 참조부호를 부가함에 있어서, 동일한 구성요소들에 대해서는 비록 다른 도면상에 표시되더라도 가능한 한 동일한 부호를 가지도록 하고 있음에 유의해야 한다. 또한, 본 발명을 설명함에 있어, 관련된 공지 구성 또는 기능에 대한 구체적인 설명이 본 발명의 요지를 흐릴 수 있다고 판단되는 경우에는 그 상세한 설명은 생략한다.Hereinafter, some embodiments of the present invention will be described in detail with reference to exemplary drawings. It should be noted that, in adding reference numerals to the constituent elements of the drawings, the same constituent elements are denoted by the same reference symbols as possible even if they are shown in different drawings. In the following description of the present invention, a detailed description of known functions and configurations incorporated herein will be omitted when it may make the subject matter of the present invention rather unclear.

또한, 본 발명의 구성 요소를 설명하는 데 있어서, 제 1, 제 2, A, B, (a), (b) 등의 용어를 사용할 수 있다. 이러한 용어는 그 구성 요소를 다른 구성 요소와 구별하기 위한 것일 뿐, 그 용어에 의해 해당 구성 요소의 본질이나 차례 또는 순서 등이 한정되지 않는다. 어떤 구성 요소가 다른 구성요소에 "연결", "결합" 또는 "접속"된다고 기재된 경우, 그 구성 요소는 그 다른 구성요소에 직접적으로 연결되거나 접속될 수 있지만, 각 구성 요소 사이에 또 다른 구성 요소가 "연결", "결합" 또는 "접속"될 수도 있다고 이해되어야 할 것이다.In describing the components of the present invention, terms such as first, second, A, B, (a), and (b) may be used. These terms are intended to distinguish the constituent elements from other constituent elements, and the terms do not limit the nature, order or order of the constituent elements. When a component is described as being "connected", "coupled", or "connected" to another component, the component may be directly connected or connected to the other component, Quot; may be "connected," "coupled," or "connected. &Quot;

이하에서 후술할 영상 부호화 장치(Video Encoding Apparatus), 영상 복호화 장치(Video Decoding Apparatus)는 개인용 컴퓨터(PC: Personal Computer), 노트북 컴퓨터, 개인 휴대 단말기(PDA: Personal Digital Assistant), 휴대형 멀티미디어 플레이어(PMP: Portable Multimedia Player), 플레이스테이션 포터블(PSP: PlayStation Portable), 이동통신 단말기(Mobile Communication Terminal) 등과 같은 사용자 단말기이거나 응용 서버와 서비스 서버 등 서버 단말기일 수 있으며, 각종 기기 또는 유무선 통신망과 통신을 수행하기 위한 통신 모뎀 등의 통신 장치, 영상을 부호화하거나 복호화하기 위한 각종 프로그램과 데이터를 저장하기 위한 메모리, 프로그램을 실행하여 연산 및 제어하기 위한 마이크로프로세서 등을 구비하는 다양한 장치를 의미한다.A video encoding apparatus (Video Encoding Apparatus), a video decoding apparatus (Video Decoding Apparatus) to be described below is a personal computer (PC), notebook computer, personal digital assistant (PDA), portable multimedia player (PMP) : User terminal such as Portable Multimedia Player (PSP), PlayStation Portable (PSP: PlayStation Portable), Mobile Communication Terminal (Mobile Communication Terminal), or a server terminal such as an application server or a service server, and communicates with various devices or wired / wireless communication networks. The present invention refers to various devices including a communication device such as a communication modem, a memory for storing various programs and data for encoding or decoding an image, a microprocessor for executing and operating a program, and the like.

또한, 영상 부호화 장치에 의해 비트스트림으로 부호화된 영상은 실시간 또는 비실시간으로 인터넷, 근거리 무선 통신망, 무선랜망, 와이브로망, 이동통신망 등의 유무선 통신망 등을 통하거나 케이블, 범용 직렬 버스(USB: Universal Serial Bus) 등과 같은 다양한 통신 인터페이스를 통해 영상 복호화 장치로 전송되어 영상 복호화 장치에서 복호화되어 영상으로 복원되고 재생될 수 있다.In addition, the image encoded in the bitstream by the video encoding apparatus is real-time or non-real-time through the wired or wireless communication network, such as the Internet, local area wireless communication network, wireless LAN network, WiBro network, mobile communication network, or the like, or a cable, universal serial bus (USB: Universal) It may be transmitted to an image decoding apparatus through various communication interfaces such as a serial bus, and may be decoded by the image decoding apparatus to restore and reproduce the image.

통상적으로 동영상은 일련의 픽처(Picture)로 구성되어 있으며, 각 픽처들은 블록(Block)과 같은 소정의 영역으로 분할된다. 영상의 영역이 블록으로 분할되는 경우에는 분할된 블록은 부호화 방법에 따라 크게 인트라 블록(Intra Block), 인터 블록(Inter Block)으로 분류된다. 인트라 블록은 인트라 예측 부호화(Intra Prediction Coding) 방식을 사용하여 부호화되는 블록을 뜻하는데, 인트라 예측 부호화란 현재 부호화를 수행하는 현재 픽처 내에서 이전에 부호화되고 복호화되어 복원된 블록들의 화소를 이용하여 현재 블록의 화소를 예측함으로써 예측 블록을 생성하고 현재 블록의 화소와의 차분값을 부호화하는 방식이다. 인터 블록은 인터 예측 부호화(Inter Prediction Coding)를 사용하여 부호화되는 블록을 뜻하는데, 인터 예측 부호화란 하나 이상의 과거 픽처 또는 미래 픽처를 참조하여 현재 픽처 내의 현재 블록을 예측함으로써 예측 블록을 생성하고 현재 블록과의 차분값을 부호화하는 방식이다. 여기서, 현재 픽처를 부호화하거나 복호화하는데 참조되는 프레임를 참조 프레임(Reference frame)라고 한다.Usually, a moving picture is composed of a series of pictures, and each picture is divided into a predetermined area such as a block. In the case where an image area is divided into blocks, the divided blocks are classified into an intra block and an inter block according to a coding method. The intra-block refers to a block that is coded using Intra Prediction Coding (P-Coding) scheme. The intra-prediction coding is performed by using the pixels of previously decoded and decoded blocks in the current picture, A prediction block is generated by predicting the pixels of the block and a difference value between the pixel of the current block and the pixel of the current block is encoded. Inter-block refers to a block that is coded using Inter Prediction Coding. Inter-prediction coding refers to one or more past pictures or a future picture to generate a prediction block by predicting a current block in the current picture, And the difference value is encoded. Here, a frame referred to for encoding or decoding the current picture is referred to as a reference frame.

도 1은 본 발명의 일 실시예에 따른 영상 부호화 장치를 간략하게 나타낸 블록 구성도이다.1 is a block diagram schematically illustrating an image encoding apparatus according to an embodiment of the present invention.

본 발명의 일 실시예에 따른 영상 부호화 장치(100)는 영상을 부호화하는 장치로서, 예측기(Predictor, 110), 감산기(Subtracter, 120), 변환기 및 양자화기(Transformer and Quantizer, 130), 부호화기(Encoder, 140), 역 양자화기 및 역 변환기(Inverse Quantizer and Inverse Transformer, 150), 가산기(Adder, 160), 디블로킹 필터(170) 및 메모리(Memory, 180)를 포함하여 구성될 수 있다.The image encoding apparatus 100 according to an embodiment of the present invention is an apparatus for encoding an image, and includes a predictor 110, a subtractor 120, a transformer and quantizer 130, and an encoder. The encoder may include an encoder 140, an inverse quantizer and an inverse transformer 150, an adder 160, a deblocking filter 170, and a memory 180.

예측기(110)는 입력 영상에서 부호화하고자 하는 프레임(이하 '현재 프레임(Current Frame)'이라 칭함)의 움직임을 추정하고 보상하여 생성되는 움직임 보상 프레임을 필터링한다. 즉, 예측기(110)는 이미 부호화되고 다시 복호화되어 복원된 후 메모리(180)에 저장된 참조 프레임에서 인터 예측 모드(Inter Prediction Mode)에 따라 현재 프레임 내의 각 블록의 움직임을 추정하여 움직임 벡터(Motion Vector)를 생성하고, 움직임 벡터를 이용하여 각 블록의 움직임을 보상함으로써 현재 프레임의 움직임이 보상된 움직임 보상 프레임(Motion Compensation Frame)을 생성하고 생성되는 움직임 보상 프레임을 필터링한다.The predictor 110 filters motion compensation frames generated by estimating and compensating a motion of a frame to be encoded (hereinafter, referred to as 'current frame') in the input image. That is, the predictor 110 estimates the motion of each block in the current frame according to an inter prediction mode in a reference frame stored in the memory 180 after being encoded, decoded, And generates a motion compensation frame compensated for the motion of the current frame by compensating the motion of each block using the motion vector, and filters the generated motion compensation frame.

이를 위해, 예측기(110)는 현재 프레임 내에서 블록 모드가 인터 모드인 블록에 대해 움직임 벡터(Motion Vector)와 참조 프레임 색인(Reference Frame Index)을 결정하고, 결정되는 움직임 벡터와 참조 프레임 색인을 이용하여 움직임 보상 블록을 생성하며, 생성되는 움직임 보상 블록을 포함하는 움직임 보상 프레임을 생성하여 움직임 보상 프레임을 필터링할 수 있다.For this purpose, the predictor 110 determines a motion vector and a reference frame index for a block whose block mode is the inter mode in the current frame, and uses the determined motion vector and the reference frame index A motion compensation block is generated, and a motion compensation frame including the generated motion compensation block is generated to filter the motion compensation frame.

여기서, 예측기(110)는 움직임 보상 프레임 내의 블록의 화소의 특성에 따라 다른 필터를 이용하여 움직임 보상 프레임을 필터링할 수 있으며, 움직임 보상 프레임을 위너 필터(Winner Filter) 또는 디블로킹 필터(Deblocking Filter) 등과 같은 다양한 필터를 이용하여 필터링할 수도 있다.Here, the predictor 110 may filter a motion compensation frame using another filter according to the characteristics of a block in a motion compensation frame, and may use a Winner Filter or a Deblocking Filter as a motion compensation frame, And the like may be used for filtering.

또한, 예측기(110)는 현재 프레임과 필터링된 움직임 보상 프레임 간의 제곱 에러(Square Error)를 최소화하는 필터 계수(Filter Coefficient)를 가지는 필터를 이용하여 움직임 보상 프레임을 필터링할 수 있다.Also, the predictor 110 may filter the motion compensation frame using a filter having a filter coefficient that minimizes a square error between the current frame and the filtered motion compensation frame.

감산기(120)는 현재 프레임과 필터링된 움직임 보상 프레임을 감산하여 잔여 프레임(Residual Frame)을 생성한다. 여기서, 잔여 프레임이란 현재 프레임과 필터링된 움직임 보상 프레임이 감산되어 생성되는 잔여를 포함하는 프레임으로서 현재 프레임의 화소와 필터링된 움직임 보상 프레임의 화소의 차이인 잔여 신호를 포함하는 프레임을 말한다.The subtractor 120 subtracts the current frame and the filtered motion compensation frame to generate a residual frame. Herein, the residual frame refers to a frame including a residue that is generated by subtracting a current frame from a filtered motion compensation frame, and includes a residual signal that is a difference between a pixel of the current frame and a pixel of the filtered motion compensation frame.

변환기 및 양자화기(130)는 잔여 프레임을 변환 및 양자화한다. 즉, 변환기 및 양자화기는(130)는 감산기(120)에 의해 생성된 잔여 프레임의 잔여 신호(Residual Signal)를 주파수 영역으로 변환하여 변환 계수(Transform Coefficient)를 가지는 변환된 잔여 프레임을 생성하고 변환된 잔여 프레임의 변환 계수를 양자화하여 변환 및 양자화된 잔여 프레임을 생성한다. 이때, 사용되는 변환 방식으로는 하다마드 변환(Hadamard Transform), 이산 코사인 변환 기반의 정수 변환(Discrete Cosine Transform Based Integer Transform) 등과 같은 공간 영역의 화상 신호를 주파수 영역으로 변환하는 기법이 이용되고, 양자화 방식으로는 데드존 균일 경계 양자화(DZUTQ: Dead Zone Uniform Threshold Quantization, 이하 'DZUTQ'라 칭함) 또는 양자화 가중치 매트릭스(Quantization Weighted Matrix) 등과 같은 다양한 양자화 기법이 이용될 수 있다.The transformer and quantizer 130 transforms and quantizes the residual frames. That is, the transformer and the quantizer 130 convert the residual signal of the residual frame generated by the subtractor 120 into the frequency domain to generate a transformed residual frame having a transform coefficient, And quantizes the transform coefficients of the remaining frames to generate transformed and quantized residual frames. In this case, as a conversion method used, a technique of converting an image signal of a spatial domain into a frequency domain such as a Hadamard Transform and a Discrete Cosine Transform Based Integer Transform is used, Various quantization techniques such as Dead Zone Uniform Threshold Quantization (DZUTQ) or a Quantization Weighted Matrix may be used.

부호화기(140)는 변환 및 양자화된 잔여 프레임을 부호화한다. 즉, 변환기 및 양자화기(130)에 의해 변환되고 양자화된 잔여 프레임의 양자화된 변환 계수를 부호화하여 영상 부호화 데이터를 생성한다. 생성된 영상 부호화 데이터는 비트스 트림에 포함된다. 이러한 부호화 기술로서는 엔트로피 부호화(Entropy Encoding) 기술이 이용될 수 있으나, 반드시 이에 한정하지 않고 다른 다양한 부호화 기술이 이용될 수 있을 것이다.The encoder 140 encodes the transformed and quantized residual frames. That is, the quantized transform coefficient of the residual frame converted and quantized by the transformer and the quantizer 130 is encoded to generate image encoded data. The generated image coded data is included in the bit stream. As such an encoding technique, entropy encoding technology may be used, but various other encoding techniques may be used without being limited thereto.

또한, 부호화기(140)는 움직임 보상 프레임을 필터링하는 데 이용한 필터의 필터 계수를 나타내는 필터 계수 정보를 부호화하여 필터 계수 데이터를 생성할 수 있다. 생성된 필터 계수 데이터는 비트스트림에 포함된다.Also, the encoder 140 may generate filter coefficient data by encoding the filter coefficient information indicating the filter coefficient of the filter used for filtering the motion compensation frame. The generated filter coefficient data is included in the bitstream.

또한, 부호화기(140)는 현재 프레임 내의 각 블록에 대한 블록 모드를 나타내는 블록 모드 정보를 부호화하여 블록 모드 데이터를 생성할 수 있으며, 생성된 블록 모드 데이터는 비트스트림에 포함된다.Also, the encoder 140 may generate block mode data by encoding block mode information indicating a block mode for each block in the current frame, and the generated block mode data is included in the bitstream.

또한, 부호화기(140)는 현재 프레임 내에서 블록 모드가 인터 모드인 블록에 대해 결정되는 움직임 벡터와 참조 프레임 색인을 나타내는 움직임 정보를 부호화하여 움직임 정보 데이터를 생성할 수 있으며, 생성된 움직임 정보 데이터는 비트스트림에 포함된다.In addition, the encoder 140 may generate motion information data by encoding a motion vector determined for a block in which a block mode is an inter mode in a current frame and motion information indicating a reference frame index, and the generated motion information data is And is included in the bitstream.

한편, 변환기 및 양자화기(130)의 기능은 부호화기(140)에 통합되어 구현될 수도 있다. 즉, 하나의 부호화기로 구현되는 경우, 부호화기는 잔여 프레임을 부호화하여 부호화 데이터를 생성한다.Meanwhile, the functions of the transformer and the quantizer 130 may be integrated into the encoder 140. FIG. That is, when the encoder is implemented by one encoder, the encoder encodes the residual frame to generate encoded data.

역 양자화기 및 역 변환기(150)는 변환 및 양자화된 잔여 프레임을 역 양자화 및 역 변환하여 잔여 프레임을 복원한다. 즉, 역 양자화기 및 역 변환기(150)는 변환기 및 양자화기(130)로부터 전달되는 변환 및 양자화된 잔여 프레임을 역 양자화하여 변환 계수를 가지는 잔여 프레임을 복원하고, 변환 계수를 가지는 잔여 프 레임을 다시 역 변환하여 잔여 신호를 가지는 잔여 프레임을 복원한다. 이때, 역 양자화기 및 역 변환기(150)는 변환기 및 양자화기(130)에서 변환 및 양자화한 방식을 역으로 수행함으로써 잔여 프레임을 복원할 수 있다.Inverse quantizer and inverse transformer 150 inverse quantizes and inverse transforms the transformed and quantized residual frame to recover the residual frame. That is, the inverse quantizer and the inverse transformer 150 inverse quantizes the transformed and quantized residual frames transmitted from the transformer and the quantizer 130 to restore the residual frame having the transform coefficients, and the residual frame having the transform coefficients. Inverse conversion is performed again to restore the residual frame with the residual signal. In this case, the inverse quantizer and the inverse transformer 150 may restore the remaining frame by performing the transformed and quantized method in the inverse of the transformer and the quantizer 130.

가산기(160)는 복원되는 잔여 프레임과 필터링된 움직임 보상 프레임을 가산하여 현재 프레임을 복원한다.The adder 160 adds the residual frame to be restored and the filtered motion compensation frame to reconstruct the current frame.

디블로킹 필터(170)는 복원되는 현재 프레임을 디블로킹 필터링하며, 메모리(180)는 디블로킹 필터링된 현재 프레임을 저장한다. 여기서, 디블로킹 필터링이란 영상을 블록 단위로 부호화하면서 발생하는 블록 왜곡을 감소시키는 작업을 말하며, 블록 경계와 매크로블록 경계에 디블로킹 필터를 적용하거나 매크로블록 경계에만 디블로킹 필터를 적용하거나 디블로킹 필터를 사용하지 않는 방법 중 하나를 선택적으로 사용할 수 있다.The deblocking filter 170 deblock filters the current frame to be restored, and the memory 180 stores the deblocking filtered current frame. Here, deblocking filtering refers to a task of reducing block distortion caused by coding an image block by block. The deblocking filter may be applied to a block boundary or a macro block boundary, a deblocking filter may be applied to a macro block boundary, Can be selectively used.

도 1에서는 도시하지 않았지만, 전술한 본 발명의 일 실시예에 따른 영상 부호화 장치(100)는 예측기(110) 내에 인트라 예측(Intra Prediction)을 위한 인트라 예측기 등을 추가로 포함할 수 있다. 이 경우, 감산기(120)는 현재 프레임과 인트라 예측기에 의해 생성되는 예측 프레임을 감산하여 잔여 프레임을 생성할 수 있으며, 변환기 및 양자화기(130) 및 역 양자화기 및 역 변환기(150)는 잔여 프레임에 대한 변환 및 양자화와 변환 및 양자화된 잔여 프레임에 대한 역 변환 및 역 양자화을 위한 연산을 추가로 수행할 수도 있다. 또한, 부호화기(130)는 변환 및 양자화된 잔여 프레임을 부호화하여 영상 부호화 데이터를 생성할 수 있으며, 이러한 데이터는 비트스트림에 포함된다.Although not shown in FIG. 1, the image encoding apparatus 100 according to an embodiment of the present invention may further include an intra predictor for Intra prediction in the predictor 110. FIG. In this case, the subtractor 120 may generate a residual frame by subtracting the current frame and the prediction frame generated by the intra predictor, and the transformer and quantizer 130 and the inverse quantizer and the inverse transformer 150 are residual frames. Calculation may be further performed for transform and quantization for and inverse transform and inverse quantization for the transformed and quantized residual frame. In addition, the encoder 130 may generate the image encoded data by encoding the transformed and quantized residual frame, which is included in the bitstream.

따라서, 본 발명의 일 실시예에서는 현재 프레임과 필터링된 움직임 보상 프레임의 차이인 잔여 프레임만 변환 및 양자화되고 부호화되어 인터 예측 부호화에 따른 영상 부호화 데이터가 비트스트림에 포함되는 것으로 설명하지만, 실제로 영상 부호화 장치(100)는 인트라 예측 부호화되는 영상 부호화 데이터를 추가로 생성할 수 있으며, 비트스트림에는 인터 예측 부호화에 의해 생성되는 영상 부호하 데이터뿐만 아니라 인트라 예측 부호화에 의해 생성되는 영상 부호화 데이터와 그 영상 부호화 데이터를 인트라 예측 복호화기 위한 정보 또는 그 부호화 데이터가 추가로 포함될 수 있음을 인식해야 할 것이다.Therefore, in the exemplary embodiment of the present invention, only the remaining frame, which is a difference between the current frame and the filtered motion compensation frame, is transformed, quantized, and encoded, so that the image encoded data according to inter prediction encoding is included in the bitstream. The apparatus 100 may further generate image coded data to be intra predictively coded, and in the bitstream, image coded data generated by intra predictive coding as well as image coded data generated by inter predictive coding and the image coded data. It will be appreciated that information for intra prediction decoding the data or its encoded data may be further included.

도 2는 본 발명의 일 실시예에 따른 영상 부호화를 위한 인터 예측 장치를 간략하게 나타낸 블록 구성도이다.2 is a block diagram schematically illustrating an inter prediction apparatus for image encoding according to an embodiment of the present invention.

본 발명의 일 실시예에 따른 영상 부호화를 위한 인터 예측 장치는 도 1을 통해 전술한 본 발명의 일 실시예에 따른 영상 부호화 장치(100)에서는 예측기(110)로 구현될 수 있으므로, 이하에서는 설명의 편의를 위해, 예측기(110)라 칭한다.The inter prediction apparatus for image coding according to an embodiment of the present invention can be implemented by the predictor 110 in the image coding apparatus 100 according to an embodiment of the present invention described above with reference to FIG. It is referred to as a predictor 110 for convenience.

예측기(110)는 움직임 추정기(Motion Estimator, 210), 움직임 보상기(Motion Compensator, 220) 및 움직임 보상 필터(Motion Compensation Filter, 230)를 포함하여 구성될 수 있다. 또한, 예측기(110)는 인트라 예측기를 추가로 포함할 수 있지만 별도로 도시하지는 않았다.The predictor 110 may include a motion estimator 210, a motion compensator 220, and a motion compensation filter 230. In addition, the predictor 110 may further include an intra predictor, but is not separately shown.

움직임 추정기(210)는 현재 프레임 내에서 블록 모드가 인터 모드인 블록에 대해 움직임 벡터(Motion Vector)와 참조 프레임 색인(Reference Frame Index)을 결정한다. 즉, 움직임 추정기(210)는 현재 프레임 내의 각 블록들 중 블록 모드가 인터 모드인 블록들에 대한 움직임을 추정하여 움직임 벡터와 참조 프레임 색인을 결정한다. 여기서, 현재 프레임 내의 각 블록들에 대한 블록 모드는 움직임 추정기(210)가 결정할 수도 있으나, 예측기(110) 또는 영상 부호화 장치(100) 내에 추가적으로 구비되는 모드 결정기(Mode Determiner, 미도시)가 결정할 수도 있다.The motion estimator 210 determines a motion vector and a reference frame index for a block in which the block mode is inter mode in the current frame. That is, the motion estimator 210 estimates the motion of the blocks in which the block mode is the inter mode among the blocks in the current frame to determine the motion vector and the reference frame index. Here, the block mode for each block in the current frame may be determined by the motion estimator 210, but may be determined by a mode determiner (not shown) additionally provided in the predictor 110 or the image encoding apparatus 100 have.

이를 위해, 움직임 추정기(210)는 현재 프레임 내에서 블록 모드가 P 매크로블록(Predictive Macroblock)인 블록에 대해서는 순방향 예측을 수행하여 현재 프레임의 이전 프레임을 기초로 순방향의 움직임 벡터를 추정하며, 현재 프레임 내에서 블록 모드가 B 매크로블록(Bidirectional Macroblck)인 블록에 대해서는 양방향 예측을 수행하여 현재 프레임의 이전 프레임 및 이후 프레임을 기초로 순방향의 움직임 벡터와 역방향의 움직임 벡터를 각각 추정할 수 있다.For this, the motion estimator 210 estimates a forward motion vector based on a previous frame of the current frame by performing forward prediction on a block in which the block mode is a P-macroblock in the current frame, A bidirectional prediction is performed on a block in which a block mode is a B macroblock (Bidirectional Macroblock) to estimate a forward motion vector and a backward motion vector based on a previous frame and a subsequent frame of the current frame, respectively.

이때, 움직임 추정기(210)는 움직임 벡터를 결정하는 데 있어서, 부호화 비용이 최소가 되는 움직임 벡터와 참조 프레임 색인을 현재 프레임 내의 해당 블록에 대한 움직임 벡터와 참조 프레임 색인으로서 결정할 수 있다. 이와 같이 움직임 벡터와 참조 프레임 색인을 결정하기 위한 부호화 비용을 계산하는 함수로서는 mcost 함수가 이용될 수 있다. mcost 함수는 수학식 1과 같이 나타낼 수 있다.In this case, the motion estimator 210 may determine a motion vector and a reference frame index that minimize the coding cost as a motion vector and a reference frame index for the current block in the current frame. As described above, the mcost function can be used as a function for calculating a coding cost for determining a motion vector and a reference frame index. The mcost function can be expressed as Equation (1).

Figure 112009063901462-pat00001
Figure 112009063901462-pat00001

여기서, λ는 움직임 벡터와 참조 프레임 색인을 결정하기 위한 라그랑제 곱 셈자(Lagrange Multiplier)이고, Rate u,v,i 는 해당 움직임 벡터와 참조 프레임 색인을 이용하여 해당 블록의 움직임을 보상함으로써 예측 부호화되어 생성되는 비트스트림의 비트율을 나타낸다. SAD u,v,i 는 해당 움직임 벡터와 참조 프레임 색인을 이용하여 해당 블록의 움직임을 보상함으로써 생성되는 움직임 보상 프레임과 현재 프레임의 차의 제곱합을 나타내며, 수학식 2와 같이 나타낼 수 있다.Here, λ is a Lagrange Multiplier for determining the motion vector and the reference frame index, and rate u, v, i are predictive coding by compensating the motion of the block using the motion vector and the reference frame index. To indicate the bit rate of the generated bit stream. SAD u, v, i represents the sum of squares of the difference between the current frame and the motion compensation frame generated by compensating for the motion of the corresponding block using the motion vector and the reference frame index, and can be expressed by Equation 2.

Figure 112009063901462-pat00002
Figure 112009063901462-pat00002

수학식 2에서, MN은 각각 해당 블록의 수평 방향과 수직 방향의 화소 크기를 나타내며,

Figure 112009063901462-pat00003
는 현재 프레임의 (x+m,y+n) 좌표에 대한 화소값을 의미하고,
Figure 112009063901462-pat00004
i번째 참조 프레임의 (x+m+u,y+n+v) 좌표에 대한 화소값을 나타낸다. 또한, xy는 해당 블록의 제일 왼쪽의 제일 위쪽에 위치한 화소의 현재 프레임 또는 움직임 보상 프레임 내에서의 좌표를 나타내며, mn은 해당 블록의 내부에 위치한 화소의 좌표를 나타낸다. uv는 해당 블록의 움직임 벡터를 나타낸다.In Equation 2, M and N respectively represent the pixel size in the horizontal direction and the vertical direction of the block,
Figure 112009063901462-pat00003
Is the pixel value for the ( x + m, y + n ) coordinate of the current frame,
Figure 112009063901462-pat00004
Denotes a pixel value for ( x + m + u, y + n + v ) coordinates of the i th reference frame. In addition, x and y represent the coordinates in the current frame or the motion compensation frame of the pixel located at the top left of the block, m and n represents the coordinates of the pixel located inside the block. u and v represent the motion vectors of the block.

움직임 추정기(210)는 수학식 1과 같은 부호화 비용을 계산하기 위한 함수를 이용하여 현재 프레임 내에서 블록 모드가 인터 블록인 각 블록에 대한 움직임 벡터와 참조 프레임 색인별로 mcost를 계산한 후, 수학식 3과 같은 함수를 이용하여 부호화 비용을 최소로 하는 움직임 벡터와 참조 프레임 색인을 해당 블록의 움직임 벡터와 참조 프레임 색인으로서 결정한다.The motion estimator 210 calculates mcost for each motion vector and reference frame index for each block whose block mode is interblock in the current frame by using a function for calculating a coding cost as shown in Equation 1, A motion vector and a reference frame index for minimizing the encoding cost are determined as a motion vector and a reference frame index of the corresponding block by using a function as shown in FIG. 3.

Figure 112009063901462-pat00005
Figure 112009063901462-pat00005

수학식 3에서, SearchRange는 움직임 추정을 수행하는 범위를 나타내며,

Figure 112009063901462-pat00006
는 각각 해당 블록에 대해 결정된 움직임 벡터의 가로 성분과 세로 성분을 내타내며,
Figure 112009063901462-pat00007
는 해당 블록에 대해 결정된 참조 프레임 색인을 나타낸다.In Equation (3), SearchRange represents a range for performing motion estimation,
Figure 112009063901462-pat00006
Represents the horizontal and vertical components of the motion vector determined for that block,
Figure 112009063901462-pat00007
Denotes a reference frame index determined for the block.

움직임 보상기(220)는 결정되는 움직임 벡터와 참조 프레임 색인을 이용하여 움직임 보상 블록을 생성하고 움직임 보상 블록을 포함하는 움직임 보상 프레임을 생성한다. 즉, 움직임 보상기(220)는 움직임 추정기(210)에 의해 결정되는 움직임 벡터와 참조 프레임 색인을 이용하여 해당 블록의 움직임을 보상함으로써 움직임 보상 블록을 생성하며, 생성된 움직임 보상 블록들을 프레임 단위로 모아 움직임 보상 블록들을 포함하는 움직임 보상 프레임을 생성한다. 이를 위해, 움직임 보상기(220)는 움직임 추정기(210)에 의해 결정되는 참조 프레임 색인에 의해 식별되는 참조 프레임에서 움직임 추정기(210)에 의해 결정되는 움직임 벡터가 지시하는 블록을 가져와서 움직임 보상 블록으로서 생성하며, 이러한 움직임 보상 블록들을 포함하는 움직임 보상 프레임을 생성한다.The motion compensator 220 generates a motion compensation block using the determined motion vector and the reference frame index, and generates a motion compensation frame including the motion compensation block. That is, the motion compensator 220 generates a motion compensation block by compensating the motion of the corresponding block using the motion vector and the reference frame index determined by the motion estimator 210, and collects the generated motion compensation blocks on a frame basis And generates a motion compensation frame including motion compensation blocks. For this purpose, the motion compensator 220 takes a block indicated by the motion vector determined by the motion estimator 210 in the reference frame identified by the reference frame index determined by the motion estimator 210, And generates a motion compensation frame including these motion compensation blocks.

이와 같이 움직임 보상 프레임을 생성하는 방법을 수학식으로 나타내면 수학식 4와 같이 나타낼 수 있다.A method of generating a motion compensated frame in this manner can be expressed by Equation (4).

Figure 112009063901462-pat00008
Figure 112009063901462-pat00008

수학식 4에서, WH는 프레임(참조 프레임 및 움직임 보상 프레임)의 가로와 세로의 화소 크기를 나타내고,

Figure 112009063901462-pat00009
는 움직임 보상 프레임의 (x,y) 좌표에 대한 화소값을 의미한다. 만약, (x,y) 좌표에 의해 식별되는 화소를 포함하는 블록의 블록 모드가 인트라 모드인 경우에는 움직임 벡터와 참조 프레임 색인이 존재하지 않기 때문에 일단
Figure 112009063901462-pat00010
는 값을 가지지 않는다. 이후, 하나의 움직임 보상 프레임 생성이 완료되면 미러링(Mirroring) 방식과 유사한 방식으로 앞에 내용을 채워 넣을 수도 있다.In Equation 4, W and H represent the horizontal and vertical pixel size of the frame (reference frame and motion compensation frame),
Figure 112009063901462-pat00009
Denotes a pixel value for the ( x , y ) coordinate of the motion compensation frame. If the block mode of the block including the pixel identified by the ( x , y ) coordinate is the intra mode, since the motion vector and the reference frame index do not exist,
Figure 112009063901462-pat00010
Does not have a value. Subsequently, when generation of one motion compensation frame is completed, the content may be filled in a manner similar to a mirroring method.

본 발명의 일 실시예에 따라 움직임 보상 프레임을 생성하는 과정을 예시적으로 나타낸 도 3을 참조하면, 움직임 보상 프레임 내의 5 개의 블록들 중 4 개의 블록들은 블록 모드가 인터 블록이어서 4 개의 참조 프레임에서 각각 하나의 블록으로 채워지지만 1 개의 블록은 블록 모드가 인트라 블록이어서 움직임 벡터와 참조 프레임 색인이 없으므로 그 값을 가지지 않는다. 나중에 움직임 보상 프레임이 필터링될 때, 인트라 모드인 블록에 값이 채워져 있지 않아 주변 화소들에 대해 필터링이 불가능하므로 해당 블록의 주변에 있는 화소들의 화소값을 이용하여 필터링될 수 있다.Referring to FIG. 3 illustrating a process of generating a motion compensation frame according to an exemplary embodiment of the present invention, four blocks among five blocks in a motion compensation frame are interblocked so that four reference frames Each block is filled with one block, but one block has no motion vector and reference frame index because the block mode is an intra block. When the motion compensation frame is later filtered, it is not possible to filter the neighboring pixels because the intra-mode block is not filled with values. Therefore, the motion compensation frame may be filtered using the pixel values of the neighboring pixels.

움직임 보상 필터(230)는 움직임 보상 프레임을 필터링한다. 즉, 움직임 보상 필터(230)는 움직임 보상기(220)에 의해 생성되는 움직임 보상 프레임의 화소들 을 다양한 종류의 필터를 이용하여 필터링함으로써 필터링된 움직임 보상 프레임이 현재 프레임과 더욱 유사하도록 하여 변환 및 양자화되어 부호화되는 잔여 프레임의 데이터 양을 줄이거나 움직임 보상 프레임 내에 존재하는 블로킹 현상(Blocking Effect)을 줄인다.The motion compensation filter 230 filters the motion compensation frame. That is, the motion compensation filter 230 filters the pixels of the motion compensation frame generated by the motion compensator 220 using various types of filters so that the filtered motion compensation frame is more similar to the current frame, thereby transforming and quantizing. Thereby reducing the amount of data in the remaining frame to be encoded or reducing the blocking effect present in the motion compensation frame.

여기서, 움직임 보상 필터(230)는 움직임 보상 프레임을 필터링할 때, 기 설정된 필터를 이용할 수도 있으며 블록 단위, 슬라이스 단위 또는 프레임 단위 등과 같이 일정한 단위로 적절한 필터 또는 필터의 계수를 선택하여 이용할 수도 있다. 움직임 보상 필터(230)가 기 설정된 필터를 이용하는 경우에는 영상 부호화 장치(100)와 후술할 영상 복호화 장치가 미리 약속한 필터나 미리 약속한 기준에 따른 필터를 이용할 수 있다. 또한, 움직임 보상 필터(230)가 적절한 필터 또는 필터의 계수를 선택하여 이용하는 경우에는 현재 프레임 내의 화소의 특성에 따라 다른 필터를 이용할 수 있다.Here, the motion compensation filter 230 may use a predetermined filter when filtering a motion compensation frame, and may select a suitable filter or a coefficient of a filter in a predetermined unit such as a block unit, a slice unit, or a frame unit. When the motion compensation filter 230 uses a predetermined filter, the image encoding apparatus 100 and the image decoding apparatus to be described later can use a filter promised in advance or a filter according to a preset reference. Further, when the motion compensation filter 230 selects and uses an appropriate filter or a coefficient of the filter, another filter may be used depending on the characteristics of the pixel in the current frame.

움직임 보상 프레임을 필터링하기 위한 필터로는 위너 필터 또는 디블로킹 필터와 같은 다양한 필터가 이용될 수 있다. 위너 필터를 이용하여 움직임 보상 프레임을 필터링하는 경우, 움직임 보상 프레임에 잔존하는 시간적인 중복성을 더욱 제거할 수 있어서 잔여 프레임의 데이터량이 줄어들고 그에 따라 영상 부호화 데이터의 양이 줄어들어 결과적으로 비트스트림의 크기가 작아지므로 압축 효율이 향상될 수 있다. 또한, 디블로킹 필터를 이용하여 움직임 보상 프레임을 필터링하는 경우, 움직임 보상 프레임 내의 블로킹 현상을 줄일 수 있어서 부호화된 후 다시 복호화되어 복원되는 영상의 품질을 향상시킬 수 있다.As the filter for filtering the motion compensation frame, various filters such as a Wiener filter or a deblocking filter may be used. In the case of filtering the motion compensated frame using the Wiener filter, temporal redundancy remaining in the motion compensated frame can be further eliminated, so that the amount of data of the residual frame is reduced and accordingly the amount of the image encoded data is reduced. As a result, The compression efficiency can be improved. In addition, when the motion compensation frame is filtered using the deblocking filter, the blocking phenomenon in the motion compensation frame can be reduced, thereby improving the quality of the image which is decoded and then reconstructed.

움직임 보상 필터(230)가 적절한 필터 또는 필터의 계수를 선택하여 이용하는 경우, 움직임 보상 프레임 내의 화소의 특성에 따라 필터의 종류를 선택하여 선택된 필터를 이용하여 필터링하거나 기 설정된 필터의 필터 계수를 계산하여 계산된 필터 계수를 이용하여 필터링하거나 필터의 종류를 선택하고 선택된 필터의 필터 계수도 계산하여 필터링할 수 있다.When the motion compensation filter 230 selects and uses the coefficients of the appropriate filter or filter, the type of the filter is selected according to the characteristics of the pixels in the motion compensation frame, and the selected filter is used to filter the selected filter or the filter coefficient of the predetermined filter It is possible to filter by using the calculated filter coefficient or to select the type of the filter and to calculate and filter the filter coefficient of the selected filter.

예를 들어, 움직임 보상 필터(230)는 움직임 보상 프레임 내의 움직임 보상 블록의 크기를 판단하고, 움직임 보상 블록의 크기에 따라 해당 움직임 예측 블록의 내부에서 블록의 경계에 위치하는 화소들과 블록의 경계에 위치하지 않는 화소들을 서로 다른 종류의 필터를 이용하여 필터링할 수도 있다. 이 경우, 움직임 보상 프레임 내의 화소의 특성은 움직임 보상 프레임 내의 움직임 보상 블록의 크기가 될 수 있다. 또한, 움직임 보상 필터(230)는 움직임 보상 블록들의 움직임 벡터와 참조 프레임 색인의 차이를 판단하고, 움직임 벡터와 참조 프레임의 색인의 차이에 따라 움직임 보상 블록들 간의 경계에 블로킹 현상이 발생하는지 여부를 판단하여, 움직임 보상 블록들 간의 경계에 블록킹 현상이 발생하는 부분의 화소들과 블록킹 현상이 발생하지 않는 부분의 화소들을 서로 다른 필터를 이용하여 필터링할 수도 있다. 이 경우, 움직임 보상 프레임 내의 화소의 특성은 움직임 보상 블록들 간의 움직임 벡터와 참조 프레임 색인의 차이가 될 수 있다.For example, the motion compensation filter 230 determines the size of the motion compensation block in the motion compensation frame, and determines the size of the motion compensation block according to the size of the motion compensation block, May be filtered using different kinds of filters. In this case, the characteristics of the pixels in the motion compensation frame may be the size of the motion compensation block in the motion compensation frame. In addition, the motion compensation filter 230 determines the difference between the motion vector of the motion compensation blocks and the index of the reference frame, and determines whether a blocking phenomenon occurs in the boundary between the motion compensation blocks according to the difference between the indexes of the motion vector and the reference frame Pixels of a block where a blocking phenomenon occurs at a boundary between motion compensation blocks and pixels of a block where no blocking phenomenon occurs may be filtered using different filters. In this case, the characteristics of the pixels in the motion compensation frame may be the difference between the motion vector between the motion compensation blocks and the reference frame index.

움직임 보상 필터(230)가 움직임 보상 프레임을 필터링하는 방법을 예시적인 수학식으로 나타내면 수학식 5와 같이 나타낼 수 있다. 수학식 5에서는 2차원 필터를 이용하여 필터링하는 경우를 예시적으로 나타내었지만, 구현 방식 또는 필요에 따라서는 1차원 필터를 이용하여 필터링할 수도 있다.The method of filtering the motion compensation frame by the motion compensation filter 230 may be expressed as Equation (5). In Equation 5, the case of filtering by using a two-dimensional filter is shown as an example, but may be filtered using a one-dimensional filter, depending on the implementation method or needs.

Figure 112009063901462-pat00011
Figure 112009063901462-pat00011

수학식 5에서,

Figure 112009063901462-pat00012
는 움직임 보상 프레임의 (x+m,y+n) 좌표에 의해 지시되는 화소의 화소값을 나타내고, β PP (m,n)은 (m,n) 번째 필터 계수를 나타내며, PP는 움직임 보상 프레임 내의 블록 내의 화소의 특성에 따라 선택되는 필터의 종류를 나타낸다.
Figure 112009063901462-pat00013
은 필터링된 움직임 보상 프레임 내에서 (x,y) 좌표에 위치하는 화소의 화소값을 나타낸다.In Equation (5)
Figure 112009063901462-pat00012
Denotes the pixel value of the pixel indicated by the ( x + m, y + n ) coordinate of the motion compensation frame, β PP ( m , n ) denotes the ( m, n ) th filter coefficients, and PP is the motion compensation frame The type of filter selected according to the characteristics of the pixels in the blocks within the blocks is shown.
Figure 112009063901462-pat00013
Denotes a pixel value of a pixel located at ( x , y ) coordinates in the filtered motion compensation frame.

본 발명의 일 실시예에 따라 움직임 보상 프레임을 필터링하는 과정을 예시적으로 나타낸 도 4를 참조하면, 움직임 보상 블록들 간의 경계에 블로킹 현상이 발생한 움직임 보상 프레임을 움직임 보상 필터를 이용하여 필터링함에 따라 필터링된 움직임 보상 프레임에서는 움직임 보상 블록들 간의 경계에 블로킹 현상이 제거될 수 있다. 도 4에서는 움직임 보상 필터로서 2차원의 디블로킹 필터가 이용된 경우를 예시적으로 나타내었다. 도 4에서 *는 컨볼루션(Convolution)을 나타낸다.Referring to FIG. 4 illustrating a process of filtering a motion compensation frame according to an exemplary embodiment of the present invention, a motion compensation frame in which a blocking phenomenon occurs at a boundary between motion compensation blocks is filtered using a motion compensation filter In the filtered motion compensation frame, the blocking phenomenon can be eliminated at the boundary between the motion compensation blocks. 4 illustrates an example in which a two-dimensional deblocking filter is used as a motion compensation filter. In Fig. 4, * indicates a convolution.

통상적인 동영상 압축 기술에서는 움직임 보상을 블록 단위로 수행하므로 움직임 보상 프레임은 하나의 개념적인 용어로서 사용되었지만, 본 발명의 일 실시예에서는 프레임 단위의 움직임 보상 프레임을 생성하여 필터링함으로써 필터링된 움직임 보상 프레임을 동영상 압축에 응용한다.In a typical moving picture compression technique, a motion compensation frame is used as a conceptual term because motion compensation is performed on a block basis. However, in an embodiment of the present invention, a motion compensation frame To video compression.

필터 계수를 계산하는 일 예로서, 움직임 보상 필터(230)는 현재 프레임과 필터링된 움직임 보상 프레임의 제곱 에러가 최소가 되도록 위너 필터를 이용하여 움직임 보상 프레임을 필터링하기 위한 필터 계수를 계산할 수 있다. 수학식 6은 현재 프레임과 필터링된 움직임 보상 프레임의 제곱 에러를 계산하는 수학식을 나타낸 것이며, 수학식 7은 현재 프레임과 필터링된 움직임 보상 프레임의 제곱 에러가 최소가 되는 필터 계수를 계산하는 수학식을 나타낸 것이다.As an example of calculating a filter coefficient, the motion compensation filter 230 may calculate a filter coefficient for filtering a motion compensation frame using a Wiener filter so that the squared error between the current frame and the filtered motion compensation frame is minimized. Equation (6) is a mathematical expression for calculating a squared error between a current frame and a filtered motion compensation frame, and Equation (7) is a mathematical expression for calculating a filter coefficient that minimizes a squared error between a current frame and a filtered motion- Lt; / RTI >

Figure 112009063901462-pat00014
Figure 112009063901462-pat00014

Figure 112009063901462-pat00015
Figure 112009063901462-pat00015

수학식 6 및 수학식 7에서, (e PP )는 현재 프레임과 필터링된 움직임 보상 프레임의 제곱 에러를 나타내며,

Figure 112009063901462-pat00016
는 현재 프레임의 (x,y) 좌표에 대한 화소 값을 나타내고,
Figure 112009063901462-pat00017
는 (m,n) 번째 필터 계수를 나타내며,
Figure 112009063901462-pat00018
는 필터링된 움직임 보상 프레임의 (x,y) 좌표에 대한 화소값을 나타내며 수학식 5를 통해 계산될 수 있다.In equations (6) and (7), ( e PP ) represents the squared error of the current frame and the filtered motion compensation frame,
Figure 112009063901462-pat00016
Denotes the pixel value for the ( x, y ) coordinate of the current frame,
Figure 112009063901462-pat00017
Represents the ( m , n ) th filter coefficient,
Figure 112009063901462-pat00018
Denotes a pixel value for the ( x, y ) coordinate of the filtered motion compensation frame and may be calculated through Equation 5.

수학식 6 및 수학식 7을 통해 계산되는 필터 계수는 움직임 보상 프레임을 필터링하는 데 이용되며, 부호화기(140)로 전달된다. 이때, 움직임 보상 필터(230)는 계산된 필터를 그대로 이용하여 움직임 보상 프레임을 필터링할 수도 있지만, 양자화, 올림 내림 등과 같은 과정을 통해 필터 계수를 보정하여 움직임 보상 프레임을 필터링할 수도 있다. 예를 들어, 필터 계수가 소수점을 가지는 계수로서 계산되는 경우 그대로 부호화되면 필터 계수 데이터의 데이터량이 커지므로 양자화, 올림, 내림 등과 같은 과정을 통해 정수의 계수로 보정한 후 보정된 필터 계수를 이용하여 움직임 보상 프레임을 필터링하고, 보정된 필터 계수를 부호화기(140)로 전달한다. 부호화기(140)는 필터 계수를 나타내는 필터 계수 정보를 부호화하여 필터 계수 데이터를 생성하고, 생성된 필터 계수 데이터는 비트스트림에 포함되어 영상 복호화 장치로 전송될 수 있다. 이와 같이 필터 계수를 보정하여 부호화함으로써 필터 계수 데이터의 데이터량을 줄일 수 있다. The filter coefficients calculated through Equations (6) and (7) are used to filter the motion compensation frames and are transmitted to the encoder (140). At this time, the motion compensation filter 230 may filter the motion compensation frame using the calculated filter as it is, but may also filter the motion compensation frame by correcting the filter coefficient through a process such as quantization, up and down. For example, if the filter coefficient is calculated as a coefficient having a decimal point, since the data amount of the filter coefficient data becomes larger when the data is encoded as it is, the data is corrected by an integer coefficient through quantization, up and down, And transmits the corrected filter coefficient to the encoder 140. The encoder 140 decodes the motion compensation frame. The encoder 140 encodes the filter coefficient information indicating the filter coefficient to generate filter coefficient data, and the generated filter coefficient data may be included in the bitstream and transmitted to the image decoding apparatus. In this manner, the amount of data of the filter coefficient data can be reduced by correcting and encoding the filter coefficients.

이상에서 전술한 바와 같이 생성되는 필터링된 움직임 보상 프레임은 감산기(120)로 전달되며, 감산기(120)는 현재 프레임과 필터링된 움직임 보상 프레임을 감산하여 잔여 프레임을 생성한다. 이때, 필터링된 움직임 보상 블록을 블록 또는 슬라이스 단위 등 다양한 단위마다 적응적으로 사용할 수 있다. 잔여 프레임은 현 재 프레임의 화소의 화소값과 움직임 보상 프레임의 화소의 화소값의 차이값을 가지는 잔여 신호를 포함한다. 잔여 신호는 수학식 8과 같이 나타낼 수 있다.The filtered motion compensation frame generated as described above is transmitted to the subtractor 120, and the subtractor 120 subtracts the current frame and the filtered motion compensation frame to generate a residual frame. At this time, the filtered motion compensation block can be used adaptively for various units such as a block or a slice unit. The residual frame includes a residual signal having a difference value between the pixel value of the pixel of the current frame and the pixel value of the pixel of the motion compensation frame. The residual signal can be expressed by Equation (8).

Figure 112009063901462-pat00019
Figure 112009063901462-pat00019

하지만, 통상적인 동영상 압축 방식에 따라 현재 프레임과 움직임 보상 프레임을 감산하여 생성되는 잔여 신호는 수학식 9와 같이 나타낼 수 있다.However, the residual signal generated by subtracting the current frame and the motion compensation frame according to a conventional moving picture compression scheme can be expressed by Equation (9).

Figure 112009063901462-pat00020
Figure 112009063901462-pat00020

수학식 8과 수학식 9에서 resi(x,y)는 (x,y) 좌표에서 잔차 신호의 화소값을 나타낸다. 위너 필터를 이용하여 움직임 보상 필터링을 수행한 경우, 움직임 보상 프레임에 잔재하는 시간적인 중복성이 더욱 제거되어 수학식 8의 잔여 신호가 수학식 9의 잔여 신호보다 작으며, 디블로킹 필터를 이용하여 움직임 보상 필터링을 수행한 경우, 움직임 보상 프레임에 잔재하는 블로킹 현상이 더욱 제거되어 수학식 8의 잔여 신호가 변환 및 양자화되어 부호화된 데이터가 복호화되었을 때의 영상 품질이 더욱 좋아진다.In Equations 8 and 9, resi ( x , y ) represents the pixel value of the residual signal at the (x, y) coordinate. When the motion compensated filtering is performed using the Wiener filter, temporal redundancy remaining in the motion compensation frame is further removed, so that the residual signal of Equation (8) is smaller than the residual signal of Equation (9) When the compensation filtering is performed, the blocking phenomenon remaining in the motion compensation frame is further removed, and the residual signal of Equation (8) is transformed and quantized to improve the image quality when the encoded data is decoded.

수학식 8에서는 프레임 단위로 잔여 신호가 생성되는 것으로 예시하였지만, 반드시 수학식 8을 이용해야 하거나 프레임 단위로 잔여 신호를 생성해야 하는 것은 아니며, 블록 또는 슬라이스 등 다양한 단위로 잔여 신호가 생성될 수도 있고 수학식 8이 아닌 다른 수학식을 이용하여 잔여 신호가 생성될 수도 있을 것이다.In Equation (8), the residual signal is generated on a frame-by-frame basis. However, it is not necessary to use Equation (8) or generate a residual signal on a frame-by-frame basis. A residual signal may be generated in various units such as a block or a slice A residual signal may be generated using an equation other than equation (8).

도 5는 본 발명의 일 실시예에 따른 영상 부호화 방법을 설명하기 위한 순서도이다.5 is a flowchart illustrating an image encoding method according to an embodiment of the present invention.

본 발명의 일 실시예에 따르면, 영상 부호화 장치(100)는 영상의 현재 프레임의 움직임을 추정하고 보상하여 생성되는 움직임 보상 프레임을 필터링하고(S510), 현재 프레임과 필터링된 움직임 보상 프레임의 차인 잔여 프레임을 변환 및 양자화하고 부호화한다(S520).According to an embodiment of the present invention, the image encoding apparatus 100 filters a motion compensation frame generated by estimating and compensating for a motion of a current frame of an image (S510) The frame is transformed, quantized, and encoded (S520).

또한, 영상 부호화 장치(100)는 단계 S510에서, 움직임 보상 프레임 내의 블록의 화소의 특성에 따라 다른 필터를 이용하여 움직임 보상 프레임을 필터링할 수 있으며, 움직임 보상 프레임을 위너 필터 또는 디블로킹 필터를 이용하여 필터링할 수 있으며, 현재 프레임과 필터링된 움직임 보상 프레임 간의 제곱 에러를 최소화하는 필터 계수를 가지는 필터를 이용하여 움직임 보상 프레임을 필터링할 수 있다. 이때, 영상 부호화 장치(100)는 움직임 보상 프레임을 필터링하는 데 이용한 필터의 필터 계수를 나타내는 필터 계수 정보를 추가로 부호화할 수 있다.In step S510, the image encoding apparatus 100 may filter the motion compensation frame using another filter according to the characteristics of the block in the motion compensation frame, and may use the Wiener filter or deblocking filter And filter a motion compensation frame using a filter having a filter coefficient that minimizes a square error between a current frame and a filtered motion compensation frame. At this time, the image encoding apparatus 100 may further encode the filter coefficient information indicating the filter coefficient of the filter used for filtering the motion compensation frame.

또한, 영상 부호화 장치(100)는 단계 S510에서, 현재 프레임 내에서 블록 모드가 인터 모드인 블록에 대해 움직임 벡터와 참조 프레임 색인을 결정하고, 결정되는 움직임 벡터와 참조 프레임 색인을 이용하여 움직임 보상 블록을 생성하고 생성되는 움직임 보상 블록을 포함하는 움직임 보상 프레임을 생성하며, 움직임 보상 프레임을 필터링할 수 있다.In step S510, the image encoding apparatus 100 determines a motion vector and a reference frame index for a block in which the block mode is an inter mode in the current frame, and calculates a motion vector and a reference frame index using a motion vector and a reference frame index, Generates a motion compensation frame including the generated motion compensation block, and filters the motion compensation frame.

또한, 영상 부호화 장치(100)는 블록 모드를 나타내는 블록 모드 정보를 부호화하고, 결정되는 움직임 벡터와 참조 프레임 색인을 나타내는 움직임 정보를 추 가로 부호화할 수 있다.In addition, the image encoding apparatus 100 may encode block mode information indicating a block mode, and additionally encode motion information indicating a determined motion vector and a reference frame index.

또한, 영상 부호화 장치(100)는 변환 및 양자화된 잔여 프레임을 역 양자화 및 역 변환하여 잔여 프레임을 복원하고, 복원되는 잔여 프레임과 필터링된 움직임 보상 프레임을 가산하여 현재 프레임을 복원하며, 복원되는 현재 프레임을 디블로킹 필터링하여 저장할 수 있다.In addition, the image encoding apparatus 100 restores the residual frame by inverse-quantizing and inverse-transforming the transformed and quantized residual frames, restores the current frame by adding the residual frame to be reconstructed and the filtered motion compensation frame, The frame can be de-blocking filtered and stored.

도 6은 본 발명의 일 실시예에 따른 영상 복호화 장치를 간략하게 나타낸 블록 구성도이다.FIG. 6 is a block diagram of a video decoding apparatus according to an embodiment of the present invention. Referring to FIG.

본 발명의 일 실시예에 따른 영상 복호화 장치(600)는 복호화기(Decoder, 610), 역 양자화기 및 역 변환기(620), 예측기(630), 가산기(640), 디블로킹 필터(650) 및 메모리(660)를 포함하여 구성될 수 있다.The image decoding apparatus 600 according to an embodiment of the present invention includes a decoder (Decoder, 610), an inverse quantizer and an inverse converter (620), a predictor (630), an adder (640), a deblocking filter (650), and It may be configured to include a memory 660.

복호화기(610)는 비트스트림으로부터 추출되는 움직임 정보 데이터와 영상 부호화 데이터를 복호화하여 움직임 정보와 변환 및 양자화된 잔여 프레임을 복원한다. 또한, 복호화기(610)는 비트스트림으로부터 블록 모드 데이터를 추출하고 복호화하여 블록 모드 정보를 복원할 수 있으며, 비트스트림으로부터 필터 계수 데이터를 추출하고 복호화하여 필터 계수 정보를 복원할 수 있다.The decoder 610 decodes the motion information data and the image coded data extracted from the bit stream to recover the motion information and the residual frame converted and quantized. In addition, the decoder 610 may extract the block mode data from the bitstream and decode the block mode data to recover the block mode information. The decoder 610 may extract the filter coefficient data from the bitstream and decode the data to recover the filter coefficient information.

여기서, 복호화기(610)는 엔트로피 부호화와 같은 다양한 부호화 기법을 이용하여 각종 데이터를 복호화할 수 있으며, 영상 부호화 장치(100)의 부호화기(140)가 부호화한 방식을 역으로 수행하여 복호화할 수 있다.Here, the decoder 610 can decode various data by using various encoding techniques such as entropy encoding, and can decode the encoded data of the encoder 140 of the image encoding apparatus 100 in reverse order .

역 양자화기 및 역 변환기(620)는 복원되는 변환 및 양자화된 잔여 프레임을 역 양자화 및 역 변환하여 잔여 프레임을 복원한다. 여기서, 역 양자화기 및 역 변 환기(620)는 다양한 변환 및 양자화 방식을 이용하여 역 양자화 및 역 변환을 수행할 수 있는데, 영상 부호화 장치(100)의 변환기 및 양자화기(130)가 변환 및 양자화한 방식을 역으로 수행하여 역 영자화 및 역 변환을 수행할 수 있다.Inverse quantizer and inverse transformer 620 inverse quantizes and inverse transforms the reconstructed transformed and quantized residual frame to reconstruct the residual frame. Here, the inverse quantizer and the inverse transformer 620 may perform inverse quantization and inverse transformation by using various transformations and quantization schemes, and the transformer and quantizer 130 of the image encoding apparatus 100 may perform transformation and quantization. One way can be done inversely to perform inverse magnetization and inverse transformation.

예측기(630)는 복원되는 움직임 정보에 의해 식별되는 움직임 벡터 및 참조 프레임 인덱스를 이용하여 현재 프레임의 움직임을 보상하여 움직임 보상 프레임을 생성하고 움직임 보상 프레임을 필터링한다. 즉, 예측기(630)는 복원되는 움직임 정보에 의해 식별되는 움직임 벡터 및 참조 프레임 인덱스를 이용하여 움직임 보상 블록을 생성하고 움직임 보상 블록을 포함하는 움직임 보상 프레임을 생성할 수 있다.The predictor 630 generates a motion compensation frame by compensating the motion of the current frame using the motion vector and the reference frame index identified by the restored motion information, and filters the motion compensation frame. That is, the predictor 630 may generate a motion compensation block using the motion vector and the reference frame index identified by the restored motion information, and generate a motion compensation frame including the motion compensation block.

또한, 예측기(630)는 움직임 보상 프레임을 필터링하는 데 있어서, 기 설정된 필터 계수를 가지는 필터를 이용하여 필터링할 수도 있으며, 복호화기(610)에 의해 복원되는 필터 계수 정보가 있는 경우에는 복원되는 필터 계수 정보에 의해 식별되는 필터 계수를 가지는 필터를 이용하여 움직임 보상 프레임을 필터링할 수도 있다.In addition, the predictor 630 may filter the motion compensation frame using a filter having a predetermined filter coefficient. If the filter coefficient information is restored by the decoder 610, A motion compensation frame may be filtered using a filter having filter coefficients identified by the coefficient information.

또한, 예측기(630)는 움직임 보상 프레임 내의 블록의 화소의 특성에 따라 다른 필터를 이용하여 필터링할 수도 있으며, 움직임 보상 프레임을 필터링하기 위한 필터로서 위너 필터 또는 디블로킹 필터 등을 이용할 수도 있다.In addition, the predictor 630 may perform filtering using other filters according to the characteristics of the pixels of the block in the motion compensation frame, or may employ a Wiener filter or deblocking filter as a filter for filtering the motion compensation frame.

여기서, 예측기(630)가 움직임 벡터 및 참조 프레임 인덱스를 이용하여 움직임 보상 블록을 생성하고 움직임 보상 블록을 포함하는 움직임 보상 프레임을 생성하며 생성된 움직임 보상 프레임을 필터링하는 방법에 대해서는 도 1 내지 도 5를 통해 전술한 방법과 동일 또는 유사하므로 상세한 설명을 생략한다.Here, the predictor 630 generates a motion compensation block by using the motion vector and the reference frame index, generates a motion compensation frame including the motion compensation block, and filters the generated motion compensation frame with reference to FIGS. 1 to 5. Through the same or similar to the above-described method, detailed description thereof will be omitted.

가산기(640)는 복원되는 잔여 프레임과 필터링되는 움직임 보상 프레임을 가산하여 현재 프레임을 복원한다. 즉, 가산기(640)는 역 양자화기 및 역 변환기(620)에서 복원되는 잔여 프레임의 화소들의 화소값과 예측기(630)에 의해 필터링된 움직임 보상 프레임의 화소들의 화소값을 가산하여 현재 프레임의 화소들을 복원한다.The adder 640 restores the current frame by adding the residual frame to be restored and the motion compensation frame to be filtered. That is, the adder 640 adds the pixel values of the pixels of the residual frame reconstructed by the inverse quantizer and the inverse transformer 620 and the pixel values of the pixels of the motion compensation frame filtered by the predictor 630 to thereby add the pixels of the current frame. Restore them.

디블로킹 필터(650)는 가산기(640)에 의해 복원되는 현재 프레임을 디블로킹 필터링하여 디블로킹 필터링된 현재 프레임을 복원 영상으로서 출력하며, 메모리(660)는 디블로킹 필터링된 현재 프레임을 참조 프레임으로서 저장하며, 저장된 참조 프레임은 예측기(630)에서 다음 프레임을 예측하는 데 활용된다.The deblocking filter 650 deblock filters the current frame reconstructed by the adder 640 and outputs the deblock-filtered current frame as a reconstructed image. The memory 660 reconstructs the deblocking filtered current frame as a reference frame And the stored reference frame is used to predict the next frame in the predictor 630. [

도 7은 본 발명의 일 실시예에 따른 영상 복호화를 위한 인터 예측 장치를 간략하게 나타낸 블록 구성도이다.FIG. 7 is a block diagram schematically illustrating an inter prediction apparatus for video decoding according to an embodiment of the present invention. Referring to FIG.

본 발명의 일 실시예에 따른 영상 복호화를 위한 인터 예측 장치는 도 6을 통해 전술한 본 발명의 일 실시예에 따른 영상 복호화 장치(600)에서는 예측기(630)로 구현될 수 있으므로, 이하에서는 설명의 편의를 위해, 예측기(630)라 칭한다.The inter prediction apparatus for video decoding according to an embodiment of the present invention can be implemented as a predictor 630 in the video decoding apparatus 600 according to an embodiment of the present invention described above with reference to FIG. It is referred to as a predictor 630. [

예측기(630)는 움직임 보상기(710) 및 움직임 보상 필터(720)를 포함하여 구성될 수 있다.The predictor 630 may comprise a motion compensator 710 and a motion compensation filter 720.

움직임 보상기(710)는 비트스트림으로부터 추출되고 복호화되어 복원되는 움직임 정보에 의해 식별되는 움직임 벡터 및 참조 프레임 인덱스를 이용하여 움직임 보상 블록을 생성하고 움직임 보상 블록을 포함하는 움직임 보상 프레임을 생성한다. 즉, 움직임 보상기(710)는 복호화기(610)로부터 움직임 벡터와 참조 프레임 색인을 전달받으면, 메모리(660)에 저장된 참조 프레임 중에서 참조 프레임 색인에 의해 지시되는 참조 프레임에서 움직임 벡터에 의해 지시되는 블록을 움직임 보상 블록들로서 생성하고 움직임 보상 블록들을 포함하는 움직임 보상 프레임을 생성한다.The motion compensator 710 generates a motion compensation block by using a motion vector and a reference frame index identified by the motion information extracted from the bitstream and decoded and reconstructed, and generates a motion compensation frame including the motion compensation block. In other words, when the motion compensator 710 receives the motion vector and the reference frame index from the decoder 610, the motion compensator 710 decodes the motion vector of the block indicated by the motion vector in the reference frame indicated by the reference frame index among the reference frames stored in the memory 660 As motion compensation blocks and generates motion compensation frames including motion compensation blocks.

움직임 보상 필터(720)는 움직임 보상 프레임을 필터링한다. 즉, 움직임 보상 필터(720)는 움직임 보상기(710)에 의해 생성되어 전달되는 움직임 보상 프레임을 위너 필터 또는 디블로킹 필터 등과 같은 다양한 필터를 이용하여 필터링한다. 이때, 움직임 보상 필터(720)는 복호화기(610)로부터 필터 계수 정보를 전달받으면, 필터 계수 정보에 의해 식별되는 필터 계수를 가지는 필터를 이용하여 움직임 보상 프레임을 생성할 수 있으며, 필터 계수 정보가 전달되지 않으면 기 설정된 필터를 이용하거나 움직임 보상 프레임 내의 블록의 화소 특성에 따라 선택되는 필터를 이용하여 움직임 보상 프레임을 필터링할 수 있다.The motion compensation filter 720 filters motion compensation frames. That is, the motion compensation filter 720 filters the motion compensation frame generated by the motion compensator 710 using various filters such as a Wiener filter or a deblocking filter. In this case, when the motion compensation filter 720 receives the filter coefficient information from the decoder 610, the motion compensation filter 720 can generate a motion compensation frame using a filter having the filter coefficient identified by the filter coefficient information. The motion compensation frame may be filtered using a predetermined filter or a filter selected according to the pixel characteristics of the block in the motion compensation frame.

도 8은 본 발명의 일 실시예에 따른 영상 복호화 방법을 설명하기 위한 순서도이다.8 is a flowchart illustrating an image decoding method according to an embodiment of the present invention.

본 발명의 일 실시예에 따른 영상 복호화 방법에 따르면, 영상 복호화 장치(600)는 비트스트림으로부터 추출되는 움직임 정보 데이터를 복호화하여 복원되는 움직임 정보에 의해 식별되는 움직임 벡터 및 참조 프레임 인덱스를 이용하여 현재 프레임의 움직임을 보상하여 움직임 보상 프레임을 생성하며(S810), 움직임 보상 프레임을 필터링하며(S820), 비트스트림으로부터 추출되고 복호화되어 복원되는 잔여 프레임과 필터링된 움직임 보상 프레임을 가산하여 현재 프레임을 복원한다(S830).According to an image decoding method according to an embodiment of the present invention, the image decoding apparatus 600 currently uses a motion vector and a reference frame index identified by motion information reconstructed by decoding motion information data extracted from a bitstream. Compensate for the motion of the frame to generate a motion compensation frame (S810), filter the motion compensation frame (S820), and restore the current frame by adding the residual motion and the filtered motion compensation frame extracted and decoded from the bitstream (S830).

여기서, 영상 복호화 장치(600)는 단계 S810에서, 움직임 보상 프레임을 생성하는 데 있어서, 현재 프레임 내에서 블록 모드가 인터 블록인 블록에 대해 비트스트림으로부터 움직임 정보 데이터를 추출하고 복호화하여 움직임 정보를 복원하며, 복원되는 움직임 정보에 의해 식별되는 움직임 벡터 및 참조 프레임 인덱스를 이용하여 움직임 보상 블록을 생성하고 생성되는 움직임 보상 블록을 포함하는 움직임 보상 프레임을 생성할 수 있다.Here, in step S810, the image decoding apparatus 600 extracts motion information data from the bit stream and decodes the motion information data for a block in which the block mode is an inter-block in the current frame in step S810 to restore motion information And generates a motion compensation block using a motion vector and a reference frame index identified by the motion information to be reconstructed, and generates a motion compensation frame including the generated motion compensation block.

또한, 영상 복호화 장치(600)는 비트스트림으로부터 필터 계수 데이터를 추출하고 복호화하여 필터 계수 정보를 추가로 복원할 수 있으며, 이 경우 단계 S820에서 움직임 보상 프레임을 필터링할 때, 복원되는 필터 계수 정보에 의해 식별되는 필터 계수를 가지는 필터를 이용하여 움직임 보상 프레임을 필터링할 수 있다.In addition, the image decoding apparatus 600 may further reconstruct filter coefficient information by extracting and decoding filter coefficient data from the bitstream. In this case, when the motion compensation frame is filtered in step S820, the image decoding apparatus 600 may reconstruct the filter coefficient information. The motion compensation frame may be filtered using a filter having a filter coefficient identified by.

또한, 영상 복호화 장치(600)는 단계 S820에서, 움직임 보상 프레임을 필터링하는 데 있어서, 기 설정된 필터 계수를 가지는 필터를 이용하여 움직임 보상 프레임을 필터링할 수 있으며, 움직임 보상 프레임 내의 블록의 화소의 특성에 따라 다른 필터를 이용하여 움직임 보상 프레임을 필터링할 수도 있으며, 움직임 보상 프레임을 위너 필터 또는 디블로킹 필터를 이용하여 필터링할 수도 있다.In step S820, the image decoding apparatus 600 may filter a motion compensation frame using a filter having a predetermined filter coefficient in filtering a motion compensation frame, A motion compensation frame may be filtered using another filter according to the motion compensation frame, or the motion compensation frame may be filtered using a Wiener filter or a deblocking filter.

또한, 영상 복호화 장치(600)는 복원되는 현재 프레임을 디블로킹 필터링하여 출력할 수 있다. 디블로킹 필터링된 현재 프레임은 저장되어 다른 프레임을 예 측 부호하하는 데 이용될 수 있다.In addition, the image decoding apparatus 600 may deblock and filter the current frame to be restored. The deblocking filtered current frame can be stored and used to predict other frames.

이상에서 전술한 바와 같이, 본 발명의 일 실시예에 따르면, 영상을 예측 부호화하는 데 있어서, 움직임 추정 및 움직임 보상을 통해 생성되는 움직임 보상 프레임에 잔재하는 시간적 중복성을 제거하여 압축 효율을 더욱 향상시킬 수 있을 뿐만 아니라, 움직임 보상 프레임 내의 블록의 화소들의 특성에 따라 필터의 종류와 필터 계수를 적응적으로 선택하여 필터링함으로써 양자화 에러를 더욱 줄일 수 있으므로 압축 효율을 더욱 향상시킬 수 있거나 부호화된 후 복호화되어 재생되는 복원 영상의 화질의 열화를 더욱 줄일 수 있다.As described above, according to an embodiment of the present invention, in predicting an image, temporal redundancy remaining in a motion compensation frame generated through motion estimation and motion compensation is removed to further improve compression efficiency The quantization error can be further reduced by adaptively selecting and filtering the type of the filter and the filter coefficients according to the characteristics of the pixels of the block in the motion compensation frame. Therefore, the compression efficiency can be further improved, The deterioration of the image quality of the reconstructed image to be reproduced can be further reduced.

이상에서, 본 발명의 실시예를 구성하는 모든 구성 요소들이 하나로 결합하거나 결합하여 동작하는 것으로 설명되었다고 해서, 본 발명이 반드시 이러한 실시예에 한정되는 것은 아니다. 즉, 본 발명의 목적 범위 안에서라면, 그 모든 구성 요소들이 하나 이상으로 선택적으로 결합하여 동작할 수도 있다. 또한, 그 모든 구성 요소들이 각각 하나의 독립적인 하드웨어로 구현될 수 있지만, 각 구성 요소들의 그 일부 또는 전부가 선택적으로 조합되어 하나 또는 복수 개의 하드웨어에서 조합된 일부 또는 전부의 기능을 수행하는 프로그램 모듈을 갖는 컴퓨터 프로그램으로서 구현될 수도 있다. 그 컴퓨터 프로그램을 구성하는 코드들 및 코드 세그먼트들은 본 발명의 기술 분야의 당업자에 의해 용이하게 추론될 수 있을 것이다. 이러한 컴퓨터 프로그램은 컴퓨터가 읽을 수 있는 저장매체(Computer Readable Media)에 저장되어 컴퓨터에 의하여 읽혀지고 실행됨으로써, 본 발명의 실시예를 구현할 수 있다. 컴퓨터 프로그램의 저장매체로서는 자기 기록매체, 광 기록매체, 캐리어 웨이브 매체 등이 포함될 수 있다.While the present invention has been described in connection with what is presently considered to be the most practical and preferred embodiment, it is to be understood that the invention is not limited to the disclosed embodiments. That is, within the scope of the present invention, all of the components may be selectively coupled to one or more of them. In addition, although all of the components may be implemented as one independent hardware, some or all of the components may be selectively combined to perform a part or all of the functions in one or a plurality of hardware. As shown in FIG. The codes and code segments constituting the computer program may be easily deduced by those skilled in the art. Such a computer program can be stored in a computer-readable storage medium, readable and executed by a computer, thereby realizing an embodiment of the present invention. The storage medium of the computer program may include a magnetic recording medium, an optical recording medium, a carrier wave medium, and the like.

또한, 이상에서 기재된 "포함하다", "구성하다" 또는 "가지다" 등의 용어는, 특별히 반대되는 기재가 없는 한, 해당 구성 요소가 내재할 수 있음을 의미하는 것이므로, 다른 구성 요소를 제외하는 것이 아니라 다른 구성 요소를 더 포함할 수 있는 것으로 해석되어야 한다. 기술적이거나 과학적인 용어를 포함한 모든 용어들은, 다르게 정의되지 않는 한, 본 발명이 속하는 기술 분야에서 통상의 지식을 가진 자에 의해 일반적으로 이해되는 것과 동일한 의미가 있다. 사전에 정의된 용어와 같이 일반적으로 사용되는 용어들은 관련 기술의 문맥상의 의미와 일치하는 것으로 해석되어야 하며, 본 발명에서 명백하게 정의하지 않는 한, 이상적이거나 과도하게 형식적인 의미로 해석되지 않는다.Furthermore, the terms "comprises", "comprising", or "having" described above mean that a component can be implanted unless otherwise specifically stated, But should be construed as including other elements. All terms, including technical and scientific terms, have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs, unless otherwise defined. Commonly used terms, such as predefined terms, should be interpreted to be consistent with the contextual meanings of the related art, and are not to be construed as ideal or overly formal, unless expressly defined to the contrary.

이상의 설명은 본 발명의 기술 사상을 예시적으로 설명한 것에 불과한 것으로서, 본 발명이 속하는 기술 분야에서 통상의 지식을 가진 자라면 본 발명의 본질적인 특성에서 벗어나지 않는 범위에서 다양한 수정 및 변형이 가능할 것이다. 따라서, 본 발명에 개시된 실시예들은 본 발명의 기술 사상을 한정하기 위한 것이 아니라 설명하기 위한 것이고, 이러한 실시예에 의하여 본 발명의 기술 사상의 범위가 한정되는 것은 아니다. 본 발명의 보호 범위는 아래의 청구범위에 의하여 해석되어야 하며, 그와 동등한 범위 내에 있는 모든 기술 사상은 본 발명의 권리범위에 포함되는 것으로 해석되어야 할 것이다.The foregoing description is merely illustrative of the technical idea of the present invention, and various changes and modifications may be made by those skilled in the art without departing from the essential characteristics of the present invention. Therefore, the embodiments disclosed in the present invention are intended to illustrate rather than limit the scope of the present invention, and the scope of the technical idea of the present invention is not limited by these embodiments. The scope of protection of the present invention should be construed according to the following claims, and all technical ideas falling within the scope of the same shall be construed as falling within the scope of the present invention.

이상에서 설명한 바와 같이 본 발명은 동영상을 부호화 복호화하는 영상 압 축 처리 분야에 적용되어, 움직임 추정 및 움직임 보상을 통해 생성되는 움직임 보상 프레임에 잔재하는 시간적 중복성을 제거하여 압축 효율을 더욱 향상시킬 수 있을 뿐만 아니라, 움직임 보상 프레임 내의 블록의 화소들의 특성에 따라 필터의 종류와 필터 계수를 적응적으로 선택하여 필터링함으로써 양자화 에러를 더욱 줄일 수 있으므로 압축 효율을 더욱 향상시킬 수 있거나 부호화된 후 복호화되어 재생되는 복원 영상의 화질의 열화를 더욱 줄일 수 있는 효과를 발생하는 매우 유용한 발명이다.As described above, the present invention can be applied to an image compression processing field for encoding and decoding a video, thereby further improving compression efficiency by removing temporal redundancy remaining in a motion compensation frame generated through motion estimation and motion compensation. In addition, since the quantization error can be further reduced by adaptively selecting and filtering the filter type and the filter coefficient according to the characteristics of the pixels of the block in the motion compensation frame, the compression efficiency can be further improved, or the code is decoded and reproduced. It is a very useful invention to produce an effect that can further reduce the deterioration of the image quality of the restored image.

도 1은 본 발명의 일 실시예에 따른 영상 부호화 장치를 간략하게 나타낸 블록 구성도,1 is a block diagram schematically illustrating an image encoding apparatus according to an embodiment of the present invention.

도 2는 본 발명의 일 실시예에 따른 영상 부호화를 위한 인터 예측 장치를 간략하게 나타낸 블록 구성도,2 is a block diagram schematically illustrating an inter prediction apparatus for image encoding according to an embodiment of the present invention;

도 3은 본 발명의 일 실시예에 따라 움직임 보상 프레임을 생성하는 과정을 나타낸 예시도,3 is an exemplary view illustrating a process of generating a motion compensation frame according to an embodiment of the present invention;

도 4는 본 발명의 일 실시예에 따라 움직임 보상 프레임을 필터링하는 과정을 나타낸 예시도,4 is an exemplary view illustrating a process of filtering a motion compensation frame according to an embodiment of the present invention;

도 5는 본 발명의 일 실시예에 따른 영상 부호화 방법을 설명하기 위한 순서도,5 is a flowchart illustrating a video encoding method according to an embodiment of the present invention;

도 6은 본 발명의 일 실시예에 따른 영상 복호화 장치를 간략하게 나타낸 블록 구성도,6 is a block diagram schematically illustrating an image decoding apparatus according to an embodiment of the present invention;

도 7은 본 발명의 일 실시예에 따른 영상 복호화를 위한 인터 예측 장치를 간략하게 나타낸 블록 구성도,7 is a block diagram schematically illustrating an inter prediction apparatus for image decoding according to an embodiment of the present invention;

도 8은 본 발명의 일 실시예에 따른 영상 복호화 방법을 설명하기 위한 순서도이다.8 is a flowchart illustrating an image decoding method according to an embodiment of the present invention.

Claims (21)

영상을 부호화하는 방법에 있어서,In the method of encoding an image, 상기 영상의 현재 프레임의 움직임을 추정하고 보상하여 생성되는 움직임 보상 프레임을 필터링하는 단계; 및Filtering a motion compensation frame generated by estimating and compensating for a motion of a current frame of the image; And 상기 현재 프레임과 상기 필터링된 움직임 보상 프레임의 차인 잔여 프레임을 변환 및 양자화하고 부호화하는 단계Transforming, quantizing, and encoding a residual frame that is a difference between the current frame and the filtered motion compensation frame 를 포함하고,Including, 상기 움직임 보상 프레임을 필터링하는 단계는,Filtering the motion compensation frame, 상기 움직임 보상 프레임 내의 블록의 화소의 특성에 따라 다른 필터를 이용하여 상기 움직임 보상 프레임을 필터링하는 것을 특징으로 하는 영상 부호화 방법.And the motion compensation frame is filtered using a different filter according to a characteristic of a pixel of a block in the motion compensation frame. 삭제delete 영상을 부호화하는 방법에 있어서,In the method of encoding an image, 상기 영상의 현재 프레임의 움직임을 추정하고 보상하여 생성되는 움직임 보상 프레임을 필터링하는 단계; 및Filtering a motion compensation frame generated by estimating and compensating for a motion of a current frame of the image; And 상기 현재 프레임과 상기 필터링된 움직임 보상 프레임의 차인 잔여 프레임을 변환 및 양자화하고 부호화하는 단계Transforming, quantizing, and encoding a residual frame that is a difference between the current frame and the filtered motion compensation frame 를 포함하고, 상기 움직임 보상 프레임을 필터링하는 단계는,The filtering of the motion compensation frame may include: 상기 움직임 보상 프레임을 위너 필터 또는 디블로킹 필터를 이용하여 필터링하는 것을 특징으로 하는 영상 부호화 방법.And the motion compensation frame is filtered using a Wiener filter or a deblocking filter. 제 1 항에 있어서, 상기 움직임 보상 프레임을 필터링하는 단계는,The method of claim 1, wherein the filtering of the motion compensation frame comprises: 상기 현재 프레임과 상기 필터링된 움직임 보상 프레임 간의 제곱 에러를 최 소화하는 필터 계수를 가지는 필터를 이용하여 상기 움직임 보상 프레임을 필터링하는 것을 특징으로 하는 영상 부호화 방법.And the motion compensation frame is filtered using a filter having a filter coefficient that minimizes a square error between the current frame and the filtered motion compensation frame. 영상을 부호화하는 방법에 있어서,In the method of encoding an image, 상기 영상의 현재 프레임의 움직임을 추정하고 보상하여 생성되는 움직임 보상 프레임을 필터링하는 단계; 및Filtering a motion compensation frame generated by estimating and compensating for a motion of a current frame of the image; And 상기 현재 프레임과 상기 필터링된 움직임 보상 프레임의 차인 잔여 프레임을 변환 및 양자화하고 부호화하는 단계Transforming, quantizing, and encoding a residual frame that is a difference between the current frame and the filtered motion compensation frame 를 포함하고, 상기 영상 부호화 방법은,In addition, the video encoding method, 상기 움직임 보상 프레임을 필터링하는 데 이용한 필터의 필터 계수를 나타내는 필터 계수 정보를 부호화하는 단계를 추가로 포함하는 것을 특징으로 하는 영상 부호화 방법.And encoding filter coefficient information indicating filter coefficients of a filter used to filter the motion compensation frame. 영상을 부호화하는 방법에 있어서,In the method of encoding an image, 상기 영상의 현재 프레임의 움직임을 추정하고 보상하여 생성되는 움직임 보상 프레임을 필터링하는 단계; 및Filtering a motion compensation frame generated by estimating and compensating for a motion of a current frame of the image; And 상기 현재 프레임과 상기 필터링된 움직임 보상 프레임의 차인 잔여 프레임을 변환 및 양자화하고 부호화하는 단계Transforming, quantizing, and encoding a residual frame that is a difference between the current frame and the filtered motion compensation frame 를 포함하고, 상기 움직임 보상 프레임을 필터링하는 단계는,The filtering of the motion compensation frame may include: 상기 현재 프레임 내에서 블록 모드가 인터 모드인 블록에 대해 움직임 벡터와 참조 프레임 색인을 결정하는 단계;Determining a motion vector and a reference frame index for a block in which the block mode is inter mode within the current frame; 상기 결정된 움직임 벡터와 참조 프레임 색인을 이용하여 움직임 보상 블록을 생성하고 상기 생성된 움직임 보상 블록을 포함하는 상기 움직임 보상 프레임을 생성하는 단계; 및Generating a motion compensation block by using the determined motion vector and the reference frame index and generating the motion compensation frame including the generated motion compensation block; And 상기 움직임 보상 프레임을 필터링하는 단계Filtering the motion compensation frame 를 포함하는 것을 특징으로 하는 영상 부호화 방법.Image encoding method comprising a. 제 6 항에 있어서, 상기 영상 부호화 방법은,The method of claim 6, wherein the video encoding method comprises: 상기 블록 모드를 나타내는 블록 모드 정보를 부호화하는 단계; 및Encoding block mode information indicating the block mode; And 상기 결정된 움직임 벡터와 참조 프레임 색인을 식별하는 움직임 정보를 부호화하는 단계Encoding motion information identifying the determined motion vector and a reference frame index. 를 추가로 포함하는 것을 특징으로 하는 영상 부호화 방법.The video encoding method further comprises. 영상을 부호화하는 방법에 있어서,In the method of encoding an image, 상기 영상의 현재 프레임의 움직임을 추정하고 보상하여 생성되는 움직임 보상 프레임을 필터링하는 단계; 및Filtering a motion compensation frame generated by estimating and compensating for a motion of a current frame of the image; And 상기 현재 프레임과 상기 필터링된 움직임 보상 프레임의 차인 잔여 프레임을 변환 및 양자화하고 부호화하는 단계Transforming, quantizing, and encoding a residual frame that is a difference between the current frame and the filtered motion compensation frame 를 포함하고, 상기 영상 부호화 방법은,In addition, the video encoding method, 상기 변환 및 양자화된 잔여 프레임을 역 양자화 및 역 변환하여 잔여 프레임을 복원하는 단계;Inverse quantization and inverse transformation of the transformed and quantized residual frame to restore the residual frame; 상기 복원된 잔여 프레임과 상기 필터링된 움직임 보상 프레임을 가산하여 현재 프레임을 복원하는 단계; 및Reconstructing the current frame by adding the reconstructed residual frame and the filtered motion compensation frame; And 상기 복원된 현재 프레임을 디블로킹 필터링하여 저장하는 단계Deblocking filtering and storing the restored current frame 를 추가로 포함하는 것을 특징으로 하는 영상 부호화 방법.The video encoding method further comprises. 영상을 부호화하는 장치에 있어서,In the apparatus for encoding a video, 상기 영상의 현재 프레임의 움직임을 추정하고 보상하여 생성되는 움직임 보상 프레임을 필터링하는 예측기;A predictor for filtering a motion compensation frame generated by estimating and compensating for a motion of a current frame of the image; 상기 현재 프레임과 상기 필터링된 움직임 보상 프레임을 감산하여 잔여 프레임을 생성하는 감산기;A subtractor for generating a residual frame by subtracting the current frame and the filtered motion compensation frame; 상기 잔여 프레임을 변환 및 양자화하는 변환기 및 양자화기; 및A converter and quantizer for transforming and quantizing the residual frame; And 상기 변환 및 양자화된 잔여 프레임을 부호화하는 부호화기An encoder for encoding the transformed and quantized residual frames 를 포함하고,Including, 상기 예측기는,The predictor, 상기 현재 프레임 내에서 블록 모드가 인터 모드인 블록에 대해 움직임 벡터와 참조 프레임 색인을 결정하는 움직임 추정기;A motion estimator for determining a motion vector and a reference frame index for a block in which the block mode is inter mode within the current frame; 상기 결정된 움직임 벡터와 참조 프레임 색인을 이용하여 움직임 보상 블록을 생성하고 상기 움직임 보상 블록을 포함하는 상기 움직임 보상 프레임을 생성하는 움직임 보상기; 및A motion compensator for generating a motion compensation block using the determined motion vector and the reference frame index, and generating the motion compensation frame including the motion compensation block; And 상기 움직임 보상 프레임을 필터링하는 움직임 보상 필터A motion compensation filter for filtering the motion compensation frame 를 포함하는 것을 특징으로 하는 영상 부호화 장치.An image encoding apparatus comprising a. 삭제delete 삭제delete 영상을 복호화하는 방법에 있어서,In the method of decoding an image, 비트스트림으로부터 추출되는 움직임 정보 데이터를 복호화하여 복원되는 움직임 정보에 의해 식별되는 움직임 벡터 및 참조 프레임 인덱스를 이용하여 현재 프레임의 움직임을 보상하여 움직임 보상 프레임을 생성하고 상기 움직임 보상 프레임을 필터링하는 단계; 및Generating a motion compensation frame by compensating for the motion of the current frame by using a motion vector identified by the motion information reconstructed by decoding the motion information data extracted from the bitstream and a reference frame index, and filtering the motion compensation frame; And 상기 비트스트림으로부터 추출되고 복호화되어 복원되는 잔여 프레임과 상기 필터링된 움직임 보상 프레임을 가산하여 현재 프레임을 복원하는 단계Reconstructing the current frame by adding the filtered motion compensation frame and the residual frame extracted from the bitstream and decoded and reconstructed 를 포함하고, 상기 움직임 보상 프레임을 필터링하는 단계는,The filtering of the motion compensation frame may include: 상기 현재 프레임 내에서 블록 모드가 인터 블록인 블록에 대해 상기 비트스트림으로부터 상기 움직임 정보 데이터를 추출하고 복호화하여 움직임 정보를 복원하는 단계;Restoring motion information by extracting and decoding the motion information data from the bitstream for a block having a block mode of inter block in the current frame; 상기 복원된 움직임 정보에 의해 식별되는 움직임 벡터 및 참조 프레임 인덱스를 이용하여 움직임 보상 블록을 생성하고 상기 생성된 움직임 보상 블록을 포함하는 움직임 보상 프레임을 생성하는 단계; 및Generating a motion compensation block using the motion vector identified by the reconstructed motion information and a reference frame index, and generating a motion compensation frame including the generated motion compensation block; And 상기 움직임 보상 프레임을 필터링하는 단계Filtering the motion compensation frame 를 포함하는 것을 특징으로 하는 영상 복호화 방법.Image decoding method comprising a. 영상을 복호화하는 방법에 있어서,In the method of decoding an image, 비트스트림으로부터 추출되는 움직임 정보 데이터를 복호화하여 복원되는 움직임 정보에 의해 식별되는 움직임 벡터 및 참조 프레임 인덱스를 이용하여 현재 프레임의 움직임을 보상하여 움직임 보상 프레임을 생성하고 상기 움직임 보상 프레임을 필터링하는 단계; 및Generating a motion compensation frame by compensating for the motion of the current frame by using a motion vector identified by the motion information reconstructed by decoding the motion information data extracted from the bitstream and a reference frame index, and filtering the motion compensation frame; And 상기 비트스트림으로부터 추출되고 복호화되어 복원되는 잔여 프레임과 상기 필터링된 움직임 보상 프레임을 가산하여 현재 프레임을 복원하는 단계Reconstructing the current frame by adding the filtered motion compensation frame and the residual frame extracted from the bitstream and decoded and reconstructed 를 포함하고, 상기 영상 복호화 방법은,Including, the image decoding method, 상기 비트스트림으로부터 필터 계수 데이터를 추출하고 복호화하여 필터 계수 정보를 복원하는 단계를 추가로 포함하되, 상기 움직임 보상 프레임을 필터링하는 단계는 상기 복원된 필터 계수 정보에 의해 식별되는 필터 계수를 가지는 필터를 이용하여 상기 움직임 보상 프레임을 필터링하는 것을 특징으로 하는 영상 복호화 방법.Extracting and decoding filter coefficient data from the bitstream to restore filter coefficient information, wherein filtering the motion compensation frame comprises filtering a filter having a filter coefficient identified by the reconstructed filter coefficient information. And the motion compensation frame is filtered using the image decoding method. 영상을 복호화하는 방법에 있어서,In the method of decoding an image, 비트스트림으로부터 추출되는 움직임 정보 데이터를 복호화하여 복원되는 움직임 정보에 의해 식별되는 움직임 벡터 및 참조 프레임 인덱스를 이용하여 현재 프레임의 움직임을 보상하여 움직임 보상 프레임을 생성하고 상기 움직임 보상 프레임을 필터링하는 단계; 및Generating a motion compensation frame by compensating for the motion of the current frame by using a motion vector identified by the motion information reconstructed by decoding the motion information data extracted from the bitstream and a reference frame index, and filtering the motion compensation frame; And 상기 비트스트림으로부터 추출되고 복호화되어 복원되는 잔여 프레임과 상기 필터링된 움직임 보상 프레임을 가산하여 현재 프레임을 복원하는 단계Reconstructing the current frame by adding the filtered motion compensation frame and the residual frame extracted from the bitstream and decoded and reconstructed 를 포함하고, 상기 움직임 보상 프레임을 필터링하는 단계는,The filtering of the motion compensation frame may include: 기 설정된 필터 계수를 가지는 필터를 이용하여 상기 움직임 보상 프레임을 필터링하는 것을 특징으로 하는 영상 복호화 방법.And the motion compensation frame is filtered using a filter having a predetermined filter coefficient. 영상을 복호화하는 방법에 있어서,In the method of decoding an image, 비트스트림으로부터 추출되는 움직임 정보 데이터를 복호화하여 복원되는 움직임 정보에 의해 식별되는 움직임 벡터 및 참조 프레임 인덱스를 이용하여 현재 프레임의 움직임을 보상하여 움직임 보상 프레임을 생성하고 상기 움직임 보상 프레임을 필터링하는 단계; 및Generating a motion compensation frame by compensating for the motion of the current frame by using a motion vector identified by the motion information reconstructed by decoding the motion information data extracted from the bitstream and a reference frame index, and filtering the motion compensation frame; And 상기 비트스트림으로부터 추출되고 복호화되어 복원되는 잔여 프레임과 상기 필터링된 움직임 보상 프레임을 가산하여 현재 프레임을 복원하는 단계Reconstructing the current frame by adding the filtered motion compensation frame and the residual frame extracted from the bitstream and decoded and reconstructed 를 포함하고, 상기 움직임 보상 프레임을 필터링하는 단계는,The filtering of the motion compensation frame may include: 상기 움직임 보상 프레임 내의 블록의 화소의 특성에 따라 다른 필터를 이용하여 상기 움직임 보상 프레임을 필터링하는 것을 특징으로 하는 영상 복호화 방법.And the motion compensation frame is filtered using a different filter according to the characteristics of the pixels of the block in the motion compensation frame. 영상을 복호화하는 방법에 있어서,In the method of decoding an image, 비트스트림으로부터 추출되는 움직임 정보 데이터를 복호화하여 복원되는 움직임 정보에 의해 식별되는 움직임 벡터 및 참조 프레임 인덱스를 이용하여 현재 프레임의 움직임을 보상하여 움직임 보상 프레임을 생성하고 상기 움직임 보상 프레임을 필터링하는 단계; 및Generating a motion compensation frame by compensating for the motion of the current frame by using a motion vector identified by the motion information reconstructed by decoding the motion information data extracted from the bitstream and a reference frame index, and filtering the motion compensation frame; And 상기 비트스트림으로부터 추출되고 복호화되어 복원되는 잔여 프레임과 상기 필터링된 움직임 보상 프레임을 가산하여 현재 프레임을 복원하는 단계Reconstructing the current frame by adding the filtered motion compensation frame and the residual frame extracted from the bitstream and decoded and reconstructed 를 포함하고, 상기 움직임 보상 프레임을 필터링하는 단계는,The filtering of the motion compensation frame may include: 상기 움직임 보상 프레임을 위너 필터 또는 디블로킹 필터를 이용하여 필터링하는 것을 특징으로 하는 영상 복호화 방법.And the motion compensation frame is filtered using a Wiener filter or a deblocking filter. 영상을 복호화하는 장치에 있어서,In the apparatus for decoding an image, 비트스트림으로부터 추출되는 움직임 정보 데이터와 영상 부호화 데이터를 복호화하여 움직임 정보와 변환 및 양자화된 잔여 프레임을 복원하는 복호화기;A decoder configured to decode the motion information data and the image encoded data extracted from the bitstream and to restore the motion information and the residual and quantized frames; 상기 복원된 변환 및 양자화된 잔여 프레임을 역 양자화 및 역 변환하여 잔여 프레임을 복원하는 역 양자화기 및 역 변환기;An inverse quantizer and an inverse converter that inverse quantizes and inverse transforms the reconstructed transform and quantized residual frames to recover the residual frames; 상기 복원된 움직임 정보에 의해 식별되는 움직임 벡터 및 참조 프레임 인덱스를 이용하여 현재 프레임의 움직임을 보상하여 움직임 보상 프레임을 생성하고 상기 움직임 보상 프레임을 필터링하는 예측기; 및 A predictor for generating a motion compensation frame by compensating for the motion of the current frame using the motion vector identified by the reconstructed motion information and a reference frame index, and filtering the motion compensation frame; And 상기 복원된 잔여 프레임과 상기 필터링된 움직임 보상 프레임을 가산하여 현재 프레임을 복원하는 가산기An adder for reconstructing the current frame by adding the reconstructed residual frame and the filtered motion compensation frame; 를 포함하고,Including, 상기 예측기는, 기 설정된 필터 계수를 가지는 필터를 이용하여 상기 움직임 보상 프레임을 필터링하는 것을 특징으로 하는 영상 복호화 장치.And the predictor filters the motion compensation frame using a filter having a predetermined filter coefficient. 인터 예측 방법에 있어서,In the inter prediction method, 영상의 현재 프레임 내에서 블록 모드가 인터 모드인 블록에 대해 움직임 벡터와 참조 프레임 색인을 결정하는 단계;Determining a motion vector and a reference frame index for a block in which a block mode is inter mode within a current frame of an image; 상기 결정된 움직임 벡터와 참조 프레임 색인을 이용하여 움직임 보상 블록을 생성하고 상기 움직임 보상 블록을 포함하는 움직임 보상 프레임을 생성하는 단계; 및Generating a motion compensation block by using the determined motion vector and the reference frame index, and generating a motion compensation frame including the motion compensation block; And 상기 움직임 보상 프레임을 필터링하는 단계Filtering the motion compensation frame 를 포함하는 것을 특징으로 하는 인터 예측 방법.The inter prediction method comprising the steps of: 인터 예측 장치에 있어서,In the inter prediction apparatus, 영상의 현재 프레임 내에서 블록 모드가 인터 모드인 블록에 대해 움직임 벡터와 참조 프레임 색인을 결정하는 움직임 추정기;A motion estimator for determining a motion vector and a reference frame index for a block in which a block mode is inter mode within a current frame of an image; 상기 결정된 움직임 벡터와 참조 프레임 색인을 이용하여 움직임 보상 블록을 생성하고 상기 움직임 보상 블록을 포함하는 움직임 보상 프레임을 생성하는 움직임 보상기; 및A motion compensator for generating a motion compensation block using the determined motion vector and the reference frame index, and generating a motion compensation frame including the motion compensation block; And 상기 움직임 보상 프레임을 필터링하는 움직임 보상 필터A motion compensation filter for filtering the motion compensation frame 를 포함하는 것을 특징으로 하는 인터 예측 장치.Inter prediction apparatus comprising a. 인터 예측 방법에 있어서,In the inter prediction method, 비트스트림으로부터 추출되고 복호화되어 복원되는 움직임 정보에 의해 식별 되는 움직임 벡터 및 참조 프레임 인덱스를 이용하여 움직임 보상 블록을 생성하고 상기 움직임 보상 블록을 포함하는 움직임 보상 프레임을 생성하는 단계; 및Generating a motion compensation block using a motion vector and a reference frame index identified by the motion information extracted from the bitstream and decoded and reconstructed, and generating a motion compensation frame including the motion compensation block; And 상기 움직임 보상 프레임을 필터링하는 단계Filtering the motion compensation frame 를 포함하는 것을 특징으로 하는 인터 예측 방법.The inter prediction method comprising the steps of: 인터 예측 장치에 있어서,In the inter prediction apparatus, 비트스트림으로부터 추출되고 복호화되어 복원되는 움직임 정보에 의해 식별되는 움직임 벡터 및 참조 프레임 인덱스를 이용하여 움직임 보상 블록을 생성하고 상기 움직임 보상 블록을 포함하는 움직임 보상 프레임을 생성하는 움직임 보상기; 및A motion compensator for generating a motion compensation block using a motion vector and a reference frame index identified by the motion information extracted from the bitstream and reconstructed from the bitstream, and generating a motion compensation frame including the motion compensation block; And 상기 움직임 보상 프레임을 필터링하는 움직임 보상 필터A motion compensation filter for filtering the motion compensation frame 를 포함하는 것을 특징으로 하는 인터 예측 장치.Inter prediction apparatus comprising a.
KR1020090099339A 2009-10-19 2009-10-19 Video Coding Method and Apparatus by Using Filtering Motion Compensation Frame KR101379189B1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
KR1020090099339A KR101379189B1 (en) 2009-10-19 2009-10-19 Video Coding Method and Apparatus by Using Filtering Motion Compensation Frame
PCT/KR2010/007027 WO2011049321A2 (en) 2009-10-19 2010-10-14 Method and apparatus for encoding/decoding images using the filtering of a motion-compensated frame

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020090099339A KR101379189B1 (en) 2009-10-19 2009-10-19 Video Coding Method and Apparatus by Using Filtering Motion Compensation Frame

Publications (2)

Publication Number Publication Date
KR20110042602A KR20110042602A (en) 2011-04-27
KR101379189B1 true KR101379189B1 (en) 2014-04-10

Family

ID=43900787

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020090099339A KR101379189B1 (en) 2009-10-19 2009-10-19 Video Coding Method and Apparatus by Using Filtering Motion Compensation Frame

Country Status (2)

Country Link
KR (1) KR101379189B1 (en)
WO (1) WO2011049321A2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018084344A1 (en) * 2016-11-07 2018-05-11 엘지전자 주식회사 Image decoding method and device in image coding system

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR19980067578A (en) * 1997-02-06 1998-10-15 김광호 Filtering Method and Device for Noise Reduction in Video Coding System

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7110455B2 (en) * 2001-08-14 2006-09-19 General Instrument Corporation Noise reduction pre-processor for digital video using previously generated motion vectors and adaptive spatial filtering
CN1823530A (en) * 2003-07-16 2006-08-23 皇家飞利浦电子股份有限公司 Encoding method and device

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR19980067578A (en) * 1997-02-06 1998-10-15 김광호 Filtering Method and Device for Noise Reduction in Video Coding System

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018084344A1 (en) * 2016-11-07 2018-05-11 엘지전자 주식회사 Image decoding method and device in image coding system
US10924730B2 (en) 2016-11-07 2021-02-16 Lg Electronics Inc. Image decoding method and device in image coding system

Also Published As

Publication number Publication date
KR20110042602A (en) 2011-04-27
WO2011049321A2 (en) 2011-04-28
WO2011049321A3 (en) 2011-08-18

Similar Documents

Publication Publication Date Title
KR101444675B1 (en) Method and Apparatus for Encoding and Decoding Video
KR101441903B1 (en) Reference Frame Creating Method and Apparatus and Video Encoding/Decoding Method and Apparatus Using Same
KR101955374B1 (en) Method and Apparatus for Image Encoding/Decoding By Fast Coding Unit Mode Decision
KR101341993B1 (en) Method and Apparatus for Image Encoding/Decoding Using High Resolution Filter
KR20190009408A (en) Method and Apparatus for Video Encoding/Decoding
KR20130011878A (en) Image encoding/decoding method and apparatus using deblocking filtering
KR20080073157A (en) Method and apparatus for encoding and decoding based on inter prediction
KR20090095317A (en) Method and apparatus for encoding and decoding image
KR101681301B1 (en) Method and Apparatus for Encoding/Decoding of Video Data Capable of Skipping Filtering Mode
KR101379190B1 (en) Adaptive Resolution Based Video Encoding/Decoding Method and Apparatus
KR101432767B1 (en) Inter Prediction Method and Apparatus Using Motion Information Based Adjacent Pixels and Video Coding Method and Apparatus Using Same
KR101943058B1 (en) Method and Apparatus for Video Encoding/Decoding
KR101449683B1 (en) Motion Vector Coding Method and Apparatus by Using Motion Vector Resolution Restriction and Video Coding Method and Apparatus Using Same
KR101432779B1 (en) Video Coding Method and Apparatus by Using Motion Compensation Frame Selective Filtering and Inter Prediction Method and Apparatus Therefor
KR101527148B1 (en) Inter Prediction Apparatus and Video Encoding/Decoding Apparatus and Method Using Same
KR101379189B1 (en) Video Coding Method and Apparatus by Using Filtering Motion Compensation Frame
KR101997599B1 (en) Method and Apparatus for Image Encoding/Decoding using Efficient Non-fixed Quantization
KR101943425B1 (en) Method and Apparatus for Image Encoding/Decoding using Efficient Non-fixed Quantization
KR101537767B1 (en) Video Encoding/Decoding Method and Apparatus Using Arbitrary Pixel in Subblock
KR101483495B1 (en) Video Encoding/Decoding Method and Apparatus Using Arbitrary Pixel in Subblock
KR101524664B1 (en) Reference Frame Creating Method and Apparatus and Video Encoding/Decoding Method and Apparatus Using Same
KR101673026B1 (en) Method and Apparatus for Coding Competition-based Interleaved Motion Vector and Method and Apparatus for Encoding/Decoding of Video Data Thereof
KR101693284B1 (en) Method and Apparatus for Encoding/Decoding of Video Data Using Global Motion-based Enconding Structure
KR101533441B1 (en) Reference Frame Creating Method and Apparatus and Video Encoding/Decoding Method and Apparatus Using Same
KR101533435B1 (en) Reference Frame Creating Method and Apparatus and Video Encoding/Decoding Method and Apparatus Using Same

Legal Events

Date Code Title Description
A201 Request for examination
E902 Notification of reason for refusal
E701 Decision to grant or registration of patent right
GRNT Written decision to grant
FPAY Annual fee payment

Payment date: 20170306

Year of fee payment: 4

FPAY Annual fee payment

Payment date: 20180307

Year of fee payment: 5

FPAY Annual fee payment

Payment date: 20190304

Year of fee payment: 6

FPAY Annual fee payment

Payment date: 20191216

Year of fee payment: 7