# US 2023/0156200 A1 · Image coding method 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 2023/0156200 A1
- Document ID: US20230156200A1
- Status: Published application
- Kind: A1
- Application number: 18/091,762
- Filed: 2022-12-30
- Published: 2023-05-18
- Earliest claimed: 2017-12-15
- Assignees: LG Electronics Inc.
- Applicants: LG Electronics Inc
- Inventors: Mehdi SALEHIFAR; Seunghwan KIM; Jaehyun LIM; Moonmo KOO
- Web page: https://patentgrep.com/patent/US20230156200A1

## 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/18: the unit being a set of transform coefficients
- H04N 19/136: Incoming video signal characteristics or properties
- H04N 19/176: the region being a block, e.g. a macroblock
- H04N 19/184: the unit being bits, e.g. of the compressed video stream
- H04N 19/46: Embedding additional information in the video signal during the compression process (H04N19/517, H04N19/68, H04N19/70 take precedence)
- H04N 19/60: using transform coding
- H04N 19/61: in combination with predictive coding
- H04N 19/91: Entropy coding, e.g. variable length coding [VLC] or arithmetic coding
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION

## Abstract

An image information decoding method performed by means of a decoding device according to the present invention comprises the steps of: decoding a non-separable secondary transform (NSST) index from a bitstream if NSST is applied to a target block; decoding information relating to transform coefficients with respect to the target block from the bitstream on the basis of the decoded NSST index; and deriving the transform coefficients with respect to the target block on the basis of the decoded information relating to the transform coefficients, wherein the NSST index is decoded prior to the information relating to the transform coefficients with respect to the target block.

## Claims

### Claim at position 1

-15. (canceled)

### Claim 16

A decoding apparatus for image decoding, the decoding apparatus comprising:
a memory; and
at least one processor connected to the memory, the at least one processor configured to:
decode a secondary transform index from a bitstream;
decode information about transform coefficients for a target block from the bitstream;
generate the transform coefficients for the target block based on the decoded information about the transform coefficients;
derive modified transform coefficients for the target block based on a secondary inverse transform using the transform coefficients and the secondary transform index;
derive residual samples for the target block based on an inverse transform using the modified transform coefficients; and
generate reconstructed samples based on the residual samples,
wherein for the target block of which the secondary transform index is greater than 0, the secondary inverse transform is applied to the transform coefficients in an input target region included in the target block,
wherein for the target block to which the secondary inverse transform is applied, the transform coefficients for the target block in a range of an R+1th to Nth transform coefficients are equal to 0,
wherein the secondary inverse transform is applied based on a reduced inverse transform,
wherein for the reduced inverse transform, a number of transform coefficients in the input target region to which the reduced inverse transform is applied is R, a number of the modified transform coefficients in an output target region is N, and the R is smaller than the N,
wherein the information about the transform coefficients for the target block includes information about a location of a last non-zero transform coefficient, and
wherein for the target block to which the secondary inverse transform is applied, the last non-zero transform coefficient is one of transform coefficients for the target block in the range of the 1th to Rth transform coefficients.

### Claim 17 (depends on 16)

The decoding apparatus of claim 16, wherein the information about the transform coefficients for the target block includes: at least one of group flag information indicating whether a non-zero transform coefficient is included in a subgroup of the target block, and information about the R.

### Claim 18 (depends on 17)

The decoding apparatus of claim 17, wherein the group flag information corresponding to the subgroup of the target block comprising only the transform coefficients for the target block in the range of the R+1th to Nth transform coefficients is not decoded from the bitstream.

### Claim 19 (depends on 17)

The decoding apparatus of claim 17, wherein the group flag information corresponding to a subgroup other than a first subgroup, a last subgroup, and the subgroup comprising only the transform coefficients for the target block in the range of the R+1th to Nth transform coefficients among at least one subgroup of the target block is decoded from the bitstream.

### Claim 20 (depends on 19)

The decoding apparatus of claim 19, wherein when the group flag information decoded from the bitstream indicates 0, all transform coefficients included in the subblock corresponding to the group flag information indicating 0 are each determined as 0.

### Claim 21 (depends on 19)

The decoding apparatus of claim 19, wherein when the group flag information decoded from the bitstream indicates 1, a value of each of the transform coefficients included in the subblock corresponding to the group flag information indicating 1 is decoded.

### Claim 22 (depends on 16)

The decoding apparatus of claim 16, wherein the secondary transform index is decoded prior to the information about the transform coefficients for the target block, and
wherein the location of the last non-zero transform coefficient is determined based on the secondary transform index.

### Claim 23 (depends on 22)

The decoding apparatus of claim 22, wherein based on the secondary transform index being greater than 0 and the last non-zero transform coefficient is a subsequent transform coefficient to the Nth transform coefficient, location information indicating one of locations of the R+1th to Nth transform coefficients are used as the information about the location of the last non-zero transform coefficient which is the subsequent transform coefficient to the Nth transform coefficient.

