# US 2019/0098330 A1 · Coding apparatus, coding method, and recording medium

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

- Number: US 2019/0098330 A1
- Document ID: US20190098330A1
- Status: Published application
- Kind: A1
- Application number: 16/134,430
- Filed: 2018-09-18
- Published: 2019-03-28
- Earliest claimed: 2017-09-22
- Assignees: Canon Kabushiki Kaisha
- Applicants: Canon Kabushiki Kaisha
- Inventors: Yuji Omori; Masato Shima
- Web page: https://patentgrep.com/patent/US20190098330A1

## CPC

- H04N 19/51: Motion estimation or motion compensation
- 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/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/182: the unit being a pixel
- H04N 19/436: using parallelised computational arrangements
- H04N 19/52: by predictive encoding
- H04N 19/523: with sub-pixel accuracy
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION

## Abstract

A coding apparatus for coding a frame of a moving image on a block basis includes a calculation unit configured to, for a block adjoining the target block and having a motion vector to be used for coding having been selected, from among blocks in the frame, calculate a difference between a detected motion vector and a motion vector of the target block and calculate a difference between pixels of a reference block identified by applying a motion vector of the adjoining block to the target block and pixels of the target block, a determination unit configured to determine whether a motion vector to be used for coding the adjoining block has been detected at the time of processing, and a motion vector selection unit configured to, based on a calculation result and a determination result, select a motion vector to be used for coding the target block.

## Claims

### Claim 1

A coding apparatus for coding a frame of a moving image on a block basis, the coding apparatus comprising:
a detection unit configured to detect a motion vector of each block of the frame;
a calculation unit configured to, for a block adjoining a process target block and having a motion vector to be used for coding having been selected, from among blocks in the frame, calculate a difference value between the motion vector detected by the detection unit and the motion vector of the target block and calculate a difference value between pixels of a reference block identified by applying the motion vector of the adjoining block to the target block and pixels of the target block;
a determination unit configured to determine whether the motion vector to be used for coding the adjoining block has been detected at the time of processing; and
a motion vector selection unit configured to, based on a calculation result by the calculation unit and a determination result by the determination unit, select a motion vector to be used for coding the target block, from among the motion vector detected from the target block and the motion vector to be used for coding the adjoining block.

### Claim 2 (depends on 1)

The coding apparatus according to claim 1, wherein the motion vector selection unit does not select, as a motion vector to be used for coding the target block, a motion vector of an adjoining block with which the motion vector difference value is equal to or larger than a threshold value or the pixel difference value is equal to or larger than a threshold value.

### Claim 3 (depends on 1)

The coding apparatus according to claim 1, wherein, when the motion vector to be used for coding the adjoining block has not been detected as a result of the determination by the determination unit, the motion vector selection unit does not select the motion vector to be used for coding the adjoining block as a motion vector to be used for coding the target block.

### Claim 4 (depends on 1)

The coding apparatus according to claim 1,
wherein the detection unit detects a first motion vector of the target block and, when the motion vector detected from the target block is selected as a motion vector to be used for coding the target block, detects a second motion vector having a higher precision than the first motion vector, and
wherein the coding apparatus further comprises a coding unit configured to, when the motion vector detected from the target block is selected as a motion vector to be used for coding the target block, perform coding by using the second motion vector detected from the target block.

### Claim 5 (depends on 1)

The coding apparatus according to claim 1, further comprising a control unit configured to perform control to sequentially select each of a plurality of blocks of the frame as a process target and sequentially select a motion vector for the selected block,
wherein the determination unit determines whether a motion vector to be used for coding a first adjoining block selected as a process target immediately before the target block, out of a plurality of blocks adjoining the target block, has been detected at the time of the processing, and
wherein, when a motion vector to be used for coding the first adjoining block has not been detected at the time of the processing, the motion vector selection unit does not select the motion vector to be used for coding the first adjoining block as a motion vector to be used for coding the target block.

### Claim 6 (depends on 5)

The coding apparatus according to claim 5,
wherein, for the first adjoining block, the calculation unit calculates the motion vector difference value and the pixel difference value, and
wherein, when the calculation result by the calculation unit for the first adjoining block satisfies a preset selection condition and a motion vector to be used for coding the first adjoining block has been detected, the motion vector selection unit selects the motion vector to be used for coding the first adjoining block as a motion vector to be used for coding the target block.

