# US 2021/0289200 A1 · Encoding apparatus, encoding method, decoding apparatus, and decoding method

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

- Number: US 2021/0289200 A1
- Document ID: US20210289200A1
- Status: Published application
- Kind: A1
- Application number: 17/053,532
- Filed: 2019-05-07
- Published: 2021-09-16
- Earliest claimed: 2018-05-18
- Assignees: Sony Corporation
- Applicants: Sony Corporation
- Inventors: Masaru IKEDA
- Web page: https://patentgrep.com/patent/US20210289200A1

## CPC

- H04N 19/117: Filters, e.g. for pre-processing or post-processing (sub-band filter banks H04N19/635)
- H04N 19/14: Coding unit complexity, e.g. amount of activity or edge presence estimation (H04N19/146 takes precedence)
- H04N 19/182: the unit being a pixel
- H04N 19/82: involving filtering within a prediction loop
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION

## Abstract

There is provided an encoding apparatus, an encoding method, a decoding apparatus, and a decoding method that make it possible to improve the performance of a filter process. The encoding apparatus and the decoding apparatus perform classification of classifying, according to a reliability degree determined according to a frequency distribution of inclination directions indicating directions of inclination of pixel values of a plurality of pixels in a frequency distribution generation region including a pixel of interest of a decoded image, the pixel of interest into any of a plurality of classes, and performs a filter process of applying, to the decoded image, a prediction formula for performing product sum calculation of tap coefficients of the class of the pixel of interest obtained by the classification and pixels of the decoded image. The present technology can be applied, for example, to a case in which encoding and decoding of an image are performed.

## Claims

### Claim 1

A decoding apparatus, comprising:
a decoding section configured to decode encoded data included in an encoded bit stream using a filter image to generate a decoded image;
a classification section configured to perform classification of classifying, according to reliability degrees set according to a frequency distribution of inclination directions indicating directions of inclination of pixel values of a plurality of pixels in a frequency distribution generation region that includes a pixel of interest of the decoded image generated by the decoding section, the pixel of interest into any of a plurality of classes; and
a filter section configured to perform a filter process of applying, to the decoded image, a prediction formula for performing product sum calculation of tap coefficients of a class of the pixel of interest obtained by the classification performed by the classification section and pixels of the decoded image to generate the filter image.

### Claim 2 (depends on 1)

The decoding apparatus according to claim 1, wherein
the classification section performs the classification of the pixel of interest according to the inclination direction and the reliability degree of the pixel of interest.

### Claim 3 (depends on 2)

The decoding apparatus according to claim 2, wherein
the classification section sets an inclination direction of a maximum frequency in the frequency distribution as the inclination direction of the pixel of interest.

### Claim 4 (depends on 2)

The decoding apparatus according to claim 2, wherein
the classification section generates a frequency distribution of the inclination directions set using, regarding each of the pixels in the frequency distribution generation region, a gradient feature amount indicating an inclination direction of the pixel.

### Claim 5 (depends on 4)

The decoding apparatus according to claim 4, wherein
the classification section sets the inclination direction set using the gradient feature amounts of the plurality of pixels in a peripheral region of the pixel of interest as the inclination direction of the pixel of interest.

### Claim 6 (depends on 4)

The decoding apparatus according to claim 4, wherein
the classification section sets, to a frequency of an inclination direction of a pixel nearer to the pixel of interest, a weight greater than that to a frequency of an inclination direction of a pixel farther from the pixel of interest.

### Claim 7 (depends on 4)

The decoding apparatus according to claim 4, wherein
the classification section uses a value corresponding to a feature amount of an inclination direction of each of the pixels in the frequency distribution generation region as a frequency of the inclination direction.

### Claim 8 (depends on 2)

The decoding apparatus according to claim 2, wherein
the classification section
generates, regarding each of the pixels in the frequency distribution generation region, a frequency distribution of inclination directions set using a gradient vector indicating an inclination direction of the pixel,
sets an inclination direction of a maximum frequency in the frequency distribution as an inclination direction of the pixel of interest, and
sets a value corresponding to the maximum frequency in the frequency distribution as a reliability degree of the inclination direction of the pixel of interest.

