JP2907714B2 - Correlation degree detection device - Google Patents

Correlation degree detection device

Info

Publication number
JP2907714B2
JP2907714B2 JP7711494A JP7711494A JP2907714B2 JP 2907714 B2 JP2907714 B2 JP 2907714B2 JP 7711494 A JP7711494 A JP 7711494A JP 7711494 A JP7711494 A JP 7711494A JP 2907714 B2 JP2907714 B2 JP 2907714B2
Authority
JP
Japan
Prior art keywords
output
states
subtraction
correlation degree
correlation
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP7711494A
Other languages
Japanese (ja)
Other versions
JPH07288812A (en
Inventor
昭彦 大谷
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP7711494A priority Critical patent/JP2907714B2/en
Publication of JPH07288812A publication Critical patent/JPH07288812A/en
Application granted granted Critical
Publication of JP2907714B2 publication Critical patent/JP2907714B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Compression Or Coding Systems Of Tv Signals (AREA)
  • Image Analysis (AREA)

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【産業上の利用分野】本発明は、信号処理装置のうち、
2種類のデータ列の相関度を検出する装置であって、特
に画像データの動きベクトル検出に有効である。
BACKGROUND OF THE INVENTION The present invention relates to a signal processing device,
This is a device for detecting the degree of correlation between two types of data strings, and is particularly effective for detecting a motion vector of image data.

【0002】[0002]

【従来の技術】画像圧縮を実現する方法として、前フレ
ーム画像と現フレーム画像を比較し、似かよった(相関
が高い)部分を前フレーム画像から選出し、それを用い
て時間的冗長性を削減する動きベクトル検出というアル
ゴリズムがある。このアルゴリズムを実現する方法とし
て、ブロックマッチング法があり、コストパフォーマン
スが良く、一般に使われている。このブロックマッチン
グ法では、画像を小さなブロックに分け、着目するブロ
ックが前フレームのどの位置から来たのかを、画素間の
差の絶対値和を調べながらサーチして行く。この場合、
2つの画像間の相関を求めるため1回の試行に時間を要
する上、複数回の試行を行う必要があり、その試行回数
が多いほど、相関度の高い画像を検出する可能性が高く
なる。そのため、1つの装置の中に複数個の相関度検出
装置を備え、それらを並列動作させることにより、高速
化を図っている。例えば従来の相関度検出装置の一例と
して、「Proceeding of ICASSP pp.2453〜2456(1989)」
に減算回路と絶対値回路と累算回路で構成されている例
が記載されている。この相関度検出装置を用いて、並列
処理を行えば、高速な演算が実現できるという利点があ
る一方、複数個の相関度検出装置が必要となるため、面
積が大きくなり、消費電力も増大する。
2. Description of the Related Art As a method of realizing image compression, a previous frame image is compared with a current frame image, a similar (highly correlated) portion is selected from the previous frame image, and temporal redundancy is reduced using the same. There is an algorithm called motion vector detection. As a method of realizing this algorithm, there is a block matching method, which has good cost performance and is generally used. In this block matching method, an image is divided into small blocks, and a search is made for the position of the block of interest from the previous frame while checking the absolute value sum of the difference between pixels. in this case,
In order to obtain the correlation between two images, it takes time for one trial, and it is necessary to perform a plurality of trials. As the number of trials increases, the possibility of detecting an image with a high degree of correlation increases. For this reason, a plurality of correlation degree detection devices are provided in one device and operated in parallel to increase the speed. For example, as an example of a conventional correlation detection device, "Proceeding of ICASSP pp. 2453-2456 (1989)"
Describes an example composed of a subtraction circuit, an absolute value circuit, and an accumulation circuit. Performing parallel processing using this correlation detection device has the advantage that high-speed operation can be realized. On the other hand, since a plurality of correlation detection devices are required, the area increases and power consumption increases. .

【0003】[0003]

【発明が解決しようとする課題】このような従来の相関
度検出装置では、2つのデータの差分をとった後、その
符号ビットを用いて絶対値を求め、その結果を累算する
ため、回路規模が大きく、特に動きベクトル検出装置で
は、処理の高速化のために、上記装置を複数個用いるた
め、面積と消費電力が多くなるという問題があった。
In such a conventional correlation degree detection apparatus, a circuit is used to calculate the absolute value by using the sign bit after calculating the difference between two data and accumulate the result. Since the scale is large, and especially the motion vector detecting device uses a plurality of the above devices for speeding up the processing, there is a problem that the area and the power consumption increase.

【0004】本発明は、上記課題を解決するもので、小
規模な回路により、省面積、低消費電力を図る相関度検
出装置を提供することを目的としている。
An object of the present invention is to solve the above-mentioned problems, and an object of the present invention is to provide a correlation degree detecting apparatus which saves area and consumes low power by using a small-scale circuit.

【0005】[0005]

【課題を解決するための手段】記目的を達成するため
に、本発明の相関度検出装置は、データ数が等しい2種
類の2の補数で表現されるゼロまたは正の整数のデータ
列の相関度を検出する装置であって、2種類のデータ列
の差分をとる減算手段と、前記減算手段の出力値に対し
て所定の関数に従って2状態を取り、前記2状態の一方
ならば「1」、他方ならば「0」を出力する2値化手段
と、前記2値化手段の出力を累算する累算手段と、前記
累算手段の出力を保持する記憶手段とを備え、前記2値
化手段は、前記減算手段の出力をDとすると、D<−2
n 、またはD>(2 n −1)の場合と、−2 n ≦D≦(2 n
−1)の場合(但し、nはゼロまたは正の整数)により
2状態をEXORを用いて出力する構成を採用する。
To achieve the above Symbol purposes SUMMARY OF THE INVENTION, correlation degree detecting apparatus of the present invention, the number of data is equal to two
Zero or positive integer data represented by two's complement of class
A device for detecting the degree of correlation between columns, comprising two types of data columns
Subtraction means for taking the difference of
Takes two states according to a predetermined function, and takes one of the two states
Binarizing means for outputting "1" if it is, and "0" otherwise.
Accumulating means for accumulating an output of the binarizing means;
Storage means for holding the output of the accumulating means;
The converting means, assuming that the output of the subtracting means is D, D <-2
n or D> (2 n −1), and −2 n ≦ D ≦ (2 n
-1) (where n is zero or a positive integer)
A configuration in which two states are output using EXOR is employed.

【0006】[0006]

【作用】本発明では、上記した構成により、2値化手段
が減算手段の出力をDとすると、D<−2 n 、またはD
>(2 n −1)の場合と、−2 n ≦D≦(2 n −1)の場
合(但し、nはゼロまたは正の整数)により2状態を、
減算手段の出力値に対して、EXORを用いて出力す
る。累算手段は2状態の一方ならば「1」加算し、他方
ならば加算を行なわないようにしたので、絶対値手段が
省略できるとともに累算手段が簡略化できるため、小規
模な回路になり、省面積化、低消費電力化が図れる。
According to the present invention, the binarizing means has the above-described structure.
Let D <-2 n , or D
> (2 n -1) and the case of -2 n ≤ D ≤ (2 n -1)
If (where n is zero or a positive integer) two states,
The output value of the subtraction means is output using EXOR.
You. Since the accumulating means adds "1" in one of the two states and does not perform the adding in the other state, the absolute value means can be omitted and the accumulating means can be simplified. In addition, the area and the power consumption can be reduced.

【0007】[0007]

【実施例】以下、本発明の一実施例について説明する。An embodiment of the present invention will be described below.

【0008】本発明の一実施例について、図1を参照し
ながら説明する。図1に示すように、10は減算手段、
30は累算手段、40は例えばラッチからなる記憶手段
である。20は減算手段の出力をDとすると、n=2の
場合を例に上げて考えると、D<−4またはD>3の場
合と、−4≦D≦3の場合により2状態を出力する関数
を有する2化手段である。
An embodiment of the present invention will be described with reference to FIG. As shown in FIG. 1, 10 is a subtraction means,
Reference numeral 30 denotes an accumulating unit, and reference numeral 40 denotes a storage unit including, for example, a latch. If the output of the subtracting means is D, and if the case where n = 2 is taken as an example, two states are output depending on the case of D <−4 or D> 3 and the case of −4 ≦ D ≦ 3. a binarization means having a function.

【0009】上記構成において、3ビットの2の補数で
表現されるデータ数が等しい2種類のデータ列A(2:
0)、B(2:0)は、減算手段10により減算され、
その結果は2化手段20により、2状態のいずれか一
方を取る。つまり、2化手段20は、D<−4または
D>3の場合は「1」、−4≦D≦3の場合は「0」の
いずれか一方を取る。累算手段30は2状態の一方なら
ば「1」加算し、他方ならば「0」加算を行う。本実施
例では累算手段30は2値化手段の出力を累算し、その
累算結果を記憶手段40に記憶する。
In the above configuration, two types of data strings A (2: 2) having the same number of data represented by 3-bit two's complement numbers
0) and B (2: 0) are subtracted by the subtraction means 10,
The result is the binary means 20 takes one of two states. That is, binarization unit 20, if D of <4 or D> 3 "1", - 4 for ≦ D ≦ 3 take either "0". The accumulating means 30 adds "1" if it is one of the two states, and adds "0" if it is the other. In this embodiment, the accumulation means 30 accumulates the output of the binarization means and stores the accumulation result in the storage means 40.

