KR20120018506A - Method and apparatus for template matching for improving compression efficiency of scalable video codec - Google Patents

Method and apparatus for template matching for improving compression efficiency of scalable video codec Download PDF

Info

Publication number
KR20120018506A
KR20120018506A KR1020100081381A KR20100081381A KR20120018506A KR 20120018506 A KR20120018506 A KR 20120018506A KR 1020100081381 A KR1020100081381 A KR 1020100081381A KR 20100081381 A KR20100081381 A KR 20100081381A KR 20120018506 A KR20120018506 A KR 20120018506A
Authority
KR
South Korea
Prior art keywords
current block
difference
region
template
decoded
Prior art date
Application number
KR1020100081381A
Other languages
Korean (ko)
Other versions
KR101349405B1 (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 KR1020100081381A priority Critical patent/KR101349405B1/en
Publication of KR20120018506A publication Critical patent/KR20120018506A/en
Application granted granted Critical
Publication of KR101349405B1 publication Critical patent/KR101349405B1/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/30Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using hierarchical techniques, e.g. scalability
    • H04N19/33Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using hierarchical techniques, e.g. scalability in the spatial domain
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/169Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding
    • H04N19/17Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object
    • H04N19/176Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object the region being a block, e.g. a macroblock
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/50Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding
    • H04N19/503Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding involving temporal prediction
    • H04N19/51Motion estimation or motion compensation
    • H04N19/53Multi-resolution motion estimation; Hierarchical motion estimation
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

PURPOSE: A template matching method and apparatus thereof are provided to scale a space where is used for a template by encoding and decoding images. CONSTITUTION: A current block is selected from a current frame(S610). A first area is selected(S612). A base block is selected(S614). A second area is created by the up-sampling of the selected base block(S616). A template is constituted by combining the first area and the second area(S618). A motion vector is calculated in order to minimize a difference between the template and a part of the frame(S620). A prediction block is determined(S630). The current block is decoded(S640).

Description

스케일러블 비디오 코덱의 압축 효율 향상을 위한 템플릿 매칭 방법 및 장치{METHOD AND APPARATUS FOR TEMPLATE MATCHING FOR IMPROVING COMPRESSION EFFICIENCY OF SCALABLE VIDEO CODEC}Template matching method and apparatus for improving compression efficiency of scalable video codec {METHOD AND APPARATUS FOR TEMPLATE MATCHING FOR IMPROVING COMPRESSION EFFICIENCY OF SCALABLE VIDEO CODEC}

아래의 실시예들은 공간적 스케일러블 비디오의 압축 효율 향상을 위한 템플릿 매칭 방법 및 장치에 관한 것이다.The following embodiments are related to a template matching method and apparatus for improving compression efficiency of spatial scalable video.

스케일러블 영상 코덱(Scalable Video Codec; SVC) 방식을 사용하여 영상 신호가 인코딩(encoding)된 경우, 최고 화질로의 인코딩이 사용되었다라도, 이러한 인코딩의 결과로 생성된 픽처 시퀀스(picture sequence)의 부분 시퀀스만이 디코딩되어 사용됨으로 인하여 저화질의 영상이 표현될 수 있다. 상기의 부분 시퀀스는 시퀀스 전체에서 간헐적으로 선택된 프레임의 시퀀스를 의미한다.When a video signal is encoded using the scalable video codec (SVC) scheme, the portion of the picture sequence resulting from such encoding, even if encoding at the highest quality is used. Since only the sequence is decoded and used, a low quality image may be represented. The above partial sequence means a sequence of frames intermittently selected from the entire sequence.

예컨대, 하나의 영상 신호원을 4CIF의 픽처 시퀀스, CIF의 픽처 시퀀스 및 QCIF의 픽처 시퀀스로 각각 인코딩하여 디코딩(decoding) 장치에 전송하는 것과 같이, 작은 영상과 큰 영상이 동시에 전송되기 위해서는, 영상의 확대 및 축소가 요구된다.For example, in order to simultaneously transmit a small image and a large image, one image signal source is encoded into a 4CIF picture sequence, a CIF picture sequence, and a QCIF picture sequence, and transmitted to a decoding device. Expansion and contraction are required.

이러한 경우, 작은 영상을 나타내는 하위 레이어 및 큰 영상을 나타내는 상위 레이어는 동일한 영상 신호원을 인코딩한다. 따라서, 양 레이어의 인코딩 신호 사이에는 잉여 정보(redundancy information)(리던던시)가 존재한다.In this case, the lower layer representing the small image and the upper layer representing the large image encode the same image signal source. Therefore, redundancy information (redundancy) exists between the encoded signals of both layers.

이러한 잉여 정보 때문에, 복수 개의 화면 사이즈를 전송하는 인코딩 방식이 사용될 경우, 인코딩되는 특정 레이어의 코딩율(coding rate)를 높이기 위해 레지듀얼(residual) 데이터가 사용된다.Because of this surplus information, when an encoding scheme for transmitting a plurality of screen sizes is used, residual data is used to increase the coding rate of a specific layer to be encoded.

레지듀얼 레이터는 하위 레이어의 임의의 영상 프레임(frame)을 기준으로 하여 그와 동시간의 현재(즉, 상위) 레이어의 영상 프레임을 예측하는 이미지의 데이터이다.The residual is data of an image that predicts an image frame of a current (ie, upper) layer at the same time based on an image frame of a lower layer.

예컨대, 높은 해상도의 영상의 현재 매크로 블록(macro block)을 인코딩함에 있어서, 그 하위 레이어의 대응 블록(현재 매크로 블록과 동시간이면서 프레임에서 동 위치에 해당하는 영역을 포함하는 블록)을 확대되고, 확대된 블륵의 화소값들과의 차이 값(또는 에러 값)이 현재 매크로 블록에 인코딩된다. 이러한 방법에 의하여 공간적 확장성(scalability)이 제공된다.For example, in encoding a current macro block of an image having a high resolution, a corresponding block (a block including a region corresponding to the same position in the frame at the same time as the current macro block) of the lower layer is enlarged, The difference value (or error value) with the pixel values of the enlarged block is encoded in the current macro block. In this way, spatial scalability is provided.

또한, H.264 SVC 비디오 코덱은 하위 레이어의 움직임, 블록 모드 및 레지듀얼 정보를 적절히 가공하여 공간 레이어 간의 잉여 정보를 줄이기 위해 사용한다.In addition, the H.264 SVC video codec is used to reduce the redundant information between spatial layers by appropriately processing the motion, block mode, and residual information of lower layers.

본 발명의 일측에 따르면, 상위 레이어 및 하위 레이어를 포함하는 영상 스트림의 부호화 또는 복호화를 위한 템플릿에 있어서, 부호화 또는 복호화의 대상인 현재 블록에 인접한 복호화된 영역을 선택함으로써 생성되는 제1 영역 및 현재 블록에 대응하는 정보를 포함하는 제2 영역을 포함하며, 상기 제2 영역은 하위 레이어의 상기 현재 블록에 대응하는 영역의 텍스처 정보를 업샘플링함으로써 생성되는, 템플릿이 제공된다.According to an aspect of the present invention, in a template for encoding or decoding an image stream including an upper layer and a lower layer, a first region and a current block generated by selecting a decoded region adjacent to a current block to be encoded or decoded And a second region including information corresponding to the second region, the second region being generated by upsampling texture information of the region corresponding to the current block of the lower layer.

상기 현재 블록에 대응하는 영역의 위치는 상기 현재 블록의 프레임 내 위치에 상기 상위 레이어의 프레임 및 상기 하위 레이어의 프레임의 길이의 비를 곱한 것일 수 있고, 상기 현재 블록에 대응하는 영역의 길이는 상기 현재 블록의 길이에 상기 상위 레이어의 프레임 및 상기 하위 레이어의 프레임의 길이의 비를 곱한 것일 수 있다.The position of the region corresponding to the current block may be a product of a ratio of a length of a frame of the upper layer and a frame of the lower layer to a position in a frame of the current block, wherein the length of the region corresponding to the current block is The length of the current block may be multiplied by the ratio of the frames of the upper layer and the frames of the lower layer.

본 발명의 다른 일측에 따르면, 상위 레이어 및 하위 레이어를 포함하는 영상 스트림의 부호화 또는 복호화를 위한 템플릿을 구성하는 방법에 있어서, 부호화 또는 복호화의 대상인 현재 블록에 인접한 복호화된 영역인 제1 영역을 선택하는 단계, 하위 레이어의 상기 현재 블록에 대응하는 영역의 텍스처 정보를 업샘플링하여 제2 영역을 생성하는 단계 및 상기 제1 영역 및 상기 제2 영역을 합하여 템플릿을 구성하는 단계를 포함하는 템플릿 생성 방법이 제공된다.According to another aspect of the present invention, in the method for configuring a template for encoding or decoding an image stream including an upper layer and a lower layer, selecting a first region that is a decoded region adjacent to a current block that is a target of encoding or decoding. Generating a second region by upsampling texture information of a region corresponding to the current block of a lower layer, and constructing a template by combining the first region and the second region. This is provided.

본 발명의 또 다른 일측에 따르면, 상위 레이어 및 하위 레이어를 포함하는 영상 스트림의 복호화에 있어서, 상위 레이어의 복호화 중인 현재 프레임에서 복호화의 대상이 되는 현재 블록을 선택하는 단계, 상기 현재 블록에 인접한 복호화된 영역 및 상기 하위 레이어의 현재 블록에 대응하는 영역에 기반하여 템플릿을 생성하는 단계, 상기 템플릿을 사용한 움직임 추정에 의해 상기 상위 레이어의 복호화된 이전 프레임에서 예측 블록을 결정하는 단계 및 상기 예측 블록에 기반하여 상기 현재 블록을 복호화하는 단계를 포함하는, 영상 스트림 복호화 방법이 제공된다 According to another aspect of the present invention, in decoding a video stream including an upper layer and a lower layer, selecting a current block to be decoded from a current frame being decoded by an upper layer, decoding adjacent to the current block Generating a template based on the decoded region and the region corresponding to the current block of the lower layer, determining a prediction block in the decoded previous frame of the upper layer by motion estimation using the template, and There is provided a video stream decoding method comprising the step of decoding the current block based on the.

상기 현재 블록에 인접한 복호화된 영역 및 상기 하위 레이어의 현재 블록에 대응하는 영역에 기반하여 템플릿울 생성하는 단계는, 상기 하위 레이어의 현재 블록에 대응하는 영역의 텍스처 정보를 업샘플링하여 업샘플링된 기저 블록을 생성하는 단계 및 상기 현재 블록에 인접한 복호화된 영역 및 상기 업샘플링된 기저 블록을 합한 상기 템플릿을 생성하는 단계를 포함할 수 있다.The generating of the template wool based on the decoded region adjacent to the current block and the region corresponding to the current block of the lower layer may include: upsampling the up-sampled texture information of the region corresponding to the current block of the lower layer; Generating a block and generating the template that adds the decoded region adjacent to the current block and the upsampled base block.

상기 템플릿을 사용한 움직임 추정에 의해 상기 상위 레이어의 복호화된 이전 프레임에서 예측 블록을 결정하는 단계는, 상기 이전 프레임 내의 부분 영역 및 상기 템플릿 간의 차이를 최소화하는 움직임 벡터를 계산하는 단계 - 상기 부분 영역은 상기 현재 블록의 위치에 상기 움직임 벡터를 더한 위치의 영역임 - 및 상기 현재 블록의 위치 및 상기 계산된 움직임 벡터에 기반하여 상기 예측 블록을 결정하는 단계를 포함할 수 있다.The determining of the prediction block in the decoded previous frame of the upper layer by motion estimation using the template may include calculating a motion vector that minimizes the difference between the partial region and the template in the previous frame, wherein the partial region is And determining the prediction block based on the position of the current block plus the motion vector and the position of the current block and the calculated motion vector.

상기 부분 영역은 상기 이전 프레임의 검색 영역 내에 있는 영역일 수 있다.인, 영상 스트림 복호화 방법.The partial region may be an area within a search region of the previous frame.

상기 차이는 SAD 함수 또는 SSD 함수에 의해 계산될 수 있다.The difference may be calculated by the SAD function or the SSD function.

상기 차이는 제1 차이 및 제2 차이의 가중치가 부가된 합이고, 상기 제1 차이는 상기 부분 영역 및 상기 현재 블록에 인접한 복호화된 영역 간의 차이이고, 상기 제2 차이는 상기 부분 영역 및 상기 업샘플링된 기저 블록 간의 차이일 수 있다.The difference is a sum of weights of a first difference and a second difference, the first difference is a difference between the partial region and a decoded region adjacent to the current block, and the second difference is the partial region and the up region. It can be the difference between the sampled base blocks.

본 발명의 또 다른 일측에 따르면, 상위 레이어 및 하위 레이어를 포함하는 영상 스트림을 수신하는 수신부, 상기 상위 레이어의 복호화된 프레임 및 상기 하위 레이어의 복호화된 프레임을 저장하는 저장부 및 상기 상위 레이어의 현재 프레임을 복호화하는 복호부를 포함하고, 상기 복호부는 상기 저장부로부터 복호화의 대상이 되는 현재 블록의 인접 영역에 대한 제1 정보 및 상기 하위 레이어의 상기 현재 블록에 대응하는 영역에 대한 제2 정보를 제공받아, 상기 제1 정보 및 상기 제2 정보에 기반하여 생성된 템플릿을 사용하여 상기 현재 블록을 복호화하는, 영상 처리 장치가 제공된다.According to another aspect of the present invention, a receiver for receiving an image stream including an upper layer and a lower layer, a storage unit for storing the decoded frame of the upper layer and the decoded frame of the lower layer and the current of the upper layer A decoder which decodes a frame, wherein the decoder provides first information on an adjacent area of a current block to be decoded from the storage unit and second information on an area corresponding to the current block of the lower layer. And decode the current block by using a template generated based on the first information and the second information.

상기 영상 스트림은 상기 차이를 계산하는 방법에 대한 제어 정보를 포함할 수 있고, 상기 복호부는 상기 제어 정보에 기반하여 상기 차이를 계산할 수 있으며, 상기 차이를 계산하는 방법은 SAD 함수 또는 SSD 함수 중 하나 이상을 포함할 수 있다.The video stream may include control information about a method of calculating the difference, the decoder may calculate the difference based on the control information, and the method of calculating the difference may be one of a SAD function and an SSD function. It may contain the above.

공간적 스케일러블 비디오 부호화 및 복호화의 압축 효율을 향상시키기 위한 템플릿 및 템플릿의 생성 방법이 제공된다.Provided are a template and a method for generating a template for improving compression efficiency of spatial scalable video encoding and decoding.

상기 템플릿을 사용한 공간적 스케일러블 비디오 복호화 장치 및 방법이 제공된다.An apparatus and method for spatial scalable video decoding using the template are provided.

도 1은 본 발명의 일 예에 따른 스케일러블 영상 코덱 부호기의 구조도이다.
도 2는 본 발명의 일 예에 따른 템플릿 매칭을 사용하여 복호화되는 프레임을 도시한다.
도 3은 본 발명의 일 예에 따른 템플릿 매칭에 사용되는 복호화된 이전 프레임을 도시한다.
도 4는 본 발명의 일 실시예에 따라 생성되는 템플릿을 도시한다.
도 5는 본 발명의 일 예에 따른 템플릿 매칭에 사용되는 복호화된 이전 프레임을 도시한다.
도 6은 본 발명의 일 실시예에 따른 영상 스트림 복호화 절차 흐름도이다.
도 7은 본 발명의 일 실시예에 따른 영상 처리 장치의 구조도이다.
1 is a structural diagram of a scalable video codec encoder according to an embodiment of the present invention.
2 illustrates a frame decoded using template matching according to an embodiment of the present invention.
3 illustrates a decoded previous frame used for template matching according to an embodiment of the present invention.
4 illustrates a template generated according to an embodiment of the present invention.
5 illustrates a decoded previous frame used for template matching according to an embodiment of the present invention.
6 is a flowchart of a video stream decoding procedure according to an embodiment of the present invention.
7 is a structural diagram of an image processing apparatus according to an embodiment of the present invention.

이하에서, 본 발명의 일 실시예를, 첨부된 도면을 참조하여 상세하게 설명한다. 그러나, 본 발명이 실시예들에 의해 제한되거나 한정되는 것은 아니다. 각 도면에 제시된 동일한 참조 부호는 동일한 부재를 나타낸다.
Hereinafter, an embodiment of the present invention will be described in detail with reference to the accompanying drawings. However, the present invention is not limited or limited by the embodiments. Like reference numerals in the drawings denote like elements.

도 1은 본 발명의 일 예에 따른 스케일러블 영상 코덱 부호기(encoder)(100)의 구조도이다.1 is a structural diagram of a scalable video codec encoder 100 according to an embodiment of the present invention.

영상 코덱 부호기(100)는 영상 원본(Original Video)(110) 및 약화된 영상(Decimated Video)(120)을 입력으로 받으며, 상위 레이어 부호기(130), 하위(베이스) 레이어 부호기(140) 및 멀티플렉서(150)를 포함한다.The image codec encoder 100 receives an original video 110 and a weakened video 120 as inputs, and includes an upper layer encoder 130, a lower (base) layer encoder 140, and a multiplexer. And 150.

약화된 영상(Decimated Video)(120)은 영상 원본(110)이 다운샘플(Downsample)된 것이다. 즉, 일반적으로 약화된 영상(120)은 영상 원본(110)에 비해 더 낮은 해상도 및/또는 더 낮은 프레임 당 속도를 갖는다.In the weakened video 120, the original image 110 is downsampled. That is, generally the weakened image 120 has a lower resolution and / or lower per frame rate than the original image 110.

상위 레이어 부호기(130)는 움직임 추정부(Motion Estimation)(160), 움직임 코딩부(Motion Coding)(162), 표준 업샘플링부(Normative Upsampling)(160), 화면 내 예측부(Intra Prediction)(172) 및 변형/엔트로피부(Transform/Entropy)(174)를 포함한다.The higher layer encoder 130 may include a motion estimation unit 160, a motion coding unit 162, a standard upsampling unit 160, and an intra prediction unit (intra prediction) 172 and Transform / Entropy 174.

하위 레이어 부호기(140)는 움직임 추정부(180), 움직임 코딩부(182), 화면 내 예측부(190) 및 변형/엔트로피부(192)를 포함한다.The lower layer encoder 140 includes a motion estimation unit 180, a motion coding unit 182, an intra prediction unit 190, and a transform / entropy unit 192.

우선, 하위 레이어 부호기(140)의 부 구성 요소들에 대해 설명한다.First, sub-components of the lower layer encoder 140 will be described.

움직임 추정부(180)는 약화된 영상(120)의 움직임을 추정한다. 추정된 움직임은 움직임 코딩부(182)에 의해 부호화된다.The motion estimator 180 estimates the motion of the weakened image 120. The estimated motion is encoded by the motion coding unit 182.

움직임 추정부(180)에 의해 출력된 텍스처(texture)는 화면 내 예측부(190)에 입력되고, 화면 내 예측이 수행된다. 화면 내 예측이 수행된 결과는 변형/엔트로피부(192)에서 변형/엔트로피 부호화된다.The texture output by the motion estimation unit 180 is input to the intra prediction unit 190, and intra prediction is performed. The result of performing the intra prediction is transformed / entropy coded by the transform / entropy unit 192.

다음, 상위 레이어 부호기(130)의 부 구성 요소들에 대해 설명한다.Next, sub-components of the higher layer encoder 130 will be described.

움직임 추정부(160)은 영상 원본(110)의 움직임을 추정한다. 추정된 움직임은 움직임 코딩부(162)에 의해 부호화된다.The motion estimator 160 estimates the motion of the image original 110. The estimated motion is encoded by the motion coding unit 162.

표준 업샘플링부(170)는 하위 레이어 부호기(140)의 변형/엔트로피부(192)에서 출력된 디코드된 프레임들 및 영상 원본(110)을 입력받아 표준 업샘플링을 수행한다.The standard upsampling unit 170 receives the decoded frames and the image original 110 output from the transform / entropy unit 192 of the lower layer encoder 140 and performs standard upsampling.

화면 내 예측부(172)는 움직임 추정부(180)에 의해 출력된 텍스처 및 표준 업샘플링부에서 출력된 업샘플링된 프레임들을 입력으로 받아, 상기 입력에 대해 화면 내 예측을 수행한다. 상기 업샘플링된 프레임들은 움직임 및 텍스처 등의 정보를 포함할 수 있다.The intra prediction unit 172 receives the texture output by the motion estimation unit 180 and the upsampled frames output from the standard upsampling unit as input, and performs intra prediction on the input. The upsampled frames may include information such as motion and texture.

변형/엔트로피부(174)는 화면 내 예측부(172)에서 출력된 화면 내 예측이 수행된 결과를 변형/엔트로피 부호화한다.The transform / entropy unit 174 transforms / entropy encodes a result of performing the intra prediction output from the intra prediction unit 172.

멀티플렉서(150)는 움직임 코딩부(162), 변형/엔트로피부(174), 움직임 코딩부(182) 및 변형/엔트로피부(192)로부터 부호화된 결과를 입력으로 받아, 상기 입력들에 대해 멀티플렉싱(Multiplexing)을 수행하여, SVC 비트스트림(Bit stream)을 출력한다.
The multiplexer 150 receives encoded results from the motion coding unit 162, the deformation / entropy unit 174, the motion coding unit 182, and the deformation / entropy unit 192 as inputs, and multiplexes the inputs. Multiplexing) to output an SVC bit stream.

