# US 2023/0054265 A1 · Transform in intra prediction-based image coding

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

- Number: US 2023/0054265 A1
- Document ID: US20230054265A1
- Status: Published application
- Kind: A1
- Application number: 17/970,027
- Filed: 2022-10-20
- Published: 2023-02-23
- Earliest claimed: 2019-04-16
- Assignees: LG Electronics Inc.
- Applicants: LG Electronics Inc.
- Inventors: Junghak NAM; Jaehyun LIM; Moonmo KOO; Seunghwan KIM
- Web page: https://patentgrep.com/patent/US20230054265A1

## 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/122: Selection of transform size, e.g. 8x8 or 2x4x8 DCT; Selection of sub-band transforms of varying structure or type
- 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/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 according to the present document comprises the steps of: acquiring prediction-related information and residual-related information for a current block; deriving transform coefficients for the current block on the basis of the residual-related information; and generating residual samples of the current block on the basis of the transform coefficients, wherein the residual-related information includes low-frequency non-separable transform (LFNST) index information indicating information relating to non-separable transform for a low-frequency transform coefficient of the current block on the basis of a matrix-based intra prediction (MIP) flag.

## 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 prediction related information and information on transform coefficients for a current block from a bitstream;
derive transform coefficients for the current block based on the information on the transform coefficients; and
generate residual samples of the current block based on the transform coefficients,
wherein the information on the transform coefficients includes low frequency non-separable transform (LFNST) index information related to one of transform kernels in an LFNST transform set for the current block based on an enabled flag for LFNST and a matrix based intra prediction (MIP) flag,
wherein the at least one processor further configured to:
derive modified transform coefficients from the transform coefficients based on the LFNST index information; and
generate the residual samples based on the modified transform coefficients,
wherein the MIP flag represents whether MIP is applied to the current block,
wherein the MIP flag is included in the prediction related information,
wherein the MIP flag is parsed prior to the LFNST index information,
wherein based on the enabled flag representing that the LFNST is enabled and the MIP flag representing that the MIP is not applied, the information on the transform coefficients includes the LFNST index information, and
wherein based on the MIP flag representing that the MIP is applied, the LFNST index information is not present and a value of the LFNST index information is derived as 0.

### Claim 2 (depends on 1)

The decoding apparatus of claim 1, wherein the information on the transform coefficients does not include the LFNST index information based on the MIP flag representing that the MIP is applied, and
wherein the LFNST index information is derived based on at least one of reference line index information for the current block, intra prediction mode information of the current block, size information of the current block, and the MIP flag.

### Claim 3 (depends on 1)

The decoding apparatus of claim 1, wherein the LFNST index information is derived through truncated rice (TR) based binarization based on the MIP flag representing that the MIP is not applied, and
wherein the LFNST index information is derived through fixed length (FL) based binarization based on the MIP flag representing that the MIP is applied.

### Claim 4 (depends on 1)

The decoding apparatus of claim 1, wherein the LFNST index information comprises an LFNST flag representing whether a non-separable transform for low-frequency transform coefficients of the current block is applied, and a transform kernel index flag representing a transform kernel applied to the current block among transform kernel candidates.

### Claim 5 (depends on 4)

The decoding apparatus of claim 4, wherein the transform kernel index flag is included in the LFNST index information based on the LFNST flag representing that the non-separable transform is applied and the MIP flag representing that the MIP is not applied.

### Claim 6 (depends on 4)

The decoding apparatus of claim 4, wherein the LFNST flag and the transform kernel index flag are derived through fixed length (FL) based binarization.

### Claim 7 (depends on 4)

The decoding apparatus of claim 4, wherein a first bin of a bin string of the LFNST flag is derived based on context coding, the context coding is performed based on a context index increment value for the LFNST flag, and the context index increment value is derived as one of candidates including 0 and 1, and
wherein a first bin of a bin string of the transform kernel index flag is derived based on bypass coding.

### Claim 8 (depends on 7)