【0010】以下の(表1)に「A−B」の10進数と
2進数での表記と2値化手段20の結果を示す。図2に
2値化手段20の特性図を示す。
The following (Table 1) shows the notation of "AB" in decimal and binary numbers and the result of the binarizing means 20. FIG. 2 shows a characteristic diagram of the binarizing means 20.

【0011】[0011]

【表1】 [Table 1]

【0012】(表1)から分かるように減算手段出力
「A−B」の2進数の上位2ビットのEXORを行うこ
とにより、2値化でき、その出力を直接累算手段30で
累算できる。そのため2値化手段20は1つのEXOR
のみで構成できる。
As can be seen from Table 1, EXOR of the upper two bits of the binary number of the subtraction means output "AB" can be binarized, and the output can be directly accumulated by the accumulation means 30. . Therefore, the binarizing means 20 has one EXOR
It can be composed only of.

【0013】このように、本実施例の相関度検出装置に
よれば、2化手段が簡略化できるため、さらに小規模
な回路になり、ブロックマッチング法を省面積化、低消
費電力化で実現できる。
[0013] Thus, according to the correlation degree detecting apparatus of the present embodiment, since the binarization unit can be simplified, made more small-scale circuit, the block matching method area saving, low power consumption realizable.

【0014】なお、ここでは入力信号のビット数を3ビ
ット(n=2)としたが、1ビット(n=0)以上であ
ればなんら問題がない。
Here, the number of bits of the input signal is 3 bits (n = 2), but there is no problem if it is 1 bit (n = 0) or more.

