# US 11,445,204 B2 · 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 11,445,204 B2
- Document ID: US11445204B2
- Status: Granted
- Kind: B2
- Application number: 17/526,930
- Filed: 2021-11-15
- Published: 2022-03-10
- Granted: 2022-09-13
- Earliest claimed: 2019-06-03
- Assignees: LG Electronics Inc.
- Applicants: LG Electronics Inc.
- Inventors: Mehdi Salehifar; Seunghwan Kim
- Web page: https://patentgrep.com/patent/US11445204B2

## 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:
receiving flag information related to whether matrix-based intra prediction (MIP) is used for a current block;
receiving matrix-based intra prediction (MIP) mode information based on the flag information;
generating intra prediction samples for the current block based on the MIP mode information; and
generating reconstructed samples for the current block based on the intra prediction samples,
wherein the MIP mode information is index information related to an MIP matrix applied to the current block;
wherein a syntax element bin string for the MIP mode information is binarized by a truncated binarization method,
wherein a maximum length of the syntax element bin string is set to different three values based on a size of the current block, and
wherein the maximum length has a largest value based on a width and a height of the current block being 4.

### Claim 2 (depends on 1)

The image decoding method of claim 1, wherein the MIP mode information is decoded in a bypass method.

### Claim 3 (depends on 1)

The image decoding method of claim 1, wherein the generating of the intra prediction samples comprises:
deriving reduced boundary samples by downsampling reference samples adjacent to the current block;
deriving reduced prediction samples based on a multiplication operation of the reduced boundary samples and an MIP matrix; and
generating the intra prediction samples for the current block by upsampling the reduced prediction samples.

### Claim 4 (depends on 3)

The image decoding method of claim 3, wherein the MIP matrix is derived based on the size of the current block and the index information.

### Claim 5 (depends on 4)

The image decoding method of claim 4, wherein the MIP matrix is selectable from any one of three matrix sets classified according to the size of the current block, and
wherein each of the three matrix sets comprises a plurality of MIP matrices.

### Claim 6

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 intra prediction samples for the current block based on the MIP when the MIP is applied to the current block;
deriving residual samples for the current block based on the intra prediction samples; and
encoding information on the residual samples and matrix-based intra prediction (MIP) mode information,
wherein the MIP mode information is index information related to an MIP matrix applied to the current block;
wherein a syntax element bin string for the MIP mode information is binarized by a truncated binarization method,
wherein a maximum length of the syntax element bin string is set to different three values based on a size of the current block, and
wherein the maximum length has a largest value based on a width and a height of the current block being 4.

### Claim 7 (depends on 6)

The image encoding method of claim 6, wherein the MIP mode information is encoded in a bypass method.

### Claim 8 (depends on 6)

The image encoding method of claim 6, wherein the MIP matrix is selected from any one of three matrix sets classified according to the size of the current block,
wherein each of the three matrix sets includes a plurality of MIP matrices, and
wherein the MIP mode information is index information related to any one of the plurality of MIP matrices included in one matrix set.

### Claim 9 (depends on 6)

The image encoding method of claim 6, wherein the generating of the intra prediction samples comprises:
deriving reduced boundary samples by downsampling reference samples adjacent to the current block;
deriving reduced prediction samples based on a multiplication operation of the reduced boundary samples and an MIP matrix; and
generating the intra prediction samples for the current block by upsampling the reduced prediction samples.

### Claim 10

A non-transitory computer-readable digital storage medium that stores a bitstream generated by a method, the method comprising:
deriving whether matrix-based intra prediction (MIP) is applied to a current block;
deriving intra prediction samples for the current block based on the MIP when the MIP is applied to the current block;
deriving residual samples for the current block based on the intra prediction samples; and
encoding information on the residual samples and matrix-based intra prediction (MIP) mode information to generate the bitstream,
wherein the MIP mode information is index information related to an MIP matrix applied to the current block,
wherein a syntax element bin string for the MIP mode information is binarized by a truncated binarization method,
wherein a maximum length of the syntax element bin string is set to different three values based on a size of the current block, and
wherein the maximum length has a largest value based on a width and a height of the current block being 4.
