KR20210134266A - Method and Apparatus for Estimating Optical Flow for Motion Compensation - Google Patents

Method and Apparatus for Estimating Optical Flow for Motion Compensation Download PDF

Info

Publication number
KR20210134266A
KR20210134266A KR1020210144209A KR20210144209A KR20210134266A KR 20210134266 A KR20210134266 A KR 20210134266A KR 1020210144209 A KR1020210144209 A KR 1020210144209A KR 20210144209 A KR20210144209 A KR 20210144209A KR 20210134266 A KR20210134266 A KR 20210134266A
Authority
KR
South Korea
Prior art keywords
block
motion vector
bio
current block
sub
Prior art date
Application number
KR1020210144209A
Other languages
Korean (ko)
Other versions
KR102409449B1 (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 에스케이텔레콤 주식회사
Publication of KR20210134266A publication Critical patent/KR20210134266A/en
Application granted granted Critical
Publication of KR102409449B1 publication Critical patent/KR102409449B1/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/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/577Motion compensation with bidirectional frame interpolation, i.e. using B-pictures
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/102Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
    • H04N19/103Selection of coding mode or of prediction mode
    • H04N19/105Selection of the reference unit for prediction within a chosen coding or prediction mode, e.g. adaptive choice of position and number of pixels used for prediction
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/50Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding
    • H04N19/503Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding involving temporal prediction
    • H04N19/51Motion estimation or motion compensation
    • H04N19/513Processing of motion vectors
    • H04N19/517Processing of motion vectors by encoding
    • H04N19/52Processing of motion vectors by encoding by predictive encoding
    • 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/537Motion estimation other than block-based
    • H04N19/543Motion estimation other than block-based using regions
    • 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/56Motion estimation with initialisation of the vector search, e.g. estimating a good candidate to initiate a search
    • 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/57Motion estimation characterised by a search window with variable size or shape
    • 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/573Motion compensation with multiple frame prediction using two or more reference frames in a given prediction direction
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/169Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding
    • H04N19/182Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being a pixel

Landscapes

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

Abstract

Disclosed is a method for estimating adaptive bidirectional optical flow (BIO) for intra prediction correction in an image encoding process. An object of the present invention is to reduce complexity and/or cost of a bidirectional optical flow at a pixel level or a sub-block level. The method for encoding image data comprises: a process of determining a first motion vector and determining a second motion vector; a process of generating a prediction block; and a process of encoding a current block.

Description

움직임 보상을 위한 옵티컬 플로우 추정 방법 및 장치{Method and Apparatus for Estimating Optical Flow for Motion Compensation}Optical flow estimation method and apparatus for motion compensation {Method and Apparatus for Estimating Optical Flow for Motion Compensation}

본 발명은 영상 부호화 또는 복호화에 관한 것이다. 보다 상세하게는, 본 발명은 동영상 부호화 과정 중에서 화면 간 예측 보정을 위한 적응적인 양방향 옵티컬 플로우(bidrectional optical flow) 추정 방법에 관한 것이다.The present invention relates to video encoding or decoding. More particularly, the present invention relates to an adaptive bidirectional optical flow estimation method for inter prediction correction in a video encoding process.

이 부분에 기술된 내용은 단순히 본 실시예에 대한 배경 정보를 제공할 뿐 종래 기술을 구성하는 것은 아니다. The content described in this section merely provides background information for the present embodiment and does not constitute the prior art.

비디오 코딩에 관한 한 압축은 공간적 및 시간적 차원에서 데이터 중복성을 활용하여 이루어진다. 공간 중복성 감소는 변환 코딩에 의해 크게 달성된다. 시간적 중복성은 예측 코딩을 통해 감소된다. 움직임 궤적을 따라 시간 상관이 최대화되는 것을 관찰하면, 움직임 보상 예측이 이러한 목적으로 사용된다. 이러한 맥락에서 움직임 추정의 주된 목적은, 장면에서 '실제' 움직임을 찾지 않는 것이 아니라, 압축 효율을 극대화하는 것이다. 즉, 움직임 벡터는 신호의 정확한 예측을 제공해야 한다. 또한, 움직임 정보는 압축된 비트 스트림에서 오버헤드로서 전송되어야 하기 때문에 압축된 표현을 가능하게 해야 한다. 효율적인 움직임 추정은 비디오 코딩에서 높은 압축을 달성하는 데 중요하다.When it comes to video coding, compression takes advantage of data redundancy in both spatial and temporal dimensions. Spatial redundancy reduction is largely achieved by transform coding. Temporal redundancy is reduced through predictive coding. Observing that the temporal correlation is maximized along the motion trajectory, motion compensated prediction is used for this purpose. The main purpose of motion estimation in this context is not to look for 'real' motion in the scene, but to maximize compression efficiency. That is, the motion vector should provide an accurate prediction of the signal. It should also enable a compressed representation since the motion information has to be transmitted as overhead in the compressed bit stream. Efficient motion estimation is important to achieve high compression in video coding.

비디오 시퀀스에서 움직임은 중요한 정보 소스이다. 움직임(motion)은 물체는 물론 카메라 움직임으로 인해서도 발생한다. 옵티컬 플로우(optical flow)로도 알려진 외관상의 움직임은 이미지 시퀀스에서 픽셀 강도(pixel intensity)의 시공간적인 변화(spatio-temporal variations)를 포착한다. Motion in a video sequence is an important source of information. Motion is caused not only by the object but also by the camera movement. The apparent motion, also known as optical flow, captures spatio-temporal variations in pixel intensity in an image sequence.

양방향 옵티컬 플로우(Bi-directional Optical Flow; BIO)는 JCTVC-C204 및 VCEG-AZ05 BIO에 개시된 움직임 추정/보상 기술로서, 옵티컬 플로우 및 일정한 움직임(steady motion)의 가정에 기초하여 샘플 레벨의 모션 조정(motion refinement)을 수행한다. 현재 논의 중인 양방향 옵티컬 플로우 추정 방법의 경우 움직임 벡터 정보의 세밀한 보정이 가능하다는 장점이 있으나 세밀한 움직임 벡터 정보 보정을 위해 전통적인 양방향 예측보다 훨씬 높은 연산 복잡도를 요하는 단점이 있다. Bi-directional Optical Flow (BIO) is a motion estimation/compensation technique disclosed in JCTVC-C204 and VCEG-AZ05 BIO, based on the assumption of optical flow and steady motion (steady motion) at the sample level. motion refinement). The bi-directional optical flow estimation method currently under discussion has the advantage of being able to fine-tune motion vector information, but has a disadvantage in that it requires much higher computational complexity than traditional bi-directional prediction for fine motion vector information correction.

비특허문헌1: JCTVC-C204 (E. Alshina, et al., Bi-directional optical flow, Joint Collaborative Team on Video Coding (JCT-VC) of ITU-T SG 16 WP 3 and ISO/IEC JTC 1/SC 29/WG 11, 3rd Meeting: Guangzhou, CN, 7-15 October, 2010)Non-Patent Document 1: JCTVC-C204 (E. Alshina, et al., Bi-directional optical flow, Joint Collaborative Team on Video Coding (JCT-VC) of ITU-T SG 16 WP 3 and ISO/IEC JTC 1/SC 29/WG 11, 3rd Meeting: Guangzhou, CN, 7-15 October, 2010)

비특허문헌2: VCEG-AZ05 (E. Alshina, et al., Known tools performance investigation for next generation video coding, ITU-T SG 16 Question 6, Video Coding Experts Group (VCEG), 52nd Meeting: 19-26 June 2015, Warsaw, Poland)Non-Patent Document 2: VCEG-AZ05 (E. Alshina, et al., Known tools performance investigation for next generation video coding, ITU-T SG 16 Question 6, Video Coding Experts Group (VCEG), 52nd Meeting: 19-26 June 2015, Warsaw, Poland)

본 발명은 양방향 옵티컬 플로우(bi-directional optical flow; BIO)의 복잡성 및/또는 비용을 감소시키는 데 그 목적이 있다. An object of the present invention is to reduce the complexity and/or cost of a bi-directional optical flow (BIO).

본 발명의 일 측면에 의하면, 제1 참조 픽처에서 현재 블록과 가장 유사한 제1 대응 영역을 가리키는 제1 움직임 벡터를 결정하고, 제2 참조 픽처에서 현재 블록과 가장 유사한 제2 대응 영역을 가리키는 제2 움직임 벡터를 결정하는 과정; 서브 블록 단위의 BIO 프로세스를 적용하여 상기 현재 블록에 대한 예측 블록을 생성하는 과정; 및 생성된 예측 블록을 이용하여 상기 현재 블록을 재구성하는 과정을 포함하는 영상 데이터를 부호화 혹은 복호화하는 방법을 제공한다. 여기서, 상기 예측 블록을 생성하는 과정은, 상기 현재 블록을 구성하는 각 서브 블록에 대하여 BIO 움직임 벡터를 결정하는 과정; 및 결정된 BIO 움직임 벡터를 기초로, 해당 서브 블록을 구성하는 픽셀들의 예측값을 생성하는 과정을 포함한다.According to an aspect of the present invention, a first motion vector indicating a first correspondence region most similar to a current block in a first reference picture is determined, and a second motion vector indicating a second correspondence region most similar to the current block in a second reference picture is determined. the process of determining a motion vector; generating a prediction block for the current block by applying a sub-block-based BIO process; and reconstructing the current block by using the generated prediction block. Here, the generating of the prediction block may include: determining a BIO motion vector for each sub-block constituting the current block; and generating prediction values of pixels constituting the corresponding sub-block based on the determined BIO motion vector.

본 발명의 다른 측면에 의하면, 메모리 및 하나 이상의 프로세서들을 포함하는 영상 데이터를 복호화하는 장치로서, 상기 하나 이상의 프로세서들은, 제1 참조 픽처에서 현재 블록과 가장 유사한 제1 대응 영역을 가리키는 제1 움직임 벡터를 결정하고, 제2 참조 픽처에서 현재 블록과 가장 유사한 제2 대응 영역을 가리키는 제2 움직임 벡터를 결정하는 과정; 서브 블록 단위의 BIO 프로세스를 적용하여 상기 현재 블록에 대한 예측 블록을 생성하는 과정; 및 생성된 예측 블록을 이용하여 상기 현재 블록의 픽셀들을 재구성하는 과정을 수행하도록 구성된, 영상 데이터를 복호화하는 장치를 제공한다. 여기서, 상기 예측 블록을 생성하는 과정은, 상기 현재 블록을 구성하는 각 서브 블록에 대하여 BIO 움직임 벡터를 결정하는 과정; 및 결정된 BIO 움직임 벡터를 기초로, 상기 주어진 서브 블록을 구성하는 픽셀들의 예측값을 생성하는 과정을 포함한다.According to another aspect of the present invention, there is provided an apparatus for decoding image data including a memory and one or more processors, wherein the one or more processors include a first motion vector indicating a first corresponding region most similar to a current block in a first reference picture. determining , and determining a second motion vector indicating a second corresponding region most similar to the current block in a second reference picture; generating a prediction block for the current block by applying a sub-block-based BIO process; and performing a process of reconstructing pixels of the current block by using the generated prediction block. Here, the generating of the prediction block may include: determining a BIO motion vector for each sub-block constituting the current block; and generating prediction values of pixels constituting the given sub-block based on the determined BIO motion vector.

BIO 움직임 벡터(v x , v y )는 서브 블록 내 각 픽셀들을 중심으로 하는 소정의 마스킹 윈도우에 의해 정의되는 탐색 영역 내의 위치하는 각 픽셀에 대한 플로우 차이들의 제곱의 합이 최소화되도록 하는 벡터로 결정될 수 있다. 대안적으로, BIO 움직임 벡터(v x , v y )는 서브 블록 내 일부 픽셀들을 중심으로 하는 소정의 마스킹 윈도우에 의해 정의되는 탐색 영역 내의 위치하는 모든 픽셀에 대한 플로우 차이(flow difference)들의 제곱의 합이 최소화되도록 하는 벡터로 결정될 수 있다. 예컨대, 마스킹 윈도우가 적용되는 픽셀들과 적용되지 않는 픽셀들의 위치는 체크(check) 패턴, 가로 줄무늬 (horizontal stripes) 패턴 혹은 세로 줄무늬(vertical stripes) 패턴을 이룰 수 있다. The BIO motion vector ( v x , v y ) is a vector such that the sum of squares of flow differences for each pixel located in the search area defined by a predetermined masking window centered on each pixel in the sub-block is minimized. can Alternatively, the BIO motion vector ( v x , v y ) is the square of the flow differences for all pixels located within the search area defined by a predetermined masking window centered on some pixels in the sub-block. It can be determined as a vector such that the sum is minimized. For example, positions of pixels to which the masking window is applied and pixels to which the masking window is not applied may form a check pattern, a horizontal stripes pattern, or a vertical stripes pattern.

일부 예시에서, 플로우 차이들을 반복적으로 계산하는 대신에, 중복되는 차이값에 대해서는 그 차이값에 중복되는 횟수에 따른 가중치를 부여할 수 있다. 일부 예시에서, 현재 블록의 가장자리에 위치하는 서브 블록에 대한 BIO 움직임 벡터를 결정함에 있어서, 현재 블록을 벗어나는 영역에 위치하는 픽셀들에 대한 플로우 차이들은 고려되지 않을 수 있다.In some examples, instead of repeatedly calculating the flow differences, a weight may be given to the overlapping difference value according to the number of overlapping differences. In some examples, in determining the BIO motion vector for a sub-block located at the edge of the current block, flow differences for pixels located in an area outside the current block may not be considered.

일부 예시에서, 마스킹 윈도우가 사용되지 않을 수 있다. 예컨대, BIO 움직임 벡터(v x , v y )는 서브 블록 내 각 픽셀에 대한 플로우 차이(flow difference)들의 제곱의 합이 최소화되도록 하는 벡터로 결정될 수 있다. In some examples, a masking window may not be used. For example, the BIO motion vectors ( v x , v y ) may be determined as vectors such that the sum of squares of flow differences for each pixel in the sub-block is minimized.

본 발명의 또 다른 측면에 의하면, 제1 참조 픽처에서 현재 블록과 가장 유사한 제1 대응 영역을 가리키는 제1 움직임 벡터를 결정하고, 제2 참조 픽처에서 현재 블록과 가장 유사한 제2 대응 영역을 가리키는 제2 움직임 벡터를 결정하는 과정; 픽셀 단위로 BIO 프로세스를 적용하여 상기 현재 블록에 대한 예측 블록을 생성하는 과정; 및 생성된 예측 블록을 이용하여 상기 현재 블록의 픽셀들을 재구성하는 과정을 포함하는 영상 복호화 방법을 제공한다. 여기서, 상기 예측 블록을 생성하는 과정은, 상기 현재 블록을 구성하는 각 픽셀에 대한 BIO 움직임 벡터를 결정하는 과정, 상기 BIO 움직임 벡터는 해당 픽셀을 중심으로 하는 플러스 모양 또는 다이아몬드 모양의 마스킹 윈도우 내에 위치하는 모든 마스킹 픽셀에 대하여 얻어지는 플로우 차이(flow difference)의 제곱합이 최소가 되도록 하는 벡터로 결정됨; 및 결정된 BIO 움직임 벡터를 기초로, 해당 픽셀의 예측값을 생성하는 과정을 포함한다.According to another aspect of the present invention, a first motion vector indicating a first correspondence region most similar to a current block in a first reference picture is determined, and a second motion vector indicating a second correspondence region most similar to the current block in a second reference picture is determined. 2 The process of determining a motion vector; generating a prediction block for the current block by applying a BIO process in units of pixels; and reconstructing pixels of the current block by using the generated prediction block. Here, the process of generating the prediction block is a process of determining a BIO motion vector for each pixel constituting the current block, and the BIO motion vector is located within a plus-shaped or diamond-shaped masking window centered on the corresponding pixel. determined as a vector such that the sum of squares of flow differences obtained for all masking pixels that and generating a predicted value of the corresponding pixel based on the determined BIO motion vector.

본 발명의 또 다른 측면에 의하면, 메모리 및 하나 이상의 프로세서들을 포함하는 영상 복호화 장치로서, 상기 하나 이상의 프로세서들은, 제1 참조 픽처에서 현재 블록과 가장 유사한 제1 대응 영역을 가리키는 제1 움직임 벡터를 결정하고, 제2 참조 픽처에서 현재 블록과 가장 유사한 제2 대응 영역을 가리키는 제2 움직임 벡터를 결정하는 과정; 픽셀 단위로 BIO 프로세스를 적용하여 상기 현재 블록에 대한 예측 블록을 생성하는 과정; 및 생성된 예측 블록을 이용하여 상기 현재 블록의 픽셀들을 재구성하는 과정을 수행하도록 구성된 영상 복호화 장치를 제공한다. 여기서, 상기 예측 블록을 생성하는 과정은, 상기 현재 블록을 구성하는 각 픽셀에 대한 BIO 움직임 벡터를 결정하는 과정, 상기 BIO 움직임 벡터는 해당 픽셀을 중심으로 하는 플러스 모양 또는 다이아몬드 모양의 마스킹 윈도우 내에 위치하는 모든 마스킹 픽셀에 대하여 얻어지는 플로우 차이(flow difference)의 제곱합이 최소가 되도록 하는 벡터로 결정됨; 및 결정된 BIO 움직임 벡터를 기초로, 해당 픽셀의 예측값을 생성하는 과정을 포함한다.According to another aspect of the present invention, there is provided an image decoding apparatus including a memory and one or more processors, wherein the one or more processors determine a first motion vector indicating a first corresponding region most similar to a current block in a first reference picture. and determining a second motion vector indicating a second corresponding region most similar to the current block in the second reference picture; generating a prediction block for the current block by applying a BIO process in units of pixels; and a process of reconstructing pixels of the current block by using the generated prediction block. Here, the process of generating the prediction block is a process of determining a BIO motion vector for each pixel constituting the current block, and the BIO motion vector is located within a plus-shaped or diamond-shaped masking window centered on the corresponding pixel. determined as a vector such that the sum of squares of flow differences obtained for all masking pixels that and generating a predicted value of the corresponding pixel based on the determined BIO motion vector.

