# US 2025/0168361 A1 · Matrix-based intra prediction device and method

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

- Number: US 2025/0168361 A1
- Document ID: US20250168361A1
- Status: Published application
- Kind: A1
- Application number: 19/032,830
- Filed: 2025-01-21
- Published: 2025-05-22
- Earliest claimed: 2019-06-03
- Assignees: LG Electronics Inc.
- Applicants: LG Electronics Inc.
- Inventors: Mehdi SALEHIFAR; Seunghwan KIM
- Web page: https://patentgrep.com/patent/US20250168361A1

## CPC

- H04N 19/159: Prediction type, e.g. intra-frame, inter-frame or bidirectional frame prediction
- H04N 19/593: involving spatial prediction techniques
- H04N 19/132: Sampling, masking or truncation of coding units, e.g. adaptive resampling, frame skipping, frame interpolation or high-frequency transform coefficient masking
- H04N 19/176: the region being a block, e.g. a macroblock
- H04N 19/70: characterised by syntax aspects related to video coding, e.g. related to compression standards
- H04N 19/91: Entropy coding, e.g. variable length coding [VLC] or arithmetic coding
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION

## Abstract

An image decoding method according to the present document may comprise the steps of: receiving flag information indicating whether or not matrix-based intra prediction (MIP) is to be used for a current block; receiving matrix-based intra prediction (MIP) mode information on the basis of the flag information; generating intra prediction samples for the current block on the basis of the MIP mode information; and generating reconstructed samples for the current block on the basis of the intra prediction samples, wherein a syntax element bin string for the MIP mode information is binarized by using a truncated binarization method.

## Claims

### Claim 1

An image decoding method performed by a decoding apparatus, the method comprising:
obtaining residual information from a bitstream;
obtaining flag information related to whether matrix-based intra prediction (MIP) is used for a current block, from the bitstream;
obtaining MIP mode information based on a value of the flag information being equal to 1, wherein the value of the flag information equal to 1 is related to representing that the MIP is used for the current block;
deriving an MIP matrix based on the MIP mode information and a size of the current block;
generating intra prediction samples for the current block based on the MIP matrix;
deriving transform coefficients based on the residual information;
generating residual samples based on the transform coefficients; and
generating reconstructed samples for the current block based on the intra prediction samples and the residual samples,
wherein the MIP mode information is index information related to the MIP matrix applied to the current block,
wherein a syntax element bin string for the MIP mode information is binarized by a truncated binary (TB) binarization method,
wherein a maximum length of the syntax element bin string is set to different three values based on whether i) a width and a height of the current block are 4, ii) the width and the height of the current block are 8 or less, or iii) the width and the height of the current block are greater than 8, and
wherein the maximum length has a largest value based on the width and the height of the current block being 4.

### Claim 2

An image encoding method performed by an encoding apparatus, the method comprising:
deriving whether matrix-based intra prediction (MIP) is applied to a current block;
deriving an MIP matrix based on that the MIP is applied to the current block;
generating intra prediction samples for the current block based on the MIP matrix;
generating flag information related to whether the MIP is applied to the current block;
deriving residual samples for the current block based on the intra prediction samples;
deriving transform coefficients based on the residual samples;
generating residual information based on the transform coefficients; and
encoding image information including the flag information and the residual information,
wherein the image information includes MIP mode information based on a value of the flag information being equal to 1, wherein the value of the flag information equal to 1 is related to representing that the MIP is applied to the current block,
wherein the MIP mode information is index information related to the MIP matrix applied to the current block,
wherein a syntax element bin string for the MIP mode information is binarized by a truncated binary (TB) binarization method,
wherein a maximum length of the syntax element bin string is set to different three values based on whether i) a width and a height of the current block are 4, ii) the width and the height of the current block are 8 or less, or iii) the width and the height of the current block are greater than 8,
wherein the maximum length has a largest value based on the width and the height of the current block being 4, and
wherein an MIP matrix is derived based on the MIP mode information and a size of the current block.

### Claim 3

A transmitting method of data for an image, the method comprising:
obtaining a bitstream for the image, wherein the bitstream is generated based on deriving whether matrix-based intra prediction (MIP) is applied to a current block, deriving an MIP matrix based on that the MIP is applied to the current block, generating intra prediction samples for the current block based on the MIP matrix, generating flag information related to whether the MIP is applied to the current block, deriving residual samples for the current block based on the intra prediction samples, deriving transform coefficients based on the residual samples, generating residual information based on the transform coefficients, and encoding image information including the flag information and the residual information; and
transmitting the data comprising the bitstream,
wherein the image information includes MIP mode information based on a value of the flag information being equal to 1, wherein the value of the flag information equal to 1 is related to representing that the MIP is applied to the current block,
wherein the MIP mode information is index information related to the MIP matrix applied to the current block,
wherein a syntax element bin string for the MIP mode information is binarized by a truncated binary (TB) binarization method,
wherein a maximum length of the syntax element bin string is set to different three values based on whether i) a width and a height of the current block are 4, ii) the width and the height of the current block are 8 or less, or iii) the width and the height of the current block are greater than 8,
wherein the maximum length has a largest value based on the width and the height of the current block being 4, and
wherein an MIP matrix is derived based on the MIP mode information and a size of the current block.