【0015】また、ここでは2状態により「1」加算と
「0」加算を累算手段により実行したが、「0」加算の
代わりに1回前の加算結果をそのまま保持し続けてもな
んら問題がない。
In this case, "1" addition and "0" addition are executed by the accumulating means depending on the two states. However, there is no problem if the previous addition result is kept as it is instead of "0" addition. There is no.

【0016】[0016]

【発明の効果】以上のように本発明は、データ数が等し
い2種類の2の補数で表現されるゼロまたは正の整数の
データ列の相関度を検出する装置であって、2種類のデ
ータ列の差分をとる減算手段と、前記減算手段の出力値
に対して所定の関数に従って2状態を取り、前記2状態
の一方ならば「1」、他方ならば「0」を出力する2値
化手段と、前記2値化手段の出力を累算する累算手段
と、前記累算手段の出力を保持する記憶手段とを備え、
前記2値化手段は、前記減算手段の出力をDとすると、
D<−2 n 、またはD>(2 n −1)の場合と、−2 n
D≦(2 n −1)の場合(但し、nはゼロまたは正の整
数)により2状態をEXORを用いて出力する構成を採
用するので、絶対値手段が省略できるとともに累算手段
が簡略化できるため、小規模な回路になり、省面積化、
低消費電力化が図れる。
As described above, according to the present invention, the number of data is equal.
Two or two complements of zero or a positive integer
An apparatus for detecting the degree of correlation between data strings.
Subtraction means for taking a difference between data sequences, and an output value of the subtraction means
Takes two states according to a predetermined function,
A binary value that outputs “1” if one of them is output and “0” if the other is
Conversion means and accumulation means for accumulating the output of the binarization means
And storage means for holding the output of the accumulation means,
The binarizing means sets the output of the subtracting means to D,
D <−2 n or D> (2 n −1), and −2 n
D ≦ (2 n −1) (where n is zero or a positive integer)
Number) is used to output two states using EXOR.
Since the absolute value means can be omitted and the accumulating means can be simplified, the circuit becomes small-scale,
Low power consumption can be achieved.