도 1은 본 개시의 기술들을 구현할 수 있는 영상 부호화 장치에 대한 예시적인 블록도이다.
도 2는 현재 블록의 주변블록에 대한 예시도이다.
도 3은 본 개시의 기술들을 구현할 수 있는 영상 복호화 장치에 대한 예시적인 블록도이다.
도 4는 BIO의 기본적인 개념을 설명하기 위한 참조도이다.
도 5a는 본 발명의 일 실시예에 따른 픽셀 레벨의 BIO 기반으로 수행되는 양방향 움직임 보상 방법을 도시한 흐름도이다.
도 5b는 본 발명의 일 실시예에 따른 서브 블록 레벨의 BIO 기반으로 수행되는 양방향 움직임 보상 방법을 도시한 흐름도이다.
도 6은 제1 실시예에 따른 BIO 기반의 움직임 보상에 사용되는 5×5 마스킹 윈도우와 현재 블록의 1×1 블록을 예시한 도면이다.
도 7은 제2 실시예에 따른 픽셀 레벨의 BIO 움직임 벡터 결정에 사용될 수 있는 사각형이 아닌 마스킹 윈도우들을 예시한 도면이다.
도 8은 제2 실시예에 따른 픽셀 레벨의 BIO 움직임 벡터 결정에 사용되는 다이아몬드 모양의 마스킹 윈도우와 현재 블록의 1×1 블록을 예시한 도면이다.
도 9는 제3 실시예에 따른 서브 블록 레벨의 BIO 움직임 벡터 결정에 사용되는 5×5 마스킹 윈도우와 4×4 서브 블록을 예시한 도면이다.
도 10a는 서브 블록 레벨의 BIO 움직임 벡터 결정에 사용되는 차이값들이 중복 계산되는 것을 설명하기 위한 도면이다.
도 10b는 서브 블록 레벨의 BIO 움직임 벡터 결정에 사용되는 차이값들의 픽셀 위치별 가중치들을 예시적으로 도시한 도면이다.
도 11은 제4 실시예에 따른 서브 블록 레벨의 BIO 움직임 벡터 결정에 사용되는 다이아몬드 모양의 마스킹 윈도우와 4×4 서브 블록이 예시한 도면이다.
도 12는 제5 실시예에 따른 서브 블록 내 마스킹 윈도우가 적용되는 픽셀의 위치들에 대한 3가지 타입을 예시한 도면이다.
도 13은 제5 실시예에 따른 서브 블록 레벨의 BIO 움직임 벡터 결정에 사용되는 5×5 마스킹 윈도우와 마스킹 윈도우가 적용되는 픽셀들이 체크 패턴으로 샘플링된 4×4 서브 블록을 예시한 도면이다.
도 14는 제6 실시예에 따른 BIO 기반의 움직임 보상에 사용되는 다이아몬드 타입의 마스킹 윈도우와 4×4 서브 블록 내 예측 픽셀들을 예시한 도면이다.
도 15는 제7 실시예에 따른 서브 블록의 각 픽셀에 대한 가중치 부여의 일례를 도시한 도면이다.
도 16a는 16개의 4×4 서브 블록을 포함하는 16×16 현재 블록에서, 현재 블록의 가장자리에 위치한 서브 블록들을 예시한 도면이다.
도 16b는 16×16 현재 블록에서 좌상 모서리에 위치한 4×4 서브 블록에 대한 BIO 움직임 벡터 결정에 사용되는 차이값들의 픽셀 위치별 가중치들을 예시적으로 도시한 도면이다.
1 is an exemplary block diagram of an image encoding apparatus that can implement techniques of the present disclosure.
2 is an exemplary diagram of a neighboring block of a current block.
3 is an exemplary block diagram of an image decoding apparatus capable of implementing the techniques of the present disclosure.
4 is a reference diagram for explaining the basic concept of BIO.
5A is a flowchart illustrating a bidirectional motion compensation method performed based on pixel-level BIO according to an embodiment of the present invention.
5B is a flowchart illustrating a bidirectional motion compensation method performed based on sub-block level BIO according to an embodiment of the present invention.
6 is a diagram illustrating a 1×1 block of a current block and a 5×5 masking window used for BIO-based motion compensation according to the first embodiment.
7 is a diagram illustrating non-rectangular masking windows that can be used to determine a pixel-level BIO motion vector according to the second embodiment.
8 is a diagram illustrating a 1×1 block of a current block and a diamond-shaped masking window used to determine a pixel-level BIO motion vector according to the second embodiment.
9 is a diagram illustrating a 5×5 masking window and a 4×4 sub-block used for determining a sub-block level BIO motion vector according to the third embodiment.
FIG. 10A is a diagram for explaining that difference values used to determine a BIO motion vector of a sub-block level are repeatedly calculated.
FIG. 10B is a diagram exemplarily illustrating weights of difference values for each pixel position used to determine a BIO motion vector at a sub-block level.
11 is a diagram illustrating a diamond-shaped masking window and 4×4 sub-blocks used to determine a BIO motion vector at a sub-block level according to the fourth embodiment.
12 is a diagram illustrating three types of positions of pixels to which a masking window is applied in a sub-block according to the fifth embodiment.
13 is a diagram illustrating a 5×5 masking window used to determine a sub-block level BIO motion vector and a 4×4 sub-block in which pixels to which the masking window is applied are sampled in a check pattern according to the fifth embodiment.
14 is a diagram illustrating a diamond-type masking window used for BIO-based motion compensation and prediction pixels in a 4×4 sub-block according to the sixth embodiment.
15 is a diagram illustrating an example of weighting each pixel of a sub-block according to the seventh embodiment.
16A is a diagram illustrating sub-blocks positioned at the edge of a current block in a 16×16 current block including 16 4×4 sub-blocks.
FIG. 16B is a diagram exemplarily showing weights for each pixel position of difference values used to determine a BIO motion vector for a 4×4 sub-block located at an upper-left corner in a 16×16 current block.

이하, 본 발명의 일부 실시예들을 예시적인 도면을 통해 상세하게 설명한다. 각 도면의 구성 요소들에 식별 부호를 부가함에 있어서, 동일한 구성요소들에 대해서는 비록 다른 도면상에 표시되더라도 가능한 한 동일한 부호를 가지도록 하고 있음에 유의해야 한다. 또한, 본 발명을 설명함에 있어, 관련된 공지 구성 또는 기능에 대한 구체적인 설명이 본 발명의 요지를 흐릴 수 있다고 판단되는 경우에는 그 상세한 설명은 생략한다.Hereinafter, some embodiments of the present invention will be described in detail with reference to exemplary drawings. It should be noted that in adding identification codes to the components of each drawing, the same components are to have the same reference numerals as much as possible even though they are indicated on different drawings. In addition, in describing the present invention, if it is determined that a detailed description of a related known configuration or function may obscure the gist of the present invention, the detailed description thereof will be omitted.

본 개시의 기술들은, 일반적으로, 양방향 옵티컬 플로우(bi-directional optical flow; BIO) 기법의 복잡성 및/또는 비용을 감소시키는 것과 관련된다. BIO는 움직임 보상 동안에 적용될 수 있다. 일반적으로, BIO는 현재 블록 내 모든 픽셀 각각에 대한 움직임 벡터를 옵티컬 플로우를 통해 산정하고, 산정된 픽셀 별 움직임 벡터 값을 근거하여 해당 픽셀에 위치한 예측값을 갱신하는 데 사용된다.The techniques of this disclosure generally relate to reducing the complexity and/or cost of bi-directional optical flow (BIO) techniques. BIO can be applied during motion compensation. In general, the BIO calculates a motion vector for each pixel in the current block through an optical flow, and is used to update a prediction value located in the corresponding pixel based on the calculated motion vector value for each pixel.

도 1은 본 개시의 기술들을 구현할 수 있는 영상 부호화 장치에 대한 예시적인 블록도이다.1 is an exemplary block diagram of an image encoding apparatus that can implement techniques of the present disclosure.

영상 부호화 장치는 블록 분할부(110), 예측부(120), 감산기(130), 변환부(140), 양자화부(145), 부호화부(150), 역양자화부(160), 역변환부(165), 가산기(170), 필터부(180) 및 메모리(190)를 포함한다. 영상 부호화 장치는 각 구성요소는 하드웨어 칩으로 구현될 수 있으며, 또는 소프트웨어로 구현되고 마이크로프로세서가 각 구성요소에 대응하는 소프트웨어의 기능을 실행하도록 구현될 수도 있다.The image encoding apparatus includes a block divider 110 , a predictor 120 , a subtractor 130 , a transform unit 140 , a quantizer 145 , an encoder 150 , an inverse quantizer 160 , and an inverse transform unit ( 165 ), an adder 170 , a filter unit 180 , and a memory 190 . Each component of the image encoding apparatus may be implemented as a hardware chip, or may be implemented as software and a microprocessor may be implemented to execute a function of software corresponding to each component.

블록 분할부(110)는 영상을 구성하는 각 픽처(picture)를 복수의 CTU(Coding Tree Unit)으로 분할한 이후에, CTU를 트리 구조(tree structure)를 이용하여 반복적으로(recursively) 분할한다. 트리 구조에서의 리프 노드(leaf node)가 부호화의 기본 단위인 CU (coding unit)가 된다. 트리 구조로는 상위 노드(혹은 부모 노드)가 동일한 크기의 네 개의 하위 노드(혹은 자식 노드)로 분할되는 쿼드트리(QuadTree, QT), 또는 이러한 QT 구조 및 상위 노드가 두 개의 하위 노드로 분할되는 바이너리트리(BinaryTree, BT) 구조를 혼용한 QTBT (QuadTree plus BinaryTree) 구조가 사용될 수 있다. 즉, CTU를 다수의 CU로 분할하기 위해 QTBT를 사용할 수 있다.The block divider 110 divides each picture constituting an image into a plurality of coding tree units (CTUs) and then recursively divides the CTUs using a tree structure. A leaf node in the tree structure becomes a coding unit (CU), which is a basic unit of encoding. As a tree structure, a quadtree (QT) in which a parent node (or parent node) is divided into four child nodes (or child nodes) of the same size, or a QT structure and a parent node divided into two child nodes A QTBT (QuadTree plus BinaryTree) structure mixed with a binary tree (BinaryTree, BT) structure may be used. That is, QTBT may be used to divide a CTU into a plurality of CUs.

QTBT (QuadTree plus BinaryTree) 구조에서, CTU는 먼저 QT 구조로 분할될 수 있다. 쿼드트리 분할은 분할 블록(splitting block)의 크기가 QT에서 허용되는 리프 노드의 최소 블록 크기(MinQTSize)에 도달 할 때까지 반복 될 수 있다. 쿼드트리의 리프 노드가 BT에서 허용되는 루트 노드의 최대 블록 크기(MaxBTSize)보다 크지 크지 않은 경우, BT 구조로 더 파티셔닝될 수 있다. BT에서는 복수의 분할 타입이 존재할 수 있다. 예컨대, 일부 예시에서, 해당 노드의 블록을 동일 크기의 두 개 블록으로 가로로 분할하는 타입(즉, symmetric horizontal splitting)과 세로로 분할하는 타입(즉, symmetric vertical splitting) 두 가지가 존재할 수 있다. 또한, 해당 노드의 블록을 서로 비대칭 형태의 두 개의 블록으로 분할하는 타입이 추가로 더 존재할 수도 있다. 비대칭 형태로는 해당 노드의 블록을 1:3의 크기 비율을 가지는 두 개의 직사각형 블록으로 분할하는 형태를 포함할 수 있고, 혹은 해당 노드의 블록을 대각선 방향으로 분할하는 형태를 포함할 수도 있다.In a QTBT (QuadTree plus BinaryTree) structure, a CTU may first be divided into a QT structure. The quadtree splitting may be repeated until the size of a splitting block reaches the minimum block size of a leaf node (MinQTSize) allowed in QT. If the leaf node of the quadtree is not larger than the maximum block size (MaxBTSize) of the root node allowed in the BT, it may be further partitioned into the BT structure. In BT, a plurality of partition types may exist. For example, in some examples, there may be two types of horizontally splitting a block of a corresponding node into two blocks of the same size (ie, symmetric horizontal splitting) and a vertical splitting type (ie, symmetric vertical splitting). In addition, a type for dividing the block of the corresponding node into two blocks having an asymmetric shape may further exist. The asymmetric form may include a form of dividing the block of the corresponding node into two rectangular blocks having a size ratio of 1:3, or a form of dividing the block of the corresponding node in a diagonal direction.

블록 분할부(110)가 QTBT 구조에 의해 CTU를 분할하여 생성하는 분할 정보는 부호화부(150)에 의해 부호화되어 영상 복호화 장치로 전달된다. The division information generated by the block division unit 110 by dividing the CTU according to the QTBT structure is encoded by the encoding unit 150 and transmitted to the image decoding apparatus.

이하에서는, 부호화 또는 복호화하고자 하는 CU(즉, QTBT의 리프 노드)에 해당하는 블록을 '현재 블록'이라 칭한다.Hereinafter, a block corresponding to a CU to be encoded or decoded (ie, a leaf node of QTBT) is referred to as a 'current block'.

예측부(120)는 현재 블록을 예측하여 예측블록을 생성한다. 예측부(120)는 인트라 예측부(122)와 인터 예측부(124)를 포함한다. The prediction unit 120 generates a prediction block by predicting the current block. The prediction unit 120 includes an intra prediction unit 122 and an inter prediction unit 124 .

일반적으로, 픽처 내 현재 블록들은 각각 예측적으로 코딩될 수 있다. 현재 블록의 예측은 (현재 블록을 포함하는 픽처으로부터의 데이터를 사용하는) 인트라 예측 기술 또는 (현재 블록을 포함하는 픽처에 대해 이전에 코딩된 픽처로부터의 데이터를 사용하는) 인터 예측 기술을 사용하여 일반적으로 수행될 수 있다. 인터 예측은 단방향 예측과 양방향 예측 모두를 포함한다.In general, each of the current blocks in a picture may be predictively coded. Prediction of the current block is performed using either intra prediction techniques (using data from the picture containing the current block) or inter prediction techniques (using data from pictures previously coded for the picture containing the current block). In general, this can be done. Inter prediction includes both uni-prediction and bi-prediction.

각각의 인터 예측된 블록에 대해, 움직임 정보 세트가 이용 가능할 수 있다. 한 세트의 움직임 정보는 순방향(forward) 및 역방향(backward) 예측 방향에 대한 움직임 정보를 포함할 수 있다. 여기서, 순방향 및 역방향 예측 방향은 양방향(bi-directional) 예측 모드의 2개의 예측 방향이고, 용어 "순방향" 및 "역방향"은 반드시 기하학적 의미를 가질 필요는 없다. 대신에, 이들은 일반적으로 참조 픽처가 현재 픽처 전에("역방향") 또는 후에("순방향")에 표시될지 여부에 대응한다. 일부 예에서, "순방향" 및 "역방향" 예측 방향은 현재 픽처의 참조 픽처 리스트 0(RefPicList0) 및 참조 픽처 리스트 1(RefPicList1)에 대응할 수 있다. For each inter-predicted block, a set of motion information may be available. One set of motion information may include motion information for forward and backward prediction directions. Here, the forward and backward prediction directions are two prediction directions of a bi-directional prediction mode, and the terms “forward” and “reverse” do not necessarily have a geometric meaning. Instead, they generally correspond to whether the reference picture will be displayed before (“reverse”) or after (“forward”) the current picture. In some examples, “forward” and “reverse” prediction directions may correspond to reference picture list 0 (RefPicList0) and reference picture list 1 (RefPicList1) of the current picture.

각 예측 방향에 대해, 움직임 정보는 참조 인덱스 및 움직임 벡터를 포함한다. 참조 인덱스는 현재 참조 픽처 리스트 (RefPicList0 또는 RefPicList1) 내의 참조 픽처를 식별하는데 사용될 수 있다. 움직임 벡터는 수평(x) 및 수직(y) 성분을 갖는다. 일반적으로, 수평 성분은 참조 블록의 x 좌표를 위치 시키는데 필요한, 현재 픽처에서의 현재 블록의 위치에 상대적인 참조 픽처 내의 수평 변위(horizontal displacement)를 나타낸다. 수직 성분은 참조 블록의 y 좌표를 위치 시키는데 필요한, 현재 블록의 위치에 상대적인 참조 픽처 내의 수직 변위(vertical displacement)를 나타낸다.For each prediction direction, the motion information includes a reference index and a motion vector. The reference index can be used to identify a reference picture in the current reference picture list (RefPicList0 or RefPicList1). A motion vector has horizontal (x) and vertical (y) components. In general, the horizontal component represents the horizontal displacement in the reference picture relative to the position of the current block in the current picture, which is necessary to locate the x-coordinate of the reference block. The vertical component represents a vertical displacement in the reference picture relative to the position of the current block, which is required to locate the y-coordinate of the reference block.

인터 예측부(124)는 현재 픽처보다 먼저 부호화 및 복호화된 참조 픽처 내에서 현재 블록과 가장 유사한 블록을 탐색하고, 그 탐색된 블록을 이용하여 현재 블록에 대한 예측블록을 생성한다. 그리고, 현재 픽처 내의 현재 블록과 참조 픽처 내의 예측블록 간의 변위(displacement)에 해당하는 움직임벡터(motion vector)를 생성한다. 일반적으로, 움직임 추정은 루마(luma) 성분에 대해 수행되고, 루마 성분에 기초하여 계산된 모션 벡터는 루마 성분 및 크로마 성분 모두에 대해 사용된다. 현재 블록을 예측하기 위해 사용된 참조 픽처에 대한 정보 및 움직임벡터에 대한 정보를 포함하는 움직임 정보는 부호화부(150)에 의해 부호화되어 영상 복호화 장치로 전달된다. The inter prediction unit 124 searches for a block most similar to the current block in the reference picture encoded and decoded before the current picture, and generates a prediction block for the current block using the searched block. Then, a motion vector corresponding to the displacement between the current block in the current picture and the prediction block in the reference picture is generated. In general, motion estimation is performed for a luma component, and a motion vector calculated based on the luma component is used for both the luma component and the chroma component. Motion information including information on a reference picture and information on a motion vector used to predict the current block is encoded by the encoder 150 and transmitted to the image decoding apparatus.

본 개시의 예시들은 일반적으로 양방향 옵티컬 플로우(bi-directional optical flow; BIO) 기법에 관한 것이다. 이와 같이, 본 개시의 소정의 기법들은 인터 예측부(124)에 의해 수행될 수도 있다. 즉, 예를 들어, 인터 예측부(124)는 아래의 도 4 내지 도 13에 대해 기술된 본 개시의 기법들을 수행할 수도 있다. 다시 말해, 인터 예측부(124)는 현재 블록에 대한 양방향 움직임 벡터를 결정한 후에, 영상 픽셀 단위 혹은 서브 블록 단위로 BIO 기법에 따른 움직인 보상을 사용하여 현재 블록에 대한 예측 블록을 생성할 수 있다. 다른 예들에서, 부호화 장치의 하나 이상의 다른 유닛들이 추가적으로 본 개시의 기법들을 수행하는 데 관여할 수도 있다. 또한, 움직임 벡터를 계산하는 명시적인 방정식이 있기 때문에 움직임 정보를 획득하기 위한 탐색 과정과 움직임 정보를 전송하기 위한 시그널링을 필요로 하지 않는다.Examples of this disclosure relate generally to bi-directional optical flow (BIO) techniques. As such, certain techniques of the present disclosure may be performed by the inter prediction unit 124 . That is, for example, the inter prediction unit 124 may perform the techniques of the present disclosure described with reference to FIGS. 4 to 13 below. In other words, after determining the bidirectional motion vector for the current block, the inter prediction unit 124 may generate a prediction block for the current block by using motion compensation according to the BIO technique in units of image pixels or sub-blocks. . In other examples, one or more other units of the encoding apparatus may be additionally involved in performing the techniques of this disclosure. In addition, since there is an explicit equation for calculating a motion vector, a search process for acquiring motion information and signaling for transmitting motion information are not required.

