JPH01156878A - Pattern matching circuit - Google Patents

Pattern matching circuit

Info

Publication number
JPH01156878A
JPH01156878A JP31591387A JP31591387A JPH01156878A JP H01156878 A JPH01156878 A JP H01156878A JP 31591387 A JP31591387 A JP 31591387A JP 31591387 A JP31591387 A JP 31591387A JP H01156878 A JPH01156878 A JP H01156878A
Authority
JP
Japan
Prior art keywords
circuits
output
pattern
circuit
pattern matching
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.)
Pending
Application number
JP31591387A
Other languages
Japanese (ja)
Inventor
Toshichika Sato
佐藤 寿親
Yoshiro Omotani
重谷 好郎
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 JP31591387A priority Critical patent/JPH01156878A/en
Publication of JPH01156878A publication Critical patent/JPH01156878A/en
Pending legal-status Critical Current

Links

Landscapes

  • Image Analysis (AREA)

Abstract

PURPOSE:To perform matching processes among plural patterns by setting latches containing clearing functions and controlled by the output of a ROM at a position before central value circuits. CONSTITUTION:Subtractors 21-27 and the central value circuits 31-37 are used together with the latch circuits 51-57 containing clearing functions set between said circuits 31-37 and the subtractors 21-27, a minimum value area detecting circuit 41, a pattern selection ROM 61 serving as a pattern control circuit which decides and controls patterns after applying clear signals to the circuits 51-57, and a multiplexer 42. The circuits 51-57 which are controlled by the output of the ROM 61 are set before the circuits 31-37. Thus a pattern matching pattern can be varied into plural pieces. In other words, the matching processes are carried out among plural patterns.

Description

【発明の詳細な説明】 産業上の利用分野 本発明は画像認識等に用いられるパターンマツチング回
路に関するものである。
DETAILED DESCRIPTION OF THE INVENTION Field of the Invention The present invention relates to a pattern matching circuit used for image recognition and the like.

従来の技術 近年、画像処理技術は多方面に応用され、その中で画像
認識におけるパターンマツチング技術はICの充実低価
格化という点で多く利用されるようになった。
BACKGROUND OF THE INVENTION In recent years, image processing technology has been applied to many fields, and among these, pattern matching technology for image recognition has come to be widely used in order to improve the quality of ICs and reduce their prices.

以下、図面を参照しながら、従来のパターンマツチング
回路について説明を行う。第4図は従来のパターンマツ
チング回路の構成番示すブロック図である。第4図にお
いて、21〜27はパターンマツチング現信号群”04
  とパターンマツチング用参照信号群”03 を現信
号群”04  と同じ大きさのブロックに分割した信号
群b01〜bo7の対応する信号をそれぞれ画素分位に
減算する減算器である。31〜37はブロック毎にブロ
ック内での差分のうち中央の値を代表値とする中央値回
路である。41は中央値回路31〜37の出方値より最
小値”18  と最小値を出した参照信号群を表すコー
ド’01  を出力する最小値・部位検出回路、42は
参照信号群の中心データd22〜d28の入力から部位
検出信号c01 の値にょシ出カデ−タa。7 を選択
するマルチプレクサである。
Hereinafter, a conventional pattern matching circuit will be explained with reference to the drawings. FIG. 4 is a block diagram showing the configuration number of a conventional pattern matching circuit. In Fig. 4, 21 to 27 are pattern matching current signal group "04".
This is a subtracter that subtracts corresponding signals of the signal groups b01 to bo7 obtained by dividing the pattern matching reference signal group "03" into blocks of the same size as the current signal group "04" to pixel quantiles. 31 to 37 are median value circuits that use the central value of the differences within each block as a representative value. 41 is a minimum value/part detection circuit that outputs a code '01 representing a reference signal group that has produced the minimum value "18" from the output values of the median value circuits 31 to 37; 42 is center data d22 of the reference signal group; This is a multiplexer that selects the value of the region detection signal c01 and the output data a.7 from the inputs of ~d28.

以上のように構成されたパターンマツチング回路につい
て以下その動作について説明する。
The operation of the pattern matching circuit configured as described above will be explained below.