도 2는 본 발명의 일 예에 따른 템플릿 매칭(template matching)을 사용하여 복호화되는 프레임(200)을 도시한다.2 illustrates a frame 200 decoded using template matching according to an example of the present invention.

복호화가 되는 프레임(200)을 이후 현재 프레임(200)으로 명명한다.The frame 200 to be decoded is hereinafter referred to as the current frame 200.

현재 프레임(200) 중 일부는 이미 복호화된 영역(210)이다(사선으로 칠해진 영역). 복호화된 영역(210)은 복수 개의 이미 복호화된 블록들로 구성된 것일 수 있다.Some of the current frames 200 are already decoded areas 210 (areas drawn with diagonal lines). The decoded region 210 may be composed of a plurality of already decoded blocks.

현재 복호화가 수행되는 블록(220)을 이후 현재 블록(220)으로 명명한다.The block 220 in which the current decoding is performed is hereinafter referred to as the current block 220.

현재 프레임(200)의 복호화된 영역(210) 중 일부가 템플릿(230)으로 이용된다. 도 2에서는 복호화된 영역(210) 중 현재 블록(220)에 인접한 사각 영역이 템플릿(230)으로 이용되었다.
A portion of the decoded region 210 of the current frame 200 is used as the template 230. In FIG. 2, a rectangular area adjacent to the current block 220 of the decoded area 210 is used as the template 230.

