# US 2025/0168404 A1 · Method for coding image on basis of 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 2025/0168404 A1
- Document ID: US20250168404A1
- Status: Published application
- Kind: A1
- Application number: 19/028,594
- Filed: 2025-01-17
- Published: 2025-05-22
- Earliest claimed: 2018-12-19
- Assignees: LG Electronics Inc.
- Applicants: LG Electronics Inc.
- Inventors: Moonmo KOO; Seunghwan KIM; Mehdi SALEHIFAR; Jaehyun LIM
- Web page: https://patentgrep.com/patent/US20250168404A1

## 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/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/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/593: involving spatial prediction techniques
- H04N 19/61: in combination with predictive coding
- H04N 19/70: characterised by syntax aspects related to video coding, e.g. related to compression standards
- H04N 19/96: Tree coding, e.g. quad-tree coding
- H04N 19/119: Adaptive subdivision aspects, e.g. subdivision of a picture into rectangular or non-rectangular coding blocks
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION

## Abstract

An image decoding method according to the present document comprises a step of deriving modified transform coefficients on the basis of an inverse reduced secondary transform (RST) regarding transform coefficients regarding a target block. The inverse RST is performed on the basis of transform sets determined on the basis of a mapping relation following an intra prediction mode applied to the target block, and a transform kernel matrix selected from two transform kernel matrices included in the transform sets, respectively, and and is performed on the basis of whether or not the inverse RST is applied, and a transform index indicating one of the transform kernel matrices included in the transform sets. A syntax element bin string regarding the transform index is decoded on the basis of a different context set according to the tree type regarding the division structure of the target block.

## Claims

### Claim 1

A decoding apparatus for an image decoding, the decoding apparatus comprising:
a memory; and
at least one processor connected to the memory, the at least one processor configured to:
obtain residual information, a transform index, and information on an intra prediction mode from a bitstream;
derive transform coefficients for a target block based on the residual information; and
derive modified transform coefficients based on an inverse non-separable transform for the transform coefficients,
wherein the at least one processor is further configured to:
determine a transform set based on a mapping relationship according to the intra prediction mode applied to the target block;
select a transform kernel matrix, based on the transform index, from among two transform kernel matrices comprised in the transform set; and
derive the modified transform coefficients by performing the inverse non-separable transform based on the transform kernel matrix,
wherein the transform index is decoded based on a context adaptive binary arithmetic coding (CABAC) and by:
deriving, based on context sets, context information of a syntax element for the transform index, the context sets including a first context set and a second context set;
decoding, based on the context information, bins of the syntax element for the transform index, the bins including a first bin and a second bin; and
deriving, based on the decoded bins, a value of the syntax element for the transform index,
wherein (i) based on a tree type of the target block being a dual tree type, the context information is derived based on the first context set, and (ii) based on the tree type of the target block being a single tree type, the context information is derived based on the second context set,
wherein the first context set comprises (i) first context information for the first bin of the syntax element for the transform index and (ii) second context information for the second bin of the syntax element for the transform index, and
wherein the second context set comprises (i) third context information for the first bin of the syntax element for the transform index and (ii) fourth context information for the second bin of the syntax element for the transform index.

### Claim 2

An encoding apparatus for image encoding, the encoding apparatus comprising:
a memory; and
at least one processor connected to the memory, the at least one processor configured to:
derive residual samples for a target block;
derive transform coefficients for the target block based on a primary transform for the residual samples; and
derive modified transform coefficients based on a non-separable transform of the transform coefficients,
wherein the at least one processor is further configured to:
determine a transform set based on a mapping relationship according to an intra prediction mode applied to the target block;
select a transform kernel matrix from among two transform kernel matrices comprised in the transform set;
derive the modified transform coefficients by performing the non-separable transform based on the transform kernel matrix; and
generate the transform index indicating the transform kernel matrix,
wherein the transform index is generated based on a CABAC and by:
deriving a value of a syntax element for the transform index,
deriving, based on context sets, context information of the syntax element for the transform index, the context sets including a first context set and a second context set, and
encoding, based on the context information, bins of the syntax element for the transform index, the bins including a first bin and a second bin,
wherein (i) based on a tree type of the target block being a dual tree type, the context information is derived based on the first context set, and (ii) based on the tree type of the target block being a single tree type, the context information is derived based on the second context set,
wherein the first context set comprises (i) first context information for the first bin of the syntax element for the transform index and (ii) second context information for the second bin of the syntax element for the transform index, and
wherein the second context set comprises (i) third context information for the first bin of the syntax element for the transform index and (ii) fourth context information for the second bin of the syntax element for the transform index.

### Claim 3

An apparatus for transmitting data for an image, the apparatus comprising:
at least one processor configured to obtain a bitstream for the image, wherein the bitstream is generated based on deriving residual samples for a target block, deriving transform coefficients for the target block based on a primary transform for the residual samples, and deriving modified transform coefficients based on a non-separable transform of the transform coefficients; and
a transmitter configured to transmit the data comprising the bitstream,
wherein the deriving the modified transform coefficients comprises:
determining a transform set based on a mapping relationship according to an intra prediction mode applied to the target block;
selecting a transform kernel matrix from among two transform kernel matrices comprised in the transform set;
deriving the modified transform coefficients by performing the non-separable transform based on the transform kernel matrix; and
generating the transform index indicating the transform kernel matrix,
wherein the transform index is generated based on a CABAC and by:
deriving a value of a syntax element for the transform index,
deriving, based on context sets, context information of the syntax element for the transform index, the context sets including a first context set and a second context set, and
encoding, based on the context information, bins of the syntax element for the transform index, the bins including a first bin and a second bin,
wherein (i) based on a tree type of the target block being a dual tree type, the context information is derived based on the first context set, and (ii) based on the tree type of the target block being a single tree type, the context information is derived based on the second context set,
wherein the first context set comprises (i) first context information for the first bin of the syntax element for the transform index and (ii) second context information for the second bin of the syntax element for the transform index, and
wherein the second context set comprises (i) third context information for the first bin of the syntax element for the transform index and (ii) fourth context information for the second bin of the syntax element for the transform index.