まず、パターンマツチング用現信号群a O4は3×3
画素を1ブロツクとして、得られる9つの画素信号を1
つの信号群とする構成とし、パターンマツチング参照用
信号群a。3はパターンマツチングする範囲を水平方向
±3画素とすると3×7画素の構成となり7つの参照用
信号群b01〜b07に分けられる。入力信号a。4 
と照合するため参照用信号群b01〜b07のそれぞれ
対応する画素間で減算器21〜27で減算を行う。減算
器21〜27の出力b1.〜b、7は各信号群毎に中央
値回路31〜37によってブロック内差分の中央値が求
められる。中央値のデータ中で最小値を取る信号群がマ
ツチングした信号群であるため、中央値のデータb21
〜b2□は最小値、部位検出回路41に入力され、最小
値a18  と最小値の元となった信号群を表すコード
C01が出力される。マルチプレクサ42は、参照信号
群す。、〜b。7の中心データd22〜d28を入力と
し、コードC81の値からマツチングした信号群のデー
タを選択しao7 として出力する。
First, the current signal group a O4 for pattern matching is 3×3
The nine pixel signals obtained with each pixel as one block are
The pattern matching reference signal group a is configured as two signal groups. 3 has a configuration of 3×7 pixels when the pattern matching range is ±3 pixels in the horizontal direction, and is divided into seven reference signal groups b01 to b07. Input signal a. 4
In order to compare with the reference signal groups b01 to b07, subtractors 21 to 27 perform subtraction between corresponding pixels, respectively. Outputs b1. of subtractors 21-27. ~b, 7, the median value of intra-block differences is determined by median value circuits 31 to 37 for each signal group. Since the signal group that takes the minimum value in the median value data is a matched signal group, the median value data b21
~b2□ is the minimum value, which is input to the part detection circuit 41, and the minimum value a18 and the code C01 representing the signal group that is the source of the minimum value are output. The multiplexer 42 outputs a group of reference signals. ,~b. 7 center data d22 to d28 are input, data of a signal group matched from the value of code C81 is selected and output as ao7.

発明が解決しようとする問題点 しかしながら、上記のような構成では、一つの決った信
号群の形でしかマツチング処理ができず、多くの種類の
パターンでマツチング処理するには適当なものではなか
った。
Problems to be Solved by the Invention However, with the above configuration, matching processing can only be performed in the form of one fixed signal group, and it is not suitable for matching processing with many types of patterns. .

本発明は上記問題点に鑑み、複数のパターンでマツチン
グ処理をすることのできるパターンマツチング回路を提
供することを目的とするものである。
SUMMARY OF THE INVENTION In view of the above problems, it is an object of the present invention to provide a pattern matching circuit that can perform matching processing using a plurality of patterns.

問題点を解決するための手段 ゛この目的を達成するために本発明のパターンマツチン
グ回路は、画像認識して得られた画像信号群と参照信号
群との差を取る減算器と、参照パターン制御回路から印
加されるクリア信号によりその出力が制御されるラッチ
回路と、ラッチ回路の出力から差出力の中央値を求める
中央値回路とからなる。
Means for Solving the Problem ゛In order to achieve this object, the pattern matching circuit of the present invention includes a subtracter that takes the difference between an image signal group obtained by image recognition and a reference signal group, and a reference pattern. It consists of a latch circuit whose output is controlled by a clear signal applied from a control circuit, and a median circuit that calculates the median value of the difference output from the output of the latch circuit.

作  用 この構成によって、参照パターン制御回路とクリア機能
を有するラッチとの組み合せで複数のパターンでマツチ
ング処理することができる。
Function: With this configuration, matching processing can be performed using a plurality of patterns using a combination of a reference pattern control circuit and a latch having a clearing function.

実施例 以下、本発明の一実施例について図面を参照しながら説
明する。第1図は本発明の一実施例におけるパターンマ
ツチング回路の構成を示すブロック図である。なお、第
4図に示した構成と同様のものについては同符号を付し
てその詳細な説明を省略する。第1図において、21〜
27は減算器、31〜37は中央値回路、61〜67は
各減算器21〜27と中央値回路31〜37との間に挿
入されたクリア機能付きラッチ回路、41は最小値・部
位検出回路、61はラッチ回路61〜67にクリア信号
を印加し、パターンを決定・制御するパターン制御回路
であるパターン選択ROM142はマルチプレクサであ
る。
EXAMPLE Hereinafter, an example of the present invention will be described with reference to the drawings. FIG. 1 is a block diagram showing the configuration of a pattern matching circuit in one embodiment of the present invention. Components similar to those shown in FIG. 4 are designated by the same reference numerals, and detailed explanation thereof will be omitted. In Figure 1, 21~
27 is a subtracter, 31 to 37 are median value circuits, 61 to 67 are latch circuits with a clear function inserted between each subtractor 21 to 27 and median value circuits 31 to 37, and 41 is a minimum value/part detection The circuit 61 is a pattern control circuit which applies a clear signal to the latch circuits 61 to 67 and determines and controls patterns, and the pattern selection ROM 142 is a multiplexer.