【図面の簡単な説明】[Brief description of the drawings]

【図1】本発明の一実施例の相関度検出装置のブロック
FIG. 1 is a block diagram of a correlation detection apparatus according to an embodiment of the present invention;

【図2】同実施例の2値化手段の特性図FIG. 2 is a characteristic diagram of a binarizing unit according to the embodiment;

【符号の説明】[Explanation of symbols]

10 減算手段 20 2化手段 30 累算手段 40 記憶手段10 subtraction means 20 binarization unit 30 accumulating means 40 storage means

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】データ数が等しい2種類の2の補数で表現
されるゼロまたは正の整数のデータ列の相関度を検出す
る装置であって、 2種類のデータ列の差分をとる減算手段と、前記減算手段の出力値 に対して所定の関数に従って2状
態を取り、前記2状態の一方ならば「1」、他方ならば
「0」を出力する2化手段と、 前記2化手段の出力を累算する累算手段と、 前記累算手段の出力を保持する記憶手段とを備え、 前記2化手段は、前記減算手段の出力をDとすると、
D<−2n、またはD>(2n−1)の場合と、−2n
D≦(2n−1)の場合(但し、nはゼロまたは正の整
数)により2状態をEXORを用いて出力することを特
徴とする相関度検出装置。
1. Two types of two's complement numbers having the same number of data
A subtraction means for calculating a difference between two types of data strings, and two states in accordance with a predetermined function with respect to an output value of the subtraction means. taken, the if one of the two states "1", if the other and binarization means for outputting "0", and accumulation means for accumulating the output of the binarization means, the output of the accumulator means and a storage means for holding said binarization means, the output of the subtraction means when is D,
D <−2 n or D> (2 n −1), and −2 n
A correlation degree detection apparatus for outputting two states using EXOR when D ≦ (2 n −1) (where n is zero or a positive integer).
JP7711494A 1994-04-15 1994-04-15 Correlation degree detection device Expired - Fee Related JP2907714B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP7711494A JP2907714B2 (en) 1994-04-15 1994-04-15 Correlation degree detection device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP7711494A JP2907714B2 (en) 1994-04-15 1994-04-15 Correlation degree detection device

Publications (2)

Publication Number Publication Date
JPH07288812A JPH07288812A (en) 1995-10-31
JP2907714B2 true JP2907714B2 (en) 1999-06-21

Family

ID=13624767

Family Applications (1)

Application Number Title Priority Date Filing Date
JP7711494A Expired - Fee Related JP2907714B2 (en) 1994-04-15 1994-04-15 Correlation degree detection device

Country Status (1)

Country Link
JP (1) JP2907714B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4525063B2 (en) * 2003-12-11 2010-08-18 ソニー株式会社 Motion vector detection apparatus, motion vector detection method, and computer program

Also Published As

Publication number Publication date
JPH07288812A (en) 1995-10-31

Similar Documents

Publication Publication Date Title
EP0245621B1 (en) Compression of multilevel signals
JP2643422B2 (en) Correlation arithmetic unit
JPH0358574A (en) Dot picture data compressor
US5610850A (en) Absolute difference accumulator circuit
JP2907714B2 (en) Correlation degree detection device
EP3296954A1 (en) Method and arrangements for identifying a pixel as a local extreme point
KR100466455B1 (en) Code converter, variable length code decoder and method of decoding variable length code
JPH1091397A (en) Arithmetic circuit
US20070094318A1 (en) Method and system for hardware efficient systematic approximation of square functions for communication systems
JPH0981541A (en) Accumulator
JP2002083292A (en) Image signal processor
JP3317079B2 (en) Variable length code decoding device
US20080181295A1 (en) Method and apparatus for video processing
KR100275538B1 (en) Selective Motion Estimation Error Accumulator for Polygon Matching
KR100216587B1 (en) Arithmetic apparatus to estimate movement
RU2093957C1 (en) Device for data compression
JP3221252B2 (en) Huffman decoder
JPS59189469A (en) Vector generating system of line picture
KR950022989A (en) Inverse Quantization Circuit for Image Restoration
JP2638842B2 (en) Decoder circuit
KR950012665B1 (en) High speed motion presuming device
JP2901848B2 (en) Vector correlation detection circuit
JP2833112B2 (en) Change point detection circuit
JP3723150B2 (en) Image reading device
JP2000010763A (en) Division circuit

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees