JPS6173428A - Minimum value detecting circuit - Google Patents

Minimum value detecting circuit

Info

Publication number
JPS6173428A
JPS6173428A JP59196397A JP19639784A JPS6173428A JP S6173428 A JPS6173428 A JP S6173428A JP 59196397 A JP59196397 A JP 59196397A JP 19639784 A JP19639784 A JP 19639784A JP S6173428 A JPS6173428 A JP S6173428A
Authority
JP
Japan
Prior art keywords
data
input
block
difference value
center
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.)
Granted
Application number
JP59196397A
Other languages
Japanese (ja)
Other versions
JPH0426255B2 (en
Inventor
Shinichi Maki
新一 牧
Kiichi Matsuda
松田 喜一
Takashi Ito
隆 伊藤
Toshitaka Tsuda
俊隆 津田
Yuji Takenaka
裕二 竹中
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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP59196397A priority Critical patent/JPS6173428A/en
Publication of JPS6173428A publication Critical patent/JPS6173428A/en
Publication of JPH0426255B2 publication Critical patent/JPH0426255B2/ja
Granted legal-status Critical Current

Links

Landscapes

  • Reduction Or Emphasis Of Bandwidth Of Signals (AREA)
  • Transmission Systems Not Characterized By The Medium Used For Transmission (AREA)

Abstract

PURPOSE:To detect center data independently of the generating order of data to be compared with input data by a comparator by selecting a data close to the center when two data or more indicating the same difference value exist in a range to be compared with the input data. CONSTITUTION:A subtractor 11 subtracts an input data from a reference data to find out their difference value B. A comparator 12 compares the minimum data A of the precedently compared result with the difference value B. If the generation order of the reference data is the ascending order of 1-9, the refer ence data 5 can be selected even if nine reference data are completely the same by turning the center information of the reference data, i.e. the cascade input CS of the comparator 12, to the high level only when the data 2, 4, 5 are applied from the subtractor 11 as an input B. To select the center data 5 when another same data exist, the cascade input CS is turned to the high level only when the data 5 is inputted to the input B of the comparator 12 independently of the generation order of the reference data.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は入力データまたはブロックと二次元的に配列さ
れたある範囲のデータまたはブロックの集合とを比較し
て、後者のうち入力データとの差分値またはブロック内
のデータとの差分値の総和が最小となるデータまたはブ
ロックとその位置を検出するための回路に係り、特に同
し差分値となるデータまたはブロックが21[1j以上
あった場合に前述の範囲の中心に最も近いデータまたは
ブロックを選択し得る最小値検出回路に関するものであ
る。
[Detailed Description of the Invention] [Industrial Application Field] The present invention compares input data or blocks with a certain range of data or a set of blocks arranged two-dimensionally, and determines which of the latter is different from the input data. It pertains to a circuit for detecting data or blocks with the minimum difference value or the sum of difference values with data in the block and its position, especially when there are 21 [1j or more data or blocks with the same difference value] The present invention relates to a minimum value detection circuit capable of selecting the data or block closest to the center of the aforementioned range.

〔従来の技術〕[Conventional technology]

第4図は画像信号を帯域圧縮して伝送する動き補償符号
化方式を示したものであって、入力ブロックデータは画
素ごとに符号化回路1において最適ブロックのデータと
比較されて、差分値のデータを発生する。この差分値の
データと、前フレームの対応する画素のデータから一定
の予測関数に従って予測された予測値のデータとを加算
することによって復号化された信号を発生し、復号化信
号はフレームメモリ2において1フレ一ム分蓄積される
ことによって1フレーム前のデータを生じる。ベクトル
検出回路3は入力ブロックデータとフレームメモリ2か
らの1フレーム前のデータとを比較して、入力ブロック
データとの差分値が最小とムる最適ブロックのデータを
発生するとともに、そのブロックからの動きの量と方向
とを示すベクトル情報を発生ずる。符号化回路1は求め
られた差分値のデータと動きベクトル情報とを符号化し
て伝送路に送出する。
Figure 4 shows a motion compensation encoding method that compresses the band of an image signal and transmits it. Input block data is compared with the optimal block data in the encoding circuit 1 for each pixel, and the difference value is calculated. Generate data. A decoded signal is generated by adding this difference value data and predicted value data predicted from the corresponding pixel data of the previous frame according to a certain prediction function, and the decoded signal is stored in the frame memory 2. By accumulating one frame at a time, data for one frame before is generated. The vector detection circuit 3 compares the input block data with the previous frame data from the frame memory 2, generates optimal block data with the minimum difference value from the input block data, and Generate vector information indicating the amount and direction of movement. The encoding circuit 1 encodes the obtained difference value data and motion vector information and sends the encoded data to a transmission path.

この場合伝送すべき情報量を最小にするためには、最適
ヘクトルを検出する処理において、入力データと比較す
べきある範囲内に同し差分値を示すデータが2個以上あ
ったときは、なるべ(入力データと近い位置にあるデー
タを検出することが必要となる。
In this case, in order to minimize the amount of information to be transmitted, in the process of detecting the optimal hector, if there are two or more pieces of data that show the same difference value within a certain range to be compared with the input data, (It is necessary to detect data that is close to the input data.

従来このような最適ヘクトルを求めるための最小値検出
回路においては、入力データと比較すべき範囲内に同じ
差分値を示すデータが2個以上あったとき中心に近いデ
ータを選択するために、比較回路に入力されるデータの
順番が中心から渦巻き状になるようにしていた。
Conventionally, in the minimum value detection circuit for determining the optimal hector, when there are two or more pieces of data showing the same difference value within the range to be compared with the input data, a comparison is performed to select the data closest to the center. The order of data input to the circuit was arranged in a spiral starting from the center.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

しかしながら最小値検出回路において、比較回路に入力
されるデータの順序に対するこのような制御を実現する
ためには、データの発生を制御する制御回路が必要とな
るだけでなくデータの発生順序が制限されるため、周辺
回路の構成に自由度がなくなるという問題があった。
However, in order to achieve such control over the order of data input to the comparison circuit in the minimum value detection circuit, not only is a control circuit required to control data generation required, but also the order of data generation is restricted. Therefore, there was a problem in that there was no degree of freedom in the configuration of peripheral circuits.

〔問題点を解決するための手段〕] 本発明の最小値検出回路においては、入力データと一定
範囲における参照データのそれぞれとの大小を比較して
その範囲内における入力データとの差分値が最小値のデ
ータとその位置の情報とを出力するとともに、この範囲
内に入力データとの差分値が最小となるデータが2個以
上あったときは、この範囲の中心により近いデータを選
択するように比較選択回路を制御する。
[Means for Solving the Problems]] In the minimum value detection circuit of the present invention, input data is compared with each reference data in a certain range, and the difference value between the input data and the input data within the range is determined to be the minimum value. In addition to outputting the value data and its position information, if there are two or more data items with the minimum difference value from the input data within this range, select the data closer to the center of this range. Controls the comparison selection circuit.

〔作 用〕[For production]

本発明の最小値検出回路によれば、入力データと比較す
べき範囲内に同じ差分値を示すデータが2個以上あった
とき中心に近いデータを選択するために、比較回路にお
いて入力データと比較すべきデータの発生順序に無関係
に中心のデータを検出することができ、また簡単なデー
タ発生順序で最も中心に近いデータを検出することがで
きる。
According to the minimum value detection circuit of the present invention, when there are two or more pieces of data showing the same difference value within the range to be compared with the input data, in order to select the data near the center, the comparison circuit compares the data with the input data. The central data can be detected regardless of the order in which the data to be generated are generated, and the data closest to the center can be detected with a simple data generation order.

〔実施例〕〔Example〕

第1図は本発明の最小値検出回路の一実施例のブロック
内のデータ数が1つの場合の構成を示したものである。
FIG. 1 shows the configuration of an embodiment of the minimum value detection circuit of the present invention when the number of data in a block is one.

同図において、11は減算回路、12は比較回路、13
. 14はセレクタである。
In the figure, 11 is a subtraction circuit, 12 is a comparison circuit, and 13 is a subtraction circuit.
.. 14 is a selector.

また第2図は入力データと参照データーとの関係を示し
たものであって、(alは入力データINを、(2)は
参照データ1〜9をそれぞれ示し、第1図の回路におい
ては、入力データINに対する参照データ1〜9のそれ
ぞれの差分を求めて、入力データ1NGこ対して最も近
い値の参照データの位置を検出する。
Further, FIG. 2 shows the relationship between input data and reference data, where (al indicates input data IN, and (2) indicates reference data 1 to 9, respectively. In the circuit of FIG. 1, The difference between each of the reference data 1 to 9 with respect to the input data IN is determined, and the position of the reference data having the closest value to the input data 1NG is detected.

第1図において、減算回路11は入力データと参照デー
タとを減算して差分値Bを求める。比較回路12は11
11回比較結果の最小データAと差分値Bとの大小を比
較する。この際比較回路12に入力される参照データの
中心情報であるカスケード入力C5がローレベルのとき
は、比較回路12出力Cは前回比較結果の最小データA
が差分値Bと等しいかまたはこれより小さいときはロー
レベルとなる。一方、カスケード入力C3がハイレベル
のときは、出力Cは前回比較結果の最小データAが差分
値Bより小さいときローレベルとなる。
In FIG. 1, a subtraction circuit 11 subtracts input data and reference data to obtain a difference value B. Comparison circuit 12 is 11
The minimum data A and the difference value B of the 11th comparison result are compared in magnitude. At this time, when the cascade input C5, which is the central information of the reference data input to the comparison circuit 12, is at a low level, the output C of the comparison circuit 12 is the minimum data A of the previous comparison result.
is equal to or smaller than the difference value B, it becomes a low level. On the other hand, when the cascade input C3 is at a high level, the output C becomes a low level when the minimum data A of the previous comparison result is smaller than the difference value B.

セレクタ13.14は、比較回路12の出力Sを選択制
御信号として加えられ、出力Sがハイレベルであるかロ
ーレベルであるかに応して、それぞれ入力■または■を
選択して出力する。セレクタ13においては前回比較結
果の最小データが■に、減算回路11の差分値出力が■
に接続されており、またセレクタ14においては前回比
較結果の最小データの位置情報が■に、参照データの位
置情報が■に接続されているので、出力 がハイレベル
であるかローレベルであるかに従って、いずれかの情報
がそれぞれ最小データと最小データの位置情報として出
力される。なおセレクタ13.14は、1フレームごと
にリセット信号R1によりリセットされる。
The selectors 13 and 14 receive the output S of the comparator circuit 12 as a selection control signal, and select and output the inputs (1) and (2), respectively, depending on whether the output S is at a high level or a low level. In the selector 13, the minimum data of the previous comparison result is ■, and the difference value output of the subtraction circuit 11 is ■.
Also, in the selector 14, the position information of the minimum data of the previous comparison result is connected to ■, and the position information of the reference data is connected to ■, so whether the output is high level or low level. Accordingly, any of the information is output as the minimum data and the position information of the minimum data, respectively. Note that the selectors 13 and 14 are reset by a reset signal R1 every frame.

参照データは入力データの近傍から順次選択されて入力
されるとともに、この参照データの中心の[1と、入力
データに対する参照データの位置を示す位置情報とが入
力されている。
The reference data is sequentially selected and input from the vicinity of the input data, and the [1] at the center of the reference data and position information indicating the position of the reference data with respect to the input data are input.

いま第2図に示す参照データの発生順序がI。The generation order of the reference data shown in FIG. 2 is I.

2.3.4,5.6.7.8.9の順であったとすると
、参照データの中心情報すなわち比較回路I2のカスケ
ード入力C3が、減算回路11から入力Bとして2.4
.5が加えられたときたけハイレベルになるようにすれ
ば、例えば91111の参照データかすべて同一であっ
た場合でも、参照データ5が選択される。ただしこの場
合量も中心に近いデータを5、次に近いデータを2.4
,6.8、最も遠いデータを1.3,7.9として考え
ている。
2.3.4, 5.6.7.8.9, the central information of the reference data, that is, the cascade input C3 of the comparator circuit I2, is 2.4 as the input B from the subtraction circuit 11.
.. If 5 is added, the level becomes high, then reference data 5 will be selected even if the reference data 91111 are all the same, for example. However, in this case, the amount is 5 for the data closest to the center and 2.4 for the next closest data.
, 6.8, and the farthest data are considered as 1.3 and 7.9.

また参照データの発生順序を1.4,7.2゜5.8.
6.9とした場合も、同様にして同じ結果か得られる。
Also, the generation order of reference data is 1.4, 7.2°, 5.8.
6.9, the same result can be obtained in the same way.

なお同じデータが他にあったとき、中心のデータ5か選
択されるようにする場合には、参照データの発生順序は
全く任意となり、比較回路12の8入力に5か入力され
たときだけ、カスケード入力C3をハイレベルにすれば
よい。
Note that when the same data exists elsewhere, if the central data 5 is to be selected, the order in which the reference data are generated is completely arbitrary, and only when 5 is input to the 8 inputs of the comparator circuit 12, It is sufficient to set the cascade input C3 to a high level.

第3図は本発明の他の構成例を示し、ブロック内のデー
タの差分値の総和が最小値のブロックを検出する場合の
構成を示している。同図において、第1図におけると同
じ部分には同一番号を付与して示されており、15は加
算回路、16はアントゲート、16八はオアゲート、1
7.18.19はレジスタである。
FIG. 3 shows another configuration example of the present invention, and shows a configuration for detecting a block in which the sum of the difference values of data within the block is the minimum value. In the same figure, the same parts as in FIG.
7.18.19 are registers.

本実施例の場合は、ブロック単位の差分値の総和を求め
る必要がある。このため減算回路11の出力をレジスタ
17の出力と加算回路15で加算して、再びレジスタ1
7に入力する。これを1ブロツク内で繰り返し行う。
In the case of this embodiment, it is necessary to calculate the sum of difference values in block units. Therefore, the output of the subtraction circuit 11 is added to the output of the register 17 and the addition circuit 15, and then the output of the register 17 is added to the output of the register 17.
Enter 7. This is repeated within one block.

レジスタ17の出力は比較回路12に入力され、レジス
タ18内の前回の最小値と比較される。比較結果により
セレクタ13では入力■または■を選択して、レジスタ
18にセットする。
The output of register 17 is input to comparator circuit 12 and compared with the previous minimum value in register 18. Based on the comparison result, the selector 13 selects the input (■) or (2) and sets it in the register 18.

またセレクタ14の出力は、ブロック単位のクロシンに
よりレジスタI9にセントされる。セレクタ13、 1
4は&Jiのブロックが入力されたとき、すなわちフレ
ームの始めにリセット信号R1によってリセットされる
。またレジスタ17も、リセット信号R2によりブロッ
クごとにリセットされる。
Further, the output of the selector 14 is sent to the register I9 by cross-linking in units of blocks. Selector 13, 1
4 is reset by the reset signal R1 when the &Ji block is input, that is, at the beginning of the frame. Further, the register 17 is also reset for each block by the reset signal R2.

〔発明のりJ果〕[Invention glue J fruit]

以上説明したように本発明の最適ベクトル検出回路によ
れば、入力データまたはブロックと一定範囲における参
照データまたはブロックのそれぞれとの大小を比較して
その範囲内における入力データとの差分値またはブロッ
ク内のデータの差分値の総和が最小値のデータとその位
置の清報とを出力するとともに、この範囲内に入力デー
タとの差分値またはブロック内のデータの差分値の総和
が最小となるデータまたはブロックが2個以上あったと
きは、この範囲の中心により近いデータまたはブロック
を選択するように比較選択回路を制御するので、データ
またはブロックを参照すべき範囲に差分値が最小となる
同しデータまたはブロックが2個以上あったとき、簡単
なデータ発生順序によってその範囲の中心に近いデータ
またはブロックを選択することができる。またデータま
たはブロックを参照すべき範囲に、中心の他に同じデー
タまたはブロックがあったとき中心のデータまたはブロ
ックのみが選択されるようにする場合は、データの発生
順序に無関係に実現できる。
As explained above, according to the optimal vector detection circuit of the present invention, input data or blocks are compared in size with each of the reference data or blocks within a certain range, and the difference value between the input data and the block within the range is calculated. In addition to outputting the data with the minimum sum of the difference values of the data in the block and the report of the position, output the data with the minimum difference value with the input data or the sum of the difference values of the data in the block within this range. When there are two or more blocks, the comparison selection circuit is controlled to select the data or block closer to the center of this range, so the same data or block with the minimum difference value is selected in the range where the data or block should be referenced. Alternatively, when there are two or more blocks, the data or block closest to the center of the range can be selected by a simple data generation order. In addition, when there is the same data or block in addition to the center data or block in the range where the data or block should be referenced, only the center data or block can be selected, regardless of the order in which the data are generated.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図は本発明の最小値検出回路の一実施例の構成を示
す図、第2図は入力データと参照データとの関係を示す
図、第3図は本発明の最小値検出回路の自他の実施例の
構成を示す図、第4図は動き補償符号化方式を示す図で
ある。
FIG. 1 is a diagram showing the configuration of an embodiment of the minimum value detection circuit of the present invention, FIG. 2 is a diagram showing the relationship between input data and reference data, and FIG. 3 is a diagram showing the configuration of an embodiment of the minimum value detection circuit of the present invention. FIG. 4 is a diagram showing the configuration of another embodiment, and FIG. 4 is a diagram showing a motion compensation encoding method.

Claims (1)

【特許請求の範囲】[Claims] 入力データまたは複数の入力データの集合である入力デ
ータブロックと一定範囲における参照データまたは参照
データブロックのそれぞれとの大小を比較して該範囲内
における入力データとの差分値またはブロック内のデー
タとの差分値の総和が最小値のデータまたはブロックと
その位置の情報とを出力する比較選択回路と、前記範囲
内に入力データまたはブロックとの差分値が最小となる
データまたはブロックが2個以上あつたとき該範囲の中
心により近いデータまたはブロックを選択するように前
記比較選択回路を制御する信号を発生する回路とを具え
たことを特徴とする最小値検出回路。
Compare the size of input data or an input data block that is a set of multiple input data with each reference data or reference data block in a certain range to determine the difference value between the input data and the data within the block within the range. A comparison and selection circuit that outputs data or a block with a minimum sum of difference values and information on its position, and a comparison selection circuit that outputs data or blocks with a minimum sum of difference values and information on its position, and a comparison selection circuit that outputs data or blocks with a minimum difference value with the input data or block within the range. and a circuit for generating a signal for controlling the comparison and selection circuit to select data or blocks closer to the center of the range.
JP59196397A 1984-09-19 1984-09-19 Minimum value detecting circuit Granted JPS6173428A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP59196397A JPS6173428A (en) 1984-09-19 1984-09-19 Minimum value detecting circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP59196397A JPS6173428A (en) 1984-09-19 1984-09-19 Minimum value detecting circuit

Publications (2)

Publication Number Publication Date
JPS6173428A true JPS6173428A (en) 1986-04-15
JPH0426255B2 JPH0426255B2 (en) 1992-05-06

Family

ID=16357185

Family Applications (1)

Application Number Title Priority Date Filing Date
JP59196397A Granted JPS6173428A (en) 1984-09-19 1984-09-19 Minimum value detecting circuit

Country Status (1)

Country Link
JP (1) JPS6173428A (en)

Also Published As

Publication number Publication date
JPH0426255B2 (en) 1992-05-06

Similar Documents

Publication Publication Date Title
US4141034A (en) Digital encoding of color video signals
US4633325A (en) Adaptive predictive encoding and/or decoding apparatus
US4743967A (en) Differential coding apparatus having an optimum predicted value determining circuit
JPS6410988B2 (en)
US5313204A (en) Encoding and decoding devices with predictor and detector
US10727855B2 (en) Analog-to-digital conversion apparatus
JPS63287187A (en) Video signal encoder with dpcm and applicable forcast equipment
JPS6320075B2 (en)
JPS6173428A (en) Minimum value detecting circuit
US5870039A (en) Code converter, variable length code decoder, and associated methods
JP3119025B2 (en) Encoding device and decoding device
JP2001169294A (en) Device and method for detecting motion
JPH02298184A (en) Adaptive frame interpolation system for inter-frame prediction decoder with movement compensation
US5151791A (en) Efficient encoding of picture signal
JPH04178074A (en) Coding decoding system for picture signal and its device
JPH05236454A (en) Method and device for detecting motion vector for encoding image
JP2792470B2 (en) Motion detection circuit
JPH1079943A (en) Motion vector detector
JPH0630399A (en) Motion vector detection method and detector
JPH03112272A (en) Coding system for video signal
JPH10304378A (en) Video signal coder
JPH10126787A (en) Two-way prediction vector detection circuit using prediction vector of p picture as offset vector
JPS6358509B2 (en)
JPH05336510A (en) Motion compensation encoding device and decoding device
JPH01205667A (en) Moving picture signal encoder