### Claim 7 (depends on 6)

The coding apparatus according to claim 6, wherein, when the motion vector detected from the first adjoining block is not selected as a motion vector to be used for coding the target block, the motion vector selection unit determines whether to use a motion vector to be used for coding a second adjoining block as a motion vector to be used for coding the target block, based on the motion vector to be used for coding the second adjoining block other than the first adjoining block out of the plurality of adjoining blocks.

### Claim 8 (depends on 7)

The coding apparatus according to claim 7, wherein, when the motion vector to be used for coding the adjoining block is not selected as a motion vector to be used for coding the target block, for the plurality of adjoining blocks, the motion vector selection unit selects the motion vector detected from the target block as a motion vector to be used for coding the target block.

### Claim 9 (depends on 5)

The coding apparatus according to claim 5, wherein the first adjoining block is the adjoining block to the left of the target block.

### Claim 10 (depends on 5)

The coding apparatus according to claim 5,
wherein the detection unit detects a first motion vector of the target block and, when the motion vector detected from the target block is selected as a motion vector to be used for coding the target block, detects a second motion vector having a higher precision than the first motion vector,
wherein the coding apparatus further comprises a coding unit configured to, when the motion vector detected from the target block is selected as a motion vector to be used for coding the target block, perform coding by using the second motion vector detected from the target block, and
wherein the calculation unit calculates the motion vector difference value and the pixel difference value by using the first motion vector of the target block and the first motion vector of the first adjoining block.

### Claim 11 (depends on 1)

The coding apparatus according to claim 1,
wherein the calculation unit calculates the motion vector difference value and the pixel difference value for each of a plurality of adjoining blocks,
wherein the coding apparatus further comprises a block selection unit configured to select one adjoining block from among the plurality of adjoining blocks based on the motion vector difference value and the pixel difference value, and
wherein, based on the calculation result and the determination result for the adjoining block selected by the block selection unit, the motion vector selection unit determines whether to select the selected adjoining block as a motion vector to be used for coding the target block.

### Claim 12 (depends on 11)

The coding apparatus according to claim 11, wherein the block selection unit selects the one adjoining block according to priority preset for a plurality of adjoining blocks.

### Claim 13 (depends on 11)

The coding apparatus according to claim 11, wherein, when the motion vector selection unit determines not to select the motion vector of the adjoining block selected by the block selection unit as a motion vector to be used for coding the target block, the motion vector selection unit selects the motion vector detected from the target block as a motion vector to be used for coding the target block.

### Claim 14

A coding method by a coding apparatus for coding a frame of a moving image on a block basis, the coding method comprising:
detecting a motion vector of each block of the frame;
calculating, for a block adjoining a process target block and having a motion vector to be used for coding having been selected, from among blocks in the frame, a difference value between the motion vector detected by the detection and the motion vector of the target block, and calculating a difference value between pixels of a reference block identified by applying the motion vector of the adjoining block to the target block and pixels of the target block;
determining whether the motion vector to be used for coding the adjoining block has been detected at the time of processing; and
selecting, based on a calculation result by the calculating and a determination result by the determining, a motion vector to be used for coding the target block, from among the motion vector detected from the target block and the motion vector to be used for coding the adjoining block.

### Claim 15

A non-transitory computer-readable recording medium storing a program for causing a computer of a coding apparatus for coding a frame of a moving image on a block basis to function as:
a detection unit configured to detect a motion vector of each block of the frame;
a calculation unit configured to, for a block adjoining a process target block and having a motion vector to be used for coding having been selected, from among blocks in the frame, calculate a difference value between the motion vector detected by the detection unit and the motion vector of the target block and calculate a difference value between pixels of a reference block identified by applying the motion vector of the adjoining block to the target block and pixels of the target block;
a determination unit configured to determine whether the motion vector to be used for coding the adjoining block has been detected at the time of processing; and
a motion vector selection unit configured to, based on a calculation result by the calculation unit and a determination result by the determination unit, select a motion vector to be used for coding the target block, from among the motion vector detected from the target block and the motion vector to be used for coding the adjoining block.
