# US 2025/0166212 A1 · Image processing apparatus and method

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

- Number: US 2025/0166212 A1
- Document ID: US20250166212A1
- Status: Published application
- Kind: A1
- Application number: 18/818,609
- Filed: 2024-08-29
- Published: 2025-05-22
- Earliest claimed: 2023-11-17
- Assignees: Realtek Semiconductor Corp.
- Applicants: Realtek Semiconductor Corporation
- Inventors: Chung-Ping YU; Hsin Chieh WANG
- Web page: https://patentgrep.com/patent/US20250166212A1

## CPC

- G06T 7/248: {involving reference images or patches}
- G06T 3/4007: based on interpolation, e.g. bilinear interpolation (image demosaicing G06T3/4015; edge-driven or edge-based scaling G06T3/403)
- G06T 5/50: using two or more images, e.g. averaging or subtraction
- G06T 5/73: Deblurring; Sharpening
- G06T 7/246: using feature-based methods, e.g. the tracking of corners or segments
- G06T 2207/10016: Video; Image sequence
- G06T 2207/20016: Hierarchical, coarse-to-fine, multiscale or multiresolution image processing; Pyramid transform
- G06T 2207/20201: Motion blur correction
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL

## Abstract

An image processing apparatus is configured to execute the following steps. A first motion estimation is performed on a down-sized current frame and a down-sized reference frame to generate first motion vectors and a first reliability corresponding to the first motion vectors. An n-th motion estimation is performed on a current frame and a reference frame based on the first motion vectors and the first reliability to generate n-th motion vectors and a n-th reliability corresponding to the n-th motion vectors. A compensated frame between the current frame and the reference frame is generated based on the n-th motion vectors and the n-th reliability.

## Claims

### Claim 1

An image processing apparatus, comprising:
a storage, configured to store a current frame and a reference frame; and
a processor, coupled to the storage, configured to execute the following operations:
downsizing the current frame and the reference frame to generate a down-sized current frame and a down-sized reference frame respectively;
performing a first motion estimation on the down-sized current frame and the down-sized reference frame to generate a plurality of first motion vectors and a first reliability corresponding to the first motion vectors;
performing an n-th motion estimation on the current frame and the reference frame based on the first motion vectors and the first reliability to generate a plurality of n-th motion vectors and a n-th reliability corresponding to the n-th motion vectors; and
generating a compensated frame between the current frame and the reference frame based on the n-th motion vectors and the n-th reliability.

### Claim 2 (depends on 1)

The image processing apparatus of claim 1, wherein the operation of performing the first motion estimation comprises:
calculating the first reliability based on the first motion vectors and a plurality of sum of absolute differences corresponding to the first motion vectors, wherein the sum of absolute differences and the first reliability are positively related.

### Claim 3 (depends on 2)

The image processing apparatus of claim 2, wherein the operation of calculating the first reliability based on the first motion vectors and the sum of absolute differences comprises:
calculating the first reliability based on a regional motion vector, a global motion vector, the first motion vectors, and the sum of absolute differences, wherein a first relation between the first motion vectors and the regional motion vector and the first reliability are positively related, and a second relation between the first motion vectors and the global motion vector and the first reliability are positively related.

### Claim 4 (depends on 1)

The image processing apparatus of claim 1, wherein the operation of performing the n-th motion estimation comprises:
generating an intermediate reliability based on the n-th motion vectors; and
generating the n-th reliability based on the first reliability and the intermediate reliability, wherein the first reliability and the n-th reliability are positively related, and the intermediate reliability and the n-th reliability are positively related.

### Claim 5 (depends on 1)

The image processing apparatus of claim 1, wherein the operation of performing the n-th motion estimation comprises:
calculating a plurality of matching degrees of a plurality of candidate vectors; and
taking one of the candidate vectors corresponding to a highest matching degree of the matching degrees as one of the n-th motion vectors.

### Claim 6 (depends on 5)

The image processing apparatus of claim 5, wherein the operation of calculating the matching degrees comprises:
calculating a vector difference between one of the candidate vectors and one of the first motion vectors corresponding to the one of the candidate vectors;
calculating a punish value based on the vector difference and the first reliability, wherein the punish value is positively related to the vector difference and the first reliability; and
reducing one of the matching degrees of the one of the candidate vectors based on the punish value.

### Claim 7 (depends on 1)

The image processing apparatus of claim 1, wherein the n-th motion estimation comprises a plurality of scan operations, and the scan operations comprise:
calculating a searching window size based on the first reliability, wherein the first reliability is linearly related to the searching window size; and
generating a plurality of candidate vectors in a searching window having the searching window size.

### Claim 8 (depends on 1)