도 3은 본 발명의 일 예에 따른 템플릿 매칭에 사용되는 복호화된 이전 프레임(300)을 도시한다.3 illustrates a decoded previous frame 300 used for template matching according to an example of the present invention.

이미 복호화된 이전 프레임(300)을 이후 이전 프레임(300)으로 명명한다.The previous frame 300 which has already been decoded is referred to as a previous frame 300.

현재 프레임(200)의 템플릿(230)은 움직임 추정을 통해 현재 블록(220)에 대한 최적의 예측 신호를 찾기 위해 사용된다.The template 230 of the current frame 200 is used to find the optimal prediction signal for the current block 220 through motion estimation.

이전 프레임(300) 중 점선으로 도시된 일부 영역이 검색의 대상이 되는 검색 영역(Search Range)(310)이다. 즉, 움직임 추정은 검색 영역(310)의 범위 내에서 이루어진다.A portion of the previous frame 300, which is indicated by a dotted line, is a search range 310 to be searched. That is, motion estimation is performed within the range of the search area 310.

움직임 추정은 검색 영역(310) 내에서 템플릿(230)에 대응하는 최적 위치(320)를 찾는 것이다.The motion estimation is to find the optimal location 320 corresponding to the template 230 within the search area 310.

움직임 추정에 의해 최적 위치(320)가 결정되면, 최적 위치(320)에 따라 예측 블록(330)이 결정될 수 있다. 최적 위치(320) 및 예측 블록(330)의 위치 관계는 템플릿(230) 및 현재 블록(220)의 위치 관계와 같다.When the optimal position 320 is determined by the motion estimation, the prediction block 330 may be determined according to the optimal position 320. The positional relationship between the optimal position 320 and the prediction block 330 is the same as the positional relationship between the template 230 and the current block 220.

