# US 2015/0146108 A1 · Video pre-processing method and apparatus for motion estimation

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

- Number: US 2015/0146108 A1
- Document ID: US20150146108A1
- Status: Published application
- Kind: A1
- Application number: 14/248,027
- Filed: 2014-04-08
- Published: 2015-05-28
- Earliest claimed: 2013-11-27
- Assignees: Industrial Technology Research Institute
- Applicants: Industrial Technology Research Institute
- Inventors: Yuan-Teng CHANG
- Web page: https://patentgrep.com/patent/US20150146108A1

## CPC

- H04N 5/145: {Movement estimation (for video coding H04N19/51)}
- H04N 19/137: Motion inside a coding unit, e.g. average field, frame or block difference
- H04N 19/176: the region being a block, e.g. a macroblock
- H04N 19/557: Motion estimation characterised by stopping computation or iteration based on certain criteria, e.g. error magnitude being too large or early exit
- H04N 19/85: using pre-processing or post-processing specially adapted for video compression
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION

## Abstract

Disclosed herein are an apparatus and a method of video pre-processing for motion estimation, the apparatus comprising a similarity description module, a storage module, a verdict module, and a motion estimation module. The similarity description module receives a first image in a video, the first image consisting of first blocks, and calculates the similarity descriptors of every first block and a second block of a second image in the video. The second block corresponds to a reference block among the first blocks. The similarity descriptor of each block, which corresponds to a pixel matrix, indicates whether the pixel values of at least one pair of adjacent pixels in the pixel matrix are identical. The verdict module determines whether the similarity descriptors of the second and reference blocks are identical and reaches a verdict, whereby motion estimation is selectively performed on the second block.

## Claims

### Claim 1

A video pre-processing method for motion estimation, comprising:
receiving a first image in a video, the first image consisting of a plurality of first blocks, each of which corresponding to one of a plurality of first pixel matrices;
for each of the first blocks, calculating a similarity descriptor of the first block, the similarity descriptor of the first block configured to indicate whether a plurality of pixel values of at least one pair of adjacent pixels in the corresponding first pixel matrix are identical;
calculating a similarity descriptor of a second block of a second image in the video, the second block corresponding to a reference block among the first blocks and to a second pixel matrix, the similarity descriptor of the second block configured to indicate whether a plurality of pixel values of at least one pair of adjacent pixels in the second pixel matrix are identical;
reaching a verdict on whether the similarity descriptor of the second block and the similarity descriptor of the reference block are identical; and
selectively performing motion estimation on the second block based on the verdict.

### Claim 2 (depends on 1)

The video pre-processing method of claim 1, wherein there are m lines along a first direction and n lines along a second direction in each of the first pixel matrices or in the second pixel matrix, m being a positive integer not less than 1, n being a positive integer greater than 1, and calculating the similarity descriptor of each of the first blocks or the second block comprises:
obtaining a first truth value by determining whether a plurality of pixel values of all the pixels on the first of the n lines are identical; and
obtaining a second truth value associated with the i-th of the n lines by determining whether the i-th and the (i−1)-th of the n lines have identical characteristics, i being a positive integer greater than 1 and not greater than n;
wherein the similarity descriptor of each of the first blocks or the second block comprises the first truth value, the second truth value, and a pixel value of an anchor pixel on the first of the n lines.

### Claim 3 (depends on 2)

The video pre-processing method of claim 2, wherein obtaining the second truth value by determining whether the i-th and the (i−1)-th of the n lines have identical characteristics comprises:
for each pixel on the i-th of the n lines, obtaining one of a plurality of third truth values by determining whether a plurality of pixel values of the pixel and another pixel, which is on the (i−1)-th of the n lines and corresponds to the pixel, are identical; and
comparing the third truth values to obtain the second truth value.

### Claim 4 (depends on 3)

The video pre-processing method of claim 3, wherein the second truth value is a product of the third truth values.

### Claim 5 (depends on 3)

The video pre-processing method of claim 3, wherein the pixel and the other pixel are on one of the m lines.

### Claim 6 (depends on 2)

The video pre-processing method of claim 2, wherein motion estimation is performed on the second block when the verdict indicates that the similarity descriptor of the second block and the similarity descriptor of the reference block are not identical.

### Claim 7 (depends on 6)

The video pre-processing method of claim 6, further comprising:
reconstructing the first image based on the similarity descriptor of each of the first blocks.

### Claim 8 (depends on 7)

The video pre-processing method of claim 7, wherein reconstructing the first image comprises, for each of the first blocks:
reconstructing a part of the first block corresponding to the first of the n lines based on the pixel value of the anchor pixel if the first truth value of the similarity descriptor of the first block is true;
loading the first of the n lines if the first truth value of the similarity descriptor of the first block is false;
reconstructing a part of the first block corresponding to the i-th of the n lines based on the (i−1)-th of the n lines if the second truth value, which is associated with the i-th of the n lines and of the similarity descriptor of the first block, is true; and
loading the i-th of the n lines if the second truth value, which is associated with the i-th of the n lines and of the similarity descriptor of the first block, is false.