움직임 정보를 부호화하는 데에 소요되는 비트량을 최소화하기 위해 다양한 방법이 사용될 수 있다.Various methods may be used to minimize the amount of bits required to encode motion information.

예컨대, 현재블록의 참조 픽처와 움직임벡터가 주변블록의 참조 픽처 및 움직임벡터와 동일한 경우에는 그 주변블록을 식별할 수 있는 정보를 부호화함으로써, 현재블록의 움직임 정보를 복호화 장치로 전달할 수 있다. 이러한 방법을 '머지 모드 (merge mode)'라 한다.For example, when the reference picture and motion vector of the current block are the same as the reference picture and motion vector of the neighboring block, the motion information of the current block may be transmitted to the decoding apparatus by encoding information for identifying the neighboring block. This method is called 'merge mode'.

머지 모드에서, 인터 예측부(124)는 현재블록의 주변블록들로부터 기 결정된 개수의 머지 후보블록(이하, '머지 후보'라 함)들을 선택한다. In the merge mode, the inter prediction unit 124 selects a predetermined number of merge candidate blocks (hereinafter referred to as 'merge candidates') from neighboring blocks of the current block.

머지 후보를 유도하기 위한 주변블록으로는, 도 2에 도시된 바와 같이, 현재 픽처 내에서 현재블록에 인접한 좌측블록(L), 상단블록(A), 우상단블록(AR), 좌하단블록(BL), 좌상단블록(AL) 중에서 전부 또는 일부가 사용될 수 있다. 또한, 현재블록이 위치한 현재 픽처가 아닌 참조 픽처(현재블록을 예측하기 위해 사용된 참조 픽처와 동일할 수도 있고 다를 수도 있음) 내에 위치한 블록이 머지 후보로서 사용될 수도 있다. 예컨대, 참조 픽처 내에서 현재블록과 동일 위치에 있는 블록(co-located block) 또는 그 동일 위치의 블록에 인접한 블록들이 머지 후보로서 추가로 더 사용될 수 있다. As the neighboring blocks for inducing the merge candidate, as shown in FIG. 2 , the left block (L), the upper block (A), the upper right block (AR), and the lower left block (BL) adjacent to the current block in the current picture. ), all or part of the upper left block AL may be used. Also, a block located in a reference picture (which may be the same as or different from a reference picture used to predict the current block) other than the current picture in which the current block is located may be used as a merge candidate. For example, a block co-located with the current block in the reference picture or blocks adjacent to the co-located block may be further used as merge candidates.

인터 예측부(124)는 이러한 주변블록들을 이용하여 기 결정된 개수의 머지 후보를 포함하는 머지 리스트를 구성한다. 머지 리스트에 포함된 머지 후보들 중에서 현재블록의 움직임정보로서 사용할 머지 후보를 선택하고 선택된 후보를 식별하기 위한 머지 인덱스 정보를 생성한다. 생성된 머지 인덱스 정보는 부호화부(150)에 의해 부호화되어 복호화 장치로 전달된다.The inter prediction unit 124 constructs a merge list including a predetermined number of merge candidates by using these neighboring blocks. A merge candidate to be used as motion information of the current block is selected from among the merge candidates included in the merge list, and merge index information for identifying the selected candidate is generated. The generated merge index information is encoded by the encoder 150 and transmitted to the decoding apparatus.

움직임 정보를 부호화하는 또 다른 방법은 차분 움직임벡터를 부호화하는 것이다.Another method of encoding motion information is to encode a differential motion vector.

이 방법에서, 인터 예측부(124)는 현재블록의 주변블록들을 이용하여 현재블록의 움직임벡터에 대한 예측 움직임벡터 후보들을 유도한다. 예측 움직임벡터 후보들을 유도하기 위해 사용되는 주변블록으로는, 도 5에 도시된 현재 픽처 내에서 현재블록에 인접한 좌측블록(L), 상단블록(A), 우상단블록(AR), 좌하단블록(BL), 좌상단블록(AL) 중에서 전부 또는 일부가 사용될 수 있다. 또한, 현재블록이 위치한 현재 픽처가 아닌 참조 픽처(현재블록을 예측하기 위해 사용된 참조 픽처와 동일할 수도 있고 다를 수도 있음) 내에 위치한 블록이 예측 움직임벡터 후보들을 유도하기 위해 사용되는 주변블록으로서 사용될 수도 있다. 예컨대, 참조 픽처 내에서 현재블록과 동일 위치에 있는 블록(co-located block) 또는 그 동일 위치의 블록에 인접한 블록들이 사용될 수 있다.In this method, the inter prediction unit 124 derives motion vector prediction candidates for the motion vector of the current block using neighboring blocks of the current block. As neighboring blocks used to derive prediction motion vector candidates, a left block (L), an upper block (A), an upper right block (AR), a lower left block (L) adjacent to the current block in the current picture shown in FIG. BL), all or part of the upper left block AL may be used. In addition, a block located in a reference picture (which may be the same as or different from the reference picture used to predict the current block) other than the current picture in which the current block is located is used as a neighboring block used to derive prediction motion vector candidates. may be For example, a block co-located with the current block in the reference picture or blocks adjacent to the co-located block may be used.

인터 예측부(124)는 이 주변블록들의 움직임벡터를 이용하여 예측 움직임벡터 후보들을 유도하고, 예측 움직임벡터 후보들을 이용하여 현재블록의 움직임벡터에 대한 예측 움직임벡터를 결정한다. 그리고, 현재블록의 움직임벡터로부터 예측 움직임벡터를 감산하여 차분 움직임벡터를 산출한다. The inter prediction unit 124 derives prediction motion vector candidates by using the motion vectors of the neighboring blocks, and determines a predicted motion vector with respect to the motion vector of the current block using the prediction motion vector candidates. Then, a differential motion vector is calculated by subtracting the predicted motion vector from the motion vector of the current block.

예측 움직임벡터는 예측 움직임벡터 후보들에 기 정의된 함수(예컨대, 중앙값, 평균값 연산 등)를 적용하여 구할 수 있다. 이 경우, 영상 복호화 장치도 기 정의된 함수를 알고 있다. 또한, 예측 움직임벡터 후보를 유도하기 위해 사용하는 주변블록은 이미 부호화 및 복호화가 완료된 블록이므로 영상 복호화 장치도 그 주변블록의 움직임벡터도 이미 알고 있다. 그러므로 영상 부호화 장치는 예측 움직임벡터 후보를 식별하기 위한 정보를 부호화할 필요가 없다. 따라서, 이 경우에는 차분 움직임벡터에 대한 정보와 현재블록을 예측하기 위해 사용한 참조 픽처에 대한 정보가 부호화된다.The prediction motion vector may be obtained by applying a predefined function (eg, a median value, an average value operation, etc.) to the prediction motion vector candidates. In this case, the image decoding apparatus also knows the predefined function. In addition, since the neighboring block used to derive the prediction motion vector candidate is a block that has already been encoded and decoded, the image decoding apparatus already knows the motion vector of the neighboring block. Therefore, the image encoding apparatus does not need to encode information for identifying the prediction motion vector candidate. Accordingly, in this case, information on a differential motion vector and information on a reference picture used to predict a current block are encoded.

한편, 예측 움직임벡터는 예측 움직임벡터 후보들 중 어느 하나를 선택하는 방식으로 결정될 수도 있다. 이 경우에는 차분 움직임벡터에 대한 정보 및 현재블록을 예측하기 위해 사용한 참조 픽처에 대한 정보와 함께, 선택된 예측 움직임벡터 후보를 식별하기 위한 정보가 추가로 부호화된다.Meanwhile, the prediction motion vector may be determined by selecting any one of the prediction motion vector candidates. In this case, information for identifying the selected prediction motion vector candidate is additionally encoded together with information on the differential motion vector and information on the reference picture used to predict the current block.

인트라 예측부(122)는 현재 블록이 포함된 현재 픽처 내에서 현재 블록의 주변에 위치한 픽셀(참조 픽셀)들을 이용하여 현재 블록 내의 픽셀들을 예측한다. 예측 방향에 따라 복수의 인트라 예측모드가 존재하며, 각 예측모드에 따라 사용할 주변 픽셀과 연산식이 다르게 정의된다. 특히, 인트라 예측부(122)는 현재 블록을 부호화하는데 사용할 인트라 예측 모드를 결정할 수 있다. 일부 예들에서, 인트라 예측부(122)는 여러 인트라 예측 모드들을 사용하여 현재 블록을 인코딩하고, 테스트된 모드들로부터 사용할 적절한 인트라 예측 모드를 선택할 수도 있다. 예를 들어, 인트라 예측부(122)는 여러 테스트된 인트라 예측 모드들에 대한 레이트 왜곡(rate-distortion) 분석을 사용하여 레이트 왜곡 값들을 계산하고, 테스트된 모드들 중 최선의 레이트 왜곡 특징들을 갖는 인트라 예측 모드를 선택할 수도 있다. The intra prediction unit 122 predicts pixels in the current block by using pixels (reference pixels) located around the current block in the current picture including the current block. A plurality of intra prediction modes exist according to a prediction direction, and neighboring pixels to be used and an operation expression are defined differently according to each prediction mode. In particular, the intra prediction unit 122 may determine an intra prediction mode to be used for encoding the current block. In some examples, the intra prediction unit 122 may encode the current block using several intra prediction modes and select an appropriate intra prediction mode to use from the tested modes. For example, the intra prediction unit 122 calculates rate-distortion values using rate-distortion analysis for several tested intra prediction modes, and has the best rate-distortion characteristics among the tested modes. An intra prediction mode may be selected.

인트라 예측부(122)는 복수의 인트라 예측 모드 중에서 하나의 인트라 예측 모드를 선택하고, 선택된 인트라 예측 모드에 따라 결정되는 주변 픽셀(참조 픽셀)과 연산식을 사용하여 현재 블록을 예측한다. 선택된 인트라 예측 모드에 대한 정보는 부호화부(150)에 의해 부호화되어 영상 복호화 장치로 전달된다.The intra prediction unit 122 selects one intra prediction mode from among a plurality of intra prediction modes, and predicts the current block by using a neighboring pixel (reference pixel) determined according to the selected intra prediction mode and an equation. Information on the selected intra prediction mode is encoded by the encoder 150 and transmitted to the image decoding apparatus.

감산기(130)는 현재 블록으로부터 인트라 예측부(122) 또는 인터 예측부(124)에 의해 생성된 예측블록을 감산하여 잔차 블록을 생성한다.The subtractor 130 generates a residual block by subtracting the prediction block generated by the intra prediction unit 122 or the inter prediction unit 124 from the current block.

변환부(140)는 공간 영역의 픽셀 값들을 가지는 잔차 블록 내의 잔차 신호를 주파수 도메인의 변환 계수로 변환한다. 변환부(140)는 잔차 블록 내의 잔차 신호들을 현재 블록의 크기를 변환 단위로 사용하여 변환할 수 있으며, 또는 잔차 블록을 더 작은 복수의 서브블록을 분할하고 서브블록 크기의 변환 단위로 잔차 신호들을 변환할 수도 있다. 잔차 블록을 더 작은 서브블록으로 분할하는 방법은 다양하게 존재할 수 있다. 예컨대, 기정의된 동일한 크기의 서브블록으로 분할할 수도 있으며, 또는 잔차 블록을 루트 노드로 하는 QT(quadtree) 방식의 분할을 사용할 수도 있다. The transform unit 140 transforms a residual signal in a residual block having pixel values in the spatial domain into transform coefficients in the frequency domain. The transform unit 140 may transform the residual signals in the residual block using the size of the current block as a transform unit, or divide the residual block into a plurality of smaller sub-blocks and convert the residual signals in a transform unit of the sub-block size. You can also convert There may be various methods for dividing the residual block into smaller subblocks. For example, it may be divided into sub-blocks of the same predefined size, or a quadtree (QT) type partitioning using a residual block as a root node may be used.

양자화부(145)는 변환부(140)로부터 출력되는 변환 계수들을 양자화하고, 양자화된 변환 계수들을 부호화부(150)로 출력한다.The quantization unit 145 quantizes the transform coefficients output from the transform unit 140 , and outputs the quantized transform coefficients to the encoder 150 .

부호화부(150)는 양자화된 변환 계수들을 CABAC 등의 부호화 방식을 사용하여 부호화하여 비트스트림을 생성한다. 또한, 부호화부(150)는 블록 분할과 관련된 CTU size, MinQTSize, MaxBTSize, MaxBTDepth, MinBTSize, QT 분할 플래그, BT 분할 플래그, 분할 타입 등의 정보를 부호화하여, 영상 복호화 장치가 영상 부호화 장치와 동일하게 블록을 분할할 수 있도록 한다.The encoder 150 generates a bitstream by encoding the quantized transform coefficients using an encoding method such as CABAC. In addition, the encoder 150 encodes information such as CTU size, MinQTSize, MaxBTSize, MaxBTDepth, MinBTSize, QT split flag, BT split flag, and split type related to block splitting so that the video decoding apparatus is identical to the video encoding apparatus. Allows the block to be partitioned.

부호화부(150)는 현재 블록이 인트라 예측에 의해 부호화되었는지 아니면 인터 예측에 의해 부호화되었는지 여부를 지시하는 예측 타입에 대한 정보를 부호화하고, 예측 타입에 따라 인트라 예측정보 또는 인터 예측정보를 부호화한다. The encoder 150 encodes information on a prediction type indicating whether the current block is encoded by intra prediction or inter prediction, and encodes intra prediction information or inter prediction information according to the prediction type.

현재블록이 인트라 예측된 경우에는 인트라 예측정보로서 인트라 예측 모드에 대한 신택스 요소(syntax element)를 부호화한다. 현재블록이 인터 예측된 경우, 부호화부(150)는 인터 예측정보에 대한 신택스 요소를 부호화한다. 인터 예측정보에 대한 신택스 요소는 다음을 포함한다.When the current block is intra-predicted, a syntax element for the intra-prediction mode is encoded as intra-prediction information. When the current block is inter-predicted, the encoder 150 encodes a syntax element for inter prediction information. The syntax element for inter prediction information includes the following.

(1) 현재블록의 움직임정보가 머지 모드로 부호화되는지 아니면 차분 움직임벡터를 부호화하는 모드로 부호화되는지 여부를 지시하는 모드 정보(1) Mode information indicating whether motion information of the current block is encoded in a merge mode or a differential motion vector encoding mode

(2) 움직임정보에 대한 신택스 요소 (2) Syntax elements for motion information

움직임정보가 머지 모드에 의해 부호화되는 경우, 부호화부(150)는 머지 후보들 중 어느 후보가 현재블록의 움직임정보를 추출하기 위한 후보로서 선택되는지를 지시하는 머지 인덱스 정보를 움직임정보에 대한 신택스 요소로 부호화한다. When motion information is encoded by the merge mode, the encoder 150 uses merge index information indicating which of the merge candidates is selected as a candidate for extracting the motion information of the current block as a syntax element for the motion information. encode

반면, 움직임정보가 차분 움직임벡터를 부호화하는 모드에 의해 부호화되는 경우, 차분 움직임벡터에 대한 정보 및 참조 픽처에 대한 정보를 움직임정보에 대한 신택스 요소로 부호화한다. 만약, 예측 움직임벡터가 복수의 예측 움직임벡터 후보들 중 어느 하나의 후보를 선택하는 방식으로 결정되는 경우에는, 움직임정보에 대한 신택스 요소는 그 선택된 후보를 식별하기 위한 예측 움직임벡터 식별 정보를 추가로 더 포함한다.On the other hand, when the motion information is encoded according to the differential motion vector encoding mode, information on the differential motion vector and information on the reference picture are encoded as syntax elements for the motion information. If the prediction motion vector is determined by selecting any one candidate from among a plurality of prediction motion vector candidates, the syntax element for the motion information further includes prediction motion vector identification information for identifying the selected candidate. include

역양자화부(160)는 양자화부(145)로부터 출력되는 양자화된 변환 계수들을 역양자화하여 변환 계수들을 생성한다. 역변환부(165)는 역양자화부(160)로부터 출력되는 변환 계수들을 주파수 도메인으로부터 공간 도메인으로 변환하여 잔차블록을 복원한다.The inverse quantization unit 160 inverse quantizes the quantized transform coefficients output from the quantization unit 145 to generate transform coefficients. The inverse transform unit 165 restores the residual block by transforming the transform coefficients output from the inverse quantization unit 160 from the frequency domain to the spatial domain.

가산부(170)는 복원된 잔차블록과 예측부(120)에 의해 생성된 예측블록을 가산하여 현재 블록을 복원한다. 복원된 현재 블록 내의 픽셀들은 다음 순서의 블록을 인트라 예측할 때 참조 픽셀로서 사용된다.The addition unit 170 reconstructs the current block by adding the reconstructed residual block to the prediction block generated by the prediction unit 120 . Pixels in the reconstructed current block are used as reference pixels when intra-predicting the next block.

필터부(180)는 블록 단위의 부호화/복호화로 인해 발생하는 블록킹 현상(blocking artifact)을 제거하기 위해 복원된 블록 간의 경계를 디블록킹 필터링하고 메모리(190)에 저장한다. 한 픽처 내의 모든 블록들이 복원되면, 복원된 픽처는 이후에 부호화하고자 하는 픽처 내의 블록을 인터 예측하기 위한 참조 픽처로 사용된다.The filter unit 180 deblocks and filters the boundary between the reconstructed blocks in order to remove a blocking artifact generated due to block-by-block encoding/decoding, and stores the deblocking filter in the memory 190 . When all blocks in one picture are reconstructed, the reconstructed picture is used as a reference picture for inter prediction of blocks in a picture to be encoded later.

이하에서는 영상 복호화 장치에 대해 설명한다.Hereinafter, an image decoding apparatus will be described.

도 3은 본 개시의 기술들을 구현할 수 있는 영상 복호화 장치의 예시적인 블록도이다.3 is an exemplary block diagram of an image decoding apparatus capable of implementing the techniques of the present disclosure.

