# US 2026/0101029 A1 · Apparatus and method for encoding and decoding image based on reference block

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

- Number: US 2026/0101029 A1
- Document ID: US20260101029A1
- Status: Published application
- Kind: A1
- Application number: 19/405,956
- Filed: 2025-12-02
- Published: 2026-04-09
- Earliest claimed: 2023-06-02
- Assignees: Samsung Electronics Co., Ltd.
- Applicants: Samsung Electronics Co., Ltd.
- Inventors: Kyungah KIM; Yinji PIAO; Minwoo PARK; Kwangpyo CHOI
- Web page: https://patentgrep.com/patent/US20260101029A1

## 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/577: Motion compensation with bidirectional frame interpolation, i.e. using B-pictures
- H04N 19/109: among a plurality of temporal predictive coding modes
- H04N 19/11: among a plurality of spatial predictive coding modes
- H04N 19/117: Filters, e.g. for pre-processing or post-processing (sub-band filter banks H04N19/635)
- 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/137: Motion inside a coding unit, e.g. average field, frame or block difference
- H04N 19/139: Analysis of motion vectors, e.g. their magnitude, direction, variance or reliability
- H04N 19/147: according to rate distortion criteria (rate-distortion as a criterion for motion estimation H04N19/567)
- H04N 19/157: Assigned coding mode, i.e. the coding mode being predefined or preselected to be further used for selection of another element or parameter
- 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/196: being specially adapted for the computation of encoding parameters, e.g. by averaging previously computed encoding parameters (processing of motion vectors H04N19/513)
- H04N 19/46: Embedding additional information in the video signal during the compression process (H04N19/517, H04N19/68, H04N19/70 take precedence)
- H04N 19/503: involving temporal prediction (adaptive coding with adaptive selection between spatial and temporal predictive coding H04N19/107; adaptive coding with adaptive selection among a plurality of temporal predictive coding modes H04N19/109)
- H04N 19/51: Motion estimation or motion compensation
- H04N 19/52: by predictive encoding
- H04N 19/57: Motion estimation characterised by a search window with variable size or shape
- H04N 19/573: Motion compensation with multiple frame prediction using two or more reference frames in a given prediction direction
- H04N 19/593: involving spatial prediction techniques
- H04N 19/61: in combination with predictive coding
- H04N 19/70: characterised by syntax aspects related to video coding, e.g. related to compression standards
- H04N 19/82: involving filtering within a prediction loop
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION

## Abstract

A method for image decoding includes determining a first reference block in a first reference image and a second reference block in a second reference image corresponding to a current block; determining weight information for combining the first reference block and the second reference block based on a current reference template of the current block, a first reference template of the first reference block, and a second reference template of the second reference block; generating a prediction block of the current block by combining the first reference block and the second reference block based on the weight information; and reconstructing the current block based on the prediction block.

## Claims

### Claim 1

A method for image decoding, the method comprising:
determining a first reference block in a first reference image and a second reference block in a second reference image corresponding to a current block;
determining weight information for combining the first reference block and the second reference block based on a current reference template of the current block, a first reference template of the first reference block, and a second reference template of the second reference block;
generating a prediction block of the current block by combining the first reference block and the second reference block based on the weight information; and
reconstructing the current block based on the prediction block.

### Claim 2 (depends on 1)

The method of claim 1, wherein the determining of the weight information comprises determining a weight to be applied to the first reference block based on at least one sample of the first reference template, at least one sample of the second reference template, and at least one sample of the current reference template.

### Claim 3 (depends on 2)

The method of claim 2, wherein the weight is determined by performing linear regression analysis to minimize a difference between a value obtained by combining the first reference template and the second reference template and a value of the current reference template, with respect to at least one sample of the first reference template, at least one sample of the second reference template, and at least one sample of the current reference template.

### Claim 4 (depends on 2)

The method of claim 2, wherein the weight is determined based on a left weight or an above weight,
wherein the left weight is determined based on at least one sample among left samples of the first reference template, at least one sample among left samples of the second reference template, and at least one sample among left samples of the current reference template, and
wherein the above weight is determined based on at least one sample among above samples of the first reference template, at least one sample among above samples of the second reference template, and at least one sample among above samples of the current reference template.

### Claim 5 (depends on 1)

The method of claim 1, wherein the determining of the weight information comprises determining a left weight to be applied to a bottom-left sample area of the first reference block, and an above weight to be applied to a top-right sample area of the first reference block, based on the at least one sample of the first reference template, the at least one sample of the second reference template, and the at least one sample of the current reference template.

### Claim 6 (depends on 4)

The method of claim 4, wherein the left weight is determined based on one sample among the left samples of the first reference template, one sample among the left samples of the second reference template, and one sample among the left samples of the current reference template, and
wherein the above weight is determined based on one sample among the above samples of the first reference template, one sample among the above samples of the second reference template, and one sample among the above samples of the current reference template.

### Claim 7 (depends on 4)

The method of claim 4, wherein the left weight is determined by performing linear regression analysis to minimize a difference between a value obtained by combining the left samples of the first reference template and the left samples of the second reference template and a value of the left samples of the current reference template, with respect to a plurality of samples among the left samples of the first reference template, a plurality of samples among the left samples of the second reference template, and a plurality of samples among the left samples of the current reference template, and
wherein the above weight is determined by performing linear regression analysis to minimize a difference between a value obtained by combining the above samples of the first reference template and the above samples of the second reference template and a value of the above samples of the current reference template, with respect to a plurality of samples among the above samples of the first reference template, a plurality of samples among the above samples of the second reference template, and a plurality of samples among the above samples of the current reference template.