### Claim 9 (depends on 2)

The decoding apparatus according to claim 2, wherein
the classification section
generates, regarding each of the pixels in the frequency distribution generation region, a frequency distribution of inclination directions set using a gradient vector indicating an inclination direction of the pixel,
sets a direction that maximizes a sum total of inner products with the gradient vectors of the plurality of pixels in a peripheral region of the pixel of interest as an inclination direction of the pixel of interest, and
sets a value corresponding to a frequency of the inclination direction of the pixel of interest in the frequency distribution as a reliability degree of the inclination direction of the pixel of interest.

### Claim 10 (depends on 2)

The decoding apparatus according to claim 2, wherein
the classification section
generates, regarding each of the pixels in the frequency distribution generation region, a frequency distribution of inclination directions set using activities of a plurality of directions of the pixel,
sets an inclination direction of a maximum frequency in the frequency distribution as an inclination direction of the pixel of interest, and
sets a value corresponding to the maximum frequency in the frequency distribution as a reliability degree of the inclination direction of the pixel of interest.

### Claim 11 (depends on 2)

The decoding apparatus according to claim 2, wherein
the classification section
generates, regarding each of the pixels in the frequency distribution generation region, a frequency distribution of inclination directions set using activities of a plurality of directions of the pixel,
sets an inclination direction set using the activities of the plurality of directions of a plurality of pixels in a peripheral region of the pixel of interest as an inclination direction of the pixel of interest, and
sets a value corresponding to a frequency of the inclination direction of the pixel of interest in the frequency distribution as a reliability degree of the inclination direction of the pixel of interest.

### Claim 12 (depends on 1)

The decoding apparatus according to claim 1, further comprising:
a parsing section configured to parse the tap coefficients included in the encoded bit stream.

### Claim 13 (depends on 1)

The decoding apparatus according to claim 1, wherein
the decoding section decodes the encoded data using a CU (Coding Unit) of Quad-Tree Block Structure or QTBT (Quad Tree Plus Binary Tree) Block Structure as a processing unit.

### Claim 14

A decoding method, comprising:
decoding encoded data included in an encoded bit stream using a filter image to generate a decoded image;
performing classification of classifying, according to reliability degrees set according to a frequency distribution of inclination directions indicating directions of inclination of pixel values of a plurality of pixels in a frequency distribution generation region that includes a pixel of interest of the decoded image, the pixel of interest into any of a plurality of classes; and
performing a filter process of applying, to the decoded image, a prediction formula for performing product sum calculation of tap coefficients of a class of the pixel of interest obtained by the classification and pixels of the decoded image to generate the filter image.

### Claim 15

An encoding apparatus, comprising:
a classification section configured to perform classification of classifying, according to a reliability degree set according to a frequency distribution of inclination directions indicating directions of inclination of pixel values of a plurality of pixels in a frequency distribution generation region including a pixel of interest of a decoded image decoded locally, the pixel of interest into any of a plurality of classes;
a filter section configured to perform a filter process of applying, to the decoded image, a prediction formula for performing product sum calculation of tap coefficients of the class of the pixel of interest obtained by the classification performed by the classification section and pixels of the decoded image to generate a filter image; and
an encoding section configured to encode an original image using the filter image generated by the filter section.

### Claim 16 (depends on 15)

The encoding apparatus according to claim 15, wherein
the classification section performs the classification of the pixel of interest according to the inclination direction and the reliability degree of the pixel of interest.

### Claim 17 (depends on 16)

The encoding apparatus according to claim 16, wherein
the classification section sets an inclination direction of a maximum frequency in the frequency distribution as the inclination direction of the pixel of interest.

### Claim 18 (depends on 16)

The encoding apparatus according to claim 16, wherein
the classification section generates a frequency distribution of the inclination directions set using, regarding each of the pixels in the frequency distribution generation region, a gradient feature amount indicating an inclination direction of the pixel.

