# US 2021/0281881 A1 · Image coding method based on secondary transform, and device therefor

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

- Number: US 2021/0281881 A1
- Document ID: US20210281881A1
- Status: Published application
- Kind: A1
- Application number: 17/327,242
- Filed: 2021-05-21
- Published: 2021-09-09
- Earliest claimed: 2018-12-06
- Assignees: LG Electronics Inc.
- Applicants: LG Electronics Inc.
- Inventors: Moonmo KOO; Jaehyun LIM; Seunghwan KIM
- Web page: https://patentgrep.com/patent/US20210281881A1

## CPC

- H04N 19/12: Selection from among a plurality of transforms or standards, e.g. selection between discrete cosine transform [DCT] and sub-band transform or selection between H.263 and H.264
- H04N 19/60: using transform coding
- H04N 19/11: among a plurality of spatial predictive coding modes
- H04N 19/124: Quantisation
- H04N 19/13: Adaptive entropy coding, e.g. adaptive variable length coding [AVLC] or context adaptive binary arithmetic coding [CABAC]
- H04N 19/159: Prediction type, e.g. intra-frame, inter-frame or bidirectional frame prediction
- H04N 19/176: the region being a block, e.g. a macroblock
- H04N 19/18: the unit being a set of transform coefficients
- H04N 19/46: Embedding additional information in the video signal during the compression process (H04N19/517, H04N19/68, H04N19/70 take precedence)
- H04N 19/70: characterised by syntax aspects related to video coding, e.g. related to compression standards
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION

## Abstract

An image decoding method comprises the steps of: deriving transform coefficients through inverse quantization on the basis of quantized transform coefficients for a target block; deriving modified transform coefficients on the basis of an inverse reduced secondary transform (RST) for the transform coefficients; and generating a restoration picture on the basis of residual samples for the target block, on the basis of an inverse primary transform for the modified transform coefficients, wherein the inverse RST is performed on the basis of: transform sets determined by a mapping relation according to an intra prediction mode applied to the target block; and a transform kernel matrix selected from among two transform kernel matrices included in each of the transform sets, and is performed on the basis of: whether the inverse RST is applied; and a transform index for indicating any one of the transform kernel matrices included in the transform sets.

## Claims

### Claim 1

An image decoding method performed by a decoding apparatus, the method comprising:
deriving quantized transform coefficients for a target block from a bitstream;
deriving transform coefficients through dequantization based on the quantized transform coefficients for the target block;
deriving modified transform coefficients based on an inverse reduced secondary transform (RST) for the transform coefficients;
deriving residual samples for the target block based on an inverse primary transform for the modified transform coefficients; and
generating a reconstructed picture based on the residual samples for the target block,
wherein the inverse RST is an inverse transform of a transform that derives a smaller number of transform coefficients than transform coefficients for a predetermined top-left area of the target block based on the transform coefficients for the top-left area,
wherein the inverse RST is performed based on a transform set determined based on a mapping relationship according to an intra prediction mode applied to the target block and a transform kernel matrix selected from among two transform kernel matrices comprised in each of the transform set, and
wherein the inverse RST is performed based on a transform index related to whether the inverse RST is applied and one of the transform kernel matrices comprised in the transform set.

### Claim 2 (depends on 1)

The image decoding method of claim 1, further comprising:
deriving context information of a syntax element for the transform index;
decoding bins of a syntax element bin string about the transform index based on the context information; and
deriving a value of the syntax element for the transform index,
wherein a first bin of the bins of the syntax element for the transform index is decoded based on first context information, and a second bin of the bins of the syntax element for the transform index is decoded based on second context information.

### Claim 3 (depends on 2)

The image decoding method of claim 2, wherein the value of the syntax element comprises any one of 0 indicating that the inverse RST is not applied to the target block, 1 indicating a first transform kernel matrix of the transform kernel matrices, and 2 indicating a second transform kernel matrix of the transform kernel matrices.

### Claim 4 (depends on 3)

The image decoding method of claim 3, wherein the value of the syntax element is binarized by a truncated unary code, and
wherein the value of the syntax element of 0 is binarized into ‘0’, the value of the syntax element of 1 is binarized into ‘10’, and the value of the syntax element of 2 is binarized into ‘11’.

### Claim 5 (depends on 1)

The image decoding method of claim 1, wherein a plurality of intra prediction modes comprising the intra prediction mode is mapped to one transform set.

### Claim 6

An image encoding method performed by an image encoding apparatus, the method comprising:
deriving prediction samples based on an intra prediction mode applied to a target block;
deriving residual samples for the target block based on the prediction sample;
deriving transform coefficients for the target block based on a primary transform for the residual samples;
deriving modified transform coefficients based on a reduced secondary transform (RST) of the transform coefficients, wherein the RST being performed based on a transform set determined based on a mapping relationship according to the intra prediction mode applied to the target block and a transform kernel matrix selected from among two transform kernel matrices comprised in each of the transform set;
deriving quantized transform coefficients by performing quantization based on the modified transform coefficients; and
generating a transform index indicating whether the inverse RST is applied and one of the transform kernel matrices comprised in the transform set,
wherein the RST is a transform that derives a smaller number of transform coefficients than transform coefficients for a predetermined top-left area of the target block based on the transform coefficients for the top-left area.

### Claim 7 (depends on 6)

The image encoding method of claim 6, wherein the generating of the transform index comprises:
deriving a value of a syntax element for the transform index;
deriving context information of the syntax element for the transform index; and
encoding bins of a syntax element bin string about the transform index based on the context information, and
wherein a first bin of the bins of the syntax element for the transform index is encoded based on first context information, and a second bin of the bins of the syntax element for the transform index is encoded based on second context information.

### Claim 8 (depends on 7)

The image encoding method of claim 7, wherein the value of the syntax element comprises any one of 0 indicating that the inverse RST is not applied to the target block, 1 indicating a first transform kernel matrix of the transform kernel matrices, and 2 indicating a second transform kernel matrix of the transform kernel matrices.

### Claim 9 (depends on 8)

The image encoding method of claim 8, wherein the value of the syntax element is binarized by a truncated unary code, and
wherein the value of the syntax element of 0 is binarized into ‘0’, the value of the syntax element of 1 is binarized into ‘10’, and the value of the syntax element of 2 is binarized into ‘11’.

### Claim 10 (depends on 6)

The image encoding method of claim 6, wherein a plurality of intra prediction modes comprising the intra prediction mode is mapped to one transform set.

### Claim 11

A non-transitory computer readable storage medium storing encoded information causing a decoding apparatus to perform an image decoding method, the method comprising;
deriving quantized transform coefficients for a target block from a bitstream;
deriving transform coefficients through dequantization based on the quantized transform coefficients for the target block;
deriving modified transform coefficients based on an inverse reduced secondary transform (RST) for the transform coefficients;
deriving residual samples for the target block based on an inverse primary transform for the modified transform coefficients; and
generating a reconstructed picture based on the residual samples for the target block,
wherein the inverse RST is an inverse transform of a transform that derives a smaller number of transform coefficients than transform coefficients for a predetermined top-left area of the target block based on the transform coefficients for the top-left area,
wherein the inverse RST is performed based on a transform set determined based on a mapping relationship according to an intra prediction mode applied to the target block and a transform kernel matrix selected from among two transform kernel matrices comprised in each of the transform set, and
wherein the inverse RST is performed based on a transform index related to whether the inverse RST is applied and one of the transform kernel matrices comprised in the transform set.
