# US 2026/0230623 A1 · Method and apparatus for encoding/decoding image and recording medium for storing bitstream

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

- Number: US 2026/0230623 A1
- Document ID: US20260230623A1
- Status: Published application
- Kind: A1
- Application number: 19/147,784
- Filed: 2024-02-29
- Published: 2026-08-06
- Earliest claimed: 2023-03-02
- Assignees: Hyundai Motor Company; Kia Corporation
- Applicants: Hyundai Motor Company; Kia Corporation
- Inventors: Jungah CHOI; Jin HEO; Seung Wook PARK
- Web page: https://patentgrep.com/patent/US20260230623A1

## CPC

- H04N 19/105: Selection of the reference unit for prediction within a chosen coding or prediction mode, e.g. adaptive choice of position and number of pixels used for prediction
- H04N 19/136: Incoming video signal characteristics or properties
- H04N 19/11: among a plurality of spatial predictive coding modes
- H04N 19/119: Adaptive subdivision aspects, e.g. subdivision of a picture into rectangular or non-rectangular coding blocks
- 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/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/184: the unit being bits, e.g. of the compressed video stream
- 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

A method and apparatus for encoding/decoding an image, a recording medium for storing a bitstream, and a transmission method are provided. The method for decoding an image comprises determining whether a current block is in intra template matching mode, determining a template shape of the current block among a plurality of template shape candidates, searching for a reference template based on a current template according to the template shape, and generating a prediction block of the current block based on the reference template.

## Claims

### Claim 1

A method for decoding an image, the method comprising:
determining whether a current block is in intra template matching mode;
determining a template shape of the current block among a plurality of template shape candidates;
searching for a reference template based on a current template according to the template shape; and
generating a prediction block of the current block based on the reference template.

### Claim 2 (depends on 1)

The method of claim 1, wherein whether the current block is in intra template matching is determined based on information that is signaled through a bitstream, and
wherein the information that is signaled through the bitstream includes information indicating whether the intra template matching mode of the current block uses the plurality of template shape candidates.

### Claim 3 (depends on 1)

The method of claim 1, wherein the prediction block of the current block is generated through a weighted sum of matching blocks adjacent to different reference templates corresponding to the current template.

### Claim 4 (depends on 3)

The method of claim 3, wherein the weight used for the weighted sum of the matching blocks is determined based on a cost value of each of the different reference templates.

### Claim 5 (depends on 4)

The method of claim 4, wherein the weight used for the weighted sum of the matching blocks is determined based on a look-up table corresponding to the cost value of each of the different reference templates.

### Claim 6 (depends on 4)

The method of claim 4, wherein when a cost value of at least one of the different reference templates is greater than a threshold value, the prediction block of the current block is generated through the weighted sum of the matching blocks that are different each other, and
wherein the threshold value is set based on a cost value of the plurality of template shape candidates.

### Claim 7 (depends on 1)

The method of claim 1, wherein the current template is determined among the plurality of template shape candidates, based on the information that is signaled through the bitstream.

### Claim 8 (depends on 1)

The method of claim 1, wherein the current template is determined based on a shape of a reference template with highest similarity to the current template among the plurality of template shape candidates.

### Claim 9

A method for encoding an image, the method comprising:
determining whether a current block is in intra template matching mode;
determining a template shape of the current block among a plurality of template shape candidates;
searching for a reference template based on a current template according to the template shape; and
generating a prediction block of the current block based on the reference template.

### Claim 10

A non-transitory computer-readable recording medium for storing a bitstream, which is generated by a method for encoding an image,
wherein the method for encoding an image comprises:
determining whether a current block is in intra template matching mode;
determining a template shape of the current block among a plurality of template shape candidates;
searching for a reference template based on a current template according to the template shape; and
generating a prediction block of the current block based on the reference template.

### Claim 11

(canceled)