### Claim 19 (depends on 18)

The encoding apparatus according to claim 18, wherein
the classification section sets the inclination direction set using the gradient feature amounts of the plurality of pixels in a peripheral region of the pixel of interest as the inclination direction of the pixel of interest.

### Claim 20 (depends on 18)

The encoding apparatus according to claim 18, wherein
the classification section sets, to a frequency of an inclination direction of a pixel nearer to the pixel of interest, a weight greater than that to a frequency of an inclination direction of a pixel farther from the pixel of interest.

### Claim 21 (depends on 18)

The encoding apparatus according to claim 18, wherein
the classification section uses a value corresponding to a feature amount of an inclination direction of each of the pixels in the frequency distribution generation region.

### Claim 22 (depends on 16)

The encoding apparatus according to claim 16, wherein
the classification section
generates, regarding each of the pixels in the frequency distribution generation region, a frequency distribution of inclination directions set using a gradient vector indicating an inclination direction of the pixel,
sets an inclination direction of a maximum frequency in the frequency distribution as an inclination direction of the pixel of interest, and
sets a value corresponding to the maximum frequency in the frequency distribution as a reliability degree of the inclination direction of the pixel of interest.

### Claim 23 (depends on 16)

The encoding apparatus according to claim 16, wherein
the classification section
generates, regarding each of the pixels in the frequency distribution generation region, a frequency distribution of inclination directions set using a gradient vector indicating an inclination direction of the pixel,
sets a direction that maximizes a sum total of inner products with the gradient vectors of the plurality of pixels in a peripheral region of the pixel of interest as an inclination direction of the pixel of interest, and
sets a value corresponding to a frequency of the inclination direction of the pixel of interest in the frequency distribution as a reliability degree of the inclination direction of the pixel of interest.

### Claim 24 (depends on 16)

The encoding apparatus according to claim 16, wherein
the classification section
generates, regarding each of the pixels in the frequency distribution generation region, a frequency distribution of inclination directions set using activities of a plurality of directions of the pixel,
sets an inclination direction of a maximum frequency in the frequency distribution as an inclination direction of the pixel of interest, and
sets a value corresponding to the maximum frequency in the frequency distribution as a reliability degree of the inclination direction of the pixel of interest.

### Claim 25 (depends on 16)

The encoding apparatus according to claim 16, wherein
the classification section
generates, regarding each of the pixels in the frequency distribution generation region, a frequency distribution of inclination directions set using activities of a plurality of directions of the pixel,
sets an inclination direction set using the activities of the plurality of directions of a plurality of pixels in a peripheral region of the pixel of interest as an inclination direction of the pixel of interest, and
sets a value corresponding to a frequency of the inclination direction of the pixel of interest in the frequency distribution as a reliability degree of the inclination direction of the pixel of interest.

### Claim 26 (depends on 15)

The encoding apparatus according to claim 15, wherein
the filter section obtains the tap coefficient that minimizes a statistical error of a prediction value of the original image obtained by the prediction expression using the original image and the decoded image, and
the encoding section generates an encoded bit stream including encoded data obtained by encoding the original image and the tap coefficients.

### Claim 27 (depends on 15)

The encoding apparatus according to claim 15, wherein
the encoding section encodes the original image using a CU (Coding Unit) of Quad-Tree Block Structure or QTBT (Quad Tree Plus Binary Tree) Block Structure as a processing unit.

### Claim 28

An encoding method, comprising:
performing classification of classifying, according to a reliability degree set according to a frequency distribution of inclination directions indicating directions of inclination of pixel values of a plurality of pixels in a frequency distribution generation region including a pixel of interest of a decoded image decoded locally, the pixel of interest into any of a plurality of classes;
performing a filter process of applying, to the decoded image, a prediction formula for performing product sum calculation of tap coefficients of the class of the pixel of interest obtained by the classification and pixels of the decoded image to generate a filter image; and
encoding an original image using the filter image.