이전 프레임(300)의 예측 블록(330)은 현재 프레임(200)의 현재 블록(220)에 대응되는 부분이다. 예측 블록(330)은 현재 블록(220)의 예측에 사용된다. The prediction block 330 of the previous frame 300 corresponds to the current block 220 of the current frame 200. The prediction block 330 is used for prediction of the current block 220.

전술된 움직임 추정을 통한 최적 위치(320)는 하기의 수학식 1에 의해 결정될 수 있다. 수학식 1은 움직임 추정 과정에서 SAD(Sum of Absolute Difference) 값을 계산하기 위한 것이다.The optimal position 320 through the above-described motion estimation may be determined by Equation 1 below. Equation 1 is for calculating a sum of absolute difference (SAD) value in a motion estimation process.

Figure pat00001
Figure pat00001

vy, vx는 움직임 백터를 나타낸다. R은 참조 프레임(즉, 이전 프레임)의 픽셀(pixel) 정보이고, T는 현재 블록(220)에 따라 구성된 템플릿(230)의 픽셀 정보이다. vy , vx represent the motion vector. R is pixel information of the reference frame (ie, the previous frame), and T is pixel information of the template 230 configured according to the current block 220.

즉, 수학식 1을 사용함으로써, R T 로 정의된 템플릿(230) 영역 및 이전 프레임(300)의 템플릿(230)에 해당하는 부분(340)에서 특정 움직임 벡터만큼 이동한 영역 간의 SAD가 계산될 수 있으며, 정해진 검색 영역(310) 내에서 최소의 SAD 값을 갖게 하는 움직임 벡터 (vy, vx)(350)가 계산될 수 있다.That is, by using Equation 1, the SAD between the region of the template 230 defined by R T and the region moved by a specific motion vector in the portion 340 corresponding to the template 230 of the previous frame 300 may be calculated. In addition, a motion vector ( vy , vx ) 350 may be calculated to have a minimum SAD value within a predetermined search region 310.

템플릿(230)의 위치에서 움직임 벡터(350)만큼 이동한 곳이 최적 위치(320)이다.The optimal position 320 is a position moved by the motion vector 350 from the position of the template 230.

부호기 및 복호기(decoder)가 각각 전술된 템플릿 매칭 과정을 수행하면, 복호기는 상기 과정을 통해 최적의 예측 영역을 찾을 수 있으므로 부호기에서는 움직임 벡터를 전송하지 않을 수 있다. 따라서, 압축 효율이 향상될 수 있다.When the encoder and the decoder perform the above-described template matching process, the decoder may find the optimal prediction region through the above process, and thus the encoder may not transmit the motion vector. Therefore, the compression efficiency can be improved.

단, 현재 블록(220)은 복호화되는 시점에서, 아직 현재 블록(220)의 예측 신호를 제공하기 위하서 아직 복호화 되어있지 않다. 따라서, 전술된 방식에서 템플릿(230)은 현재 블록(220)의 정보를 사용하지 않으므로(즉, 템플릿(230)은 현재 블록(220)을 포함하지 않음), 예측 성능이 제한된다.
However, at the time when the current block 220 is decoded, it is not yet decoded to provide the prediction signal of the current block 220. Thus, in the manner described above, the template 230 does not use the information of the current block 220 (ie, the template 230 does not include the current block 220), so the prediction performance is limited.

도 4는 본 발명의 일 실시예에 따라 생성되는 템플릿(400)을 도시한다.4 illustrates a template 400 created in accordance with one embodiment of the present invention.

템플릿(400)은 제1 영역(410) 및 제2 영역(420)을 포함한다.The template 400 includes a first region 410 and a second region 420.

제1 영역(410)은 도 2를 참조하여 전술된 템플릿(230)에 해당하는 영역이다. 중복되는 설명은 생략한다.The first area 410 is an area corresponding to the template 230 described above with reference to FIG. 2. Duplicate explanations are omitted.

하위 레이어의 현재 프레임(430)(이하, 하위 프레임(430)으로 명명한다.)은 상위 레이어의 현재 프레임(200)에 대응하는 것이다. 즉, 하위 프레임(430)은 상위 레이어의 현재 프레임(200)과 같은 순간의 하위 레이어의 프레임이다.The current frame 430 of the lower layer (hereinafter, referred to as the lower frame 430) corresponds to the current frame 200 of the upper layer. That is, the lower frame 430 is a frame of the lower layer at the same time as the current frame 200 of the upper layer.

하위 프레임은 프레임에 대한 복호화된 정보를 포함한다.The lower frame includes decoded information about the frame.

본 실시예에서, 하위 레이어의 프레임의 크기는 상위 레이어의 프레임의 크기보다 더 작다. 예컨대, 하위 레이어의 프레임의 길이(x 축 길이 또는 y 축 길이)는 상위 레이어의 프레임의 길이의 1/2이다.In this embodiment, the size of the frame of the lower layer is smaller than the size of the frame of the upper layer. For example, the length (x-axis length or y-axis length) of the frame of the lower layer is 1/2 of the length of the frame of the upper layer.

하위 프레임(430) 내의 기저(base) 블록(440)은 현재 블록(230)에 대응하는 하위 프레임(430)의 영역이다. 예컨대, 현재 프레임(200) 및 하위 프레임(430)의 길이의 비율이 1:2라면, 기저 블록(440)의 하위 프레임(430) 내에서의 x 위치 값 및 y 위치 값은 각각 현재 블록(220)의 현재 프레임(200) 내에서의 x 위치 값 및 y 위치 값의 1/2이고, 기저 블록(440)의 x 길이 값 및 y 길이 값은 각각 현재 블록(220)의 x 길이 값 및 y 길이 값의 1/2이다.The base block 440 in the lower frame 430 is an area of the lower frame 430 corresponding to the current block 230. For example, if the ratio of the lengths of the current frame 200 and the lower frame 430 is 1: 2, the x position value and the y position value in the lower frame 430 of the base block 440 are respectively the current block 220. X position value and y position value in the current frame 200 of the current block 200, and the x length value and the y length value of the base block 440 are the x length value and the y length of the current block 220, respectively. 1/2 of the value.

기저 블록(440)의 텍스처 정보는 업샘플링(Upsampling)되어 업샘플링된 정보인 제2 영역(420)이 생성된다. 즉, 제2 영역(420)은 기저 블록(440)의 텍스처 정보가 업샘플링됨으로써 생성된 업샘플링된 기저 블록(420)이다.The texture information of the base block 440 is upsampled to generate a second region 420 that is upsampled information. That is, the second region 420 is the upsampled base block 420 generated by upsampling the texture information of the base block 440.

업샘플링은 하위 프레임(430) 및 현재 프레임(200)의 길이의 비에 기반하여 수행된다. 예컨대, 하위 프레임(430) 및 현재 프레임(200)의 길이의 비율이 1:2라면, 기저 블록(440)의 텍스처 정보는 2배로 업샘플링된다.Upsampling is performed based on the ratio of the lengths of the lower frame 430 and the current frame 200. For example, if the ratio of the lengths of the lower frame 430 and the current frame 200 is 1: 2, the texture information of the base block 440 is upsampled twice.

업샘플링을 위한 업샘플링 필터(filter)로, 쌍일차식 필터(bilinear filter) 등이 사용될 수 있다.As an upsampling filter for upsampling, a bilinear filter or the like may be used.

전술된 제1 영역(410) 및 제2 영역(420)을 합함으로써 템플릿(400)이 생성된다.
The template 400 is generated by summing the first region 410 and the second region 420 described above.

도 5는 본 발명의 일 예에 따른 템플릿 매칭에 사용되는 복호화된 이전 프레임을 도시한다.5 illustrates a decoded previous frame used for template matching according to an embodiment of the present invention.

이전 프레임(300) 및 검색 영역(310)은 도 3을 참조하여 전술된 것과 같다. 중복되는 설명은 생략한다.The previous frame 300 and the search area 310 are as described above with reference to FIG. 3. Duplicate explanations are omitted.

현재 프레임(200)의 템플릿(400)은 움직임 추정을 통해 현재 블록(220)에 대한 최적의 예측 신호를 찾기 위해 사용된다. 본 실시예의 템플릿(400)은 제1 영역(410) 및 제2 영역(420)을 포함한다.The template 400 of the current frame 200 is used to find the optimal prediction signal for the current block 220 through motion estimation. The template 400 of the present embodiment includes a first region 410 and a second region 420.