第2図は第1図における減算器21.ラッチ61゜RO
Melの詳細図である。なお構成を理解しやすくするた
めにクリア信号のパターンを決定するROMelへの入
力は1ビツトとして、パターンは2種類として説明する
FIG. 2 shows the subtracter 21 in FIG. Latch 61°RO
It is a detailed diagram of Mel. In order to make the configuration easier to understand, the explanation will be based on the assumption that the input to ROMel that determines the pattern of the clear signal is 1 bit, and that there are two types of patterns.

以上のように構成されたパターンマツチング回路につい
て以下その動作について説明する。
The operation of the pattern matching circuit configured as described above will be explained below.

まず、認識画像信号群a04.参照信号群b01〜bo
7が信号群として減算器21〜27に入力され、全ての
データについて各画素から得られる画像信号毎に減算処
理が行われ出力b11〜b1□される。
First, recognized image signal group a04. Reference signal group b01 to bo
7 is input to subtracters 21 to 27 as a signal group, and subtraction processing is performed for each image signal obtained from each pixel for all data, and outputs b11 to b1□ are obtained.

各ブロックに対する処理は共通なので減算器21゜ラッ
チ61.中央値回路31について説明する。
Since the processing for each block is common, the subtracter 21 and the latch 61. The median circuit 31 will be explained.

クリア機能付ラッチ61はROMczからのクリア信号
がo″のとき、データ出力、クリア信号が1″のとき1
0″出力とする。減算器211〜219の出力b111
〜b119の全てをパターンマツチングする場合はRO
Melの出力(クリア信号)021  。29を全て@
0″にすれば良い。すなわち、ROMelに入力信号e
。とじて表に示すようにo″を印加する。そのときクリ
ア信号0021〜e029 は全て0”となり、マツチ
ングの対象となるパターンは、第3図(a)に示すパタ
ーンとなる。
The latch 61 with clear function outputs data when the clear signal from ROMcz is o'', and outputs 1 when the clear signal is 1''.
0'' output. Output b111 of subtractors 211 to 219
- If you want to pattern match all of b119, use RO
Mel output (clear signal) 021. All 29 @
0". In other words, input signal e to ROMel
. Then, o'' is applied as shown in the table. At this time, all of the clear signals 0021 to e029 become 0'', and the pattern to be matched becomes the pattern shown in FIG. 3(a).

次に第3図Cb)のパターンでパターンマツチングを行
うときは、表でe。1 がIll”の時のROM61の
出力e021〜e029を用いれば良い。
Next, when performing pattern matching using the pattern shown in Figure 3Cb), select e in the table. It is sufficient to use the outputs e021 to e029 of the ROM 61 when 1 is "Ill".

表 以上のように本実施例によれば、中央値回路31〜37
の前にROMelの出力で制御されるクリア機能付きラ
ッチ61〜67を用いることにより、パターンマツチン
グのパターンを複数、ここでは2種類にすることができ
る。
As shown in the table, according to this embodiment, the median circuits 31 to 37
By using latches 61 to 67 with a clear function controlled by the output of ROMel before the pattern matching, a plurality of patterns, here two types, can be used for pattern matching.

なお本実施例では基本参照データ群を3×3、パターン
の数を2種類としたが、ROM61の入力e01 のビ
ット数を増やすことで同様の方法で基本参照データ群の
拡大、パターン数の増加が可能である。
In this embodiment, the basic reference data group is 3×3 and the number of patterns is 2 types, but by increasing the number of bits of the input e01 of the ROM 61, the basic reference data group can be expanded and the number of patterns can be increased in the same way. is possible.

発明の効果 以上のように本発明は、パターン制御回路と、クリア機
能付きラッチ回路を付加することにより、複数のパター
ンでマツチング処理を行うことができ、その実用的効果
は大なるものがある。
Effects of the Invention As described above, the present invention can perform matching processing with a plurality of patterns by adding a pattern control circuit and a latch circuit with a clear function, and has great practical effects.

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

第1図は本発明の一実施例におけるパターンマツチング
回路のブロック図、第2図は第1図に示したパターンマ
ツチング回路の詳細ブロック図、第3図(a) 、 (
b)はROM出力コードによるマツチングパターンを説
明するだめの画面正面図、第4図は従来のパターンマツ
チング回路のブロック図である。 21〜27・・・・・・減算器、61〜67・・・・・
−クリア機能付ラッチ、31〜37・・・・・・中央値
回路、41・・・・・・最小値1部位検出回路、42・
・・・・・マルチプレクサ回路、61・・・・・・RO
M0 代理人の氏名 弁理士 中 尾 敏 男 ほか1名第 
3 図 ((IJ (b) 第4図
FIG. 1 is a block diagram of a pattern matching circuit according to an embodiment of the present invention, FIG. 2 is a detailed block diagram of the pattern matching circuit shown in FIG. 1, and FIGS.
b) is a front view of a screen for explaining a matching pattern based on a ROM output code, and FIG. 4 is a block diagram of a conventional pattern matching circuit. 21-27...Subtractor, 61-67...
- Latch with clear function, 31 to 37... Median value circuit, 41... Minimum value 1 part detection circuit, 42.
...Multiplexer circuit, 61...RO
M0 Name of agent Patent attorney Toshio Nakao and 1 other person
Figure 3 ((IJ (b) Figure 4

Claims (1)

【特許請求の範囲】[Claims] 認識画像信号群と参照信号群とを入力し各画素について
得られる画像信号毎に差をとる複数の減算器と、前記減
算器の出力を入力としその出力パターンがクリア信号に
より制御される複数のラッチ回路と、前記ラッチ回路の
出力を入力し差出力の中央値を求める中央値回路と、前
記中央値回路の出力を入力しその入力中で最小値を求め
る最小値・部位検出回路と、前記最小値、部位検出回路
の出力と前記参照信号群の中心データとを入力しマッチ
ングした信号群のデータを選択するマルチプレクサとを
有することを特徴とするパターンマッチング回路。
a plurality of subtracters that input a group of recognized image signals and a group of reference signals and take a difference for each image signal obtained for each pixel; and a plurality of subtracters that receive the output of the subtracters and whose output pattern is controlled by a clear signal. a latch circuit, a median value circuit which inputs the output of the latch circuit and calculates the median value of the difference output; a minimum value/part detection circuit which inputs the output of the median value circuit and calculates the minimum value among the inputs; 1. A pattern matching circuit comprising: a multiplexer inputting a minimum value, an output of the part detection circuit, and center data of the reference signal group and selecting data of the matched signal group.
JP31591387A 1987-12-14 1987-12-14 Pattern matching circuit Pending JPH01156878A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP31591387A JPH01156878A (en) 1987-12-14 1987-12-14 Pattern matching circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP31591387A JPH01156878A (en) 1987-12-14 1987-12-14 Pattern matching circuit

Publications (1)

Publication Number Publication Date
JPH01156878A true JPH01156878A (en) 1989-06-20

Family

ID=18071114

Family Applications (1)

Application Number Title Priority Date Filing Date
JP31591387A Pending JPH01156878A (en) 1987-12-14 1987-12-14 Pattern matching circuit

Country Status (1)

Country Link
JP (1) JPH01156878A (en)

Similar Documents

Publication Publication Date Title
US5737251A (en) Rank order filter
JPH03256485A (en) Motion vector detecting circuit
KR0167616B1 (en) Image processing apparatus and method of the same
JPH01156878A (en) Pattern matching circuit
JPH01156879A (en) Pattern matching circuit
JPH01288974A (en) Picture processing method
JPH01156877A (en) Pattern matching circuit
JPH05135169A (en) Two-dimensional spatial filter circuit
JP2832019B2 (en) Image processing device
JPH06162180A (en) Area extraction system
Ledley et al. TEXAC/PICTOL: a texture analysis computer and its special purpose language
JPS63285669A (en) Signal smoothing circuit
JPH0743769B2 (en) Digital image processor
US5727094A (en) Method and system for processing images capable of transition of a plurality of states for display
JPS6346875B2 (en)
JPS63182787A (en) Picture processing circuit
CN114897747A (en) 1-2 order fractional order differential filter of digital image
JPH02128575A (en) Picture processor
JPH0638041A (en) Image processor
JPH10290376A (en) Image processor
JPH06274617A (en) Median filter processing method
JP2806436B2 (en) Arithmetic circuit
JPH01142931A (en) Coincidence detecting circuit
GB2171574A (en) Image contraction and dilation
JPS6152472B2 (en)