### Claim 9 (depends on 1)

The video pre-processing method of claim 1, wherein a relative position of the second block in the second image and a relative position of the reference block in the first image are associated with a prediction vector, a motion vector associated with the second block equated to the prediction vector when the verdict indicates that the similarity descriptor of the second block and the similarity descriptor of the reference block are identical.

### Claim 10 (depends on 9)

The video pre-processing method of claim 9, wherein the prediction vector is a null (zero) vector.

### Claim 11 (depends on 1)

The video pre-processing method of claim 1, wherein the pixel value of a pixel is based on a grayscale.

### Claim 12

A video pre-processing apparatus for motion estimation, comprising
a similarity description module for receiving a first image in a video, the first image consisting of a plurality of first blocks, for calculating a similarity descriptor of each of the first blocks, and for calculating a similarity descriptor of a second block of a second image in the video, the second block corresponding to a reference block among the first blocks;
a storage module coupled with the similarity description module and for storing the similarity descriptor of each of the first blocks;
a verdict module coupled with the storage module and for reaching a verdict on whether the similarity descriptor of the second block and the similarity descriptor of the reference block are identical; and
a motion estimation module subject to the verdict and for performing motion estimation on the second block;
wherein each of the first blocks corresponds to one of a plurality of first pixel matrices, the similarity descriptor of each of the first blocks is configured to indicate whether a plurality of pixel values of at least one pair of adjacent pixels in the corresponding first pixel matrix are identical, the second block corresponds to a second pixel matrix, and the similarity descriptor of the second block is configured to indicate whether a plurality of pixel values of at least one pair of adjacent pixels in the second pixel matrix are identical.

### Claim 13 (depends on 12)

The video pre-processing apparatus of claim 12, wherein there are m lines along a first direction and n lines along a second direction in each of the first pixel matrices or in the second pixel matrix, m being a positive integer not less than 1, n being a positive integer greater than 1, and when the similarity description module calculates the similarity descriptor of each of the first blocks or the second block, the similarity description module obtains a first truth value by determining whether a plurality of pixel values of all the pixels on the first of the n lines are identical and obtains a second truth value associated with the i-th of the n lines by determining whether the i-th and the (i−1)-th of the n lines have identical characteristics, i being a positive integer greater than 1 and not greater than n;
wherein the similarity descriptor of each of the first blocks or the second block comprises the first truth value, the second truth value, and a pixel value of an anchor pixel on the first of the n lines.

### Claim 14 (depends on 13)

The video pre-processing apparatus of claim 13, wherein when the similarity description module obtains the second truth value by determining whether the i-th and the (i-1)-th of the n lines have identical characteristics, the similarity description module obtains, for each pixel on the i-th of the n lines, one of a plurality of third truth values by determining whether a plurality of pixel values of the pixel and another pixel are identical and compares the third truth values to obtain the second truth value, the other pixel being on the (i-1)-th of the n lines and corresponding to the pixel.

### Claim 15 (depends on 14)

The video pre-processing apparatus of claim 14, wherein the second truth value is a product of the third truth values.

### Claim 16 (depends on 14)

The video pre-processing apparatus of claim 14, wherein the pixel and the other pixel are on one of the m lines.

### Claim 17 (depends on 13)

The video pre-processing apparatus of claim 13, wherein the motion estimation module performs motion estimation on the second block when the verdict indicates that the similarity descriptor of the second block and the similarity descriptor of the reference block are not identical.

### Claim 18 (depends on 17)

The video pre-processing apparatus of claim 17, further comprising a reconstruction module coupled with the storage module and for reconstructing the first image based on the similarity descriptor of each of the first blocks.

### Claim 19 (depends on 18)

The video pre-processing apparatus of claim 18, wherein when the reconstruction module reconstructs the first image, for each of the first blocks the reconstruction module reconstructs a part of the first block corresponding to the first of the n lines based on the pixel value of the anchor pixel if the first truth value of the similarity descriptor of the first block is true, loads the first of the n lines if the first truth value of the similarity descriptor of the first block is false, reconstructs a part of the first block corresponding to the i-th of the n lines based on the (i-1)-th of the n lines if the second truth value is true, and loads the i-th of the n lines if the second truth value is false, the second truth value associated with the i-th of the n lines and of the similarity descriptor of the first block.

### Claim 20 (depends on 12)

The video pre-processing apparatus of claim 12, wherein a relative position of the second block in the second image and a relative position of the reference block in the first image are associated with a prediction vector, a motion vector associated with the second block equated to the prediction vector when the verdict indicates that the similarity descriptor of the second block and the similarity descriptor of the reference block are identical.

### Claim 21 (depends on 20)

The video pre-processing apparatus of claim 20, wherein the prediction vector is a null (zero) vector.

### Claim 22 (depends on 12)

The video pre-processing apparatus of claim 12, wherein the pixel value of a pixel is based on a grayscale.