움직임 추정을 통해 최적 위치(520)가 결정되면, 최적 위치(520)에 따라 예측 블록(540)이 결정될 수 있다. 본 실시예에서, 템플릿(400)은 현재 블록(220)에 대응하는 제2 영역(420)을 포함한다. 따라서, 최적 위치(520)의 영역은 예측 블록(540)의 영역을 포함한다.When the optimum position 520 is determined through the motion estimation, the prediction block 540 may be determined according to the optimal position 520. In this embodiment, the template 400 includes a second area 420 corresponding to the current block 220. Thus, the region of the best position 520 includes the region of the prediction block 540.

최적 위치(520) 및 예측 블록(540)의 위치 관계는 템플릿(400) 및 현재 블록(420)의 위치 관계와 같다.The positional relationship between the optimal position 520 and the prediction block 540 is the same as the positional relationship between the template 400 and the current block 420.

움직임 추정을 통한 최적 위치(520)는 하기의 수학식 2에 의해 결정될 수 있다.The optimal position 520 through the motion estimation may be determined by Equation 2 below.

Figure pat00002
Figure pat00002

Figure pat00003
Figure pat00003

vy, vx는 움직임 백터를 나타낸다. R은 참조 프레임(즉, 이전 프레임)의 픽셀(pixel) 정보이고, T는 템플릿(400)의 제1 영역(410)의 픽셀 정보이다. R T 는 제1 영역(410)을 나타낸다. vy , vx represent the motion vector. R is pixel information of the reference frame (ie, previous frame), and T is pixel information of the first area 410 of the template 400. R T represents the first region 410.

수학식 1과는 달리, 수학식 2의 수식은 하위 레이어의 업샘플링된 정보, 죽 제2 영역(420)이 계산을 위해 사용된다. UB(Upsampled Base Block)는 템플릿(400)의 제2 영역(420)의 픽셀 정보이다. R UB 는 제2 영역(420)을 나타낸다.Unlike Equation 1, the equation of Equation 2 uses the upsampled information of the lower layer, the second region 420, to calculate. UB (Upsampled Base Block) is pixel information of the second area 420 of the template 400. R UB represents the second region 420.

수학식 2에서 나타난 것처럼, NSAD에 의해 계산되는 차이 값은 이전 프레임(300)의 제1 영역(410)에 대응하는 제1 부분(530) 및 이전 프레임(300)의 제2 영역(420)에 대응하는 제2 부분(540) 각각에 대하여 별개로 계산될 수 있다. 따라서, 각각의 부분에 대하여 상이한 계산 방식이 적용되는 것이 가능하다.As shown in Equation 2, the difference value calculated by NSAD is applied to the first portion 530 corresponding to the first region 410 of the previous frame 300 and the second region 420 of the previous frame 300. It may be calculated separately for each of the corresponding second portions 540. Thus, it is possible to apply different calculation schemes for each part.

또한, 제1 영역(410) 및 제1 부분(530) 간의 차이 값인 제1 차이 값과, 제2 영역(420) 및 제2 부분(540) 간의 차이 값인 제2 차이 값에 대해 서로 상이한 가중치를 부가하는 것이 가능하다.In addition, different weights may be applied to a first difference value that is a difference value between the first region 410 and the first portion 530, and a second difference value that is a difference value between the second region 420 and the second portion 540. It is possible to add.

수학식 2의 w는 이러한 가중치를 부가하기 위한 것이다. 예컨대 w가 0.25이면, 제1 차이 값 및 제2 차이 값은 1:3의 비율로 전체 차이 값의 계산에 사용된다. W in equation (2) is for adding this weight. For example, if w is 0.25, the first difference value and the second difference value are used for the calculation of the total difference value in a ratio of 1: 3.

w = 1인 경우, 수학식 1에서와 같은 방법으로 NSAD가 계산되며, w = 0이면, 제2 영역(420), 즉 업샘플링된 블록(420)만 사용되어 움직임이 예측된다. 따라서, w의 값을 조절함으로써 원래의 템플릿(410)의 중요도 및 업샘플링된 블록(420)의 중요도 간의 비율이 조절된다. 즉, 현재 블록(220)의 이웃 블록의 중요도 및 현재 블록(220)의 하위 레이어 신호의 중요도가 상대적으로 조절될 수 있다. If w = 1, NSAD is calculated in the same manner as in Equation 1, and if w = 0, only the second region 420, that is, the upsampled block 420, is used to predict the motion. Thus, by adjusting the value of w the ratio between the importance of the original template 410 and the importance of the upsampled block 420 is adjusted. That is, the importance of the neighboring block of the current block 220 and the importance of the lower layer signal of the current block 220 may be relatively adjusted.

w의 값은 복호화 과정 중 변할 수 있으며, w의 값은 비트 스트림이 압축될 때 신텍스 정보(syntax)로서 포함될 수 있다.The value of w may change during the decoding process, and the value of w may be included as syntax information when the bit stream is compressed.

n은 어떠한 방식으로 차이 값을 계산할지를 결정할 수 있다. 수학식 2에서, n이 1이면 SAD에 의해 차이 값이 계산되고, n이 2이면 SSD(Sum of Squared Difference)에 의해 차이 값이 계산된다. n의 값은 비트 스트림이 압축될 때 신텍스 정보로서 포함될 수 있다. n can determine how to calculate the difference value. In Equation 2, when n is 1, a difference value is calculated by SAD, and when n is 2, a difference value is calculated by a sum of squared difference (SSD). The value of n may be included as syntax information when the bit stream is compressed.

수학식 2을 사용함으로써, R T R UB 를 포함하는 템플릿(400) 영역 및 이전 프레임(300)의 상기 템플릿(400)에 대응하는 부분(550)에서 특정 움직임 벡터만큼 이동한 영역 간의 NSAD가 계산될 수 있으며, 정해진 검색 영역(310) 내에서 최소의 NSAD 값을 갖게 하는 움직임 벡터 (vy, vx)(560)가 계산될 수 있다.By using Equation 2, the NSAD between the region of the template 400 including R T and R UB and the region moved by a specific motion vector in the portion 550 corresponding to the template 400 of the previous frame 300 is obtained. A motion vector ( vy , vx ) 560 can be calculated that has a minimum NSAD value within a given search region 310.

움직임 벡터(560)는 하위 레이어에서 추출된 정보를 사용하였기 때문에 도 3을 참조하여 전술된 움직임 벡터(350)에 비해 정확도가 향상된 것일 수 있다. 따라서, 움직임 벡터(560)에 기반한 압축 효율이 향상될 수 있다.
Since the motion vector 560 uses the information extracted from the lower layer, the motion vector 560 may be improved in accuracy compared to the motion vector 350 described above with reference to FIG. 3. Therefore, the compression efficiency based on the motion vector 560 can be improved.

도 6은 본 발명의 일 실시예에 따른 영상 스트림 복호화 절차 흐름도이다.6 is a flowchart of a video stream decoding procedure according to an embodiment of the present invention.

우선, 단계(610 내지 618)에서, 현재 블록(220)에 인접한 복호화된 영역(230) 및 기저 블록(440)에 기반하여 템플릿(400)이 생성된다. 상기 템플릿(400)은 상위 레이어 및 하위 레이어를 포함하는 영상 스트림의 부호화 또는 복호화를 위한 템플릿일 수 있다.First, in steps 610-618, a template 400 is generated based on the decoded region 230 and the base block 440 adjacent to the current block 220. The template 400 may be a template for encoding or decoding an image stream including an upper layer and a lower layer.

단계(S610)에서, 현재 프레임(200)에서 현재 블록(220)이 선택된다.In step S610, the current block 220 is selected in the current frame 200.

단계(S612)에서, 현재 블록(220)에 인접한 복호화된 영역인 제1 영역(410)이 선택된다.In operation S612, the first region 410, which is a decoded region adjacent to the current block 220, is selected.

단계(S614)에서, 하위 프레임(430)에서 현재 블록(220)에 대응하는 영역, 즉 기저 블록(440)이 선택된다.In operation S614, an area corresponding to the current block 220, that is, the base block 440, is selected in the lower frame 430.

