Template Matching for Accurate Video Block Partitioning

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing video coding technologies face inefficiencies in deriving optimal partitioning patterns for video blocks, leading to suboptimal compression and reconstruction quality.

Innovation Solution

The method involves template matching (TM) to determine a reference block from candidate blocks based on TM costs, classify samples into classes, and derive a partitioning pattern for the current block, using techniques such as binary image segmentation and edge detection to enhance the reconstruction process.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Manufacturing precision

If template matching based partitioning pattern derivation is used, then partitioning accuracy and reconstruction quality are improved, but computational complexity increases

Engineering Contradiction:
Improvepartitioning accuracyVSAvoidcomputational complexity
Core Design Contradiction:
Manufacturing precisionVSDevice complexity

Solution Approach 1:

The method segments the current block into multiple candidate reference blocks and processes each candidate separately through template matching. This segmentation allows the system to evaluate multiple partitioning patterns in parallel, improving partitioning accuracy while managing computational complexity through structured processing of individual candidates.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The system performs preliminary actions by pre-defining a set of candidate reference blocks and their corresponding template matching costs before processing the current block. This preliminary preparation enables faster decision-making during partitioning pattern derivation, reducing the computational burden during the actual partitioning process.

Inventive Principle:
Principle #10Preliminary action

2Measurement precision

If multiple candidate reference blocks are evaluated through template matching, then partitioning pattern accuracy is improved, but processing time increases

Engineering Contradiction:
Improvepartitioning pattern accuracyVSAvoidprocessing time
Core Design Contradiction:
Measurement precisionVSLoss of time

Solution Approach 1:

The method incorporates feedback mechanisms where template matching costs from candidate reference blocks are used to guide the selection of the optimal partitioning pattern. This feedback loop allows the system to efficiently evaluate multiple candidates and converge on the best partitioning pattern, balancing accuracy with processing time through iterative refinement.

Inventive Principle:
Principle #23Feedback

Solution Approach 2:

The system dynamically adjusts parameters such as template matching thresholds and candidate block selections based on the specific characteristics of the current block. By adapting these parameters to the content being processed, the system maintains high partitioning pattern accuracy while optimizing processing time for different video scenarios.

Inventive Principle:
Principle #35Parameter changes

Data Source

PatentUS12413757B2Template matching based partitioning pattern derivation
Publication Date: 2025.09.09 TENCENT AMERICA LLC
  • US12413757B2 patent drawing
  • US12413757B2 patent drawing
  • US12413757B2 patent drawing

AI summary

A reference block is determined from a plurality of candidate reference blocks for a current block in a current picture based on template matching (TM) costs of the plurality of candidate reference blocks. The TM costs indicate differences between a template of the current block and respective reference templates of the plurality of candidate reference blocks. Samples of the determined reference block are classified into a plurality of classes of samples. A partitioning pattern of the current block is derived based on the determined reference block from a predetermined plurality of partitioning patterns. The derived partitioning pattern indicates a plurality of partitions of the current block. Each of the plurality of classes of the samples of the determined reference block corresponds to a respective partition of the plurality of partitions of the current block. The current block is reconstructed based on the derived partitioning pattern of the current block.