영상 복호화 장치는 복호화부(310), 역양자화부(320), 역변환부(330), 예측부(340), 가산기(350), 필터부(360) 및 메모리(370)를 포함한다. 도 2의 영상 부호화 장치와 마찬가지로, 영상 복호화 장치는 각 구성요소가 하드웨어 칩으로 구현될 수 있으며, 또는 소프트웨어로 구현되고 마이크로프로세서가 각 구성요소에 대응하는 소프트웨어의 기능을 실행하도록 구현될 수도 있다.The image decoding apparatus includes a decoding unit 310 , an inverse quantization unit 320 , an inverse transform unit 330 , a prediction unit 340 , an adder 350 , a filter unit 360 , and a memory 370 . Like the image encoding apparatus of FIG. 2 , each component of the image decoding apparatus may be implemented as a hardware chip, or may be implemented as software and a microprocessor may be implemented to execute a function of software corresponding to each component.

복호화부(310)는 영상 부호화 장치로부터 수신한 비트스트림을 복호화하여 블록 분할과 관련된 정보를 추출하여 복호화하고자 하는 현재 블록을 결정하고, 현재 블록을 복원하기 위해 필요한 예측 정보와 잔차신호에 대한 정보 등을 추출한다.The decoder 310 decodes the bitstream received from the image encoding apparatus, extracts information related to block division, determines a current block to be decoded, and predicts information necessary for reconstructing the current block, information on the residual signal, etc. to extract

복호화부(310)는 SPS (Sequence Parameter Set) 또는 PPS (Picture Parameter Set)로부터 CTU size에 대한 정보를 추출하여 CTU의 크기를 결정하고, 픽처를 결정된 크기의 CTU로 분할한다. 그리고 CTU를 트리 구조의 최상위 레이어, 즉, 루트 노드로 결정하고, CTU에 대한 분할 정보를 추출함으로써 CTU를 트리 구조를 이용하여 분할한다. 예컨대, QTBT 구조를 사용하여 CTU를 분할하는 경우, 먼저 QT의 분할과 관련된 제1 플래그(QT_split_flag)를 추출하여 각 노드를 하위 레이어의 네 개의 노드로 분할한다. 그리고, QT의 리프 노드에 해당하는 노드에 대해서는 BT의 분할과 관련된 제2 플래그(BT_split_flag) 및 분할 타입 정보를 추출하여 해당 리프 노드를 BT 구조로 분할한다.The decoder 310 extracts information about the CTU size from a sequence parameter set (SPS) or a picture parameter set (PPS), determines the size of the CTU, and divides the picture into CTUs of the determined size. Then, the CTU is determined as the top layer of the tree structure, that is, the root node, and the CTU is divided using the tree structure by extracting the division information on the CTU. For example, when a CTU is split using a QTBT structure, a first flag (QT_split_flag) related to QT splitting is first extracted and each node is split into four nodes of a lower layer. And, for a node corresponding to a leaf node of QT, a second flag (BT_split_flag) and split type information related to BT splitting are extracted and the corresponding leaf node is split into a BT structure.

한편, 복호화부(310)는 트리 구조의 분할을 통해 복호화하고자 하는 현재 블록을 결정하게 되면, 현재 블록이 인트라 예측되었는지 아니면 인터 예측되었는지를 지시하는 예측 타입에 대한 정보를 추출한다. Meanwhile, when the decoding unit 310 determines a current block to be decoded through division of the tree structure, information on a prediction type indicating whether the current block is intra-predicted or inter-predicted is extracted.

예측 타입 정보가 인트라 예측을 지시하는 경우, 복호화부(310)는 현재블록의 인트라 예측정보(인트라 예측 모드)에 대한 신택스 요소를 추출한다. When the prediction type information indicates intra prediction, the decoder 310 extracts a syntax element for intra prediction information (intra prediction mode) of the current block.

예측 타입 정보가 인터 예측을 지시하는 경우, 복호화부(310)는 인터 예측정보에 대한 신택스 요소를 추출한다. 먼저, 현재블록의 움직임정보가 복수의 부호화 모드 중 어느 모드에 의해 부호화되었는지 여부를 지시하는 모드 정보를 추출한다. 여기서, 복수의 부호화 모드는 스킵모드를 포함한 머지 모드 및 차분 움직임벡터 부호화 모드를 포함한다. 모드 정보가 머지 모드를 지시하는 경우, 복호화부(310)는 머지 후보들 중 어느 후보로부터 현재블록의 움직임벡터를 유도할지 여부를 지시하는 머지 인덱스 정보를 움직임정보에 대한 신택스 요소로서 추출한다. 반면, 모드 정보가 차분 움직임벡터 부호화 모드를 지시하는 경우, 복호화부(310)는 차분 움직임벡터에 대한 정보 및 현재블록의 움직임벡터가 참조하는 참조 픽처에 대한 정보를 움직임벡터에 대한 신택스 요소로서 추출한다. 한편, 영상 부호화 장치가 복수의 예측 움직임벡터 후보들 중에서 어느 하나의 후보를 현재블록의 예측 움직임벡터로 사용한 경우에는 예측 움직임벡터 식별정보가 비트스트림에 포함된다. 따라서 이 경우에는, 차분 움직임벡터에 대한 정보와 참조 픽처에 대한 정보뿐만 아니라 예측 움직임벡터 식별정보도 움직임벡터에 대한 신택스 요소로서 추출한다.When the prediction type information indicates inter prediction, the decoder 310 extracts a syntax element for the inter prediction information. First, mode information indicating whether motion information of the current block is encoded by which mode among a plurality of encoding modes is extracted. Here, the plurality of encoding modes include a merge mode including a skip mode and a differential motion vector encoding mode. When the mode information indicates the merge mode, the decoder 310 extracts merge index information indicating whether to derive the motion vector of the current block from any of the merge candidates as a syntax element for the motion information. On the other hand, when the mode information indicates a differential motion vector encoding mode, the decoder 310 extracts information on the differential motion vector and information on the reference picture referenced by the motion vector of the current block as syntax elements for the motion vector. do. On the other hand, when the video encoding apparatus uses any one of the plurality of prediction motion vector candidates as the prediction motion vector of the current block, the prediction motion vector identification information is included in the bitstream. Therefore, in this case, information on the differential motion vector and information on the reference picture as well as the prediction motion vector identification information are extracted as syntax elements for the motion vector.

한편, 복호화부(310)는 잔차신호에 대한 정보로서 현재 블록의 양자화된 변환계수들에 대한 정보를 추출한다.Meanwhile, the decoder 310 extracts information on the quantized transform coefficients of the current block as information on the residual signal.

역양자화부(320)는 양자화된 변환계수들을 역양자화하고 역변환부(330)는 역양자화된 변환계수들을 주파수 도메인으로부터 공간 도메인으로 역변환하여 잔차신호들을 복원함으로써 현재 블록에 대한 잔차블록을 생성한다.The inverse quantization unit 320 inverse quantizes the quantized transform coefficients, and the inverse transform unit 330 inversely transforms the inverse quantized transform coefficients from the frequency domain to the spatial domain to reconstruct residual signals to generate a residual block for the current block.

예측부(340)는 인트라 예측부(342) 및 인터 예측부(344)를 포함한다. 인트라 예측부(342)는 현재 블록의 예측 타입인 인트라 예측일 때 활성화되고, 인터 예측부(344)는 현재 블록의 예측 타입인 인트라 예측일 때 활성화된다.The prediction unit 340 includes an intra prediction unit 342 and an inter prediction unit 344 . The intra prediction unit 342 is activated when the prediction type of the current block is intra prediction, and the inter prediction unit 344 is activated when the prediction type of the current block is intra prediction.

인트라 예측부(342)는 복호화부(310)로부터 추출된 인트라 예측 모드에 대한 신택스 요소로부터 복수의 인트라 예측 모드 중 현재 블록의 인트라 예측 모드를 결정하고, 인트라 예측 모드에 따라 현재 블록 주변의 참조 픽셀들을 이용하여 현재 블록을 예측한다. The intra prediction unit 342 determines the intra prediction mode of the current block from among the plurality of intra prediction modes from the syntax element for the intra prediction mode extracted from the decoder 310, and a reference pixel around the current block according to the intra prediction mode. Predict the current block using

인터 예측부(344)는 복호화부(310)로부터 추출된 인트라 예측 모드에 대한 신택스 요소를 이용하여 현재 블록의 움직임정보를 결정하고, 결정된 움직임정보를 이용하여 현재 블록을 예측한다.The inter prediction unit 344 determines motion information of the current block by using the syntax element for the intra prediction mode extracted from the decoder 310 , and predicts the current block using the determined motion information.

먼저, 인터 예측부(344)는 복호화부(310)로부터 추출된 인터 예측에서의 모드 정보를 확인한다. 모드 정보가 머지 모드를 지시하는 경우, 인터 예측부(344)는 현재블록의 주변블록을 이용하여 기 결정된 개수의 머지 후보를 포함하는 머지 리스트를 구성한다. 인터 예측부(344)가 머지 리스트를 구성하는 방법은 영상 부호화 장치의 인터 예측부(124)와 동일하다. 그리고, 복호화부(310)으로부터 전달된 머지 인덱스 정보를 이용하여 머지 리스트 내의 머지 후보들 중에서 하나의 머지 후보를 선택한다. 그리고 선택된 머지 후보의 움직임정보, 즉, 머지 후보의 움직임벡터와 참조 픽처를 현재블록의 움직임벡터와 참조픽처로 설정한다. First, the inter prediction unit 344 checks mode information in inter prediction extracted from the decoder 310 . When the mode information indicates a merge mode, the inter prediction unit 344 constructs a merge list including a predetermined number of merge candidates using neighboring blocks of the current block. A method for the inter prediction unit 344 to construct the merge list is the same as that of the inter prediction unit 124 of the image encoding apparatus. Then, one merge candidate is selected from among the merge candidates in the merge list by using the merge index information transmitted from the decoder 310 . Then, motion information of the selected merge candidate, that is, the motion vector and reference picture of the merge candidate, is set as the motion vector and reference picture of the current block.

반면, 모드 정보가 차분 움직임벡터 부호화 모드를 지시하는 경우, 인터 예측부(344)는 현재블록의 주변블록들의 움직임벡터를 이용하여 예측 움직임벡터 후보들을 유도하고, 예측 움직임벡터 후보들을 이용하여 현재블록의 움직임벡터에 대한 예측 움직임벡터를 결정한다. 인터 예측부(344)가 예측 움직임벡터 후보들을 유도하는 방법은 영상 부호화 장치의 인터 예측부(124)와 동일하다. 만약, 영상 부호화 장치가 복수의 예측 움직임벡터 후보들 중에서 어느 하나의 후보를 현재블록의 예측 움직임벡터로 사용한 경우에는 움직임정보에 대한 신택스 요소는 예측 움직임벡터 식별정보를 포함한다. 따라서, 이 경우에, 인터 예측부(344)는 예측 움직임벡터 후보들 중 예측 움직임벡터 식별정보에 의해 지시되는 후보를 예측 움직임벡터로 선택할 수 있다. 그러나, 영상 부호화 장치가 복수의 예측 움직임벡터 후보들에 기 정의된 함수를 사용하여 예측 움직임벡터를 결정한 경우에는, 인터 예측부는 영상 부호화 장치와 동일한 함수를 적용하여 예측 움직임벡터를 결정할 수도 있다. 현재블록의 예측 움직임벡터가 결정되면, 인터 예측부(344)는 예측 움직임벡터와 복호화부(310)로부터 전달된 차분 움직임벡터를 가산하여 현재블록의 움직임벡터를 결정한다. 그리고 복호화부(310)로부터 전달된 참조픽처에 대한 정보를 이용하여 현재블록의 움직임벡터가 참조하는 참조픽처를 결정한다.On the other hand, when the mode information indicates the differential motion vector encoding mode, the inter prediction unit 344 derives prediction motion vector candidates using motion vectors of neighboring blocks of the current block, and uses the prediction motion vector candidates to obtain the current block. A predicted motion vector is determined for the motion vector of . The method of the inter prediction unit 344 inducing prediction motion vector candidates is the same as that of the inter prediction unit 124 of the image encoding apparatus. If the video encoding apparatus uses any one of the plurality of prediction motion vector candidates as the prediction motion vector of the current block, the syntax element for the motion information includes the prediction motion vector identification information. Accordingly, in this case, the inter prediction unit 344 may select a candidate indicated by the prediction motion vector identification information from among the prediction motion vector candidates as the prediction motion vector. However, when the image encoding apparatus determines the predicted motion vector by using a function predefined for the plurality of prediction motion vector candidates, the inter prediction unit may determine the predicted motion vector by applying the same function as that of the image encoding apparatus. When the predicted motion vector of the current block is determined, the inter prediction unit 344 determines the motion vector of the current block by adding the predicted motion vector and the differential motion vector transmitted from the decoder 310 . Then, the reference picture referred to by the motion vector of the current block is determined by using the information on the reference picture transmitted from the decoder 310 .

머지 모드 또는 차분 움직임벡터 부호화 모드에서 현재블록의 움직임벡터와 참조픽처가 결정되면, 인터 예측부(342)는 참조픽처 내에서 움직임벡터가 지시하는 위치의 블록을 이용하여 현재블록의 예측블록을 생성한다.When the motion vector of the current block and the reference picture are determined in the merge mode or the differential motion vector encoding mode, the inter prediction unit 342 generates a prediction block of the current block by using the block at the position indicated by the motion vector in the reference picture. do.

본 개시의 예시들은 일반적으로 양방향 옵티컬 플로우(bi-directional optical flow; BIO) 기법에 관한 것이다. 이와 같이, 본 개시의 소정의 기법들은 인터 예측부(344)에 의해 수행될 수 있다. 즉, 예를 들어, 인터 예측부(344)는 아래의 도 4 내지 도 13에 대해 기술된 본 개시의 기법들을 수행할 수 있다. 다시 말해, 인터 예측부(344)는 현재 블록에 대한 양방향 움직임 벡터들을 결정한 후에, 영상 픽셀 단위 혹은 서브 블록 단위로 BIO 기법에 따른 움직인 보상을 사용하여 현재 블록에 대한 예측 블록을 생성할 수 있다. 다른 예들에서, 복호화 장치의 하나 이상의 다른 유닛들이 추가적으로 본 개시의 기법들을 수행하는 데 관여할 수도 있다.Examples of this disclosure relate generally to bi-directional optical flow (BIO) techniques. As such, certain techniques of the present disclosure may be performed by the inter prediction unit 344 . That is, for example, the inter prediction unit 344 may perform the techniques of the present disclosure described with reference to FIGS. 4 to 13 below. In other words, after determining the bidirectional motion vectors for the current block, the inter prediction unit 344 may generate a prediction block for the current block by using motion compensation according to the BIO technique in units of image pixels or sub-blocks. . In other examples, one or more other units of the decoding apparatus may be additionally involved in performing the techniques of the present disclosure.

가산기(350)는 역변환부로부터 출력되는 잔차블록과 인터 예측부 또는 인트라 예측부로부터 출력되는 예측블록을 가산하여 현재 블록을 복원한다. 복원된 현재 블록 내의 픽셀들은 이후에 복호화할 블록을 인트라 예측할 때의 참조픽셀로서 활용된다.The adder 350 reconstructs the current block by adding the residual block output from the inverse transform unit and the prediction block output from the inter prediction unit or the intra prediction unit. Pixels in the reconstructed current block are used as reference pixels when intra-predicting a block to be decoded later.

필터부(360)는 블록 단위의 복호화로 인해 발생하는 블록킹 현상(blocking artifact)를 제거하기 위해 복원된 블록 간의 경계를 디블록킹 필터링하고 메모리(370)에 저장한다. 한 픽처 내의 모든 블록들이 복원되면, 복원된 픽처는 이후에 복호화하고자 하는 픽처 내의 블록을 인터 예측하기 위한 참조 픽처로 사용된다.The filter unit 360 deblocks and filters the boundary between the reconstructed blocks in order to remove a blocking artifact caused by block-by-block decoding and stores the deblocking filter in the memory 370 . When all blocks in one picture are reconstructed, the reconstructed picture is used as a reference picture for inter prediction of blocks in a picture to be decoded later.

본 개시는 화면 간 예측을 통해 얻어진 움직임 벡터 정보의 보정을 위해서 양방향 옵티컬 플로우(bi-directional optical flow, BIO) 추정 기법을 사용하는 것과 관련되어 있다. 부호화 장치는 화면 간 예측 과정에서 코딩 블록(CU: coding unit) 단위의 움직임 추정 및 보상을 수행한 후, 그 결과물인 움직임 벡터(MV) 값을 복호화 장치 측에 전송하게 되고, 부호화 장치 및 복호화 장치는 CU 단위의 MV 값을 기반으로 BIO를 이용하여 픽셀 단위로 혹은 CU 보다 작은 서브 블록(즉, sub-CU) 단위로 MV 값을 추가적으로 보정할 수 있다. 즉, BIO는 n×n 크기의 블록에서부터 1×1 크기의 블록(즉, 픽셀) 단위로 코딩 블록(CU)의 움직임을 각 블록의 크기를 기준으로 정밀하게 움직임을 보상할 수 있다. 또한, 움직임 벡터를 계산하는 명시적인 방정식이 있기 때문에 움직임 정보를 획득하기 위한 탐색 과정과 움직임 정보를 전송하기 위한 시그널링을 필요로 하지 않는다.The present disclosure relates to using a bi-directional optical flow (BIO) estimation technique to correct motion vector information obtained through inter prediction. The encoding apparatus performs motion estimation and compensation in units of coding blocks (CUs) in an inter prediction process, and then transmits a resultant motion vector (MV) value to the decoding apparatus, and the encoding apparatus and the decoding apparatus may additionally correct the MV value in units of pixels or sub-blocks smaller than CUs (ie, sub-CUs) using BIO based on the MV values in units of CUs. That is, the BIO can precisely compensate for the motion of the coding block (CU) from an n×n block to a 1×1 block (ie, pixel) unit based on the size of each block. In addition, since there is an explicit equation for calculating a motion vector, a search process for acquiring motion information and signaling for transmitting motion information are not required.

도 4는 BIO의 기본적인 개념을 설명하기 위한 참조도이다.4 is a reference diagram for explaining the basic concept of BIO.

영상 부호화 및 복호화 시 이용하는 BIO는 움직임 벡터 정보가 양방향 (bi-prediction) 정보여야 하고, 움직임은 시간축을 기준으로 순차적으로 이동하는 일정한 움직임(steady motion)이라는 가정을 기반으로 한다. 도 4에서 두 개의 참조 픽처 (Ref0, Ref1)를 참조하는 현재 픽처 (B-picture)를 보인다. BIO used for video encoding and decoding is based on the assumption that motion vector information should be bi-prediction information, and that motion is a steady motion that moves sequentially based on the time axis. 4 shows a current picture (B-picture) referring to two reference pictures (Ref 0 and Ref 1 ).