기저 블록(440)은 상위 레이어의 프레임(200) 및 하위 레이어의 프레임(430) 간의 크기 비율에 의하여 결정될 수 있다.The base block 440 may be determined by a size ratio between the frame 200 of the upper layer and the frame 430 of the lower layer.

단계(S616)에서, 선택된 기저 블록(440)을 업샘플링하여 업샘플링된 기저 블록(420), 즉 제2 영역(420)이 생성된다.In operation S616, the upsampled base block 420, that is, the second region 420 is generated by upsampling the selected base block 440.

단계(S618)에서 제1 영역(410) 및 제2 영역(420)을 합함으로써 템플릿(400)이 구성된다.In operation S618, the template 400 is configured by summing the first region 410 and the second region 420.

다음, 단계(S620 내지 S630)에서, 템플릿(400)을 사용한 움직임 추정에 의해 상위 레이어의 복호화된 이전 프레임(300)에서 예측 블록(540)이 결정된다.Next, in steps S620 to S630, the prediction block 540 is determined in the decoded previous frame 300 of the upper layer by motion estimation using the template 400.

단계(S620)에서, 이전 프레임(300) 내의 부분 영역(520) 및 템플릿(400) 간의 차이를 최소화하는 움직임 벡터(560)가 계산된다. 상기 움직임 벡터(560)를 계산하는 구체적인 방법이 도 1 내지 도 5, 그리고 수학식 1 및 수학식 2를 참조하여 전술되었다.In step S620, a motion vector 560 is calculated that minimizes the difference between the partial region 520 and the template 400 in the previous frame 300. A detailed method of calculating the motion vector 560 has been described above with reference to FIGS. 1 to 5, and Equations 1 and 2.

상기 차이는 전술된 수학식 1의 SAD 값 또는 수학식 2의 NSAD 값일 수 있다. 상기 차이는 도 5를 참조하여 전술된 제1 차이 값 및 제2 차이 값 각각에 대해 가중치가 부가된 것의 합일 수 있다.The difference may be the SAD value of Equation 1 or the NSAD value of Equation 2 described above. The difference may be a sum of weighted values for each of the first difference value and the second difference value described above with reference to FIG. 5.

상기 부분 영역은 현재 블록(220)의 위치에 움직임 벡터(560)를 더한 위치의 영역이다. 상기 부분 영역은 상기 이전 프레임의 검색 영역 내에 있는 영역일 수 있다.The partial region is the region of the position of the current block 220 plus the motion vector 560. The partial area may be an area within a search area of the previous frame.

단계(S630)에서, 현재 블록(220)의 위치 및 상기 계산된 움직임 벡터(560)에 기반하여 예측 블록(540)이 결정된다.In operation S630, the prediction block 540 is determined based on the position of the current block 220 and the calculated motion vector 560.

다음, 단계(S640)에서, 예측 블록(540)에 기반하여 현재 블록(220)이 복호화된다.Next, in step S640, the current block 220 is decoded based on the prediction block 540.

앞서 도 1 내지 도 5를 참조하여 설명된 본 발명의 일 실시예에 따른 기술 적 내용들이 본 실시예에도 그대로 적용될 수 있다. 따라서 보다 상세한 설명은 이하 생략하기로 한다.
Technical contents according to an embodiment of the present invention described above with reference to FIGS. 1 to 5 may be applied to the present embodiment as it is. Therefore, more detailed description will be omitted below.

도 7은 본 발명의 일 실시예에 따른 영상 처리 장치의 구조도이다.7 is a structural diagram of an image processing apparatus according to an embodiment of the present invention.

영상 처리 장치(700)은 수신부(710), 저장부(720) 및 복호부(730)를 포함한다.The image processing apparatus 700 includes a receiver 710, a storage 720, and a decoder 730.

수신부(710)는 상위 레이어 및 하위 레이어를 포함하는 영상 스트림을 수신한다.The receiver 710 receives an image stream including an upper layer and a lower layer.

저장부(720)는 상위 레이어의 복호화된 프레임 및 하위 레이어의 복호화된 프레임을 저장한다.The storage unit 720 stores the decoded frame of the upper layer and the decoded frame of the lower layer.

복호부(730)는 상위 레이어의 현재 프레임을 복호화한다. 복호부(730)는 상위 레이어의 프레임 및 하위 레이어의 프레임을 복호화할 수 있다.
The decoder 730 decodes the current frame of the upper layer. The decoder 730 may decode the frame of the upper layer and the frame of the lower layer.

복호부(730)은 템플릿(400)을 생성한다. 즉, 복호부(720)는 저장부(720)로부터 복호화의 대상이 되는 현재 블록(220)의 인접 영역(230)에 대한 제1 정보 및 하위 레이어의 현재 블록(220)에 대응하는 영역(440)에 대한 제2 정보를 제공받아, 제1 정보 및 제2 정보에 기반하여 템플릿(400)을 생성한다.The decoder 730 generates the template 400. That is, the decoder 720 may include the first information about the adjacent area 230 of the current block 220 to be decoded from the storage 720 and the area 440 corresponding to the current block 220 of the lower layer. ) Receives the second information about), and generates a template 400 based on the first information and the second information.

제2 정보는 하위 레이어의 현재 블록(220)에 대응하는 영역(440)의 텍스처 정보를 업샘플링함으로써 생성되는 업샘플링된 기저 블록(420)에 대한 정보일 수 있다.The second information may be information about the upsampled base block 420 generated by upsampling texture information of the region 440 corresponding to the current block 220 of the lower layer.

복호부(730)는 생성된 템플릿(400)을 사용하여 상위 레이어의 이전 프레임(300)의 부분 영역 중 템플릿(400)과의 차이가 최소인 예측 블록(540)을 결정할 수 있고, 예측 블록(540)에 기반하여 현재 블록(220)을 복호화할 수 있다.The decoder 730 may determine the prediction block 540 having the smallest difference from the template 400 among the partial regions of the previous frame 300 of the upper layer by using the generated template 400. Based on 540, the current block 220 may be decoded.

복호부(740)는 도 5 및 도 6을 참조하여 전술된 제1 차이 값 및 제2 차이 값을 계산할 수 있으며, 제1 차이 값 및 상기 제2 차이 값을 가중치를 부가하여 합함으로써 상기 차이를 계산할 수 있다.The decoder 740 may calculate the first difference value and the second difference value described above with reference to FIGS. 5 and 6, and add the first difference value and the second difference value by a weighted sum to add the difference. Can be calculated

복호부(740)는 영상 스트림에 포함된 차이를 계산하는 방법에 대한 제어 정보 및 가중치 정보에 기반하여 상기 차이를 계산할 수 있다. 차이를 계산하는 방법은 SAD 및 SSD를 포함할 수 있다.The decoder 740 may calculate the difference based on control information and weight information on a method of calculating a difference included in the video stream. The method of calculating the difference may include SAD and SSD.

앞서 도 1 내지 도 6을 참조하여 설명된 본 발명의 일 실시예에 따른 기술 적 내용들이 본 실시예에도 그대로 적용될 수 있다. 따라서 보다 상세한 설명은 이하 생략하기로 한다.
Technical contents according to an embodiment of the present invention described above with reference to FIGS. 1 to 6 may be applied to the present embodiment as it is. Therefore, more detailed description will be omitted below.

