# US 2021/0084330 A1 · Prediction image generating method, method for decoding a moving image, and method for coding a moving image

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2021/0084330 A1
- Document ID: US20210084330A1
- Status: Published application
- Kind: A1
- Application number: 17/105,986
- Filed: 2020-11-27
- Published: 2021-03-18
- Earliest claimed: 2016-02-03
- Assignees: Sharp Kabushiki Kaisha
- Applicants: Sharp Kabushiki Kaisha
- Inventors: TOMOHIRO IKAI; TOMOYUKI YAMAMOTO
- Web page: https://patentgrep.com/patent/US20210084330A1

## CPC

- H04N 19/573: Motion compensation with multiple frame prediction using two or more reference frames in a given prediction direction
- H04N 19/105: Selection 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
- H04N 19/157: Assigned coding mode, i.e. the coding mode being predefined or preselected to be further used for selection of another element or parameter
- H04N 19/176: the region being a block, e.g. a macroblock
- H04N 19/196: being specially adapted for the computation of encoding parameters, e.g. by averaging previously computed encoding parameters (processing of motion vectors H04N19/513)
- H04N 19/52: by predictive encoding
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION

## Abstract

A prediction image generation apparatus for generating a prediction image by performing motion compensation on multiple reference images, the prediction image generation apparatus includes a prediction image generation unit configured to generate the prediction image with reference to a first reference image, a second reference image and a gradient correction term. A motion compensation unit (3091) having a motion compensation function using a bi-prediction gradient change (Bi-directional optical flow, BIO) prediction derives the gradient correction term with reference to each pixel value of a horizontal gradient image and a vertical gradient image. An inter-frame-distance weight derivation unit (309131) included a gradient correction bi-prediction derivation unit (30913) included in the motion compensation unit determines each weight coefficient to be multiplied by the value of the each pixel, depending on a first picture interval and a second picture interval, the first picture interval being a picture interval between a target image to be predicted and the first reference image, the second picture interval being a picture interval between the target image and the second reference image.

## Claims

### Claim 1

A prediction image generating method for generating a prediction image, the prediction image generating method comprising:
generating the prediction image with reference to a first reference image, a second reference image and a gradient correction term, wherein
the gradient correction term is derived with reference to a value of each pixel of
a first gradient image indicating a gradient along a first direction of the first reference image,
a second gradient image indicating a gradient along a second direction of the first reference image,
a third gradient image indicating a gradient along the first direction of the second reference image, and
a fourth gradient image indicating a gradient along the second direction of the second reference image, and
each weight coefficient to be multiplied by the value of the each pixel of the first to fourth gradient images is determined for each block, wherein
each of weight coefficients is either a first value or a second value, a method for determining the first value is different from a method for determining the second value, and
wherein
the first value is determined for each block by using (a) deference of the first reference image and the second reference image, (b) sum of the first gradient image and the third gradient image and (c) sum of the second gradient image and the fourth gradient image, and
the second value is determined for each block by using (a) deference of the first reference image and the second reference image, (b) sum of the first gradient image and the third gradient image and (c) sum of the second gradient image and the fourth gradient image and (d) the first value.

### Claim 2

A method for decoding a moving image, the method comprising:
generating a prediction image with reference to a first reference image, a second reference image and a gradient correction term; and
generating a local decoded image based on the prediction image and a residual image;
the gradient correction term is derived with reference to a value of each pixel of
a first gradient image indicating a gradient along a first direction of the first reference image,
a second gradient image indicating a gradient along a second direction of the first reference image,
a third gradient image indicating a gradient along the first direction of the second reference image, and
a fourth gradient image indicating a gradient along the second direction of the second reference image, and
each weight coefficient to be multiplied by the value of the each pixel of the first to fourth gradient images is determined for each block, wherein
each of weight coefficients is either a first value or a second value, a method for determining the first value is different from a method for determining the second value, and
wherein
the first value is determined for each block by using (a) deference of the first reference image and the second reference image, (b) sum of the first gradient image and the third gradient image and (c) sum of the second gradient image and the fourth gradient image, and
the second value is determined for each block by using (a) deference of the first reference image and the second reference image, (b) sum of the first gradient image and the third gradient image and (c) sum of the second gradient image and the fourth gradient image and (d) the first value.

### Claim 3

A method for coding a moving image, the method comprising:
generating a prediction image with reference to a first reference image, a second reference image and a gradient correction term; and
coding a residual picture based on the prediction image;
the gradient correction term is derived with reference to a value of each pixel of
a first gradient image indicating a gradient along a first direction of the first reference image,
a second gradient image indicating a gradient along a second direction of the first reference image,
a third gradient image indicating a gradient along the first direction of the second reference image, and
a fourth gradient image indicating a gradient along the second direction of the second reference image, and
each weight coefficient to be multiplied by the value of the each pixel of the first to fourth gradient images is determined for each block, wherein
each of weight coefficients is either a first value or a second value, a method for determining the first value is different from a method for determining the second value, and
wherein
the first value is determined for each block by using (a) deference of the first reference image and the second reference image, (b) sum of the first gradient image and the third gradient image and (c) sum of the second gradient image and the fourth gradient image, and
the second value is determined for each block by using (a) deference of the first reference image and the second reference image, (b) sum of the first gradient image and the third gradient image and (c) sum of the second gradient image and the fourth gradient image and (d) the first value.