우선, 현재 블록에 대한 (통상의) 양방향 움직임 예측에 의하여 참조 픽처(Ref0과 Ref1)에서 현재 픽처의 부호화되는 현재 블록과 가장 유사한 대응 영역들(즉, 참조 블록들)을 가리키는 양방향 움직임 벡터들(MV0, MV1)이 결정되었다고 가정하자. 해당 두 개의 양방향 움직임 벡터들은 현재 블록의 움직임을 나타내는 값이다. 즉, 현재 블록을 하나의 단위로 설정하고, 해당 단위에 대한 움직임을 전체적으로 추정 및 보상한 값이다.First, a bidirectional motion vector indicating regions (ie, reference blocks) most similar to the coded current block of the current picture in the reference pictures (Ref 0 and Ref 1 ) by (normal) bidirectional motion prediction for the current block. Assume that (MV 0 , MV 1 ) is determined. The two bidirectional motion vectors are values representing the motion of the current block. That is, it is a value obtained by setting the current block as a unit and estimating and compensating for the motion of the unit as a whole.

도 4의 예시에서, 현재 블록 내 픽셀 P와 대응되는 것으로 양방향 움직임 벡터(MV0)가 가리키는 참조 픽처(Ref0)내 픽셀은 P0이며, 현재 블록 내 픽셀 P와 대응되는 것으로 양방향 움직임 벡터(MV1)가 가리키는 참조 픽처(Ref1)내 픽셀은 P1이다. 그리고, 도 4에서 픽셀 P에 대한 움직임은 현재 블록의 전체적인 움직임과는 조금 상이하다라고 가정하자. 예컨대, 도 4의 Ref0 내 픽셀 A에 위치하는 물체가 현재 픽처의 현재 블록 내 픽셀 P를 지나 Ref1 내 픽셀 B로 움직였다면, 픽셀 A 및 픽셀 B는 상당히 유사한 값을 가지게 된다. 또한, 이 경우, 현재 블록 내 픽셀 P와 가장 유사한 Ref0 내 지점은 양방향 움직임 벡터(MV0)가 가리키는 P0이 아니라, P0를 소정의 변위 벡터(v x τ 0 , v y τ 0)만큼 이동시킨 A이며, 현재 블록 내 픽셀 P와 가장 유사한 Ref1 내 지점은 양방향 움직임 벡터(MV1)가 가리키는 P1이 아니라, P1를 소정의 변위 벡터(-v x τ 1 , -v y τ 1)만큼 이동시킨 B이다. 이하에서는, 편의상, (v x , v y )를 “BIO 움직임 벡터”라고 지칭한다. In the example of FIG. 4 , the pixel in the reference picture Ref 0 indicated by the bidirectional motion vector MV 0 as corresponding to the pixel P in the current block is P 0 , and the bidirectional motion vector ( A pixel in the reference picture Ref 1 pointed to by MV 1 is P 1 . Also, it is assumed that the motion of the pixel P in FIG. 4 is slightly different from the overall motion of the current block. For example, if an object located at pixel A in Ref 0 of FIG. 4 moves past pixel P in the current block of the current picture to pixel B in Ref1, pixel A and pixel B have significantly similar values. In addition, in this case, the point in Ref0 that is most similar to the pixel P in the current block is not P0 indicated by the bidirectional motion vector MV0, but A that has moved P0 by a predetermined displacement vector ( v x τ 0 , v y τ 0 ). , and the point in Ref1 that is most similar to pixel P in the current block is not P1 indicated by the bidirectional motion vector (MV1), but B, which has shifted P1 by a predetermined displacement vector (- v x τ 1 , -v y τ 1 ). . Hereinafter, for convenience, ( v x , v y ) is referred to as a “BIO motion vector”.

그러므로, 현재 픽처 내 현재 블록의 픽셀(P)값을 예측함에 있어서, 두 참조 픽셀(A, B)의 값을 이용하면, 양방향 움직임 벡터(MV0, MV1)가 가리키는 참조 픽셀(P0, P1)을 이용하는 것보다 좀 더 정확한 예측이 가능하다. 위와 같이, BIO 움직임 벡터(v x , v y )에 의해 특정되는 현재 블록 내 픽셀 단위의 움직임을 고려하여 현재 블록의 한 픽셀을 예측하는 데 사용되는 참조 픽셀을 변경하는 개념은 현재 블록 내 서브 블록들로 확장될 수 있다. Therefore, in predicting the pixel (P) value of the current block in the current picture, if the values of the two reference pixels (A, B) are used, the reference pixels (P0, P1) indicated by the bidirectional motion vectors (MV0, MV1) are It is possible to make a more accurate prediction than using it. As described above, the concept of changing the reference pixel used to predict one pixel of the current block in consideration of the pixel-wise motion in the current block specified by the BIO motion vector ( v x , v y ) is a sub-block within the current block. can be extended to

이하에서는, BIO 기법에 따라, 현재 블록 내 픽셀에 대한 예측값을 생성하는 이론적인 방법을 설명하기로 한다. 설명의 편의를 위해, BIO 기반의 양방향 움직임 보상을 픽셀 단위로 수행하는 것을 전제로 한다.Hereinafter, a theoretical method of generating a prediction value for a pixel in the current block according to the BIO technique will be described. For convenience of description, it is assumed that BIO-based bidirectional motion compensation is performed in units of pixels.

현재 블록에 대한 (통상의) 블록 단위 양방향 움직임 예측에 의하여 참조 픽처(Ref0과 Ref1)에서 현재 픽처의 부호화되는 현재 블록과 가장 유사한 대응 영역들(즉, 참조 블록들)을 가리키는 양방향 움직임 벡터들(MV0, MV1)이 결정되었다고 가정한다. 복호화 장치는 비트스트림에 포함된 움직임 벡터 정보로부터 양방향 움직임 벡터들(MV0, MV1)를 결정할 수 있다. 또한, 현재 블록 내 픽셀 (i,j)와 대응되는 것으로 움직임 벡터들(MV0)가 가리키는 참조 픽처(Ref0)내 픽셀의 밝기 값(luminance value)을 I (0) (i,j)라고 정의하고, 현재 블록 내 픽셀 (i,j)와 대응되는 것으로 움직임 벡터들(MV1)가 가리키는 참조 픽처(Ref1)내 픽셀의 밝기값을 I (1) (i,j)라고 정의한다. A bidirectional motion vector indicating regions (ie, reference blocks) most similar to the current block to be coded in the reference pictures (Ref 0 and Ref 1 ) by (normal) block-by-block bidirectional motion prediction for the current block. It is assumed that MV 0 and MV 1 are determined. The decoding apparatus may determine the bidirectional motion vectors MV 0 and MV 1 from motion vector information included in the bitstream. In addition, the luminance value of the pixel in the reference picture Ref 0 indicated by the motion vectors MV 0 as corresponding to the pixel ( i,j ) in the current block is called I (0) ( i,j ) is defined, and the brightness value of the pixel in the reference picture Ref 1 indicated by the motion vectors MV 1 as corresponding to the pixel (i,j ) in the current block is defined as I (1) ( i,j ).

BIO 움직임 벡터 (v x , v y )가 현재 블록 내 픽셀에 대응되는 것으로 가리키는 참조 픽처 Ref0 내의 픽셀 A의 밝기값은

Figure pat00001
로 정의될 수 있으며, 참조 픽처 Ref1 내의 픽셀 B의 밝기값은
Figure pat00002
로 정의될 수 있다. 따라서, 픽셀 A와 픽셀 B 사이의 플로우 차이값(flow difference) Δ는 일반적으로 <수학식 1>와 같이 정의된다.The brightness value of pixel A in the reference picture Ref 0 indicated by the BIO motion vector ( v x , v y ) as corresponding to the pixel in the current block is
Figure pat00001
It can be defined as , and the brightness value of pixel B in the reference picture Ref 1 is
Figure pat00002
can be defined as Accordingly, the flow difference Δ between the pixel A and the pixel B is generally defined as in Equation 1 above.

Figure pat00003
Figure pat00003

여기서, I (k) (k = 0, 1)는 현재 블록 내의 예측하고자 하는 픽셀에 대응되는 것으로 움직임 벡터들(MV0, MV1)가 가리키는 참조 픽처(Ref0 및 Ref1)내 픽셀의 밝기 (luminance)이고, (v x , v y )은 구하고자 하는 BIO 움직임 벡터이다. 간략하게 표기하기 위해, 위 <수학식 1>의 각 항에서 참조 픽처(Ref0 및 Ref1)내 픽셀의 위치 (i, j)는 생략되었다.

Figure pat00004
Figure pat00005
는 각각 I (k) 그래디언트(gradient)의 수평 및 수직 성분을 나타낸다. τ 0τ 1은 현재 픽처와 2개의 참조 픽처(Ref0과 Ref1) 간의 시간적 거리를 나타낸다. τ 0τ 1은 POC(picture order count)를 기반으로 계산될 수 있으며, 예컨대, τ 0=POC(current)-POC(Ref0), τ 1= POC(Ref1)-POC(current) 이다. 여기서, POC(current), POC(Ref0), 및 POC(Ref1)은 각각 현재 픽처, 참조 픽처 Ref0, 및 참조 픽처 Ref1의 POC를 의미한다.Here, I (k) (k = 0, 1) corresponds to a pixel to be predicted in the current block, and the brightness of a pixel in the reference pictures Ref 0 and Ref 1 indicated by the motion vectors MV 0 and MV 1 . (luminance), and ( v x , v y ) is the BIO motion vector to obtain. For brevity, positions ( i , j ) of pixels in reference pictures (Ref 0 and Ref 1 ) in each term of Equation 1 above are omitted.
Figure pat00004
Wow
Figure pat00005
denotes the horizontal and vertical components of the I (k) gradient, respectively. τ 0 and τ 1 indicate a temporal distance between the current picture and two reference pictures (Ref 0 and Ref 1 ). τ 0 and τ 1 may be calculated based on a picture order count (POC), for example, τ 0 =POC(current)-POC(Ref 0 ), τ 1 = POC(Ref 1 )-POC(current). . Here, POC(current), POC(Ref 0 ), and POC(Ref 1 ) refer to POCs of the current picture, the reference picture Ref 0 , and the reference picture Ref 1 , respectively.

움직임이 지역적으로 주변 픽셀들과 일관성이 있다는 가정을 기반하여, 현재 예측하고자 하는 픽셀 (i, j)에 대한 BIO 움직임 벡터는 현재 예측하고자 하는 픽셀 (i, j)를 중심으로 하는 일정 영역 Ω 내 존재하는 모든 픽셀 (i', j')에 대한 <수학식 1>의 차이값 Δ들을 고려한다. 즉, 현재 픽셀 (i, j)에 대한 BIO 움직임 벡터는 다음의 <수학식 2>와 같이, 일정 영역 Ω 내의 각 픽셀에 대하여 획득된 차이값 Δ[i',j']의 제곱합을 최소로 하는 벡터로 결정될 수 있다.Movement within the geographically close based on the assumption that the pixels and consistency, the pixel constant region Ω centered on the pixel (i, j) of BIO motion vectors to the current prediction for the (i, j) to the current prediction Consider the difference values Δ in <Equation 1> for all pixels ( i' , j') present. That is, the BIO motion vector for the current pixel ( i , j ) minimizes the sum of squares of the difference value Δ[i',j' ] obtained for each pixel within a certain region Ω as shown in Equation 2 below. It can be determined by a vector that

Figure pat00006
Figure pat00006

여기서, (i', j')는 탐색 영역 Ω 내에 위치하는 모든 픽셀들을 의미한다. 따라서, <수학식 2>와 같이, 현재 픽셀 위치에서 목적함수(Δ2의 합)를 최소화하는 명시적인 방정식을 계산함으로써 현재 픽셀의 BIO 움직임 벡터 (v x , v y )를 결정할 수 있으므로, 세부적인 움직임 정보를 획득하기 위한 탐색 과정과 움직임 정보를 전송하기 위한 시그널링을 필요로 하지 않는다.Here, ( i' , j' ) means all pixels located within the search area Ω. Therefore, as shown in <Equation 2>, the BIO motion vector ( v x , v y ) of the current pixel can be determined by calculating an explicit equation that minimizes the objective function (the sum of Δ 2 ) at the current pixel position. There is no need for a search process for acquiring the specific motion information and signaling for transmitting the motion information.

일반적으로, 상기 탐색 영역 Ω은 현재 픽셀 (i, j)에 중심을 둔 (2M + 1) × (2N + 1) 크기의 마스킹 윈도우(masking window)로 정의될 수 있다. 마스킹 윈도우의 구조 및 크기는 BIO 움직임 벡터 (v x , v y )를 결정하는 알고리즘의 복잡성 및 그 정밀도에 큰 영향을 미친다. 따라서, 마스킹 윈도우의 선택은 BIO 움직임 벡터 (v x , v y )를 결정하는 알고리즘에 있어서 매우 중요하다.In general, the search area Ω may be defined as a masking window having a size of (2M+1)×(2N+1) centered on the current pixel (i , j). The structure and size of the masking window have a significant impact on the complexity of the algorithm for determining the BIO motion vector (v x , v y ) and its precision. Therefore, the selection of the masking window is very important for the algorithm for determining the BIO motion vector ( v x , v y ).

현재 픽셀의 BIO 움직임 벡터 (v x , v y )가 결정되면, 현재 픽셀 (i, j)에 대한 BIO 움직임 벡터에 기반한 양방향 예측값(pred BIO )은 <수학식 3>에 의해 계산될 수 있다.When the BIO motion vector ( v x , v y ) of the current pixel is determined, a bidirectional prediction value ( pred BIO ) based on the BIO motion vector for the current pixel ( i , j ) may be calculated by <Equation 3>.

Figure pat00007
Figure pat00007

<수학식 3>에서, (I (0) +I (1) )/2는 통상적인 블록 단위 양방향 예측 보상이므로, 나머지 항들은 BIO 오프셋(offset)으로 지칭될 수 있다.In <Equation 3>, ( I (0) + I (1) )/2 is a typical block-wise bidirectional prediction compensation, so the remaining terms may be referred to as BIO offsets.

이하, 도 5a 및 도 5b를 참조하여, BIO 기반의 양방향 움직임 보상 방법을 설명한다. 이하의 방법은 영상 부호화 장치 및 영상 복호화 장치에 공통된다. 비록 도 5에는 도시되어 있지 않지만, 부호화 장치는 참조 픽처들로 사용하기 위한 픽처들을 부호화하고 이어서 복호화하여, 메모리에 저장하였다고 가정한다. 또한, 복호화 장치는 참조 픽처들로 사용하기 위한 픽처들을 복호화하여, 메모리에 저장하였다고 가정한다.Hereinafter, a BIO-based bidirectional motion compensation method will be described with reference to FIGS. 5A and 5B . The following method is common to the video encoding apparatus and the video decoding apparatus. Although not shown in FIG. 5 , it is assumed that the encoding apparatus encodes pictures for use as reference pictures, then decodes them, and stores them in a memory. Also, it is assumed that the decoding apparatus decodes pictures to be used as reference pictures and stores them in a memory.

도 5a는 본 발명의 일 실시예에 따른 픽셀 레벨의 BIO 기반으로 수행되는 양방향 움직임 보상 방법을 도시한 흐름도이다. 5A is a flowchart illustrating a bidirectional motion compensation method performed based on pixel-level BIO according to an embodiment of the present invention.

먼저, 부호화 장치 및 복호화 장치는 제1 참조 픽처에서 현재 블록과 가장 유사한 제1 대응 영역을 가리키는 제1 움직임 벡터를 결정하고, 제2 참조 픽처에서 현재 블록과 가장 유사한 제2 대응 영역을 가리키는 제2 움직임 벡터를 결정한다(S510). First, the encoding apparatus and the decoding apparatus determine a first motion vector indicating a first correspondence region most similar to a current block in a first reference picture, and a second motion vector indicating a second correspondence region most similar to the current block in a second reference picture. A motion vector is determined (S510).

부호화 장치 및 복호화 장치는 픽셀 단위로 BIO 프로세스를 적용하여 현재 블록 내 각 픽셀에 대응하는 BIO 움직임 벡터(v x , v y )를 결정한다(S520). The encoding apparatus and the decoding apparatus determine the BIO motion vectors v x , v y corresponding to each pixel in the current block by applying the BIO process in units of pixels ( S520 ).

BIO 움직임 벡터(v x , v y )는 해당하는 픽셀을 중심으로 하는 소정의 마스킹 윈도우에 의해 정의되는 탐색 영역 내의 위치하는 각 픽셀에 대한 <수학식 1 >로 표현되는 플로우 차이(flow difference)들의 제곱의 합이 최소화되도록 하는 벡터로 결정될 수 있다. BIO motion vectors ( v x , v y ) are flow differences expressed by <Equation 1> for each pixel located in a search area defined by a predetermined masking window centered on the corresponding pixel. It can be determined as a vector such that the sum of squares is minimized.

일부 예시에서, 현재 블록의 가장자리에 위치하는 픽셀에 대한 BIO 움직임 벡터를 결정함에 있어서, 현재 블록을 벗어나는 영역에 위치하는 픽셀들에 대한 플로우 차이들은 고려되지 않을 수 있다.In some examples, in determining the BIO motion vector for a pixel located at the edge of the current block, flow differences for pixels located outside the current block may not be considered.

일부 예시에서, (2M + 1) × (2N + 1) 크기를 갖는 사각형 모양의 마스킹 윈도우가 사용될 수 있다. 바람직하게는, 예컨대, 5×5 크기의, 정사각형 모양의 마스킹 윈도우가 사용될 수 있다. 다른 일부 예시에서, 플러스(plus) 모양 혹은 다이아몬드(diamond) 모양과 같은, 사각형 모양이 아닌 마스킹 윈도우가 사용될 수 있다. In some examples, a rectangular-shaped masking window having a size of (2M + 1) × (2N + 1) may be used. Preferably, a masking window in the shape of a square, eg 5×5 in size, may be used. In some other examples, a non-rectangular masking window may be used, such as a plus shape or a diamond shape.

부호화 장치 및 복호화 장치는 픽셀 단위로 계산된 BIO 움직임 벡터(v x , v y )를 기초로, 양방향 예측을 사용하여 현재 블록에 대한 예측 블록을 생성한다(S530). 즉, 부호화 장치 및 복호화 장치는, 각 BIO 움직임 벡터를 이용하여, 대응되는 픽셀의 양방향 예측값을 <수학식 3>에 기초로 생성한다.The encoding apparatus and the decoding apparatus generate a prediction block for the current block by using bi-directional prediction based on the BIO motion vectors (v x , v y ) calculated in units of pixels ( S530 ). That is, the encoding apparatus and the decoding apparatus generate a bidirectional prediction value of a corresponding pixel based on Equation 3 by using each BIO motion vector.

최종적으로, 부호화 장치 및 복호화 장치는 생성된 예측 블록을 이용하여 현재 블록의 픽셀들을 부호화 혹은 복호화한다(S540). Finally, the encoding apparatus and the decoding apparatus encode or decode pixels of the current block by using the generated prediction block ( S540 ).

도 5b는 본 발명의 일 실시예에 따른 서브 블록 레벨의 BIO 기반으로 수행되는 양방향 움직임 보상 방법을 도시한 흐름도이다. 5B is a flowchart illustrating a bidirectional motion compensation method performed based on sub-block level BIO according to an embodiment of the present invention.

먼저, 부호화 장치 및 복호화 장치는 제1 참조 픽처에서 현재 블록과 가장 유사한 제1 대응 영역을 가리키는 제1 움직임 벡터를 결정하고, 제2 참조 픽처에서 현재 블록과 가장 유사한 제2 대응 영역을 가리키는 제2 움직임 벡터를 결정한다(S560). First, the encoding apparatus and the decoding apparatus determine a first motion vector indicating a first correspondence region most similar to a current block in a first reference picture, and a second motion vector indicating a second correspondence region most similar to the current block in a second reference picture. A motion vector is determined (S560).

부호화 장치 및 복호화 장치는 현재 블록 내 각 서브 블록 단위로 BIO 프로세스를 적용하여, 각 서브 블록에 대응하는 BIO 움직임 벡터(v x , v y )를 결정한다(S570). The encoding apparatus and the decoding apparatus determine the BIO motion vectors v x , v y corresponding to each sub-block by applying the BIO process to each sub-block in the current block ( S570 ).

BIO 움직임 벡터(v x , v y )는 서브 블록 내 각 픽셀들을 중심으로 하는 소정의 마스킹 윈도우에 의해 정의되는 탐색 영역 내의 위치하는 각 픽셀에 대한 플로우 차이들의 제곱의 합이 최소화되도록 하는 벡터로 결정될 수 있다. 대안적으로, BIO 움직임 벡터(v x , v y )는 서브 블록 내 일부 픽셀들을 중심으로 하는 소정의 마스킹 윈도우에 의해 정의되는 탐색 영역 내의 위치하는 모든 픽셀에 대한 플로우 차이(flow difference)들의 제곱의 합이 최소화되도록 하는 벡터로 결정될 수 있다. 예컨대, 마스킹 윈도우가 적용되는 픽셀들과 적용되지 않는 픽셀들의 위치는 체크(check) 패턴, 가로 줄무늬 (horizontal stripes) 패턴 혹은 세로 줄무늬(vertical stripes) 패턴을 이룰 수 있다. The BIO motion vector ( v x , v y ) is a vector such that the sum of squares of flow differences for each pixel located in the search area defined by a predetermined masking window centered on each pixel in the sub-block is minimized. can Alternatively, the BIO motion vector ( v x , v y ) is the square of the flow differences for all pixels located within the search area defined by a predetermined masking window centered on some pixels in the sub-block. It can be determined as a vector such that the sum is minimized. For example, positions of pixels to which the masking window is applied and pixels to which the masking window is not applied may form a check pattern, a horizontal stripes pattern, or a vertical stripes pattern.

일부 예시에서, 플로우 차이들을 반복적으로 계산하는 대신에, 중복되는 차이값에 대해서는 그 차이값에 중복되는 횟수에 따른 가중치를 부여할 수 있다. 일부 예시에서, 현재 블록의 가장자리에 위치하는 서브 블록에 대한 BIO 움직임 벡터를 결정함에 있어서, 현재 블록을 벗어나는 영역에 위치하는 픽셀들에 대한 플로우 차이들은 고려되지 않을 수 있다.In some examples, instead of repeatedly calculating the flow differences, a weight may be given to the overlapping difference value according to the number of overlapping differences. In some examples, in determining the BIO motion vector for a sub-block located at the edge of the current block, flow differences for pixels located in an area outside the current block may not be considered.

일부 예시에서, (2M + 1) × (2N + 1) 크기를 갖는 사각형 모양의 마스킹 윈도우가 사용될 수 있다. 일부 예시에서, 마스킹 윈도우는 (예컨대, 5×5 크기의) 정사각형 모양일 수 있다. 다른 일부 예시에서, 예컨대 플러스(plus) 모양 및 다이아몬드(diamond) 모양과 같은, 사각형 모양이 아닌 마스킹 윈도우가 사용될 수 있다. 일부 예시에서, 마스킹 윈도우가 사용되지 않을 수 있다. 예컨대, BIO 움직임 벡터(v x , v y )는 서브 블록 내 각 픽셀에 대한 플로우 차이(flow difference)들의 제곱의 합이 최소화되도록 하는 벡터로 결정될 수 있다. In some examples, a rectangular-shaped masking window having a size of (2M + 1) × (2N + 1) may be used. In some examples, the masking window may be square in shape (eg, 5x5 in size). In some other examples, non-rectangular masking windows may be used, such as, for example, plus shapes and diamond shapes. In some examples, a masking window may not be used. For example, the BIO motion vectors ( v x , v y ) may be determined as vectors such that the sum of squares of flow differences for each pixel in the sub-block is minimized.

부호화 장치 및 복호화 장치는 서브 블록 단위로 계산된 BIO 움직임 벡터(v x , v y )들을 기초로, 양방향 예측을 사용하여 현재 블록에 대한 예측 블록을 생성한다(S580). 서브 블록 내 모든 픽셀은 서브 블록 단위로 계산된 BIO 움직임 벡터 (v x , v y )를 공유한다. 즉, 서브 블록 내 모든 픽셀에 대한 BIO 기반의 예측값은 해당 서브 블록에 대해 결정된 하나의 BIO 움직임 벡터 (v x , v y )를 이용하여 <수학식 3>에 의해 계산된다.The encoding apparatus and the decoding apparatus generate a prediction block for the current block using bi-directional prediction based on the BIO motion vectors ( v x , v y ) calculated in units of sub-blocks ( S580 ). All pixels in a sub-block share the BIO motion vector ( v x , v y ) calculated for each sub-block. That is, BIO-based prediction values for all pixels in a sub-block are calculated by <Equation 3> using one BIO motion vector (v x , v y) determined for the sub-block.

최종적으로, 부호화 장치 및 복호화 장치는 생성된 예측 블록을 이용하여 현재 블록의 픽셀들을 부호화 혹은 복호화한다(S590).Finally, the encoding apparatus and the decoding apparatus encode or decode pixels of the current block by using the generated prediction block (S590).

본 개시의 일부 실시예들에서 BIO는 픽셀-레벨 기반으로 적용되며, 다른 일 부 실시예들에서 BIO는 블록-레벨 기반으로 적용된다. 이하에서는 픽셀-레벨의 BIO 프로세스에 관한 실시예들을 먼저 기술한 후, 블록-레벨의 BIO 프로세스에 관한 실시예들을 기술한다. In some embodiments of the present disclosure, BIO is applied on a pixel-level basis, and in some other embodiments, BIO is applied on a block-level basis. Hereinafter, embodiments related to a pixel-level BIO process will be first described, and then embodiments related to a block-level BIO process will be described.

이하에서 설명하는 제1 실시예 및 제2 실시예에서는 픽셀-레벨 기반으로 BIO가 적용된다. BIO 프로세스에 사용되는 마스킹 윈도우는 현재 픽셀 (i, j)에 중심을 둔 (2M + 1) × (2N + 1) 크기를 가질 수 있으나, 설명의 간략화를 위해, 이하에서는, 가로 및 세로 크기가 같은 값을 가지는 것(즉, M=N)으로 가정한다. 픽셀-레벨 BIO는 현재 블록의 예측 블록 생성 시에, 픽셀-레벨로 BIO 움직임 벡터를 구하고, 구해진 BIO 움직임 벡터에 근거하여 픽셀-레벨로 양방향 예측값을 구한다. In the first and second embodiments described below, BIO is applied on a pixel-level basis. The masking window used in the BIO process may have a size of (2M + 1) × (2N + 1) centered at the current pixel ( i , j ), but for simplicity of explanation, hereinafter, horizontal and vertical sizes are Assume that they have the same value (ie, M=N). The pixel-level BIO obtains a BIO motion vector at the pixel-level when generating a prediction block of the current block, and obtains a bidirectional prediction value at the pixel-level based on the obtained BIO motion vector.

제1 실시예first embodiment

본 실시예에서는 픽셀 레벨로 BIO 움직임 벡터를 계산함에 있어서 사각형 모양의 마스킹 윈도우를 사용한다. 본 실시예에서, 예측하고자 하는 픽셀의 BIO 움직임 벡터를 결정하는 데 요구되는 차이값(Δ)의 총 개수를 도 6을 참조하여 설명한다. 도 6에는 5×5 마스킹 윈도우(610)와 현재 블록 내 예측하고자 하는 픽셀(621)이 예시되어 있다. 현재 블록 내 예측하고자 하는 하나의 픽셀(621)이 도 6에서 빗금으로 표시된 마스킹 윈도우(810)의 중앙이 되고, 마스킹 윈도우(810) 내에 위치하는 픽셀의 개수는 예측하고자 하는 픽셀(821)을 포함하여 총 25개가 된다. 따라서, 현재 블록 내 예측하고자 하는 픽셀(621)에 대한 BIO 움직임 벡터 (v x , v y )를 결정하는 데 필요한 차이값(Δ)의 개수는 25개이다. 최종적으로 해당 25개의 차이값(Δ)을 <수학식 2>에 대입하여 예측하고자 하는 픽셀에 대한 BIO 움직임 벡터 (v x , v y )를 구하게 된다. 옵티컬 플로우에 기반하여 BIO 움직임 벡터 (v x , v y )가 결정되면, 현재 블록의 해당 픽셀에 대한 양방향 예측값은 <수학식 3>에 의해 계산된다. 이러한 프로세스를 현재 블록 내 각 픽셀에 대하여 반복적으로 적용하여, 현재 블록의 예측 블록을 구성하는 모든 픽셀들의 예측값을 생성한다.In this embodiment, a rectangular masking window is used in calculating the BIO motion vector at the pixel level. In the present embodiment, the total number of difference values Δ required to determine the BIO motion vector of a pixel to be predicted will be described with reference to FIG. 6 . 6 illustrates a 5×5 masking window 610 and a pixel 621 to be predicted in the current block. One pixel 621 to be predicted in the current block becomes the center of the masking window 810 indicated by hatching in FIG. 6, and the number of pixels located in the masking window 810 includes the pixel 821 to be predicted. This makes a total of 25. Therefore, the number of difference values (Δ) required to determine the BIO motion vector ( v x , v y ) for the pixel 621 to be predicted in the current block is 25. Finally, the BIO motion vector (v x , v y ) for the pixel to be predicted is obtained by substituting the corresponding 25 difference values (Δ) into <Equation 2>. When the BIO motion vector ( v x , v y ) is determined based on the optical flow, the bidirectional prediction value for the corresponding pixel of the current block is calculated by <Equation 3>. This process is iteratively applied to each pixel in the current block to generate prediction values of all pixels constituting the prediction block of the current block.

다만, 현재 블록의 가장자리에 위치하는 픽셀에 대한 BIO 움직임 벡터를 결정함에 있어서, 마스킹 윈도우내에 포함되더라도, 현재 블록을 벗어나는 영역에 위치하는 픽셀들에 대한 플로우 차이들은 고려되지 않을 수 있다.However, in determining the BIO motion vector for the pixel located at the edge of the current block, even if it is included in the masking window, flow differences with respect to pixels located outside the current block may not be considered.

제2 실시예second embodiment

도 7은 제2 실시예에 따른, BIO 기반의 움직임 보상에 사용되는 사각형이 아닌 마스킹 윈도우들을 예시한 도면이다.7 is a diagram illustrating non-rectangular masking windows used for BIO-based motion compensation according to the second embodiment.

본 실시예는, 정사각형 모양의 마스킹 윈도우를 사용하는 제1 실시예와 달리, 다양한 모양의 마스킹 윈도우를 사용한다. 도 7에서는 2가지 타입(즉, 플러스(plus) 모양 및 다이아몬드(diamond) 모양)의 마스킹 윈도우를 제시하였으나, 본 발명은 사각형 모양의 마스킹 윈도우가 아닌 다양한 모양의 어떠한 마스킹 윈도우의 사용도 배제하지 않는다. 이러한 마스킹 윈도우의 사용은 제1 실시예에서 사용하는 정사각형 모양의 마스킹 윈도우 내 모든 픽셀을 처리하는데 드는 복잡도를 줄인다. 도 7에 예시된 바와 같이, 플러스 모양 및 다이아몬드 모양의 마스킹 윈도우의 사이즈는 파라미터 M 값에 의존하여 스케일링(scaling)될 수 있다.Unlike the first embodiment in which a square-shaped masking window is used, this embodiment uses masking windows of various shapes. Although FIG. 7 shows two types of masking windows (ie, a plus shape and a diamond shape), the present invention does not exclude the use of any masking window of various shapes other than a rectangular masking window. . The use of such a masking window reduces the complexity of processing all pixels in the square-shaped masking window used in the first embodiment. As illustrated in FIG. 7 , the sizes of the plus-shaped and diamond-shaped masking windows may be scaled depending on the parameter M value.

본 실시예에서, 서브 블록의 BIO 움직임 벡터를 결정하는 데 요구되는 차이값(Δ)의 총 개수를 도 8을 참조하여 설명한다.In the present embodiment, the total number of difference values Δ required to determine the BIO motion vector of the sub-block will be described with reference to FIG. 8 .

도 8에는 M=2인 다이아몬드 모양의 마스킹 윈도우(810)와 현재 블록 내 예측하고자 하는 픽셀(821)이 예시되어 있다. 현재 블록 내 예측하고자 하는 하나의 픽셀(821)이 도 8의 (b)에서 빗금으로 표시된 마스킹 윈도우(810)의 중앙이 되고, 마스킹 윈도우(810) 내의 픽셀의 개수는 예측하고자 하는 픽셀(821)을 포함하여 총 13개가 된다. 따라서, 현재 블록 내 예측하고자 하는 픽셀(821)에 대한 BIO 움직임 벡터 (v x , v y )를 결정하는 데 필요한 차이값(Δ)의 개수는 13개이다. 최종적으로 해당 13개의 차이값(Δ)을 <수학식 2>에 대입하여 예측하고자 하는 픽셀에 대한 BIO 움직임 벡터 (v x , v y )를 구하게 된다. 본 실시예에서, 이러한 과정들은 현재 블록 내 모든 픽셀에 대해 수행되어, 각 픽셀에 대응되는 BIO 움직임 벡터가 계산된다. 8 illustrates a diamond-shaped masking window 810 with M=2 and a pixel 821 to be predicted in the current block. One pixel 821 to be predicted in the current block becomes the center of the masking window 810 indicated by hatching in FIG. There are a total of 13 including Therefore, the number of difference values (Δ) required to determine the BIO motion vector ( v x , v y ) for the pixel 821 to be predicted in the current block is 13. Finally, by substituting the corresponding 13 difference values (Δ) into <Equation 2>, the BIO motion vector ( v x , v y ) for the pixel to be predicted is obtained. In this embodiment, these processes are performed for all pixels in the current block, and a BIO motion vector corresponding to each pixel is calculated.

다만, 현재 블록의 가장자리에 위치하는 픽셀에 대한 BIO 움직임 벡터를 결정함에 있어서, 마스킹 윈도우내에 포함되더라도, 현재 블록을 벗어나는 영역에 위치하는 픽셀들에 대한 플로우 차이들은 고려되지 않을 수 있다.However, in determining the BIO motion vector for the pixel located at the edge of the current block, even if included in the masking window, flow differences with respect to pixels located outside the current block may not be considered.

이하에서 설명하는 제3 실시예 내지 제8 실시예에서는 블록-레벨에서 BIO 기반 움직임 보상이 적용된다. 서브 블록-레벨의 BIO 움직임 보상 프로세스에서, 서브 블록 크기는 M × N (M과 N은 정수) 일 수 있다. M × N 서브 블록 내 모든 픽셀은 서브 블록 단위로 계산된 BIO 움직임 벡터 (v x , v y )를 공유한다. 즉, M × N 서브 블록 내 모든 픽셀에 대한 옵티컬 플로우에 기반한 양방향 예측은 계산된 BIO 움직임 벡터 (v x , v y )를 이용하여 <수학식 3>에 의해 계산된다. 본 개시의 방법들은 서브 블록의 크기에 제한을 두지 않으나, 이하의 실시예들에서는 설명의 편의상 4×4 서브 블록을 기준으로 BIO 프로세스를 설명하고 있음에 유의한다.In the third to eighth embodiments described below, BIO-based motion compensation is applied at the block-level. In the sub-block-level BIO motion compensation process, the sub-block size may be M × N (M and N are integers). All pixels in an M × N sub-block share a BIO motion vector ( v x , v y ) calculated for each sub-block. That is, the bidirectional prediction based on the optical flow for all pixels in the M × N sub-block is calculated by Equation 3 using the calculated BIO motion vectors (v x , v y ). Note that although the methods of the present disclosure do not limit the size of a sub-block, the BIO process is described based on a 4×4 sub-block for convenience of description in the following embodiments.

제3 실시예third embodiment

본 실시예에서는, 서브 블록에 대한 하나의 BIO 움직임 벡터를 결정하기 위해, 서브 블록 내의 각 픽셀마다, 해당 픽셀에 중심을 둔 사각형 모양의 마스킹 윈도우를 적용하고, 마스킹 윈도우 내에 위치하는 모든 픽셀들 각각에 대한 <수학식 1>의 차이값(Δ)을 구한다. 최종적으로 이들 차이값들을 <수학식 2>에 대입하여 해당 서브 블록에 해당하는 BIO 움직임 벡터를 구하게 된다. In this embodiment, in order to determine one BIO motion vector for a sub-block, a square-shaped masking window centered on the pixel is applied to each pixel in the sub-block, and all pixels located in the masking window are each Find the difference value (Δ) of <Equation 1> for Finally, by substituting these difference values into <Equation 2>, a BIO motion vector corresponding to the corresponding sub-block is obtained.

도 9에는, 본 실시예에서 제안하는 방식의 일례에 따른, 5×5 마스킹 윈도우(910)와 4×4 서브 블록(920)의 일 예가 도시되어 있다. 도 9에 예시된 마스킹 윈도우(910)는 M=2인 정사각형 모양이다. 서브 블록(920) 내 현재 픽셀(i, j)(921)이 도 9의 빗금 표시된 부분에 해당하는 마스킹 윈도우(910)의 중앙이 된다. 서브 블록의 한 픽셀(i, j)에 대한 마스킹 윈도우(910) 내의 픽셀의 개수는 (i, j) 픽셀을 포함하여 총 25 (= (2M + 1) × (2M + 1) = 5 × 5)개가 된다. 따라서, 4×4 서브 블록에 대한 BIO 움직임 벡터를 결정하기 위해 요구되는 차이값의 총 개수는 서브 블록의 크기 및 마스킹 윈도우의 크기에 기반하여 총 400(= 16 × 25)개에 달한다. 서브 블록에 대한 BIO 움직임 벡터는 이들 차이값들의 제곱의 합을 최소화하는 벡터로 결정된다.9 shows an example of a 5×5 masking window 910 and a 4×4 sub-block 920 according to an example of the method proposed in this embodiment. The masking window 910 illustrated in FIG. 9 has a square shape with M=2. The current pixel ( i , j ) 921 in the sub-block 920 becomes the center of the masking window 910 corresponding to the hatched portion of FIG. 9 . The number of pixels in the masking window 910 for one pixel ( i , j ) of the sub-block is a total of 25 (= (2M + 1) × (2M + 1) = 5 × 5 including ( i , j ) pixels) ) becomes a dog. Therefore, the total number of difference values required to determine the BIO motion vector for the 4×4 sub-block reaches 400 (= 16×25) in total based on the size of the sub-block and the size of the masking window. The BIO motion vector for the sub-block is determined as a vector that minimizes the sum of squares of these difference values.