본 발명의 일 실시예에 따른 방법은 다양한 컴퓨터 수단을 통하여 수행될 수 있는 프로그램 명령 형태로 구현되어 컴퓨터 판독 가능 매체에 기록될 수 있다. 상기 컴퓨터 판독 가능 매체는 프로그램 명령, 데이터 파일, 데이터 구조 등을 단독으로 또는 조합하여 포함할 수 있다. 상기 매체에 기록되는 프로그램 명령은 본 발명을 위하여 특별히 설계되고 구성된 것들이거나 컴퓨터 소프트웨어 당업자에게 공지되어 사용 가능한 것일 수도 있다. 컴퓨터 판독 가능 기록 매체의 예에는 하드 디스크, 플로피 디스크 및 자기 테이프와 같은 자기 매체(magnetic media), CD-ROM, DVD와 같은 광기록 매체(optical media), 플롭티컬 디스크(floptical disk)와 같은 자기-광 매체(magneto-optical media), 및 롬(ROM), 램(RAM), 플래시 메모리 등과 같은 프로그램 명령을 저장하고 수행하도록 특별히 구성된 하드웨어 장치가 포함된다. 프로그램 명령의 예에는 컴파일러에 의해 만들어지는 것과 같은 기계어 코드뿐만 아니라 인터프리터 등을 사용해서 컴퓨터에 의해서 실행될 수 있는 고급 언어 코드를 포함한다. 상기된 하드웨어 장치는 본 발명의 동작을 수행하기 위해 하나 이상의 소프트웨어 모듈로서 작동하도록 구성될 수 있으며, 그 역도 마찬가지이다.Method according to an embodiment of the present invention is implemented in the form of program instructions that can be executed by various computer means may be recorded on a computer readable medium. The computer readable medium may include program instructions, data files, data structures, etc. alone or in combination. Program instructions recorded on the media may be those specially designed and constructed for the purposes of the present invention, or they may be of the kind well-known and available to those having skill in the computer software arts. Examples of computer-readable recording media include magnetic media such as hard disks, floppy disks, and magnetic tape, optical media such as CD-ROMs, DVDs, and magnetic disks, such as floppy disks. Magneto-optical media, and hardware devices specifically configured to store and execute program instructions, such as ROM, RAM, flash memory, and the like. Examples of program instructions include not only machine code generated by a compiler, but also high-level language code that can be executed by a computer using an interpreter or the like. The hardware device described above may be configured to operate as one or more software modules to perform the operations of the present invention, and vice versa.

이상과 같이 본 발명은 비록 한정된 실시예와 도면에 의해 설명되었으나, 본 발명은 상기의 실시예에 한정되는 것은 아니며, 본 발명이 속하는 분야에서 통상의 지식을 가진 자라면 이러한 기재로부터 다양한 수정 및 변형이 가능하다.As described above, the present invention has been described by way of limited embodiments and drawings, but the present invention is not limited to the above embodiments, and those skilled in the art to which the present invention pertains various modifications and variations from such descriptions. This is possible.

그러므로, 본 발명의 범위는 설명된 실시예에 국한되어 정해져서는 아니 되며, 후술하는 특허청구범위뿐 아니라 이 특허청구범위와 균등한 것들에 의해 정해져야 한다.Therefore, the scope of the present invention should not be limited to the described embodiments, but should be determined not only by the claims below but also by the equivalents of the claims.

700: 영상 처리 장치
710: 수신부
720: 복호화부
730: 저장부
700: image processing device
710: receiver
720: decoder
730: storage unit

Claims (15)

상위 레이어 및 하위 레이어를 포함하는 영상 스트림의 복호화에 있어서,
상위 레이어의 복호화 중인 현재 프레임에서 복호화의 대상이 되는 현재 블록을 선택하는 단계;
상기 현재 블록에 인접한 복호화된 영역 및 상기 하위 레이어의 현재 블록에 대응하는 영역에 기반하여 템플릿을 생성하는 단계;
상기 템플릿을 사용한 움직임 추정에 의해 상기 상위 레이어의 복호화된 이전 프레임에서 예측 블록을 결정하는 단계; 및
상기 예측 블록에 기반하여 상기 현재 블록을 복호화하는 단계
를 포함하는, 영상 스트림 복호화 방법.
In decoding a video stream including an upper layer and a lower layer,
Selecting a current block to be decoded from the current frame under decoding of the upper layer;
Generating a template based on a decoded region adjacent to the current block and a region corresponding to the current block of the lower layer;
Determining a prediction block in a decoded previous frame of the upper layer by motion estimation using the template; And
Decoding the current block based on the prediction block
The video stream decoding method comprising a.
제1항에 있어서,
상기 현재 블록에 인접한 복호화된 영역 및 상기 하위 레이어의 현재 블록에 대응하는 영역에 기반하여 템플릿울 생성하는 단계는,
상기 하위 레이어의 현재 블록에 대응하는 영역의 텍스처 정보를 업샘플링하여 업샘플링된 기저 블록을 생성하는 단계; 및
상기 현재 블록에 인접한 복호화된 영역 및 상기 업샘플링된 기저 블록을 합한 상기 템플릿을 생성하는 단계
를 포함하는 영상 스트림 복호화 방법.
The method of claim 1,
Generating the template wool based on the decoded region adjacent to the current block and the region corresponding to the current block of the lower layer,
Generating an upsampled base block by upsampling texture information of an area corresponding to a current block of the lower layer; And
Generating the template sum of the decoded region adjacent the current block and the upsampled base block;
Video stream decoding method comprising a.
제1항에 있어서,
상기 템플릿을 사용한 움직임 추정에 의해 상기 상위 레이어의 복호화된 이전 프레임에서 예측 블록을 결정하는 단계는,
상기 이전 프레임 내의 부분 영역 및 상기 템플릿 간의 차이를 최소화하는 움직임 벡터를 계산하는 단계 - 상기 부분 영역은 상기 현재 블록의 위치에 상기 움직임 벡터를 더한 위치의 영역임 -; 및
상기 현재 블록의 위치 및 상기 계산된 움직임 벡터에 기반하여 상기 예측 블록을 결정하는 단계
를 포함하는, 영상 스트림 복호화 방법.
The method of claim 1,
Determining the prediction block in the decoded previous frame of the upper layer by motion estimation using the template,
Calculating a motion vector that minimizes the difference between the partial region and the template in the previous frame, wherein the partial region is an area of the position of the current block plus the motion vector; And
Determining the prediction block based on the position of the current block and the calculated motion vector
The video stream decoding method comprising a.
제3항에 있어서,
상기 부분 영역은 상기 이전 프레임의 검색 영역 내에 있는 영역인, 영상 스트림 복호화 방법.
The method of claim 3,
And the partial area is an area within a search area of the previous frame.
제3항에 있어서,
상기 차이는 SAD(Sum of Absolute Difference) 또는 SSD(Sum of Squared Difference) 함수에 의해 계산되는, 영상 스트림 복호화 방법.
The method of claim 3,
The difference is calculated by a sum of absolute difference (SAD) or sum of squared difference (SSD) function.
제3항에 있어서,
상기 차이는,
제1 차이 및 제2 차이의 가중치가 부가된 합이고,
상기 제1 차이는 상기 부분 영역 및 상기 현재 블록에 인접한 복호화된 영역 간의 차이이고,
상기 제2 차이는 상기 부분 영역 및 상기 업샘플링된 기저 블록 간의 차이인, 영상 스트림 복호화 방법.
The method of claim 3,
The difference is
A weighted sum of the first and second differences,
The first difference is a difference between the partial region and a decoded region adjacent to the current block,
And wherein the second difference is a difference between the partial region and the upsampled base block.
상위 레이어 및 하위 레이어를 포함하는 영상 스트림을 수신하는 수신부;
상기 상위 레이어의 복호화된 프레임 및 상기 하위 레이어의 복호화된 프레임을 저장하는 저장부; 및
상기 상위 레이어의 현재 프레임을 복호화하는 복호부
를 포함하고, 상기 복호부는 상기 저장부로부터 복호화의 대상이 되는 현재 블록의 인접 영역에 대한 제1 정보 및 상기 하위 레이어의 상기 현재 블록에 대응하는 영역에 대한 제2 정보를 제공받아, 상기 제1 정보 및 상기 제2 정보에 기반하여 생성된 템플릿을 사용하여 상기 현재 블록을 복호화하는, 영상 처리 장치.
A receiver configured to receive an image stream including an upper layer and a lower layer;
A storage unit which stores the decoded frame of the upper layer and the decoded frame of the lower layer; And
Decoder for decoding the current frame of the upper layer
The decoding unit receives first information about an adjacent area of a current block to be decoded from the storage unit and second information about an area corresponding to the current block of the lower layer. And decoding the current block by using a template generated based on the information and the second information.
제7항에 있어서,
상기 제2 정보는 상기 하위 레이어의 상기 현재 블록에 대응하는 영역의 텍스처 정보를 업샘플링함으로써 생성되는 업샘플링된 기저 블록에 대한 정보인, 영상 처리 장치.
The method of claim 7, wherein
And the second information is information about an upsampled base block generated by upsampling texture information of a region corresponding to the current block of the lower layer.
제7항에 있어서,
상기 하위 레이어의 상기 현재 블록에 대응하는 영역은 상기 상위 레이어의 프레임의 길이 및 상기 하위 레이어의 프레임의 길이 간의 비율에 의하여 결정되는, 영상 처리 장치.
The method of claim 7, wherein
And an area corresponding to the current block of the lower layer is determined by a ratio between a length of a frame of the upper layer and a length of a frame of the lower layer.
제7항에 있어서,
상기 복호부는 상기 상위 레이어의 이전 프레임의 부분 영역 중 상기 템플릿과의 차이가 최소인 예측 블록을 결정하고, 상기 예측 블록에 기반하여 상기 현재 블록을 복호화하는, 영상 처리 장치.
The method of claim 7, wherein
The decoder determines a prediction block having a minimum difference from the template among partial regions of a previous frame of the upper layer, and decodes the current block based on the prediction block.
제10항에 있어서,
상기 복호부는 상기 부분 영역 및 상기 현재 블록에 인접한 복호화된 영역 간의 제1 차이 값을 계산하고, 상기 부분 영역 및 상기 업샘플링된 기저 블록 간의 제2 차이 값을 계산하고, 상기 제1 차이 값 및 상기 제2 차이 값을 가중치를 부가하여 합함으로써 상기 차이를 계산하는, 영상 처리 장치.
The method of claim 10,
The decoder calculates a first difference value between the partial region and the decoded region adjacent to the current block, calculates a second difference value between the partial region and the upsampled base block, and calculates the first difference value and the And calculating the difference by adding a second difference value by adding a weight.
제10항에 있어서,
상기 영상 스트림은 상기 차이를 계산하는 방법에 대한 제어 정보를 포함하고,
상기 복호부는 상기 제어 정보에 기반하여 상기 차이를 계산하며,
상기 차이를 계산하는 방법은 SAD(Sum of Absolute Difference) 또는 SSD(Sum of Squared Difference) 함수 중 하나 이상을 포함하는, 영상 처리 장치.
The method of claim 10,
The video stream includes control information on how to calculate the difference,
The decoder calculates the difference based on the control information,
The method of calculating the difference may include at least one of a sum of absolute difference (SAD) or a sum of squared difference (SSD) function.
상위 레이어 및 하위 레이어를 포함하는 영상 스트림의 부호화 또는 복호화를 위한 템플릿을 구성하는 방법에 있어서,
부호화 또는 복호화의 대상인 현재 블록에 인접한 복호화된 영역인 제1 영역을 선택하는 단계;
하위 레이어의 상기 현재 블록에 대응하는 영역의 텍스처 정보를 업샘플링하여 제2 영역을 생성하는 단계; 및
상기 제1 영역 및 상기 제2 영역을 합하여 템플릿을 구성하는 단계
를 포함하는 템플릿 생성 방법.
A method for configuring a template for encoding or decoding an image stream including an upper layer and a lower layer,
Selecting a first region that is a decoded region adjacent to a current block that is a target of encoding or decoding;
Generating a second region by upsampling texture information of a region corresponding to the current block of a lower layer; And
Combining the first region and the second region to form a template
Template generation method comprising a.
제13항에 있어서,
상기 하위 레이어의 상기 현재 블록에 대응하는 영역은 상기 상위 레이어의 프레임 및 상기 하위 레이어의 프레임 간의 크기 비율에 의하여 결정되는, 템플릿 생성 방법.
The method of claim 13,
And a region corresponding to the current block of the lower layer is determined by a size ratio between a frame of the upper layer and a frame of the lower layer.
제13항에 있어서,
상기 업샘플링은 쌍일차식 필터에 의해 업샘플링되는, 템플릿 생성 방법.
The method of claim 13,
And the upsampling is upsampled by a bilinear filter.
KR1020100081381A 2010-08-23 2010-08-23 Method and apparatus for template matching for improving compression efficiency of scalable video codec KR101349405B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020100081381A KR101349405B1 (en) 2010-08-23 2010-08-23 Method and apparatus for template matching for improving compression efficiency of scalable video codec

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020100081381A KR101349405B1 (en) 2010-08-23 2010-08-23 Method and apparatus for template matching for improving compression efficiency of scalable video codec