### Claim 8 (depends on 4)

The method of claim 4, wherein the left weight is an average value of elements of a left weight matrix obtained based on the left samples of the first reference template, the left samples of the second reference template, and the left samples of the current reference template, the left weight matrix corresponding to the left samples of the first reference template, and
wherein the above weight is an average value of elements of an above weight matrix obtained based on the above samples of the first reference template, the above samples of the second reference template, and the above samples of the current reference template, the above weight matrix corresponding to the above samples of the first reference template.

### Claim 9 (depends on 1)

The method of claim 1, wherein the determining of the weight information comprises:
obtaining a left weight matrix corresponding to left samples of the first reference template based on left samples of the first reference template, left samples of the second reference template, and left samples of the current reference template;
obtaining an above weight matrix corresponding to above samples of the first reference template based on above samples of the first reference template, above samples of the second reference template, and above samples of the current reference template; and
determining, based on at least one of the left weight matrix or the above weight matrix, a weight filter indicating weights that respectively correspond to samples included in the first reference block, the weight filter applied to the samples included in the first reference block.

### Claim 10 (depends on 9)

The method of claim 9, wherein the weight filter is determined based on a column of the left weight matrix and a row of the above weight matrix.

### Claim 11 (depends on 9)

The method of claim 9, wherein the weight filter is determined based on an average of at least one element included in each row of the left weight matrix and an average of at least one element included in each column of the above weight matrix.

### Claim 12 (depends on 9)

The method of claim 9, wherein the weight filter is determined by applying a preset ratio to at least one element included in each row of the left weight matrix and to at least one element included in each column of the above weight matrix.

### Claim 13 (depends on 2)

The method of claim 2, wherein the generating of the prediction block of the current block comprises:
identifying the weight as a first weight to be applied to the first reference block;
obtaining, based on the weight, a second weight to be applied to the second reference block;
applying the first weight to the first reference block; and
applying the second weight to the second reference block.

### Claim 14

An method for image encoding, the method comprising:
determining a first reference block in a first reference image and a second reference block in a second reference image corresponding to a current block;
determining weight information for combining the first reference block and the second reference block based on a current reference template of the current block, a first reference template of the first reference block, and a second reference template of the second reference block;
generating a prediction block of the current block by combining the first reference block and the second reference block using the weight information; and
encoding the current block using the prediction block.

### Claim 15

A non-transitory computer-readable medium having stored thereon instructions that, when executed by at least one processor individually or collectively, cause the at least one processor to:
determine a first reference block in a first reference image and a second reference block in a second reference image corresponding to a current block;
obtain a current reference template indicating a reference template of the current block, a first reference template indicating a reference template of the first reference block, and a second reference template indicating a reference template of the second reference block;
determine weight information for combining the first reference block and the second reference block, based on the current reference template, the first reference template, and the second reference template;
generate a prediction block of the current block based on a combination the first reference block and the second reference block according to the weight information; and
encode the current block based on the prediction block to generate motion information of the current block to be stored in the non-transitory computer-readable medium.

### Claim 16 (depends on 15)

The non-transitory computer-readable medium of claim 15, wherein the instructions further comprise instructions that, when executed by at least one processor individually or collectively, cause the at least one processor to generate a bitstream comprising the motion information as a result of encoding of the current block.

### Claim 17 (depends on 15)

The non-transitory computer-readable medium of claim 15, wherein the instructions that cause the at least one processor to determine weight information further comprise instructions that, when executed by the at least one processor individually or collectively, cause the at least one processor to determine a left weight to be applied to a bottom-left sample area of the first reference block, and an above weight to be applied to a top-right sample area of the first reference block, based on the at least one sample of the first reference template, the at least one sample of the second reference template, and the at least one sample of the current reference template.

### Claim 18 (depends on 17)

The non-transitory computer-readable medium of claim 17, wherein the left weight is an average value of elements of a left weight matrix obtained based on the left samples of the first reference template, the left samples of the second reference template, and the left samples of the current reference template, the left weight matrix corresponding to the left samples of the first reference template, and
wherein the above weight is an average value of elements of an above weight matrix obtained based on the above samples of the first reference template, the above samples of the second reference template, and the above samples of the current reference template, the above weight matrix corresponding to the above samples of the first reference template.

### Claim 19 (depends on 15)

The non-transitory computer-readable medium of claim 15, wherein the instructions that cause the at least one processor to determine weight information further comprise instructions that, when executed by the at least one processor individually or collectively, cause the at least one processor to:
obtain a left weight matrix corresponding to left samples of the first reference template based on left samples of the first reference template, left samples of the second reference template, and left samples of the current reference template;
obtain an above weight matrix corresponding to above samples of the first reference template based on above samples of the first reference template, above samples of the second reference template, and above samples of the current reference template; and
determine, based on at least one of the left weight matrix or the above weight matrix, a weight filter indicating weights that respectively correspond to samples included in the first reference block, the weight filter applied to the samples included in the first reference block.

### Claim 20 (depends on 19)

The non-transitory computer-readable medium of claim 19, wherein the weight filter is determined based on an average of at least one element included in each row of the left weight matrix and an average of at least one element included in each column of the above weight matrix.