위 400개의 차이값들 중에서, 구별되는 64개의 차이값들을 제외한 나머지 차이값들은 상기 64개의 차이값들이 중복되는 형태임을 유의한다. 예컨대, 도 10a와 같이, 서브 블록(1020)의 (0,0) 위치의 픽셀에 중심을 둔 마스킹 윈도우(1010a) 내에 위치하는 픽셀들 대부분은, 서브 블록(1020)의 (1,0) 위치의 픽셀에 중심을 둔 마스킹 윈도우(1010b) 내에도 위치한다. 따라서, 중복되는 차이값들을 반복적으로 계산하는 대신에, 중복되는 차이값에 대해서는 그 차이값에 중복되는 횟수에 따른 가중치를 부여함으로써, <수학식 2>의 계산을 단순화할 수 있다. 예컨대, 4×4 서브 블록에 대해 5×5 마스킹 윈도우를 적용하는 경우에, 총 64개의 구별되는 차이값을 계산한 후, 각 차이값들에 대응되는 가중치를 부여한 후, 가중치가 부여된 차이값들의 제곱의 합이 최소화되도록 BIO 움직임 벡터 (v x , v y )를 결정할 수 있다. 도 10b에서 각 픽셀에 표기된 숫자는 중복되는 횟수에 따른 가중치 값이다. 여기서, 강조 표시된 4×4 블록은 서브 블록의 위치를 나타낸다.Note that, among the above 400 difference values, the remaining difference values except for the 64 distinct difference values are in the form of overlapping the 64 difference values. For example, as shown in FIG. 10A , most of the pixels located in the masking window 1010a centered on the pixel at the (0,0) position of the sub-block 1020 are at the (1,0) position of the sub-block 1020 , as shown in FIG. 10A . It is also located within the masking window 1010b centered on the pixel of . Accordingly, the calculation of <Equation 2> can be simplified by assigning a weight to the overlapping difference value according to the number of overlapping times, instead of repeatedly calculating the overlapping difference values. For example, when a 5×5 masking window is applied to a 4×4 sub-block, after calculating a total of 64 distinct difference values, a weight is assigned to each difference value, and then a weighted difference value is applied. The BIO motion vector ( v x , v y ) can be determined so that the sum of squares of the values is minimized. In FIG. 10B , a number marked on each pixel is a weight value according to the number of overlapping times. Here, the highlighted 4×4 block indicates the position of the sub-block.