The image processing apparatus of claim 1, wherein the operation of generating the compensated frame comprises:
selecting one of the current frame and the reference frame as a compensation target; and
performing a motion compensation based on the compensation target, the n-th reliability, and the n-th motion vectors to generate the compensated frame corresponding to the compensation target, wherein the n-th reliability is negatively related to a similarity between the compensated frame and the compensation target.

### Claim 9 (depends on 8)

The image processing apparatus of claim 8, wherein there is an initial time difference between the compensated frame and the compensation target, and the processor is further configured to:
calculating an adjustment value based on the initial time difference and the n-th reliability, wherein the n-th reliability and the adjustment value are negatively related; and
adjusting the initial time difference based on the adjustment value to determine an adjusted time difference between the compensated frame and the compensation target.

### Claim 10 (depends on 9)

The image processing apparatus of claim 9, wherein the operation of determining the adjusted time difference comprises:
moving the compensated frame towards the compensation target on a timeline.

### Claim 11

An image processing method, being adapted for use in an electronic apparatus, wherein the image processing method comprises the following steps:
downsizing a current frame and a reference frame to generate a down-sized current frame and a down-sized reference frame respectively;
performing a first motion estimation on the down-sized current frame and the down-sized reference frame to generate a plurality of first motion vectors and a first reliability corresponding to the first motion vectors;
performing an n-th motion estimation on the current frame and the reference frame based on the first motion vectors and the first reliability to generate a plurality of n-th motion vectors and a n-th reliability corresponding to the n-th motion vectors; and
generating a compensated frame between the current frame and the reference frame based on the n-th motion vectors and the n-th reliability.

### Claim 12 (depends on 11)

The image processing method of claim 11, wherein the step of performing the first motion estimation comprises:
calculating the first reliability based on the first motion vectors and a plurality of sum of absolute differences corresponding to the first motion vectors, wherein the sum of absolute differences and the first reliability are positively related.

### Claim 13 (depends on 12)

The image processing method of claim 12, wherein the step of calculating the first reliability based on the first motion vectors and the sum of absolute differences comprises:
calculating the first reliability based on a regional motion vector, a global motion vector, the first motion vectors, and the sum of absolute differences, wherein a first relation between the first motion vectors and the regional motion vector and the first reliability are positively related, and a second relation between the first motion vectors and the global motion vector and the first reliability are positively related.

### Claim 14 (depends on 11)

The image processing method of claim 11, wherein the step of performing the n-th motion estimation comprises:
generating an intermediate reliability based on the n-th motion vectors; and
generating the n-th reliability based on the first reliability and the intermediate reliability, wherein the first reliability and the n-th reliability are positively related, and the intermediate reliability and the n-th reliability are positively related.

### Claim 15 (depends on 11)

The image processing method of claim 11, wherein the step of performing the n-th motion estimation comprises:
calculating a plurality of matching degrees of a plurality of candidate vectors; and
taking one of the candidate vectors corresponding to a highest matching degree of the matching degrees as one of the n-th motion vectors.

### Claim 16 (depends on 15)

The image processing method of claim 15, wherein the step of calculating the matching degrees comprises:
calculating a vector difference between one of the candidate vectors and one of the first motion vectors corresponding to the one of the candidate vectors;
calculating a punish value based on the vector difference and the first reliability, wherein the punish value is positively related to the vector difference and the first reliability; and
reducing one of the matching degrees of the one of the candidate vectors based on the punish value.

### Claim 17 (depends on 11)

The image processing method of claim 11, wherein the n-th motion estimation comprises a plurality of scan steps, and the scan steps comprise:
calculating a searching window size based on the first reliability, wherein the first reliability is linearly related to the searching window size; and
generating a plurality of candidate vectors in a searching window having the searching window size.

### Claim 18 (depends on 11)

The image processing method of claim 11, wherein the step of generating the compensated frame comprises:
selecting one of the current frame and the reference frame as a compensation target; and
performing a motion compensation based on the compensation target, the n-th reliability, and the n-th motion vectors to generate the compensated frame corresponding to the compensation target, wherein the n-th reliability is negatively related to a similarity between the compensated frame and the compensation target.

### Claim 19 (depends on 18)

The image processing method of claim 18, wherein there is an initial time difference between the compensated frame and the compensation target, and the image processing method further comprises:
calculating an adjustment value based on the initial time difference and the n-th reliability, wherein the n-th reliability and the adjustment value are negatively related; and
adjusting the initial time difference based on the adjustment value to determine an adjusted time difference between the compensated frame and the compensation target.

### Claim 20 (depends on 19)

The image processing method of claim 19, wherein the step of determining the adjusted time difference comprises:
moving the compensated frame towards the compensation target on a timeline.