Publications (2)

Publication Number Publication Date
KR20120018506A true KR20120018506A (en) 2012-03-05
KR101349405B1 KR101349405B1 (en) 2014-01-10

Family

ID=46127742

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020100081381A KR101349405B1 (en) 2010-08-23 2010-08-23 Method and apparatus for template matching for improving compression efficiency of scalable video codec

Country Status (1)

Country Link
KR (1) KR101349405B1 (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013137701A1 (en) * 2012-03-16 2013-09-19 한국전자통신연구원 Intra-prediction method for multi-layer images and apparatus using same
WO2013169025A1 (en) * 2012-05-09 2013-11-14 엘지전자 주식회사 Method and device for encoding/decoding scalable video
WO2014003519A1 (en) * 2012-06-29 2014-01-03 삼성전자 주식회사 Method and apparatus for encoding scalable video, and method and apparatus for decoding scalable video
WO2014163461A1 (en) * 2013-04-05 2014-10-09 삼성전자 주식회사 Video encoding method and apparatus thereof, and a video decoding method and apparatus thereof
KR101466574B1 (en) * 2013-03-19 2014-12-02 삼성전자주식회사 Method and apparatus for scalable video encoding, method and apparatus for scalable video decoding

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101174901B1 (en) * 2005-11-28 2012-08-17 세종대학교산학협력단 Method and Apparatus for prediction of adaptive motion vector in multi-viewpoint image
KR20100066348A (en) * 2008-12-08 2010-06-17 한국전자통신연구원 An encoding method of scalable video data

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013137701A1 (en) * 2012-03-16 2013-09-19 한국전자통신연구원 Intra-prediction method for multi-layer images and apparatus using same
WO2013169025A1 (en) * 2012-05-09 2013-11-14 엘지전자 주식회사 Method and device for encoding/decoding scalable video
WO2014003519A1 (en) * 2012-06-29 2014-01-03 삼성전자 주식회사 Method and apparatus for encoding scalable video, and method and apparatus for decoding scalable video
KR101466574B1 (en) * 2013-03-19 2014-12-02 삼성전자주식회사 Method and apparatus for scalable video encoding, method and apparatus for scalable video decoding
WO2014163461A1 (en) * 2013-04-05 2014-10-09 삼성전자 주식회사 Video encoding method and apparatus thereof, and a video decoding method and apparatus thereof
US10728565B2 (en) 2013-04-05 2020-07-28 Samsung Electronics Co., Ltd. Video encoding method and apparatus thereof and a video decoding method and apparatus thereof

Also Published As

Publication number Publication date
KR101349405B1 (en) 2014-01-10

Similar Documents

Publication Publication Date Title
US10110902B2 (en) Method and apparatus for encoding/decoding motion vector
KR100888962B1 (en) Method for encoding and decoding video signal
KR101366242B1 (en) Method for encoding and decoding motion model parameter, and method and apparatus for video encoding and decoding using motion model parameter
US8254456B2 (en) Method and apparatus for encoding video and method and apparatus for decoding video
RU2341035C1 (en) Video signal coding and decoding procedure based on weighted prediction and related device for implementation thereof
KR20190030867A (en) Apparatus and method for encording 360-degree video, recording medium for performing the method
KR20080088040A (en) Method and apparatus for video encoding and decoding
US8731055B2 (en) Method and apparatus for encoding and decoding an image based on plurality of reference pictures
CN115486068A (en) Method and apparatus for inter-frame prediction based on deep neural network in video coding
KR20120009648A (en) Rate-Distortion Optimization Apparatus and Method for depth-image encoding
KR101883265B1 (en) Methods and apparatus for reducing vector quantization error through patch shifting
KR101349405B1 (en) Method and apparatus for template matching for improving compression efficiency of scalable video codec
JP2016154395A (en) Method and apparatus for encoding/decoding video using motion vector of previous block as motion vector for current block
KR20120095611A (en) Method and apparatus for encoding/decoding multi view video
KR102163477B1 (en) Video encoding and decoding method and device using said method
JP2006324888A (en) Dynamic-image coding equipment
JP2019161410A (en) Image encoding device, and control method and program therefor
KR101315295B1 (en) Method and apparatus for encoding and decoding multi-view image
JP2013517733A (en) Video encoding / decoding method and apparatus using previous block motion vector as current block motion vector

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: 20161228

Year of fee payment: 4

FPAY Annual fee payment

Payment date: 20171226

Year of fee payment: 5

LAPS Lapse due to unpaid annual fee