제4 실시예4th embodiment

본 실시예는, 사각형 모양의 마스킹 윈도우를 사용하는 제3 실시예와 달리, (도 7에 예시된 것과 같은) 다양한 패턴의 마스킹 윈도우를 사용한다. 이러한 마스킹 윈도우의 사용은 사각형 마스킹 윈도우 내 모든 픽셀을 처리하는데 드는 복잡도를 줄인다.Unlike the third embodiment, which uses a square-shaped masking window, this embodiment uses masking windows of various patterns (as illustrated in FIG. 7 ). The use of such a masking window reduces the complexity of processing every pixel in a rectangular masking window.

도 11에는, 다이아몬드 타입의 마스킹 윈도우(1110)와 4×4 서브 블록(1120)이 예시되어 있다. 도 11에 예시된 바와 같이, M=2인 다이아몬드 모양의 마스킹 윈도우(1110)를 사용하는 경우에, 마스킹 윈도우(1110) 내의 픽셀의 개수는 총 13개가 된다. 따라서, 서브 블록의 BIO 움직임 벡터 (v x , v y )를 결정하는 데 필요한 차이값(Δ)의 총 개수는 208 (= 16 × 13)이다. 최종적으로 해당 208개의 차이값을 <수학식 2>에 대입하여 해당 4×4 블록에 해당하는 BIO 움직임 벡터를 구하게 된다. 제3 실시예와 마찬가지로, 중복되는 횟수에 따른 가중치를 차이값에 주어 <수학식 2>에 대입하여 해당 4×4 서브 블록에 대한 BIO 움직임 벡터를 구할 수도 있다.In FIG. 11 , a diamond-type masking window 1110 and a 4×4 sub-block 1120 are illustrated. As illustrated in FIG. 11 , when the diamond-shaped masking window 1110 with M=2 is used, the number of pixels in the masking window 1110 becomes 13 in total. Therefore, the total number of difference values (Δ) required to determine the BIO motion vector ( v x , v y ) of the sub-block is 208 (= 16 × 13). Finally, by substituting the 208 difference values into <Equation 2>, a BIO motion vector corresponding to the corresponding 4×4 block is obtained. As in the third embodiment, a BIO motion vector for the corresponding 4×4 sub-block may be obtained by substituting a weight according to the number of overlaps to the difference value and substituting it in <Equation 2>.

제5 실시예5th embodiment

제3 실시예 및 제4 실시예에서는, 서브 블록 내 모든 픽셀들에 대해, 마스킹 윈도우를 적용하였다. 이에 반해, 본 실시예는 서브 블록 내 일부 픽셀들에 대해 마스킹 윈도우를 적용한다. In the third and fourth embodiments, a masking window was applied to all pixels in the sub-block. In contrast, the present embodiment applies a masking window to some pixels in a sub-block.

도 12에는 서브 블록 내 마스킹 윈도우가 적용되는 픽셀의 위치들에 대한 3가지 타입을 예시하고 있다. 하나의 타입에서는 마스킹 윈도우가 적용되는 픽셀들과 적용되지 않는 픽셀들의 위치가 체크(check) 패턴을 이루고 있으며(도 12의 (a) 참조), 다른 2개의 타입들에서는 각각 가로 줄무늬 (horizontal stripes) 패턴과 세로 줄무늬(vertical stripes) 패턴을 이루고 있다(도 12의 (b), (c) 참조). 본 발명은, 도 12에 예시된 타입들 외에도, 서브 블록 내 일부 픽셀만을 샘플링하여 처리하는 어떠한 타입의 사용도 배제하지 않는다. 이를 통해, 전술한 실시예들에서, 서브 블록 내 모든 픽셀에 대해 마스킹 윈도우에 대응되는 개수의 차이값들을 계산하는 데 드는 연산 복잡도를 줄일 수 있다.12 exemplifies three types of positions of pixels to which a masking window is applied in a sub-block. In one type, positions of pixels to which a masking window is applied and pixels to which a masking window is not applied form a check pattern (see FIG. 12(a) ), and in the other two types, horizontal stripes It forms a pattern and a vertical stripes pattern (see FIGS. 12 (b) and (c)). The present invention does not exclude the use of any type of sampling and processing only some pixels in a sub-block, other than the types illustrated in FIG. 12 . Through this, in the above-described embodiments, it is possible to reduce the computational complexity required for calculating the number of difference values corresponding to the masking windows for all pixels in the sub-block.

본 실시예에서, 서브 블록의 BIO 움직임 벡터를 결정하는 데 요구되는 차이값(Δ)의 총 개수를 도 13을 참조하여 설명한다. 도 13에는 5×5 정사각형 모양의 마스킹 윈도우(1310)와 체크(check) 패턴으로 샘플링된 4×4 서브 블록(1320) 내 픽셀들이 예시되어 있다. 5×5 정사각형 모양의 마스킹 윈도우(1310) 내의 픽셀의 개수는 총 25개이다. 서브 블록 내 빗금 표시된 8개의 픽셀들에 대해, 각 픽셀마다, 마스킹 윈도우를 적용하여, 25개의 <수학식 1>의 차이값(Δ)을 구하여야 한다. 따라서, 4×4 서브 블록의 BIO 움직임 벡터 (v x , v y )를 결정하는 데 필요한 차이값(Δ)의 총 개수는 총 200 (= 8 × 25)개에 달한다. 최종적으로 해당 200개의 차이값을 <수학식 2>에 대입하여 해당 4×4 블록에 해당하는 BIO 움직임 벡터를 구하게 된다. 제3 실시예와 마찬가지로, 중복되는 횟수에 따른 가중치를 차이값에 주어 <수학식 2>에 대입하여 해당 4×4 서브 블록에 대한 BIO 움직임 벡터를 구할 수도 있다.In the present embodiment, the total number of difference values Δ required to determine the BIO motion vector of the sub-block will be described with reference to FIG. 13 . 13 illustrates a 5×5 square-shaped masking window 1310 and pixels in a 4×4 sub-block 1320 sampled in a check pattern. The number of pixels in the 5×5 square-shaped masking window 1310 is 25 in total. For 8 pixels indicated by hatching in the sub-block, a masking window is applied to each pixel to obtain a difference value Δ of 25 <Equation 1>. Therefore, the total number of difference values (Δ) required to determine the BIO motion vectors ( v x , v y ) of the 4×4 sub-block amounts to a total of 200 (= 8×25). Finally, by substituting the 200 difference values into <Equation 2>, a BIO motion vector corresponding to the corresponding 4×4 block is obtained. As in the third embodiment, a BIO motion vector for the corresponding 4×4 sub-block may be obtained by substituting a weight according to the number of overlaps to the difference value and substituting it in <Equation 2>.

제6 실시예6th embodiment

본 실시예는, 제4 실시예와 제5 실시예에서 제시한 방식들의 결합된 형태이다. 즉, 본 실시예는 사각형 모양이 아닌 다양한 패턴의 마스킹 윈도우를 채용하고(제4 실시예와 유사), 서브 블록 내 일부 샘플 픽셀들에 대해서만 마스킹 윈도우를 적용하는 방식을 채용한다(제5 실시예와 유사). 따라서, 본 실시예의 기법은 제4 실시예 및 제5 실시예보다 계산의 복잡도가 낮다.This embodiment is a combined form of the methods presented in the fourth and fifth embodiments. That is, the present embodiment employs a masking window of various patterns rather than a rectangular shape (similar to the fourth embodiment), and employs a method of applying the masking window only to some sample pixels in the sub-block (the fifth embodiment) similar to). Accordingly, the technique of the present embodiment has lower computational complexity than the fourth and fifth embodiments.

도 14에는, 본 실시예에서 제안하는 방식의 일례에 따른, 다이아몬드 타입의 마스킹 윈도우(1410)와 4×4 서브 블록(1420) 내 BIO 프로세스를 적용하는 샘플 픽셀들이 도시되어 있다. 도 14의 경우에, 서브 블록의 BIO 움직임 벡터 (v x , v y )를 결정하는 데 필요한 차이값(Δ)의 총 개수는 104 (= 8 × 13)이다. 최종적으로 해당 104개의 차이값을 <수학식 2>에 대입하여 해당 4×4 서브 블록에 해당하는 BIO 움직임 벡터 (v x , v y )를 구하게 된다. 제3 실시예와 마찬가지로, 중복되는 횟수에 따른 가중치를 차이값에 주어 <수학식 2>에 대입하여 해당 4×4 서브 블록에 대한 BIO 움직임 벡터를 구할 수도 있다.In FIG. 14 , sample pixels to which a BIO process is applied in a diamond-type masking window 1410 and a 4×4 sub-block 1420 are illustrated according to an example of the method proposed in this embodiment. In the case of FIG. 14 , the total number of difference values Δ required to determine the BIO motion vector ( v x , v y ) of the sub-block is 104 (= 8×13). Finally, by substituting the 104 difference values into <Equation 2>, the BIO motion vector ( v x , v y ) corresponding to the corresponding 4×4 sub-block is obtained. As in the third embodiment, a BIO motion vector for the corresponding 4×4 sub-block may be obtained by substituting a weight according to the number of overlaps to the difference value and substituting it in <Equation 2>.

제7 실시예7th embodiment

이전 실시예들에서는 서브 블록의 (모든 혹은 일부) 픽셀들에 대해, 각각, 윈도우 마스크의 크기에 대응되는 수의 차이값(Δ)들을 계산하였다. 예컨대, 제3 실시예에서, 5×5 마스킹 윈도우를 사용하여, 4×4 서브 블록에 대한 BIO 움직임 벡터를 결정하기 위해 요구되는 차이값의 수는 총 400(= 16 × 25)개에 달했다. 이에 반해, 본 실시예는 마스킹 윈도우를 사용하지 않는다. 혹은 1×1 마스킹 윈도우를 사용한다고 볼 수 있다. 즉, 서브 블록 내 픽셀들에 대해, 각각, 하나의 <수학식 1>의 차이값(Δ)만이 계산된다. 예를 들어, 4×4 서브 블록에 대한 BIO 움직임 벡터를 구하기 위해 고려되는 차이값(Δ)의 수는 총 16개에 불과하다. 최종적으로 16개의 차이값(Δ)만을 <수학식 2>에 대입하여 4×4 서브 블록에 관한 BIO 움직임 벡터를 구하게 된다. 즉, 16개의 차이값의 제곱의 합을 최소화하도록 BIO 움직임 벡터를 계산한다. In the previous embodiments, a number of difference values Δ corresponding to the size of the window mask were calculated for (all or some) pixels of the sub-block. For example, in the third embodiment, using a 5×5 masking window, the number of difference values required to determine a BIO motion vector for a 4×4 sub-block reached a total of 400 (= 16×25). In contrast, this embodiment does not use a masking window. Alternatively, it can be seen that a 1×1 masking window is used. That is, for each of the pixels in the sub-block, only one difference value Δ of <Equation 1> is calculated. For example, the number of difference values Δ considered to obtain a BIO motion vector for a 4×4 subblock is only 16 in total. Finally, only 16 difference values (Δ) are substituted into <Equation 2> to obtain a BIO motion vector for a 4×4 subblock. That is, the BIO motion vector is calculated to minimize the sum of the squares of 16 difference values.

대안적으로, 16개 차이값에 각기 다른 가중치를 주어서 <수학식 2>에 대입하여 해당 4×4 서브 블록에 해당하는 BIO 움직임 벡터를 구할 수도 있다. 여기서, 서브 블록 내부에 더 높은 가중치가 부여되고, 서브 블록 가장자리 영역에 더 낮은 가중치가 부여될 수 있다. 도 15는 서브 블록의 각 픽셀에 대한 가중치 부여의 일례를 보인다. Alternatively, a BIO motion vector corresponding to the corresponding 4×4 sub-block may be obtained by giving different weights to the 16 difference values and substituting them in <Equation 2>. Here, a higher weight may be given to the inside of the sub-block, and a lower weight may be given to the sub-block edge region. 15 shows an example of weighting each pixel of a sub-block.

제8 실시예eighth embodiment

본 실시예에서는, 현재 블록의 가장자리에 위치하는 서브 블록들에 대한 BIO 움직임 벡터를 결정할 때, 현재 블록을 벗어나는 영역에 대해서는 차이값(Δ)을 계산하지 않는 제약을 둔다. 예를 들어, 도 16a에 예시된 것처럼, 현재 블록의 크기가 16×16이고, 4×4 서브 블록 단위로 BIO 움직임 벡터를 계산하는 경우를 가정하자. 총 16개의 4×4 서브 블록들 중에서 현재 블록의 가장자리에 위치하는 12개의 4×4 서브 블록의 BIO 움직임 벡터를 결정할 때, 현재 블록 외부의 영역에 위치하는 마스킹 픽셀에 대한 차이값(Δ)은 고려하지 않는다. 여기서, 현재 블록 외부의 영역에 위치하는 마스킹 픽셀은 서브 블록의 크기와 마스킹 윈도우 크기 및 위치에 따라 달라질 수 있다. 따라서, 본 실시예에서, 서브 블록의 BIO 움직임 벡터를 결정하기 위해 계산하여야 하는 차이값(Δ)의 개수는 해당 서브 블록의 현재 블록 내 위치에 따라 달라질 수 있다.In the present embodiment, when determining the BIO motion vectors for sub-blocks located at the edge of the current block, there is a restriction that the difference value Δ is not calculated for an area outside the current block. For example, as illustrated in FIG. 16A , it is assumed that the size of the current block is 16×16 and the BIO motion vector is calculated in units of 4×4 sub-blocks. When determining the BIO motion vectors of 12 4x4 subblocks located at the edge of the current block among a total of 16 4x4 subblocks, the difference value Δ for the masking pixels located outside the current block is do not consider Here, the masking pixel located in the area outside the current block may vary according to the size of the sub-block and the size and position of the masking window. Accordingly, in the present embodiment, the number of difference values Δ to be calculated to determine the BIO motion vector of a sub-block may vary depending on the position of the sub-block in the current block.

이러한 방식을 제3 실시예에서 설명한 중복된 차이값들에 대한 가중치를 부여하는 방식과 결합하면, 각 마스킹 픽셀에 대한 가중치는 도 16b와 같다. 즉, 도 16b에 0으로 표시된 픽셀들은 현재 블록 외부에 위치한 픽셀들이며, 이들에 대한 차이값은 계산하지 않는다. 이러한 방식에 따르면, 제3 실시예에 비해, 계산해야 할 차이값의 개수가 적으므로 연산량이 줄어 들고, 현재 블록 외부에 위치한 픽셀값을 참조하지 않으므로 그 만큼 메모리 사용량을 절약할 수 있다.When this method is combined with the method of assigning weights to overlapping difference values described in the third embodiment, the weights for each masking pixel are as shown in FIG. 16B . That is, pixels marked with 0 in FIG. 16B are pixels located outside the current block, and a difference value is not calculated therebetween. According to this method, compared to the third embodiment, since the number of difference values to be calculated is small, the amount of calculation is reduced, and since the pixel value located outside the current block is not referenced, the amount of memory usage can be saved.