The decoding apparatus of claim 7, wherein the context index increment value is derived based on a multiple transform selection (MTS) index representing a transform kernel set to be used for the current block among transform kernel sets, and tree type information representing a partitioning structure of the current block.

### Claim 9 (depends on 4)

The decoding apparatus of claim 4, wherein the information on the transform coefficients does not include the LFNST index information and the transform kernel index flag based on the MIP flag representing that the MIP is applied, and
wherein the LFNST flag and the transform kernel index flag are derived based on at least one of reference line index information for the current block, intra prediction mode information of the current block, size information of the current block, and the MIP flag.

### Claim 10 (depends on 1)

The decoding apparatus of claim 1, wherein the prediction related information further includes intra sub-partitions (ISP) related information about sub-partitioning of the current block, and
wherein the information on the transform coefficients includes the LFNST index information further based on the ISP related information representing that ISP split is not applied.

### Claim 11

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:
determine an intra prediction mode and an intra prediction type for a current block;
generate prediction related information for the current block based on the intra prediction mode and the intra prediction type;
derive prediction samples of the current block based on the intra prediction mode and the intra prediction type;
generate residual samples of the current block based on the prediction samples;
generate information on transform coefficients for the current block based on the residual samples; and
encode the prediction related information and the information on the transform coefficients,
wherein the information on the transform coefficients includes low frequency non-separable transform (LFNST) index information related to one of transform kernels in an LFNST transform set for the current block based on an enabled flag for LFNST and a matrix based intra prediction (MIP) flag,
wherein the at least one processor further configured to:
derive temporary transform coefficients for the current block based on the residual samples;
derive transform coefficients for the current block from the temporary transform coefficients; and
generate the information on the transform coefficients,
wherein the LFNST index information is generated based on a transform kernel used to derive the transform coefficients,
wherein the MIP flag represents whether MIP is applied to the current block,
wherein the MIP flag is included in the prediction related information,
wherein the MIP flag is signaled prior to the LFNST index information,
wherein based on the enabled flag representing that the LFNST is enabled and the MIP flag representing that the MIP is not applied, the information on the transform coefficients includes the LFNST index information, and
wherein based on the MIP flag representing that the MIP is applied, the LFNST index information is not present and a value of the LFNST index information is equal to 0.

### Claim 12 (depends on 11)

A non-transitory computer-readable storage medium storing a bitstream generated by the encoding apparatus of claim 11.

### Claim 13

An apparatus for transmitting data for an image, the method comprising:
at least one processor configured to obtain a bitstream for the image, the bitstream is generated based on determining an intra prediction mode and an intra prediction type for a current block, generating prediction related information for the current block based on the intra prediction mode and the intra prediction type, deriving prediction samples of the current block based on the intra prediction mode and the intra prediction type, generating residual samples of the current block based on the prediction samples, generating information on the transform coefficients for the current block based on the residual samples, and encoding the prediction related information and the information on the transform coefficients; and
a transmitter configured to transmit the data comprising the bitstream,
wherein the information on the transform coefficients includes low frequency non-separable transform (LFNST) index information related to one of transform kernels in an LFNST transform set for the current block based on an enabled flag for LFNST and a matrix based intra prediction (MIP) flag,
wherein generating the information on the transform coefficients comprises:
deriving temporary transform coefficients for the current block based on the residual samples;
deriving transform coefficients for the current block from the temporary transform coefficients; and
generating the information on the transform coefficients,
wherein the LFNST index information is generated based on a transform kernel used to derive the transform coefficients,
wherein the MIP flag represents whether MIP is applied to the current block,
wherein the MIP flag is included in the prediction related information,
wherein the MIP flag is signaled prior to the LFNST index information,
wherein based on the enabled flag representing that the LFNST is enabled and the MIP flag representing that the MIP is not applied, the information on the transform coefficients includes the LFNST index information, and
wherein based on the MIP flag representing that the MIP is applied, the LFNST index information is not present and a value of the LFNST index information is equal to 0.