### Claim 24 (depends on 23)

The decoding apparatus of claim 23, wherein the location information includes x coordinate information and y coordinate information,
wherein based on the location information indicating one of locations of the R+1th to Nth transform coefficients, an x coordinate of the last non-zero transform coefficient which is the subsequent transform coefficient to the Nth transform coefficient is modified as a value of the x coordinate information plus 4 or a y coordinate of the last non-zero transform coefficient which is the subsequent transform coefficient to the Nth transform coefficient is modified as a value of the y coordinate information plus 4.

### Claim 25

A 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;
generate a secondary transform index;
generate modified transform coefficients for the target block based on a transform using the residual samples;
generate transform coefficients for the target block based on a secondary transform using the secondary transform index and the modified transform coefficients for the target block;
generate information about the transform coefficients for the target block; and
encode the information about the transform coefficients and the secondary transform index,
wherein the secondary transform index represents whether the secondary transform is applied,
wherein for a case that the secondary transform is applied to the modified transform coefficients in an input target region included in the target block, the secondary transform index is greater than 0,
wherein for the target block to which the secondary transform is applied, the transform coefficients for the target block in a range of an R+1th to Nth transform coefficients are equal to 0,
wherein the secondary transform is applied based on a reduced transform,
wherein for the reduced transform, a number of modified transform coefficients in the input target region to which the reduced transform is applied is N, a number of the transform coefficients in an output target region is R, and the R is smaller than the N,
wherein the information about the transform coefficients for the target block includes information about a location of a last non-zero transform coefficient, and
wherein for the target block to which the secondary transform is applied, the last non-zero transform coefficient is one of transform coefficients for the target block in the range of the 1th to Rth transform coefficients.

### Claim 26 (depends on 25)

The encoding apparatus of claim 25, wherein the information about the transform coefficients for the target block includes: at least one of group flag information indicating whether a non-zero transform coefficient is included in a subgroup of the target block, and information about the R.

### Claim 27 (depends on 26)

The encoding apparatus of claim 26, wherein the group flag information corresponding to the subgroup of the target block comprising only the transform coefficients for the target block in the range of the R+1th to Nth transform coefficients is not encoded.

### Claim 28 (depends on 25)

The encoding apparatus of claim 25, wherein the secondary transform index is encoded prior to the information about the transform coefficients for the target block, and
wherein the location of the last non-zero transform coefficient is determined based on the secondary transform index.

### Claim 29 (depends on 28)

The encoding apparatus of claim 28, wherein based on the secondary transform index being greater than 0 and the last non-zero transform coefficient is a subsequent transform coefficient to the Nth transform coefficient, location information indicating one of locations of the R+1th to Nth transform coefficients are used as the information about the location of the last non-zero transform coefficient which is the subsequent transform coefficient to the Nth transform coefficient.

### Claim 30 (depends on 29)

The encoding apparatus of claim 29, wherein the location information includes x coordinate information and y coordinate information,
wherein based on the location information indicating one of locations of the R+1th to Nth transform coefficients, an x coordinate of the last non-zero transform coefficient which is the subsequent transform coefficient to the Nth transform coefficient is modified as a value of the x coordinate information plus 4 or a y coordinate of the last non-zero transform coefficient which is the subsequent transform coefficient to the Nth transform coefficient is modified as a value of the y coordinate information plus 4.

### Claim 31 (depends on 25)

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

### Claim 32

A transmission apparatus of data for image, the transmission apparatus comprising:
at least one processor configured to obtain bitstream generated based on deriving residual samples for a target block, generating a secondary transform index, generating modified transform coefficients for the target block based on a transform using the residual samples, generating transform coefficients for the target block based on a secondary transform using the secondary transform index and the modified transform coefficients for the target block, generating information about the transform coefficients for the target block, and encoding the information about the transform coefficients and the secondary transform index; and
a transmitter configured to transmit the data comprising the bitstream,
wherein the secondary transform index represents whether the secondary transform is applied,
wherein for a case that the secondary transform is applied to the modified transform coefficients in an input target region included in the target block, the secondary transform index is greater than 0,
wherein for the target block to which the secondary transform is applied, the transform coefficients for the target block in a range of an R+1th to Nth transform coefficients are equal to 0,
wherein the secondary transform is applied based on a reduced transform,
wherein for the reduced transform, a number of modified transform coefficients in the input target region to which the reduced transform is applied is N, a number of the transform coefficients in an output target region is R, and the R is smaller than the N,
wherein the information about the transform coefficients for the target block includes information about a location of a last non-zero transform coefficient, and
wherein for the target block to which the secondary transform is applied, the last non-zero transform coefficient is one of transform coefficients for the target block in the range of the 1th to Rth transform coefficients.