이러한 방식은 정사각형 마스킹 윈도우를 사용하는 경우에 한정하지 않고, 다이아몬드 및 플러스를 포함한 다양한 모양의 마스킹 윈도우를 사용하는 경우에도 적용 가능함에 유의한다.Note that this method is not limited to the case of using a square masking window, and can be applied to a case where masking windows of various shapes including diamonds and pluses are used.

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

Claims (12)

영상 데이터를 부호화하는 방법에 있어서,
제1 참조 픽처에서 현재 블록을 예측하기 위한 제1 영역을 가리키는 제1 움직임 벡터를 결정하고, 제2 참조 픽처에서 상기 현재 블록을 예측하기 위한 제2 영역을 가리키는 제2 움직임 벡터를 결정하는 과정;
서브 블록 단위의 BIO 프로세스를 적용하여 상기 현재 블록에 대한 예측 블록을 생성하는 과정;
생성된 예측 블록을 이용하여 상기 현재 블록을 부호화하는 과정
을 포함하고,
상기 예측 블록을 생성하는 과정은,
상기 현재 블록을 구성하는 각 서브 블록에 대하여 BIO 움직임 벡터를 결정하는 과정; 및
결정된 BIO 움직임 벡터를 기초로, 해당 서브 블록을 구성하는 픽셀들의 예측 값들을 생성하는 과정
을 포함하고,
상기 서브 블록의 사이즈는 4×4인, 부호화 방법.
A method for encoding image data, the method comprising:
determining a first motion vector indicating a first region for predicting a current block in a first reference picture and determining a second motion vector indicating a second region for predicting the current block in a second reference picture;
generating a prediction block for the current block by applying a sub-block-based BIO process;
A process of encoding the current block using the generated prediction block
including,
The process of generating the prediction block is
determining a BIO motion vector for each sub-block constituting the current block; and
A process of generating prediction values of pixels constituting a corresponding sub-block based on the determined BIO motion vector
including,
The size of the sub-block is 4x4, the encoding method.
제1항에 있어서,
상기 BIO 움직임 벡터는 해당 서브 블록을 둘러싼 정사각형 블록 내의 픽셀들에 대해 얻어진 플로우 차이들에 기초하여 결정되며,
상기 정사각형 블록 내의 주어진 픽셀에 대한 플로우 차이는 상기 주어진 픽셀에 대응되는 상기 제1 참조 픽처 상의 제1 지점과 상기 제2 참조 픽처 상의 제2 지점 간에 계산되는 것을 특징으로 하는, 부호화 방법.
According to claim 1,
The BIO motion vector is determined based on flow differences obtained for pixels in a square block surrounding the corresponding sub-block,
and a flow difference for a given pixel in the square block is calculated between a first point on the first reference picture corresponding to the given pixel and a second point on the second reference picture.
제2항에 있어서,
상기 BIO 움직임 벡터는,
해당 서브 블록을 둘러싼 상기 정사각형 블록 내의 픽셀들 각각에 대하여 획득되는 플로우 차이들의 제곱합 혹은 가중치가 부여된 제곱합이 최소가 되도록 하는 벡터로 결정되는 것을 특징으로 하는, 부호화 방법.
3. The method of claim 2,
The BIO motion vector is,
The encoding method, characterized in that it is determined as a vector such that the sum of squares of flow differences obtained for each of the pixels in the square block surrounding the corresponding sub-block or the weighted sum of squares is minimized.
제3항에 있어서,
해당 서브 블록을 둘러싼 상기 정사각형 블록 내부에 위치하는 픽셀에 대하여 획득되는 플로우 차이일수록 높은 가중치가 부여된 것을 특징으로 하는, 부호화 방법.
4. The method of claim 3,
An encoding method, characterized in that a higher weight is given to a flow difference obtained with respect to pixels located inside the square block surrounding the corresponding sub-block.
영상 데이터를 복호화하는 방법에 있어서,
제1 참조 픽처에서 현재 블록을 예측하기 위한 제1 영역을 가리키는 제1 움직임 벡터를 결정하고, 제2 참조 픽처에서 상기 현재 블록을 예측하기 위한 제2 영역을 가리키는 제2 움직임 벡터를 결정하는 과정;
서브 블록 단위의 BIO 프로세스를 적용하여 상기 현재 블록에 대한 예측 블록을 생성하는 과정; 및
상기 예측 블록을 이용하여 상기 현재 블록을 재구성하는 과정을 포함하고,
상기 예측 블록을 생성하는 과정은,
상기 현재 블록을 구성하는 각 서브 블록에 대하여 BIO 움직임 벡터를 결정하는 과정; 및
결정된 BIO 움직임 벡터를 기초로, 해당 서브 블록을 구성하는 픽셀들의 예측 값들을 생성하는 과정
을 포함하고,
상기 서브 블록의 사이즈는 4×4인, 복호화 방법.
A method of decoding image data, the method comprising:
determining a first motion vector indicating a first region for predicting a current block in a first reference picture and determining a second motion vector indicating a second region for predicting the current block in a second reference picture;
generating a prediction block for the current block by applying a sub-block-based BIO process; and
Reconstructing the current block using the prediction block,
The process of generating the prediction block is
determining a BIO motion vector for each sub-block constituting the current block; and
A process of generating prediction values of pixels constituting a corresponding sub-block based on the determined BIO motion vector
including,
The size of the sub-block is 4x4, the decoding method.
제5항에 있어서,
상기 BIO 움직임 벡터는 해당 서브 블록을 둘러싼 정사각형 블록 내의 픽셀들에 대해 얻어진 플로우 차이들에 기초하여 결정되며,
상기 정사각형 블록 내의 주어진 픽셀에 대한 플로우 차이는 상기 주어진 픽셀에 대응되는 상기 제1 참조 픽처 상의 제1 지점과 상기 제2 참조 픽처 상의 제2 지점 간에 계산되는 것을 특징으로 하는, 복호화 방법.
6. The method of claim 5,
The BIO motion vector is determined based on flow differences obtained for pixels in a square block surrounding the corresponding sub-block,
and a flow difference for a given pixel in the square block is calculated between a first point on the first reference picture and a second point on the second reference picture corresponding to the given pixel.
제6항에 있어서,
상기 BIO 움직임 벡터는,
해당 서브 블록을 둘러싼 상기 정사각형 블록 내의 픽셀들 각각에 대하여 획득되는 플로우 차이들의 제곱합 혹은 가중치가 부여된 제곱합이 최소가 되도록 하는 벡터로 결정되는 것을 특징으로 하는, 복호화 방법.
7. The method of claim 6,
The BIO motion vector is,
The decoding method, characterized in that it is determined as a vector such that the sum of squares of flow differences obtained for each of the pixels in the square block surrounding the corresponding sub-block or the weighted sum of squares is minimized.
제7항에 있어서,
해당 서브 블록을 둘러싼 상기 정사각형 블록 내부에 위치하는 픽셀에 대하여 획득되는 플로우 차이일수록 높은 가중치가 부여된 것을 특징으로 하는, 복호화 방법.
8. The method of claim 7,
The decoding method, characterized in that a higher weight is given to a flow difference obtained with respect to pixels located inside the square block surrounding the corresponding sub-block.
영상 데이터에 대한 부호화된 데이터를 포함하는 비트스트림이 저장된 컴퓨터 판독 가능한 비일시적인 기록매체로서, 상기 비트스트림은,
제1 참조 픽처에서 현재 블록을 예측하기 위한 제1 영역을 가리키는 제1 움직임 벡터를 결정하고, 제2 참조 픽처에서 상기 현재 블록을 예측하기 위한 제2 영역을 가리키는 제2 움직임 벡터를 결정하는 과정;
서브 블록 단위의 BIO 프로세스를 적용하여 상기 현재 블록에 대한 예측 블록을 생성하는 과정;
상기 예측 블록을 이용하여 상기 현재 블록을 부호화하는 과정
을 포함하는 부호화 프로세스에 의해 생성되며,
상기 예측 블록을 생성하는 과정은,
상기 현재 블록을 구성하는 각 서브 블록에 대하여 BIO 움직임 벡터를 결정하는 과정; 및
결정된 BIO 움직임 벡터를 기초로, 해당 서브 블록을 구성하는 픽셀들의 예측값들을 생성하는 과정
을 포함하고,
상기 서브 블록의 사이즈는 4×4인, 컴퓨터 판독 가능한 비일시적인 기록매체.
A computer-readable non-transitory recording medium storing a bitstream including encoded data for image data, the bitstream comprising:
determining a first motion vector indicating a first region for predicting a current block in a first reference picture and determining a second motion vector indicating a second region for predicting the current block in a second reference picture;
generating a prediction block for the current block by applying a sub-block-based BIO process;
A process of encoding the current block using the prediction block
It is generated by an encoding process comprising
The process of generating the prediction block is
determining a BIO motion vector for each sub-block constituting the current block; and
A process of generating prediction values of pixels constituting a corresponding sub-block based on the determined BIO motion vector
including,
The size of the sub-block is 4x4, a computer-readable non-transitory recording medium.
제9항에 있어서,
상기 BIO 움직임 벡터는 해당 서브 블록을 둘러싼 정사각형 블록 내의 픽셀들에 대해 얻어진 플로우 차이들에 기초하여 결정되며,
상기 정사각형 블록 내의 주어진 픽셀에 대한 플로우 차이는 상기 주어진 픽셀에 대응되는 상기 제1 참조 픽처 상의 제1 지점과 상기 제2 참조 픽처 상의 제2 지점 간에 계산되는 것을 특징으로 하는, 컴퓨터 판독 가능한 비일시적인 기록매체.
10. The method of claim 9,
The BIO motion vector is determined based on flow differences obtained for pixels in a square block surrounding the corresponding sub-block,
wherein a flow difference for a given pixel within the square block is calculated between a first point on the first reference picture corresponding to the given pixel and a second point on the second reference picture. media.
제10항에 있어서,
상기 BIO 움직임 벡터는,
해당 서브 블록을 둘러싼 상기 정사각형 블록 내의 픽셀들 각각에 대하여 획득되는 플로우 차이들의 제곱합 혹은 가중치가 부여된 제곱합이 최소가 되도록 하는 벡터로 결정되는 것을 특징으로 하는, 컴퓨터 판독 가능한 비일시적인 기록매체.
11. The method of claim 10,
The BIO motion vector is,
A computer-readable non-transitory recording medium, characterized in that it is determined as a vector such that the sum of squared or weighted sum of squares of flow differences obtained for each of the pixels in the square block surrounding the corresponding sub-block is minimized.
제11항에 있어서,
해당 서브 블록을 둘러싼 상기 정사각형 블록 내부에 위치하는 픽셀에 대하여 획득되는 플로우 차이일수록 높은 가중치가 부여된 것을 특징으로 하는, 컴퓨터 판독 가능한 비일시적인 기록매체.
12. The method of claim 11,
A computer-readable non-transitory recording medium, characterized in that a higher weight is given as the flow difference obtained with respect to the pixels located inside the square block surrounding the corresponding sub-block is increased.
KR1020210144209A 2017-04-24 2021-10-27 Method and Apparatus for Estimating Optical Flow for Motion Compensation KR102409449B1 (en)

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
KR20170052290 2017-04-24
KR1020170052290 2017-04-24
KR1020170077246A KR102409430B1 (en) 2017-04-24 2017-06-19 Method and Apparatus for Estimating Optical Flow for Motion Compensation

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
KR1020170077246A Division KR102409430B1 (en) 2017-04-24 2017-06-19 Method and Apparatus for Estimating Optical Flow for Motion Compensation

Publications (2)

Publication Number Publication Date
KR20210134266A true KR20210134266A (en) 2021-11-09
KR102409449B1 KR102409449B1 (en) 2022-06-15

Family

ID=64398408

Family Applications (3)

Application Number Title Priority Date Filing Date
KR1020170077246A KR102409430B1 (en) 2017-04-24 2017-06-19 Method and Apparatus for Estimating Optical Flow for Motion Compensation
KR1020210144209A KR102409449B1 (en) 2017-04-24 2021-10-27 Method and Apparatus for Estimating Optical Flow for Motion Compensation
KR1020210144196A KR102421410B1 (en) 2017-04-24 2021-10-27 Method and Apparatus for Estimating Optical Flow for Motion Compensation

Family Applications Before (1)

Application Number Title Priority Date Filing Date
KR1020170077246A KR102409430B1 (en) 2017-04-24 2017-06-19 Method and Apparatus for Estimating Optical Flow for Motion Compensation

Family Applications After (1)

Application Number Title Priority Date Filing Date
KR1020210144196A KR102421410B1 (en) 2017-04-24 2021-10-27 Method and Apparatus for Estimating Optical Flow for Motion Compensation

Country Status (2)

Country Link
KR (3) KR102409430B1 (en)
CN (1) CN110710213B (en)

Families Citing this family (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020084475A1 (en) 2018-10-22 2020-04-30 Beijing Bytedance Network Technology Co., Ltd. Utilization of refined motion vector
CN111436227B (en) 2018-11-12 2024-03-29 北京字节跳动网络技术有限公司 Use of combined inter-intra prediction in video processing
WO2020103852A1 (en) 2018-11-20 2020-05-28 Beijing Bytedance Network Technology Co., Ltd. Difference calculation based on patial position
CN113170171B (en) * 2018-11-20 2024-04-12 北京字节跳动网络技术有限公司 Prediction refinement combining inter intra prediction modes
CN113228681A (en) 2018-12-21 2021-08-06 韩国电子通信研究院 Image encoding/decoding method and apparatus, and recording medium storing bit stream
CN116668717B (en) 2019-01-06 2024-03-15 北京达佳互联信息技术有限公司 Video encoding method, computing device, and medium
KR102635518B1 (en) 2019-03-06 2024-02-07 베이징 바이트댄스 네트워크 테크놀로지 컴퍼니, 리미티드 Use of converted single prediction candidates
CN113728646A (en) * 2019-04-25 2021-11-30 北京达佳互联信息技术有限公司 Method and apparatus for predictive refinement with optical flow
CN114080813A (en) 2019-06-14 2022-02-22 Lg 电子株式会社 Method and apparatus for image coding using motion vector
JP7323649B2 (en) 2019-06-14 2023-08-08 エルジー エレクトロニクス インコーポレイティド Image coding method and apparatus based on inter-prediction
CN111031318B (en) * 2019-06-21 2020-12-29 杭州海康威视数字技术股份有限公司 Encoding and decoding method, device and equipment
CN114503560A (en) * 2019-10-06 2022-05-13 现代自动车株式会社 Method and apparatus for encoding and decoding video by means of inter-prediction
WO2021072326A1 (en) * 2019-10-09 2021-04-15 Beijing Dajia Internet Information Technology Co., Ltd. Methods and apparatuses for prediction refinement with optical flow, bi-directional optical flow, and decoder-side motion vector refinement
WO2021148038A1 (en) * 2020-01-26 2021-07-29 Beijing Bytedance Network Technology Co., Ltd. Motion compensation along different directions
CN113160277A (en) * 2021-01-29 2021-07-23 北京小米松果电子有限公司 Image processing method and device, electronic equipment and storage medium

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170094305A1 (en) * 2015-09-28 2017-03-30 Qualcomm Incorporated Bi-directional optical flow for video coding

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8406506B2 (en) * 2010-05-18 2013-03-26 Honda Motor Co., Ltd. Fast sub-pixel optical flow estimation
KR101444675B1 (en) * 2011-07-01 2014-10-01 에스케이 텔레콤주식회사 Method and Apparatus for Encoding and Decoding Video
EP3128485A1 (en) * 2015-08-05 2017-02-08 Thomson Licensing Method and apparatus for hierarchical motion estimation using dfd-based image segmentation
WO2017036399A1 (en) * 2015-09-02 2017-03-09 Mediatek Inc. Method and apparatus of motion compensation for video coding based on bi prediction optical flow techniques
CN105847804B (en) * 2016-05-18 2017-12-15 信阳师范学院 A kind of up-conversion method of video frame rate based on sparse redundant representation model

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170094305A1 (en) * 2015-09-28 2017-03-30 Qualcomm Incorporated Bi-directional optical flow for video coding

Also Published As

Publication number Publication date
CN110710213A (en) 2020-01-17
KR102421410B1 (en) 2022-07-15
KR20180119084A (en) 2018-11-01
KR20210134265A (en) 2021-11-09
KR102409449B1 (en) 2022-06-15
CN110710213B (en) 2023-07-28
KR102409430B1 (en) 2022-06-15

Similar Documents

Publication Publication Date Title
KR102421410B1 (en) Method and Apparatus for Estimating Optical Flow for Motion Compensation
KR102490114B1 (en) Method and Apparatus for Estimating Optical Flow for Motion Compensation
KR20230135037A (en) Motion Compensation Method and Apparatus Using Bi-directional Optical Flow
KR102571159B1 (en) Motion Compensation Method and Apparatus Using Bi-directional Optical Flow
KR101269116B1 (en) Decoding method of inter coded moving picture
KR20210006306A (en) Method and Apparatus for Encoding and Decoding Video by Using Inter Prediction
KR20130067280A (en) Decoding method of inter coded moving picture
KR20210040787A (en) Method and Apparatus for Encoding and Decoding Video by Using Inter Prediction
US12003736B2 (en) Method and apparatus for estimating optical flow for motion compensation
US20220360768A1 (en) Method for deriving bidirectional prediction weight index and video decoding apparatus
US20230308662A1 (en) Method and apparatus for video coding using block merging
US20230396795A1 (en) Inter prediction-based video encoding and decoding
KR20230131768A (en) Prediction Block Generation at Video Frame Boundary
KR20220017372A (en) Method for Predicting Quantization Parameter Used in Image Encoding/Decoding Device
KR20220043053A (en) Method for Inter Prediction Based on Varying Coefficient Deep Learning
KR20220077096A (en) Method and Apparatus for Video Coding Using Block Merging
KR20220137553A (en) Video Coding Method and Apparatus Using Decoder-side Motion Compensation
KR20230108215A (en) Method for Decoder-side Motion Vector List Modification in Inter Prediction
KR20230105647A (en) Method and Apparatus for Video Coding Using Improved Merge with Motion Vector Difference
KR20200081186A (en) Method for deriving motion vector of temporal candidate and apparatus using the same

Legal Events

Date Code Title Description
A107 Divisional application of patent
E902 Notification of reason for refusal
E701 Decision to grant or registration of patent right