# US 12,003,713 B2 · Image encoding/decoding method and apparatus using sample filtering

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

- Number: US 12,003,713 B2
- Document ID: US12003713B2
- Status: Granted
- Kind: B2
- Application number: 17/714,009
- Filed: 2022-04-05
- Published: 2022-07-21
- Granted: 2024-06-04
- Earliest claimed: 2018-03-09
- Assignees: Intellectual Discovery Co., Ltd.
- Applicants: Intellectual Discovery Co., Ltd.
- Inventors: Jin Ho Lee; Jung Won Kang; Ha Hyun Lee; Sung Chang Lim; Hui Yong Kim
- Web page: https://patentgrep.com/patent/US12003713B2

## CPC

- H04N 19/117: Filters, e.g. for pre-processing or post-processing (sub-band filter banks H04N19/635)
- 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/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/52: by predictive encoding
- H04N 19/593: involving spatial prediction techniques
- H04N 19/82: involving filtering within a prediction loop
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION

## Abstract

There is provided an image encoding/decoding method and apparatus. The image encoding method of the present invention includes: determining whether or not to apply filtering to a filtering target sample; determining a filter type on the basis of the determination; and applying filtering to the filtering target sample by using the determined filter type.

## Claims

### Claim 1

A video decoding method comprising:
determining a prediction sample of a current block based on an intra prediction mode of the current block;
determining whether to filter the prediction sample of the current block; and
in response that the prediction sample is determined to be filtered, filtering the prediction sample of the current block based on a position of the prediction sample,
wherein whether to filter the prediction sample of the current block is determined based on a reference line index indicating a reference line referenced by the current block among at least one reference line near the current block,
wherein the reference line index is set to 0 to indicate a first reference line immediately adjacent to the current block,
wherein the prediction sample of the current block is determined not to be filtered when the reference line index does not indicate the first reference line immediately adjacent to the current block,
wherein the prediction sample of the current block is filtered based on a weighted sum of the prediction sample and at least one reference sample of the prediction sample, and the at least one reference sample is determined based on a position of the prediction sample,
wherein the weighted sum is calculated by using weights that are applied to the prediction sample and the at least one reference sample, and
wherein a weight for a reference sample among the at least one reference sample decreases and a weight for the prediction sample increases as a distance between the prediction sample and the reference sample increases.

### Claim 2 (depends on 1)

The video decoding method of claim 1, wherein the at least one reference sample includes a top reference sample and a left reference sample,
the top reference sample is located above the prediction sample, and
the left reference sample is located left to the prediction sample.

### Claim 3

A video encoding method comprising:
determining a prediction sample of a current block based on an intra prediction mode of the current block;
determining whether to filter the prediction sample of the current block; and
in response that the prediction sample is determined to be filtered, filtering the prediction sample of the current block based on a position of the prediction sample,
wherein whether to filter the prediction sample of the current block is determined based on a reference line index indicating a reference line referenced by the current block among at least one reference line near the current block,
wherein the reference line index is set to 0 to indicate a first reference line immediately adjacent to the current block,
wherein the prediction sample of the current block is determined not to be filtered when the reference line index does not indicate the first reference line immediately adjacent to the current block,
wherein the prediction sample of the current block is filtered based on a weighted sum of the prediction sample and at least one reference sample of the prediction sample, and the at least one reference sample is determined based on a position of the prediction sample,
wherein the weighted sum is calculated by using weights that are applied to the prediction sample and the at least one reference sample, and
wherein a weight for a reference sample among the at least one reference sample decreases and a weight for the prediction sample increases as a distance between the prediction sample and the reference sample increases.

### Claim 4

A non-transitory computer readable recording medium storing a bitstream which is generated by using an image encoding method, wherein the image encoding method comprises:
determining a prediction sample of a current block based on an intra prediction mode of the current block;
determining whether to filter the prediction sample of the current block; and
in response that the prediction sample is determined to be filtered, filtering the prediction sample of the current block based on a position of the prediction sample,
wherein whether to filter the prediction sample of the current block is determined based on a reference line index indicating a reference line referenced by the current block among at least one reference line near the current block,
wherein the reference line index is set to 0 to indicate a first reference line immediately adjacent to the current block,
wherein the prediction sample of the current block is determined not to be filtered when the reference line index does not indicate the first reference line immediately adjacent to the current block,
wherein the prediction sample of the current block is filtered based on a weighted sum of the prediction sample and at least one reference sample of the prediction sample, and the at least one reference sample is determined based on a position of the prediction sample,
wherein the weighted sum is calculated by using weights that are applied to the prediction sample and the at least one reference sample, and
wherein a weight for a reference sample among the at least one reference sample decreases and a weight for the prediction sample increases as a distance between the prediction sample and the reference sample increases.
