JP3009230B2 - Correlation processing device, correlation processing method, and image processing device - Google Patents

Correlation processing device, correlation processing method, and image processing device

Info

Publication number
JP3009230B2
JP3009230B2 JP2403385A JP40338590A JP3009230B2 JP 3009230 B2 JP3009230 B2 JP 3009230B2 JP 2403385 A JP2403385 A JP 2403385A JP 40338590 A JP40338590 A JP 40338590A JP 3009230 B2 JP3009230 B2 JP 3009230B2
Authority
JP
Japan
Prior art keywords
data
compressed
correlated
compressed data
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
JP2403385A
Other languages
Japanese (ja)
Other versions
JPH04217076A (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.)
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 JP2403385A priority Critical patent/JP3009230B2/en
Publication of JPH04217076A publication Critical patent/JPH04217076A/en
Application granted granted Critical
Publication of JP3009230B2 publication Critical patent/JP3009230B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

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

【0001】 〔目 次〕 産業上の利用分野 従来の技術(図10,11 ) 発明が解決しようとする課題 課題を解決するための手段(図1,2,3) 作用 実施例 (1)本発明の実施例に係る相関処理装置の説明(図4
〜図6) (2)本発明の実施例に係る相関処理方法の説明(図7
〜図8) (3)本発明の実施例に係る画像処理装置の説明(図
9) 発明の効果
[Contents] Industrial application field Conventional technology (FIGS. 10 and 11) Problems to be Solved by the Invention Means for Solving the Problems (FIGS. 1, 2 and 3) Action Embodiment (1) Book Description of a correlation processing apparatus according to an embodiment of the present invention (FIG. 4)
To FIG. 6) (2) Description of a correlation processing method according to an embodiment of the present invention (FIG. 7)
(FIG. 9) FIG. 8 (3) Description of an image processing apparatus according to an embodiment of the present invention (FIG. 9)

【0002】[0002]

【産業上の利用分野】本発明は、相関処理装置,相関処
理方法及び画像処理装置に関するものであり、更に詳し
く言えば、2値化された被相関パターンと基準パターン
との相関処理装置の機能改善,その方法及びその応用装
置に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a correlation processing apparatus, a correlation processing method, and an image processing apparatus, and more particularly, to the function of a correlation processing apparatus between a binarized pattern to be correlated and a reference pattern. The present invention relates to an improvement, a method thereof, and an application device thereof.

【0003】近年、カメラ等の撮像装置より得た映像信
号を2値化処理をして2次元の2値画像パターンを作成
し、該パターンと基準パターンとを比較する画像処理装
置が使用されている。
In recent years, an image processing apparatus has been used which binarizes a video signal obtained from an imaging device such as a camera to create a two-dimensional binary image pattern and compares the pattern with a reference pattern. I have.

【0004】この装置に内蔵される相関処理装置によれ
ば、フレームパターンと基準パターンとの比較処理は被
画像取得対象の二値画像パターンから切り出したフレー
ムパターンデータ数百画素と基準パターンデータ数百画
素とが各画素単位(1対1)毎について行われている。
According to the correlation processing device built in this device, the comparison processing between the frame pattern and the reference pattern is performed by hundreds of pixels of frame pattern data and hundreds of reference pattern data cut out from the binary image pattern to be acquired. Pixels are performed for each pixel unit (one-to-one).

【0005】このため、半導体集積回路装置等の被検査
対象の微細化の要求に対処すべく、相関処理パターンサ
イズの一辺を2倍に増加すると、両パターンの比較処理
をする情報量が4倍に増加する。このことからフレーム
パターンデータと基準パターンデータとを1画素単位毎
にチェックする方法では、切り出しパターンサイズの一
辺の2乗に比例した比較時間を要するという問題があ
る。
For this reason, if one side of the correlation processing pattern size is doubled in order to cope with the demand for miniaturization of an object to be inspected such as a semiconductor integrated circuit device, the amount of information required for comparison processing of both patterns is quadrupled. To increase. Thus, the method of checking the frame pattern data and the reference pattern data for each pixel has a problem that a comparison time proportional to the square of one side of the cut-out pattern size is required.

【0006】そこで、データ圧縮した被相関パターンと
基準パターンとの比較処理をして、比較画素数が増加し
た場合であっても、取扱いデータ量の低減化を図り、高
速に相関処理やパターン検査をすることができる装置,
方法及びその応用装置のが望まれている。
Therefore, a comparison process between the data-compressed correlated pattern and the reference pattern is performed, and even if the number of comparison pixels increases, the amount of data to be handled is reduced, and the correlation processing and pattern inspection are performed at high speed. Equipment that can do
There is a need for a method and its application.

【0007】[0007]

【従来の技術】図10,11は、従来例に係る説明図であ
る。
2. Description of the Related Art FIGS. 10 and 11 are explanatory views according to a conventional example.

【0008】図10は、従来例に係る相関処理装置の構成
図を示している。図において、例えば、カメラ等により
撮像された被画像取得対象の二値画像パターンとその基
準パターンとの形状比較処理をする相関処理装置は、該
被画像取得対象の比較対象領域(被相関パターン)の切
り出し位置を設定するY初点設定レジスタ1A,X初点
設定レジスタ1Bと、基準パターンの切り出し位置を設
定するY初点設定レジスタ1C,X初点設定レジスタ1
Dと、それらのアドレスを発生するYカウンタ2A,2
C,Xカウンタ2B,2Dと、被相関パターンデータD
12を記憶する被相関パターン用メモリ3Aと、基準パタ
ーンデータD22を記憶する基準パターン用メモリ3B
と、被相関パターンデータD12の選択をする8−1セレ
クタ4Aと、基準パターンデータD22の選択をする8−
1セレクタ4Bと、選択された被相関パターンデータD
12と基準パターンデータD22とを比較する比較処理回路
5と、その比較結果データを出力する出力回路6から成
る。
FIG. 10 is a block diagram of a conventional correlation processing apparatus. In the figure, for example, a correlation processing device that performs a shape comparison process between a binary image pattern of an image acquisition target captured by a camera or the like and a reference pattern thereof includes a comparison target area (correlation pattern) of the image acquisition target. Start point setting register 1A, X start point setting register 1B for setting the cutout position of Y, and Y start point setting register 1C, X start point setting register 1 for setting the cutout position of the reference pattern
D and Y counters 2A, 2 which generate those addresses
C, X counters 2B, 2D and correlated pattern data D
And a reference pattern memory 3B for storing reference pattern data D22.
8--1 selector 4A for selecting correlated pattern data D12 and 8-1-selector for selecting reference pattern data D22.
1 selector 4B and the selected correlated pattern data D
It comprises a comparison processing circuit 5 for comparing 12 with the reference pattern data D22, and an output circuit 6 for outputting the comparison result data.

【0009】また、図11(a),(b)は、従来例に係
る相関処理方法の説明図であり、同図(a)は、フレー
ムパターンPAと基準パターンPBとの関係図を示して
いる。
FIGS. 11A and 11B are explanatory diagrams of a correlation processing method according to a conventional example, and FIG. 11A shows a relationship diagram between a frame pattern PA and a reference pattern PB. I have.

【0010】同図(a)において、カメラ等により撮像
された半導体集積回路装置等の被画像取得対象の二値画
像パターンと該一領域に描かれた文字や記号等の基準パ
ターンとをパターンマッチング(形状比較)処理する場
合、例えば、512 ×512 画素のメモリ3Aの内容からX
×YサイズのフレームパターンPAを切り出し、また、
メモリ3Bの内容からX×Yサイズの基準パターンPB
の読出し処理をする。この際に、該被画像取得対象の比
較対象領域(被相関パターン)の切り出し位置がY初点
設定レジスタ1A,X初点設定レジスタ1Bにより設定
され、基準パターンの切り出し位置がY初点設定レジス
タ1C,X初点設定レジスタ1Dにより設定される。
In FIG. 1A, a binary image pattern of an image acquisition target such as a semiconductor integrated circuit device imaged by a camera or the like is matched with a reference pattern such as characters and symbols drawn in the one area. When performing (shape comparison) processing, for example, X from the contents of the memory 3A of 512 × 512 pixels is used.
Cut out the frame pattern PA of × Y size,
X × Y size reference pattern PB from the contents of memory 3B
Is read out. At this time, the cutout position of the comparison target area (correlated pattern) of the image acquisition target is set by the Y start point setting register 1A and the X start point setting register 1B, and the cutout position of the reference pattern is set by the Y start point setting register. 1C and X are set by the initial point setting register 1D.

【0011】また、それらのパターンデータを読み出す
ためのアドレスがYカウンタ2A,2C,Xカウンタ2
B,2Dにより発生され、被相関パターンデータD12が
被相関パターン用メモリ3Aから読み出される。なお、
基準パターンデータD22が基準パターン用メモリ3Bか
ら読み出される。また、被相関パターンデータD12が8
−1セレクタ4Aにより選択され、基準パターンデータ
D22が8−1セレクタ4Bにより選択される。
The addresses for reading these pattern data are stored in Y counters 2A, 2C, X counter 2
B and 2D, and the correlated pattern data D12 is read from the correlated pattern memory 3A. In addition,
The reference pattern data D22 is read from the reference pattern memory 3B. The correlated pattern data D12 is 8
-1 selector 4A, and reference pattern data D22 is selected by 8-1 selector 4B.

【0012】図(b)は、フレームパターンPAと基準
パターンPBとを比較処理している概念図を示してい
る。
FIG. 2B is a conceptual diagram showing a comparison process between the frame pattern PA and the reference pattern PB.

【0013】同図(b)において、両パターンPA,P
Bのパターンマッチング処理は、例えば、パターンPA
の比較画素数=8×10画素とパターンPBの比較画素
数=8×10画素とが各画素単位(1対1)毎に比較処
理される。この際に、8−1セレクタ4A,4Bで選択
された被相関(以下フレームともいう)パターンデータ
D12と基準パターンデータD22とが比較処理回路5で比
較される。すなわち、比較処理回路5の比較器で両デー
タD12,D22に係る800画素対800画素が個々比較
演算される。その比較結果データが出力回路6から出力
される。その後、例えば、両パターンPA,PBの一致
しない画素数が計数され、累積不一致数と判定基準とが
比較される。
In FIG. 1B, both patterns PA, P
The pattern matching process of B is performed by, for example, pattern PA
Is compared with the comparison pixel number of 8 × 10 pixels and the comparison pixel number of the pattern PB = 8 × 10 pixels for each pixel unit (one-to-one). At this time, the comparison processing circuit 5 compares the correlated (hereinafter also referred to as frame) pattern data D12 selected by the 8-1 selectors 4A and 4B with the reference pattern data D22. That is, the comparator of the comparison processing circuit 5 performs an individual comparison operation on 800 pixels to 800 pixels of both data D12 and D22. The comparison result data is output from the output circuit 6. Thereafter, for example, the number of pixels in which the patterns PA and PB do not match is counted, and the cumulative number of mismatches is compared with a determination criterion.

【0014】これにより、被画像取得対象の二値画像パ
ターンとその基準パターンとのパターンマッチング処理
をすることができる。
Thus, a pattern matching process between the binary image pattern to be acquired and the reference pattern can be performed.

【0015】[0015]

【発明が解決しようとする課題】ところで従来例によれ
ば、フレームパターンPAと基準パターンPBとの比較
処理は、図11(a),(b)に示すように、被画像取得
対象の二値画像パターンから切り出したフレームパター
ンデータD12=8×10画素と基準パターンデータD22
=8×10画素とを各画素単位(1対1)毎について比
較処理をしている。
According to the prior art, the comparison process between the frame pattern PA and the reference pattern PB is performed as shown in FIGS. 11 (a) and 11 (b). Frame pattern data D12 = 8 × 10 pixels cut out from the image pattern and reference pattern data D22
= 8 × 10 pixels are compared for each pixel unit (one-to-one).

【0016】このため、半導体集積回路装置等の被検査
対象の微細化の要求に対処すべく、相関処理をするパタ
ーンサイズX×Yの一辺を2倍にすると、両パターンP
A,PBの比較処理をする情報量が4倍に増加する。こ
のことからフレームパターンデータ12と基準パターンデ
ータD22とを1画素単位毎にチェックする方法では、切
り出しパターンサイズX×Yの一辺の2乗に比例した比
較時間を要することとなる。また、評価判定精度の向上
を図るためには、画像処理装置の光学系分解能を高める
ことは必須である。
For this reason, if one side of the pattern size X × Y to be correlated is doubled in order to cope with the demand for miniaturization of the object to be inspected such as a semiconductor integrated circuit device, both patterns P
The amount of information for comparison processing of A and PB is quadrupled. Therefore, in the method of checking the frame pattern data 12 and the reference pattern data D22 for each pixel, a comparison time proportional to the square of one side of the cutout pattern size X × Y is required. Also, in order to improve the evaluation determination accuracy, it is essential to increase the resolution of the optical system of the image processing apparatus.

【0017】これにより、半導体集積回路装置の微細
化,高集積化に伴い相関処理をする情報量が益々多くな
り、相関処理時間も益々長くなるという問題がある。ま
た、当該相関処理装置を内蔵した画像処理装置ではパタ
ーン検査の高速化の妨げとなるという問題がある。
As a result, there is a problem that as the size of the semiconductor integrated circuit device becomes finer and more highly integrated, the amount of information to be subjected to correlation processing increases, and the correlation processing time also increases. Further, in an image processing apparatus incorporating the correlation processing apparatus, there is a problem that the speed of pattern inspection is hindered.

【0018】本発明は、かかる従来例の問題点に鑑み創
作されたものであり、被相関パターンと基準パターンと
を1画素単位毎に比較処理することなく、データ圧縮し
た被相関パターンと基準パターンとの比較処理をして、
比較画素数が増加した場合であっても、取扱いデータ量
の低減化を図り、高速に相関処理やパターン検査をする
ことが可能となる相関処理装置及び画像処理装置の提供
を目的とする。
The present invention has been made in view of the above-described problems of the prior art, and does not compare the correlated pattern and the reference pattern on a pixel-by-pixel basis. And compare it with
It is an object of the present invention to provide a correlation processing apparatus and an image processing apparatus that can reduce the amount of handled data and perform high-speed correlation processing and pattern inspection even when the number of comparison pixels increases.

【0019】[0019]

【課題を解決するための手段】図1は、本発明に係る相
関処理装置の原理図,図2(a),(b)は、本発明に
係る相関処理方法の原理図及び図3は、本発明に係る画
像処理装置の原理図をそれぞれ示している。
FIG. 1 is a diagram showing the principle of a correlation processing apparatus according to the present invention, FIGS. 2A and 2B are diagrams showing the principle of a correlation processing method according to the present invention, and FIG. 1 shows principle diagrams of an image processing apparatus according to the present invention.

【0020】本発明の相関処理装置は、図1に示すよう
に、被相関処理対象19の二値画像パターンデータD1
を圧縮して被相関圧縮データD11を出力する第1のデー
タ圧縮手段11と、前記被相関処理対象19の基準パタ
ーンデータD2を圧縮して基準圧縮データD21を出力す
る第2のデータ圧縮手段12と、前記被相関圧縮データ
D11と基準圧縮データD21との相関処理をする圧縮デー
タ相関処理手段13とを有し、前記圧縮データ相関処理
手段13が、第1の制御信号S1に基づいて前記被相関
圧縮データD11を出力する被相関圧縮データ出力手段13
Aと、第2の制御信号S2に基づいて前記基準圧縮デー
タD21を出力する基準圧縮データ出力手段13Bと、前記
被相関圧縮データD11及び基準圧縮データD21の差を更
新データDRとして出力するデータ演算出力手段13C
と、前記更新データDR、前記被相関圧縮データD11及
び前記基準圧縮データD21に基づいて相関処理をするデ
ータ比較出力手段13Dと、基準信号CLKに基づいて前記
第1及び第2の制御信号S1,S2を出力するデータ入
出力制御手段13Eとを有することを特徴とする。
As shown in FIG. 1, the correlation processing apparatus according to the present invention provides the binary image pattern data D1
And a second data compression unit 12 for compressing the reference pattern data D2 of the correlation target 19 and outputting the reference compressed data D21. And a compressed data correlation processing unit 13 for performing a correlation process between the correlated compressed data D11 and the reference compressed data D21, and the compressed data correlation processing unit 13 performs the correlation processing based on a first control signal S1. Correlated compressed data output means 13 for outputting correlated compressed data D11
A, a reference compressed data output means 13B for outputting the reference compressed data D21 based on the second control signal S2, and a data operation for outputting a difference between the correlated compressed data D11 and the reference compressed data D21 as update data DR. Output means 13C
A data comparison output unit 13D for performing a correlation process based on the update data DR, the correlated compressed data D11 and the reference compressed data D21, and the first and second control signals S1, And a data input / output control means 13E for outputting S2.

【0021】本発明の相関処理方法は、図2(a),
(b)に示すように,まず、ステップP1で被相関処理
対象19の二値画像パターンデータD1の圧縮処理を
し、次いで,ステップP2で前記圧縮処理された被相関
圧縮データD11と前記被相関処理対象19の基準パター
ンデータD2を圧縮処理した基準圧縮データD21との比
較検出処理をする相関処理方法において、前記比較検出
処理は、行単位にnビットの被相関圧縮データD11及び
nビットの基準圧縮データD21の各々最上位ビットの二
値画論理値0/1、下位n−1ビットの同一論理値0/
1に基づいて比較更新処理をすることを特徴とする。
The correlation processing method of the present invention is shown in FIG.
As shown in (b), first, in step P1, the binary image pattern data D1 of the correlated processing target 19 is compressed, and then in step P2, the compressed correlated compressed data D11 and the correlated compressed data D11 are processed. In a correlation processing method for performing comparison and detection processing with reference compressed data D21 obtained by compressing the reference pattern data D2 of the processing target 19, the comparison and detection processing includes n-bit correlated compressed data D11 and n-bit reference data for each row. The binary image logical value 0/1 of the most significant bit and the same logical value 0 / of the lower n-1 bits of each of the compressed data D21
1 is characterized by performing a comparison update process.

【0022】本発明の画像処理装置は、図3,図1に示
すように、被画像取得対象20の画像取得データDINを
入出力する画像入出力手段14と、前記画像取得データ
DINの二値化処理をして二値画像パターンデータD1の
出力をする信号処理手段15と、前記被画像取得対象2
0の基準パターンデータD2を格納する記憶手段16
と、前記二値画像パターンデータD1と基準パターンデ
ータD2との相関処理をして相関結果データD3の出力
をする相関処理手段17と、前記相関結果データD3と
判定基準データD4とに基づいて判定結果データDout
を出力する判定出力手段18とを具備し、前記相関処理
手段17が、被相関処理対象19の二値画像パターンデ
ータD1を圧縮して被相関圧縮データD11を出力する第
1のデータ圧縮手段11と、前記被相関処理対象19の
基準パターンデータD2を圧縮して基準圧縮データD21
を出力する第2のデータ圧縮手段12と、前記被相関圧
縮データD11と基準圧縮データD21との相関処理をする
圧縮データ相関処理手段13とを有し、且つ、前記圧縮
データ相関処理手段13が、第1の制御信号S1に基づ
いて前記被相関圧縮データD11を出力する被相関圧縮デ
ータ出力手段13Aと、第2の制御信号S2に基づいて前
記基準圧縮データD21を出力する基準圧縮データ出力手
段13Bと、前記被相関圧縮データD11及び基準圧縮デー
タD21の差を更新データDRとして出力するデータ演算
出力手段13Cと、前記更新データDR、前記被相関圧縮
データD11及び前記基準圧縮データD21に基づいて相関
処理をするデータ比較出力手段13Dと、基準信号CLKに
基づいて前記第1及び第2の制御信号S1,S2を出力
するデータ入出力制御手段13Eとを有することを特徴と
する。
As shown in FIGS. 3 and 1, the image processing apparatus according to the present invention comprises: an image input / output unit 14 for inputting / outputting image acquisition data DIN of an image acquisition target 20; Signal processing means 15 for performing binarization processing and outputting binary image pattern data D1;
Storage means 16 for storing reference pattern data D2 of 0
A correlation processing unit 17 that performs a correlation process between the binary image pattern data D1 and the reference pattern data D2 and outputs correlation result data D3; and a determination based on the correlation result data D3 and the determination reference data D4. Result data Dout
The correlation processing means 17 compresses the binary image pattern data D1 of the correlated processing target 19 and outputs correlated compressed data D11. And compresses the reference pattern data D2 of the correlated processing target 19 to generate the reference compressed data D21.
And compressed data correlation processing means 13 for performing a correlation process between the correlated compressed data D11 and the reference compressed data D21, and the compressed data correlation processing means 13 A correlated compressed data output means 13A for outputting the correlated compressed data D11 based on the first control signal S1, and a reference compressed data output means for outputting the reference compressed data D21 based on the second control signal S2. 13B, a data calculation output unit 13C that outputs the difference between the correlated compressed data D11 and the reference compressed data D21 as update data DR, and based on the update data DR, the correlated compressed data D11 and the reference compressed data D21. A data comparison / output unit 13D for performing a correlation process, and a data input / output control unit 13 for outputting the first and second control signals S1 and S2 based on a reference signal CLK. E.

【0023】[0023]

【作 用】本発明の相関処理装置によれば、図1に示す
ように、第1のデータ圧縮手段11,第2のデータ圧縮
手段12及び圧縮データ相関処理手段13が具備され、
該圧縮データ相関処理手段13が被相関圧縮データ出力
手段13A,基準圧縮データ出力手段13B,データ演算出
力手段13C,データ比較出力手段13D及びデータ入出力
制御手段13Eから成っている。
According to the correlation processing apparatus of the present invention, as shown in FIG. 1, a first data compression means 11, a second data compression means 12, and a compressed data correlation processing means 13 are provided.
The compressed data correlation processing means 13 comprises correlated compressed data output means 13A, reference compressed data output means 13B, data operation output means 13C, data comparison output means 13D, and data input / output control means 13E.

【0024】このため、被相関処理対象19の二値画像
パターンデータD1が第1のデータ圧縮手段11により
圧縮されると、データ入出力制御手段13Eからの第1の
制御信号S1に基づいて被相関圧縮データD11が被相関
圧縮データ出力手段13Aを介してデータ演算出力手段13
C,データ比較出力手段13Dに出力される。一方、被相
関処理対象19の基準パターンデータD2が第2のデー
タ圧縮手段11により圧縮されると、第2の制御信号S
2に基づいて基準圧縮データD21が基準圧縮データ出力
手段13Bを介してデータ演算出力手段13C,データ比較
出力手段13Dに出力される。このことで、データ演算出
力手段13Cでは、被相関圧縮データD11と基準圧縮デー
タD21との差を更新データDRとしてデータ比較出力手
段13Dに出力される。また、データ比較手段13Dでは、
被相関圧縮データD11,基準圧縮データD21及び更新デ
ータDRに基づいて相関処理され、その結果、相関結果
データD3を出力することが可能となる。
For this reason, when the binary image pattern data D1 of the correlated processing target 19 is compressed by the first data compression means 11, the data is processed based on the first control signal S1 from the data input / output control means 13E. The correlation compressed data D11 is supplied to the data operation output means 13 via the correlated compressed data output means 13A.
C, output to the data comparison output means 13D. On the other hand, when the reference pattern data D2 of the correlated processing target 19 is compressed by the second data compression unit 11, the second control signal S2
2, the reference compressed data D21 is output to the data calculation output means 13C and the data comparison output means 13D via the reference compressed data output means 13B. As a result, in the data calculation output means 13C, the difference between the correlated compressed data D11 and the reference compressed data D21 is output to the data comparison output means 13D as update data DR. In the data comparing means 13D,
Correlation processing is performed based on the correlated compressed data D11, the reference compressed data D21, and the update data DR, and as a result, it is possible to output correlation result data D3.

【0025】これにより、半導体集積回路装置の微細
化,高集積化に伴う相関処理をする情報量が益々多くな
った場合でも、従来例のようにフレームパターンデータ
D12と基準パターンデータD22とを1画素単位毎にチェ
ックすることが無なくなり、相関処理時間の短縮化を図
ることが可能となる。
As a result, even if the amount of information for performing the correlation processing with the miniaturization and high integration of the semiconductor integrated circuit device is increased, the frame pattern data D12 and the reference pattern data D22 are not changed as in the conventional example. There is no need to check for each pixel unit, and the correlation processing time can be reduced.

【0026】また、本発明の相関処理方法によれば、図
2(a),(b)に示すように、ステップP1の二値画
像パターンデータD1の圧縮処理に続いて、ステップP
2で被相関圧縮データD11と基準パターンデータD2を
圧縮処理した基準圧縮データD21との比較検出処理をし
ている。
Further, according to the correlation processing method of the present invention, as shown in FIGS. 2A and 2B, following the compression processing of the binary image pattern data D1 at step P1, step P
In step 2, a comparison detection process is performed between the correlated compressed data D11 and the reference compressed data D21 obtained by compressing the reference pattern data D2.

【0027】例えば、ステップP1で二値画像パターン
データD1及び基準パターンデータD2を行単位に同一
二値画論理値0/1の連続数に基づいて圧縮処理した被
相関圧縮データD11と、基準パターンデータD2を圧縮
処理した基準圧縮データD21とがステップP2で行単位
にnビットの被相関圧縮データD11及びnビットの基準
圧縮データD21の各々最上位ビットの二値画論理値0/
1,下位n−1ビットの同一論理値0/1に基づいて比
較更新処理されている。
For example, in step P1, the correlated compressed data D11 obtained by compressing the binary image pattern data D1 and the reference pattern data D2 on a line basis based on the number of consecutive identical binary image logical values 0/1; The reference compressed data D21 obtained by compressing the pattern data D2 is combined with the n-bit correlated compressed data D11 and the n-bit reference compressed data D21 each of the most significant bit of the binary image logical value 0 / at step P2.
The comparison and update processing is performed based on the same logical value 0/1 of 1, 1 and lower n-1 bits.

【0028】このため、被相関パターンと基準パターン
とを従来例のように1画素単位毎に比較処理することな
く、両パターンを圧縮データ単位毎に比較処理をするこ
とが可能となる。このことで、比較画素数が増加した場
合であっても、取扱いデータ量の低減化を図ることが可
能となる。
For this reason, it is possible to compare both patterns for each compressed data unit without comparing the correlated pattern and the reference pattern for each pixel unit as in the conventional example. This makes it possible to reduce the amount of handled data even if the number of comparison pixels increases.

【0029】これにより、ハード的に相関処理をするこ
とができ、当該相関処理装置を内蔵した画像処理装置の
パターン検査等の高速化を図ることが可能となる。
Thus, the correlation processing can be performed in a hardware manner, and the speed of pattern inspection and the like of an image processing apparatus incorporating the correlation processing apparatus can be increased.

【0030】本発明の画像処理装置によれば、図3に示
すように画像入出力手段14,信号処理手段15,記憶
手段16,相関処理手段17及び判定出力手段18が具
備され、該相関処理手段17が上記相関処理装置から成
っている。
According to the image processing apparatus of the present invention, as shown in FIG. 3, an image input / output unit 14, a signal processing unit 15, a storage unit 16, a correlation processing unit 17 and a judgment output unit 18 are provided. Means 17 comprises the above-mentioned correlation processing device.

【0031】このため、被画像取得対象20のアナログ
画像取得信号DINが画像入出力手段14に入力される
と、該取得信号DINが信号処理手段15により二値化処
理され、その二値画像パターンデータD1が相関処理手
段17に出力される。また、記憶手段16に格納されて
いる被画像取得対象20の基準パターンデータD2が読
み出され、それが相関処理手段17に出力される。この
ことで、二値画像パターンデータD1と基準パターンデ
ータD2とが相関処理手段17により相関処理され、そ
の相関結果データD3が判定出力手段18に出力され
る。また、該判定出力手段18では、相関結果データD
3と判定基準データD4とに基づいて判定結果データD
out が判定出力手段18により出力することが可能とな
る。
For this reason, when the analog image acquisition signal DIN of the image acquisition target 20 is input to the image input / output means 14, the acquisition signal DIN is binarized by the signal processing means 15, and the binary image pattern The data D1 is output to the correlation processing unit 17. Further, the reference pattern data D2 of the image acquisition target 20 stored in the storage unit 16 is read out and output to the correlation processing unit 17. As a result, the binary image pattern data D1 and the reference pattern data D2 are correlated by the correlation processing unit 17, and the correlation result data D3 is output to the determination output unit 18. The judgment output means 18 outputs the correlation result data D
3 and the determination result data D based on the determination reference data D4.
out can be output by the judgment output means 18.

【0032】これにより、半導体集積回路装置の微細
化,高集積化に伴う相関処理をする情報量が益々多くな
った場合でも、画像圧縮/相関処理をしているので画像
処理時間の短縮化を図ること,及び当該画像処理装置の
光学系分解能を高めることが可能となる。また、評価判
定精度の向上及び当該画像処理装置の性能の向上を図る
ことが可能となる。
As a result, even when the amount of information for performing the correlation processing accompanying the miniaturization and high integration of the semiconductor integrated circuit device increases, the image compression / correlation processing is performed, so that the image processing time can be reduced. It is possible to improve the resolution of the optical system of the image processing apparatus. Further, it is possible to improve the evaluation determination accuracy and the performance of the image processing apparatus.

【0033】なお、画像処理装置において、被画像処理
対象20の圧縮処理された基準パターンデータD21を予
め記憶手段16に記憶処理をすることで、第2のデータ
圧縮手段12を省略することが可能となる。
In the image processing apparatus, the second data compression unit 12 can be omitted by storing the compressed reference pattern data D21 of the image processing target 20 in the storage unit 16 in advance. Becomes

【0034】これにより、当該画像処理装置のコンパク
ト化及び低廉化を図ることが可能となる。
This makes it possible to reduce the size and cost of the image processing apparatus.

【0035】[0035]

【実施例】次に図を参照しながら本発明の実施例につい
て説明をする。
Next, an embodiment of the present invention will be described with reference to the drawings.

【0036】図4〜図9は、本発明の実施例に係る相関
処理装置,相関処理方法及び画像処理装置を説明する図
である。
FIGS. 4 to 9 are diagrams for explaining a correlation processing apparatus, a correlation processing method, and an image processing apparatus according to an embodiment of the present invention.

【0037】(1)本発明の実施例に係る相関処理装置
の説明(図4〜図6) 図4(a),(b)は、本発明の実施例に係る相関処理
装置の説明図であり、同図(a)はその構成図を示して
いる。
(1) Description of the Correlation Processing Apparatus According to the Embodiment of the Present Invention (FIGS. 4 to 6) FIGS. 4A and 4B are explanatory diagrams of the correlation processing apparatus according to the embodiment of the present invention. FIG. 1A shows a configuration diagram of the same.

【0038】同図(a)において、パターン検査装置等
に内蔵される相関処理装置は、フレームデータ圧縮回路
21,基準データ圧縮回路22及び圧縮データ相関処理
回路23から成る。
In FIG. 1A, a correlation processing device incorporated in a pattern inspection device or the like includes a frame data compression circuit 21, a reference data compression circuit 22, and a compressed data correlation processing circuit 23.

【0039】すなわち、フレームデータ圧縮回路21は
第1のデータ圧縮手段11の一実施例であり、図5に示
すような被相関処理対象(例えば、ローマ字「A」)1
9の二値画像パターンデータD1を圧縮して被相関圧縮
データ(以下単にフレームデータFMということもあ
る)D11をフレームデータメモリ30Aに出力するもので
ある。
That is, the frame data compression circuit 21 is an embodiment of the first data compression means 11, and is a target for correlation processing (for example, a Roman character "A") 1 as shown in FIG.
9 to compress the binary image pattern data D1 and output correlated compressed data (hereinafter, sometimes simply referred to as frame data FM) D11 to the frame data memory 30A.

【0040】基準データ圧縮回路22は第2のデータ圧
縮手段12の一実施例であり、被相関処理対象19の基
準パターンデータD2を圧縮して基準圧縮データ(以下
単に基準データJMということもある)D21を基準デー
タメモリ30Bに出力するものである。なお、各圧縮回路
21,22の圧縮機能については図5において説明をす
る。
The reference data compression circuit 22 is an embodiment of the second data compression means 12, and compresses the reference pattern data D2 of the target 19 to be correlated to generate reference compressed data (hereinafter sometimes simply referred to as reference data JM). ) D21 is output to the reference data memory 30B. The compression function of each of the compression circuits 21 and 22 will be described with reference to FIG.

【0041】圧縮データ相関処理回路23は圧縮データ
相関処理手段13の一実施例であり、被相関圧縮データ
D11と基準圧縮データD21との相関処理をするものであ
る。なお、圧縮データ相関処理回路23については図6
において、フレームデータメモリ30A,基準データメモ
リ30Bをデータ供給源にして詳述する。
The compressed data correlation processing circuit 23 is an embodiment of the compressed data correlation processing means 13 and performs a correlation process between the correlated compressed data D11 and the reference compressed data D21. Note that the compressed data correlation processing circuit 23 is shown in FIG.
In the following, the frame data memory 30A and the reference data memory 30B will be described in detail using a data supply source.

【0042】同図(b)は本発明の実施例に係る相関処
理装置において取り扱うデータ構造を示している。
FIG. 6B shows a data structure handled in the correlation processing apparatus according to the embodiment of the present invention.

【0043】同図(b)において、DFはデータフォー
マットであり、本発明の実施例に係る相関処理装置で取
り扱う被相関圧縮データD11,基準パターンデータD21
のデータ構造を示している。例えば、8ビットの圧縮デ
ータ構造の場合、第0ビット目〜第6ビット目までが二
値画論理長(最大128 画素)データを示し、第7ビット
目が二値画論理値(1/0)データを示すものである。
In FIG. 6B, DF is a data format, and the compressed data D11 and the reference pattern data D21 are used in the correlation processor according to the embodiment of the present invention.
3 shows a data structure of the data. For example, in the case of an 8-bit compressed data structure, the 0th to 6th bits indicate binary image logical length (maximum 128 pixels) data, and the 7th bit indicates the binary image logical value (1/0). ) Shows the data.

【0044】図5は、本発明の実施例に係る各データ圧
縮回路の機能説明図を示している。図において、例え
ば、被相関処理対象19がローマ字「A」の場合であっ
て、その二値画像パターン(全画素=14列×14行=
196 画素)を圧縮して圧縮画パターンを作成する場合、
各行方向に連続する論理値(1/0)を計数して圧縮処
理をするものである。この際に、先のデータフォーマッ
トDFに基づいて圧縮処理をする。
FIG. 5 is a functional explanatory diagram of each data compression circuit according to the embodiment of the present invention. In the figure, for example, when the correlated processing target 19 is a Roman character “A” and its binary image pattern (all pixels = 14 columns × 14 rows =
196 pixels) to create a compressed image pattern,
The compression process is performed by counting logical values (1/0) that are continuous in each row direction. At this time, a compression process is performed based on the data format DF.

【0045】例えば、二値画像パターンのY6行目につ
いて列X1からX14について注目すれば、論理値「0」
が3個,続いて「1」が2個,「0」が3個、「1」が
2個及び「0」が4個連続している。
For example, if attention is paid to the columns X1 to X14 in the Y6th row of the binary image pattern, the logical value "0" is obtained.
, Followed by two “1”, three “0”, two “1”, and four “0”.

【0046】これを圧縮処理すると、まず、論理値
「0」の3個連続については、2進法表示では「000
00011」〔ヘキサ表示では「03」〕となり、次
に、論理値「1」の2個連続については、同様に「10
000010」〔同様に「12」〕となる。また、論理
値「0」の3個連続については、「00000011」
〔「03」〕となり、論理値「1」の2個連続について
は、同様に「10000010」〔同様に「12」〕と
なる。なお、論理値「0」の4個連続については、「0
0001111」〔「04」〕となる。
When this is compressed, first, for three consecutive logical values "0", "000" is displayed in binary notation.
00011 "(" 03 "in hexadecimal notation). Then, for two consecutive logical values" 1 "," 10 "
000010 "[similarly," 12 "]. For three consecutive logical values "0", "000000011"
[“03”], and for two consecutive logical values “1”, similarly, “10000010” [similarly, “12”]. Note that, for four consecutive logical values “0”, “0”
0001111 "[" 04 "].

【0047】これにより、14列×14行=196 画素の
ローマ字「A」の二値画像パターンがY1行目=0E,
00、Y2行目=06,11,07,00、…Y6行目
=03,12,03,12,04,00、…Y14行目=
0E,00〔いずれもヘキサ表示〕の64個(比較処理
データ数は48個)のデータに圧縮することができる。
なお、各圧縮データの「00」は終了フラグを示してい
る。
As a result, the binary image pattern of the Roman character “A” of 14 columns × 14 rows = 196 pixels is obtained from the Y1 row = 0E,
00, Y2 line = 06, 11, 07, 00,... Y6 line = 03, 12, 03, 12, 04, 00,.
The data can be compressed to 64 data of 0E and 00 (both in hexadecimal) (the number of comparison processing data is 48).
“00” of each compressed data indicates an end flag.

【0048】図6は本発明の実施例に係る圧縮データ相
関処理回路の構成図を示している。図において、圧縮デ
ータ相関処理手段13の一実施例となる圧縮データ相関
処理回路23は、フレームデータ出力回路23A,基準デ
ータ出力回路23B,データ演算出力回路23C,データ比
較出力回路23C及びデータ入出力制御回路23Eから成
る。
FIG. 6 is a configuration diagram of a compressed data correlation processing circuit according to an embodiment of the present invention. In the figure, a compressed data correlation processing circuit 23 as one embodiment of the compressed data correlation processing means 13 includes a frame data output circuit 23A, a reference data output circuit 23B, a data operation output circuit 23C, a data comparison output circuit 23C, and a data input / output. It comprises a control circuit 23E.

【0049】すなわち、フレームデータ出力回路23Aは
被相関圧縮データ出力手段13Aの一実施例であり、アド
レス更新回路31,フレームデータメモリ30A,トリス
テートバッファ32及びフレームデータ保持回路(以下
FMデータ保持回路という)33から成る。フレームデ
ータ出力回路23Aの機能は、第1の制御信号S1の一例
となる反転データ(X)更新パルスSP2,一致検出パル
スSP4,Y更新パルスSP5等に基づいてフレームデータ
メモリ30AからフレームデータFMが読出し処理される
と、該データFMがデータ衝突を回避するトリステート
バッファ32を経由して、フレームデータFM及び基準
データJMの差データ(絶対値)と共にFMデータ保持
回路33に入力される。また、該データ保持回路33で
は、非反転データ(X)更新パルスSP1に基づいてフレ
ームデータFMの第7ビット目の論理値(1/0)デー
タと第0〜第6ビットまでの論理長データとが出力保持
されるものである。
That is, the frame data output circuit 23A is an embodiment of the correlated compressed data output means 13A, and includes an address update circuit 31, a frame data memory 30A, a tristate buffer 32, and a frame data holding circuit (hereinafter referred to as an FM data holding circuit). 33). The function of the frame data output circuit 23A is to convert the frame data FM from the frame data memory 30A based on the inverted data (X) update pulse SP2, the coincidence detection pulse SP4, the Y update pulse SP5, etc., which are examples of the first control signal S1. When the read processing is performed, the data FM is input to the FM data holding circuit 33 together with the difference data (absolute value) between the frame data FM and the reference data JM via the tristate buffer 32 for avoiding data collision. In the data holding circuit 33, based on the non-inverted data (X) update pulse SP1, the logic value (1/0) data of the seventh bit of the frame data FM and the logic length data of the 0th to 6th bits Are output held.

【0050】基準データ出力回路23Bは基準圧縮データ
出力手段13Bの一実施例であり、アドレス更新回路3
4,基準データメモリ30B,トリステートバッファ3
5,基準データ保持回路(以下JMデータ保持回路とい
う)36及びXデータ終了チェッ回路37から成る。基
準データ出力回路23Bの機能は、第2の制御信号S2の
一例となる非反転データ(X)更新パルスSP1,一致検
出パルスSP4,Y更新パルスSP5等に基づいて基準デー
タメモリ30Bから基準データJMが読出し処理される
と、該データJMがデータ衝突を回避するトリステート
バッファ35を経由して、フレームデータFM及び基準
データJMの差(更新)データ(絶対値)と共に基準デ
ータ保持回路(以下JMデータ保持回路という)36に
入力される。また、該データ保持回路36では、反転デ
ータ(X)更新パルスSP2に基づいて基準データJMの
第7ビット目の論理値(1/0)データと第0〜第6ビ
ットまでの論理長データとが出力保持されるものであ
る。
The reference data output circuit 23B is an embodiment of the reference compressed data output means 13B.
4, reference data memory 30B, tristate buffer 3
5, a reference data holding circuit (hereinafter referred to as a JM data holding circuit) 36 and an X data end check circuit 37. The function of the reference data output circuit 23B is that the reference data memory 30B outputs the reference data JM from the reference data memory 30B based on the non-inverted data (X) update pulse SP1, the coincidence detection pulse SP4, the Y update pulse SP5, etc., which are examples of the second control signal S2. Is read out, the data JM passes through a tristate buffer 35 for avoiding data collision, and a reference data holding circuit (hereinafter referred to as JM) together with the difference (update) data (absolute value) between the frame data FM and the reference data JM. (Referred to as a data holding circuit) 36. In the data holding circuit 36, based on the inverted data (X) update pulse SP2, the logic value (1/0) data of the seventh bit of the reference data JM and the logic length data of the 0th to 6th bits are added. Is held as output.

【0051】データ演算出力回路23Cはデータ演算出力
手段13Cの一実施例であり、減算器(A−B)42,絶
対値回路43,保持回路44,トリステイトバッファ4
5,第1のインバータIN1,選択回路46から成る。
The data operation output circuit 23C is an embodiment of the data operation output means 13C, and includes a subtractor (AB) 42, an absolute value circuit 43, a holding circuit 44, and a tristate buffer 4.
5, a first inverter IN1 and a selection circuit 46.

【0052】データ演算出力回路23Cの機能は、フレー
ムデータFM及び基準データJMの二値画論理長データ
A,Bの差データ(余り)を更新処理をするものであ
る。
The function of the data operation output circuit 23C is to update the difference data (remainder) between the binary image logical length data A and B of the frame data FM and the reference data JM.

【0053】すなわち、フレームデータFMと基準デー
タJMとの第0〜第6ビット目までの二値画論理長デー
タA,Bが減算器(A−B)により演算されると、その
結果となる極性+/−〔1/0〕指示パルスSP5が第2
のインバータIN2,AND3及び選択回路46に出力さ
れる。
That is, when the binary image logical length data A and B of the 0th to 6th bits of the frame data FM and the reference data JM are calculated by the subtractor (AB), the result is obtained. Polarity +/- [1/0] instruction pulse SP5 is the second
To the inverters IN2 and AND3 and the selection circuit 46.

【0054】また、その差データA−Bが絶対値回路4
3により絶対値演算され、その絶対値A−Bが保持回路
44により保持される。さらに、トリステイトバッファ
45では選択回路46からの選択制御信号SSに基づい
て差データA−Bをトリステイトバッファ32,35の
出力と同様に、FMデータ保持回路33やJMデータ保
持回路36に供給される。この際に、選択制御信号SS
はフレームデータFM,基準データJMの第7ビット目
の二値画論理値と極性+/−〔1/0〕指示パルスSP5
を第1のインバータIN1により反転処理した信号とに基
づいて選択回路46からトリステイトバッファ45に出
力される。
Further, the difference data AB is input to the absolute value circuit 4.
3, and the holding circuit 44 holds the absolute value AB. Further, the tristate buffer 45 supplies the difference data AB to the FM data holding circuit 33 and the JM data holding circuit 36 in the same manner as the outputs of the tristate buffers 32 and 35 based on the selection control signal SS from the selection circuit 46. Is done. At this time, the selection control signal SS
Is the binary image logical value of the seventh bit of the frame data FM and the reference data JM and the polarity +/- [1/0] instruction pulse SP5
Is output from the selection circuit 46 to the tristate buffer 45 based on the signal obtained by inverting the signal by the first inverter IN1.

【0055】データ比較出力回路23Dはデータ比較出力
手段13Dの一実施例であり、比較器38,セレクタ3
9,加算器(不一致累計)40,加算保持回路41,論
理和回路(以下OR1という),排他論理和回路(以下
NOR1という)及び第1の論理積回路(以下AND1
という)から成る。
The data comparison output circuit 23D is an embodiment of the data comparison output means 13D, and includes a comparator 38, a selector 3
9, an adder (cumulative mismatch) 40, an addition holding circuit 41, an OR circuit (hereinafter referred to as OR1), an exclusive OR circuit (hereinafter referred to as NOR1), and a first AND circuit (hereinafter referred to as AND1).
).

【0056】データ比較出力回路23Dの機能は、不一致
加算指示パルスSP3に基づいてフレームデータFM,基
準データJM及び更新データDRとの相関処理をするも
のである。この際に、まず、NOR1によりフレームデ
ータFMと基準データJMとの第7ビット目の二値画論
理値の不一致が演算処理される。例えば、該二値画論理
値が不一致の場合には「1」が出力される。また、AN
D1により不一致=「1」と不一致加算指示パルスSP3
とが論理積演算処理される。その結果が加算器40に出
力される。
The function of the data comparison output circuit 23D is to perform a correlation process with the frame data FM, the reference data JM and the update data DR based on the mismatch addition instruction pulse SP3. At this time, first, the non-coincidence of the binary image logical value of the seventh bit between the frame data FM and the reference data JM is calculated by NOR1. For example, when the binary image logical values do not match, “1” is output. Also, AN
D1 mismatch = "1" and mismatch addition instruction pulse SP3
Are subjected to a logical product operation. The result is output to the adder 40.

【0057】また、比較器38はフレームデータFMと
基準データJMとの第0〜第6ビット目までの二値画論
理長データを比較処理するものである。ここで、Aはフ
レームデータFMの二値画論理長データであり、フレー
ムデータFMの第0〜第6ビット目までの二値画論理長
データを示している。また、Bは基準データJMの二値
画論理長データであり、基準データJMの第0〜第6ビ
ット目までの二値画論理長データを示している。
The comparator 38 compares the binary image logical length data of the 0th to 6th bits between the frame data FM and the reference data JM. Here, A is the binary image logical length data of the frame data FM, and indicates the binary image logical length data of the 0th to sixth bits of the frame data FM. B is the binary image logical length data of the reference data JM, and indicates the binary image logical length data of the 0th to sixth bits of the reference data JM.

【0058】すなわち、このようなデータの場合、比較
器38の機能は両データA,Bの大小関係等を演算処理
するものであり、例えば、両データがA>Bの場合に
は、第1の比較制御パルスCP1をセレクタ39に出力
し、両データがA<Bの場合には、第2の比較制御パル
スCP2をOR1に出力するものである。なお、両データ
がA=Bの場合には、一致検出パルスSP4をアドレス更
新回路31,34及びOR1に出力するものである。
That is, in the case of such data, the function of the comparator 38 is to calculate the magnitude relationship between the two data A and B. For example, when both data A> B, the first function is used. Is output to the selector 39, and if both data are A <B, the second comparison control pulse CP2 is output to OR1. When both data are A = B, the coincidence detection pulse SP4 is output to the address update circuits 31, 34 and OR1.

【0059】さらに、OR1は第2の比較制御パルスC
P2と一致検出パルスSP4との論理和演算処理をし、その
結果信号SAをセレクタ39に出力するものである。
Further, OR1 is the second comparison control pulse C
The logical sum operation of P2 and the coincidence detection pulse SP4 is performed, and the result signal SA is output to the selector 39.

【0060】セレクタ39は、第1の比較制御パルスC
P1と結果信号SAに基づいて両データA,Bの選択出力
をするものである。本発明の実施例では、結果信号SA
が活性化すると、データAが選択され、第1の比較制御
パルスCP1が活性化すると、データBが選択される。
The selector 39 outputs the first comparison control pulse C
The two data A and B are selectively output based on P1 and the result signal SA. In the embodiment of the present invention, the result signal SA
Is activated, data A is selected, and when the first comparison control pulse CP1 is activated, data B is selected.

【0061】加算器(不一致累計)40は、フレームデ
ータFM,基準データJMの二値画論理値の不一致=
「1」と、両データFM,JMの第0〜第6ビット目ま
での二値画論理長データの更新処理に基づく二値画論理
値の不一致=「1」とを累積加算処理をするものであ
る。なお、加算保持回路41は累積加算された不一致数
を出力保持するものである。
An adder (cumulative non-coincidence) 40 provides a discrepancy between the binary image logical values of the frame data FM and the reference data JM =
Cumulative addition of "1" and mismatch of binary image logic value based on update process of binary image logical length data from bit 0 to bit 6 of both data FM and JM = "1" It is. The addition and holding circuit 41 holds and outputs the number of inconsistencies accumulated and added.

【0062】データ入出力制御回路23Eはデータ入出力
制御手段13Eの一実施例であり、第2のインバータIN
2,第2の論理積回路(以下AND2という)及び第3
の論理積回路(以下AND3という)から成る。
The data input / output control circuit 23E is an embodiment of the data input / output control means 13E, and includes a second inverter IN.
2, a second AND circuit (hereinafter referred to as AND2) and a third AND circuit
(Hereinafter referred to as AND3).

【0063】データ入出力制御回路23Eの機能は、基準
信号CLKの一実施例となるデータ更新パルスに基づいて
反転データ(X)更新パルスSP1,非反転データ(X)
更新パルスSP2等の出力をするものである。
The functions of the data input / output control circuit 23E are as follows: the inverted data (X) update pulse SP1, the non-inverted data (X)
It outputs the update pulse SP2 and the like.

【0064】すなわち、反転データ(X)更新パルスS
P1は基準信号CLKの一実施例となるデータ更新パルスと
極性+/−〔1/0〕指示パルスSP5を第2のインバー
タIN2により反転処理した信号とに基づいてAND2か
ら出力される。
That is, the inverted data (X) update pulse S
P1 is output from AND2 based on a data update pulse as one embodiment of the reference signal CLK and a signal obtained by inverting the polarity +/- [1/0] instruction pulse SP5 by the second inverter IN2.

【0065】また、非反転データ(X)更新パルスSP2
は、データ更新パルスと極性+/−〔1/0〕指示パル
スSP5とに基づいてAND3から出力される。
The non-inverted data (X) update pulse SP2
Is output from the AND3 based on the data update pulse and the polarity +/- [1/0] instruction pulse SP5.

【0066】このようにして、本発明の実施例に係る相
関処理装置によれば、図4〜図6に示すように、フレー
ムデータ圧縮回路21,基準データ圧縮回路22及び圧
縮データ相関処理回路23が具備され、該圧縮データ相
関処理回路23がフレームデータ出力回路23A,基準デ
ータ出力回路23B,データ演算出力回路23C,データ比
較出力回路23D及びデータ入出力制御回路23Eから成っ
ている。
As described above, according to the correlation processing apparatus according to the embodiment of the present invention, as shown in FIGS. 4 to 6, the frame data compression circuit 21, the reference data compression circuit 22, and the compressed data correlation processing circuit 23 The compressed data correlation processing circuit 23 comprises a frame data output circuit 23A, a reference data output circuit 23B, a data operation output circuit 23C, a data comparison output circuit 23D, and a data input / output control circuit 23E.

【0067】このため、被相関処理対象19の二値画像
パターンデータD1がフレームデータ圧縮回路21によ
り圧縮されると、データ入出力制御回路23Eからの反転
データ(X)更新パルスSP2に基づいてフレームデータ
FMがフレームデータ出力回路23Aを介してデータ演算
出力回路23C,データ比較出力回路23Dに出力される。
一方、被相関処理対象19の基準パターンデータD2が
基準データ圧縮回路22により圧縮されると、非反転デ
ータ(X)更新パルスSP1に基づいて基準データJMが
基準データ出力回路23Bを介してデータ演算出力回路23
C,データ比較出力回路23Dに出力される。このこと
で、データ演算出力回路23Cでは、フレームデータF
M,基準データJMに基づいて更新データDRがデータ
比較出力手段13Dに出力される。また、データ比較出力
手段13Dでは、フレームデータFM,基準データJM及
び更新データDRに基づいて相関処理され、その結果、
相関結果データD3を出力することが可能となる。
Therefore, when the binary image pattern data D1 of the correlated processing target 19 is compressed by the frame data compression circuit 21, the frame is generated based on the inverted data (X) update pulse SP2 from the data input / output control circuit 23E. The data FM is output to the data operation output circuit 23C and the data comparison output circuit 23D via the frame data output circuit 23A.
On the other hand, when the reference pattern data D2 of the correlated processing target 19 is compressed by the reference data compression circuit 22, the reference data JM is subjected to data calculation via the reference data output circuit 23B based on the non-inverted data (X) update pulse SP1. Output circuit 23
C, output to the data comparison output circuit 23D. This allows the data operation output circuit 23C to output the frame data F
The updated data DR is output to the data comparison output means 13D based on M and the reference data JM. The data comparison and output means 13D performs a correlation process based on the frame data FM, the reference data JM, and the update data DR.
It becomes possible to output the correlation result data D3.

【0068】これにより、半導体集積回路装置の微細
化,高集積化に伴う相関処理をする情報量が益々多くな
った場合でも、従来例のようにフレームパターンデータ
D12と基準パターンデータD22とを1画素単位毎にチェ
ックすることが無なくなり、相関処理時間の短縮化を図
ることが可能となる。例えば、14列×14行=196 画
素のローマ字「A」の二値画像パターンを64個(比較
処理データ数は48個)に圧縮処理したデータに基づく
比較処理時間〔約1/4〕に短縮することが可能とな
る。
As a result, even when the amount of information for performing the correlation processing with the miniaturization and high integration of the semiconductor integrated circuit device is increased, the frame pattern data D12 and the reference pattern data D22 are set to one as in the conventional example. There is no need to check for each pixel unit, and the correlation processing time can be reduced. For example, the comparison processing time [approximately 1/4] based on the data obtained by compressing the binary image pattern of Roman character "A" of 14 columns × 14 rows = 196 pixels into 64 (the number of comparison processing data is 48) is reduced. It is possible to do.

【0069】次に、本発明の実施例に係る相関処理方法
について当該装置の動作を補足しながら説明をする。
Next, the correlation processing method according to the embodiment of the present invention will be described while supplementing the operation of the apparatus.

【0070】 (2)本発明の実施例に係る相関処理方法の説明 図7は、本発明の実施例に係る相関処理方法のフローチ
ャートであり、図8(a),(b)は、その補足説明図
を示している。
(2) Description of the Correlation Processing Method According to the Embodiment of the Present Invention FIG. 7 is a flowchart of the correlation processing method according to the embodiment of the present invention, and FIGS. 8A and 8B are supplementary explanations. FIG.

【0071】図7において、まず、ステップP1で図5
に示されるような被相関処理対象19の二値画像パター
ンデータD1の圧縮処理をする。この際の圧縮処理は、
14列×14行=196 画素のローマ字「A」の二値画像
パターンデータD1及び基準パターンデータD2を行単
位に同一二値画論理値0/1の連続数を計測して圧縮す
るものとする(図5参照)。
In FIG. 7, first, in step P1, FIG.
The compression processing of the binary image pattern data D1 of the correlated processing target 19 as shown in FIG. The compression process at this time is
14 columns × 14 rows = 196 pixels of Roman image “A” binary image pattern data D1 and reference pattern data D2 are compressed by measuring the continuous number of identical binary image logical values 0/1 in row units. (See FIG. 5).

【0072】次いで、ステップP2〜17のいずれかのス
テップで圧縮処理されたフレームデータFMと被相関処
理対象19の基準パターンデータD2を圧縮処理した基
準データJMとの一致,不一致を比較検出するものとす
る。例えば、Y6行目の相関処理をする場合について説
明をする。
Next, a method for comparing and detecting coincidence and non-coincidence between the frame data FM compressed in any one of the steps P2 to P17 and the reference data JM obtained by compressing the reference pattern data D2 of the correlated processing target 19 And For example, a case will be described in which the correlation processing on the Y6th line is performed.

【0073】ここで、Y6行目のフレームデータFMを
図8(b)に示すように03,12,03,12,0
4,00とし、その基準データJMを02,14,0
2,13,03,00(いずれもヘキサ表示)とする。
また、表1はY6行目の相関処理方法を補足するもので
あり、表中のステップP〜は本発明の実施例に係る
ステップP2〜17のいずれかのステップをハード的に9
回繰り返すことを示している。
Here, as shown in FIG. 8B, the frame data FM in the Y6th row is 03, 12, 03, 12, 0
4,000, and the reference data JM is 02, 14, 0
2, 13, 03, 00 (all displayed in hexadecimal).
Further, Table 1 supplements the correlation processing method in the Y6th row. Steps P to P in the table correspond to any one of Steps P2 to 17 according to the embodiment of the present invention in hardware.
It shows that it repeats times.

【0074】[0074]

【表1】 [Table 1]

【0075】すなわち、ステップP2でY6行目の第7
ビット目の二値画論理値の不一致か否かの判断処理をす
る。この際に、二値画論理が不一致の場合(YES)に
は、ステップP3に移行する。また、二値画論理値が一
致する場合(NO)には、ステップP4に移行する。本
発明の実施例ではフレームデータFM=03,基準デー
タJM=02の二値画論理値「0」が一致するためステ
ップP4に移行し、かつ、二値画論理長データ「3」と
「2」とが不一致となるためステップP3にも移行す
る。
That is, in the step P2, the seventh
A determination process is performed to determine whether or not the binary image logical values of the bit do not match. At this time, if the binary image logics do not match (YES), the program shifts to Step P3. If the binary image logical values match (NO), the program shifts to Step P4. In the embodiment of the present invention, since the binary image logical value “0” of the frame data FM = 03 and the reference data JM = 02 matches, the process shifts to Step P4, and the binary image logical length data “3” and “2” Does not match, the process also proceeds to Step P3.

【0076】従って、ステップP4では減算結果が正極
性か否かの判断処理をする。この際に、減算結果が正極
性の場合(YES)には、ステップP6に移行する。ま
た、減算結果が正極性でない場合(NO)には、ステッ
プP13に移行する。本発明の実施例では減算結果が正極
性となる場合(YES)に該当するためステップP6に移
行する。
Therefore, in step P4, a process for determining whether or not the subtraction result has a positive polarity is performed. At this time, if the subtraction result has a positive polarity (YES), the flow shifts to Step P6. If the subtraction result is not positive (NO), the program shifts to Step P13. In the embodiment of the present invention, the process proceeds to Step P6 because the case corresponds to the case where the subtraction result has positive polarity (YES).

【0077】次に、ステップP3ではフレームデータF
Mが基準データJMより大きいか否かの判断処理をす
る。この際に、該データFMが基準データJMより大き
い場合(YES)には、ステップP5に移行する。また、
該データFMが基準データJMより小さい場合(NO)
には、ステップP6に移行する。本発明の実施例では両
データFM,JMの関係がFM=03>JM=02であ
るからステップP5に移行する。
Next, in step P3, the frame data F
A determination is made as to whether M is greater than the reference data JM. At this time, if the data FM is larger than the reference data JM (YES), the program shifts to Step P5. Also,
When the data FM is smaller than the reference data JM (NO)
The process proceeds to Step P6. In the embodiment of the present invention, since the relationship between the two data FM and JM is FM = 03> JM = 02, the process shifts to Step P5.

【0078】従って、ステップP5で不一致累計+基準
データJM→不一致累計の加算処理をする。この際に、
本発明の実施例では両データFM,JMの二値画論理値
が共に「0」で一致している。これにより、不一致累計
は「0」であるため加算処理を要しない。
Therefore, in step P5, a process of adding the total of mismatches + the reference data JM → the total of mismatches is performed. At this time,
In the embodiment of the present invention, the binary image logical values of both data FM and JM are both "0" and coincide. As a result, since the mismatch total is “0”, no addition processing is required.

【0079】次に、ステップP6でフレームデータFM
と基準データJMとの減算処理をする。この際に、両デ
ータFM,JMの減算結果(差)は「1」となり、その
結果、更新データDR=1がFMデータ保持回路33に
格納される。
Next, in step P6, the frame data FM
And the reference data JM are subtracted. At this time, the subtraction result (difference) between the two data FM and JM becomes “1”. As a result, the updated data DR = 1 is stored in the FM data holding circuit 33.

【0080】その後、ステップP7で基準データJMの
更新処理をする。この際に、データ演算出力回路23Dの
AND2からの反転データ(X)更新パルスSP2に基づい
て基準データJM=14が読出し処理される。
Thereafter, in step P7, the reference data JM is updated. At this time, the reference data JM = 14 is read out based on the inverted data (X) update pulse SP2 from the AND2 of the data operation output circuit 23D.

【0081】これにより、表1のステップPの処理が
終了する。次に、表1のステップPの処理に移行す
る。
Thus, the process of step P in Table 1 ends. Next, the process proceeds to the process of step P in Table 1.

【0082】すなわち、ステップP2で更新処理に基づ
くフレームデータFM=01とステップPに基づく基
準データJM=14との二値画論理値の不一致か否かの
判断処理をする。この際に、二値画論理が「0」,
「1」であることから不一致の場合(YES)となる。こ
のため、ステップP3,P4に移行する。ステップP3
ではフレームデータFM=01が基準データJM=14
より大きいか否かの判断処理をする。この際に、該デー
タFMが基準データJMより小さい場合(NO)に該当
するため、ステップP8に移行する。
That is, in step P2, it is determined whether or not the binary image logical values of the frame data FM = 01 based on the updating process and the reference data JM = 14 based on the step P do not match. At this time, the binary drawing logic is “0”,
Since it is "1", it is determined that there is no match (YES). Therefore, the process proceeds to steps P3 and P4. Step P3
Then, the frame data FM = 01 becomes the reference data JM = 14.
A determination is made as to whether or not the value is greater than the value. At this time, when the data FM is smaller than the reference data JM (NO), the process shifts to Step P8.

【0083】従って、ステップP4では減算結果が正極
性か否かの判断処理をする。この際に、減算結果が正極
性の場合(YES)には、ステップP6に移行する。ま
た、減算結果が正極性でない場合(NO)には、ステッ
プP13に移行する。本発明の実施例では減算結果が負極
性となる場合(YES)に該当するためステップP13に移
行し、その後、ステップP10に移行する。
Therefore, in step P4, a process for determining whether or not the subtraction result has a positive polarity is performed. At this time, if the subtraction result has a positive polarity (YES), the flow shifts to Step P6. If the subtraction result is not positive (NO), the program shifts to Step P13. In the embodiment of the present invention, the process proceeds to Step P13 because the subtraction result has the negative polarity (YES), and then proceeds to Step P10.

【0084】また、ステップP8ではフレームデータF
M=01が基準データJM=14より小さいか等しいか
の判断処理をする。この際に、該データFMが基準デー
タJMより小さい場合(NO)に該当するため、ステッ
プP9に移行する。
In step P8, the frame data F
It is determined whether M = 01 is smaller than or equal to the reference data JM = 14. At this time, when the data FM is smaller than the reference data JM (NO), the process shifts to Step P9.

【0085】ステップP9ではステップP5と同様に不
一致累計+基準データJM→不一致累計の加算処理をす
る。この際に、本発明の実施例では両データFM=0
1,JM=14の二値画論理値が「0」と「1」で不一
致となっている。これにより、不一致「1」が加算さ
れ、その累計は「1」となる。
In step P9, as in step P5, the process of adding the total of mismatches + the reference data JM → the total of mismatches is performed. At this time, in the embodiment of the present invention, both data FM = 0
The binary image logical values of 1, JM = 14 do not match between "0" and "1". As a result, the mismatch “1” is added, and the total becomes “1”.

【0086】その後、ステップP10でフレームデータF
Mと基準データJMとの減算処理結果の絶対値の演算処
理をする。この際に、両データFM,JMの減算結果
(差)は「3」となり、その結果、更新データDR=3
がJMデータ保持回路36に格納される。
Thereafter, in step P10, the frame data F
The absolute value of the subtraction result between M and the reference data JM is calculated. At this time, the subtraction result (difference) between the two data FM and JM is “3”, and as a result, the update data DR = 3
Is stored in the JM data holding circuit 36.

【0087】次に、ステップP11でフレームデータFM
の更新処理をする。この際に、データ演算出力回路23D
のAND3からの非反転データ(X)更新パルスSP1に基
づいてフレームデータFM=12が読出し処理される。
Next, at step P11, the frame data FM
Update process. At this time, the data operation output circuit 23D
The frame data FM = 12 is read out based on the non-inverted data (X) update pulse SP1 from AND3.

【0088】これにより、表1のステップPの処理が
終了する。さらに、表1のステップPの処理に移行す
る。
Thus, the processing of step P in Table 1 ends. Further, the processing shifts to the processing of step P in Table 1.

【0089】すなわち、ステップP2でステップPに
基づくフレームデータFM=12と更新処理に基づく基
準データJM=13との二値画論理値の不一致か否かの
判断処理をする。この際に、二値画論理が一致の場合
(NO)となるため、ステップP3,P4に移行する。
That is, in step P2, it is determined whether or not the binary image logical values of the frame data FM = 12 based on the step P and the reference data JM = 13 based on the update processing do not match. At this time, if the binary image logics match (NO), the process proceeds to steps P3 and P4.

【0090】ステップP3ではフレームデータFM=1
2が基準データJM=13より大きいか否かの判断処理
をする。この際に、該データFMが基準データJMより
小さい場合(NO)に該当するため、ステップP8に移
行する。
At step P3, the frame data FM = 1
It is determined whether or not 2 is larger than the reference data JM = 13. At this time, when the data FM is smaller than the reference data JM (NO), the process shifts to Step P8.

【0091】従って、ステップP8ではフレームデータ
FM=12が基準データJM=13より小さいか等しい
かの判断処理をする。この際に、該データFMが基準デ
ータJMより小さい場合(NO)に該当するため、ステ
ップP9に移行する。
Therefore, in step P8, it is determined whether or not the frame data FM = 12 is smaller than or equal to the reference data JM = 13. At this time, when the data FM is smaller than the reference data JM (NO), the process shifts to Step P9.

【0092】ステップP9ではステップP5と同様に不
一致累計+基準データJM→不一致累計の加算処理をす
る。この際に、本発明の実施例では両データFM=1
2,JM=13の二値画論理値が「1」と「1」で一致
している。これにより、不一致「1」の加算処理は要せ
ず、その累計は「1」のままである。
In step P9, as in step P5, an addition process is performed for the sum of mismatches + the reference data JM → the sum of mismatches. At this time, in the embodiment of the present invention, both data FM = 1
The binary image logical values of 2, JM = 13 match "1" and "1". As a result, the addition process of the mismatch “1” is not required, and the total is still “1”.

【0093】その後、ステップP10でフレームデータF
Mと基準データJMとの減算処理結果の絶対値の演算処
理をする。この際に、両データFM,JMの減算結果
(差)は「1」となり、その結果、更新データDRとし
てJM=1がJMデータ保持回路36に格納される。
Then, in step P10, the frame data F
The absolute value of the subtraction result between M and the reference data JM is calculated. At this time, the subtraction result (difference) between the two data FM and JM is “1”. As a result, JM = 1 is stored in the JM data holding circuit 36 as the update data DR.

【0094】次に、ステップP11でフレームデータFM
の更新処理をする。この際に、データ演算出力回路23D
のAND2からの反転データ(X)更新パルスSP2に基づ
いてフレームデータFM=03が読出し処理される。
Next, at step P11, the frame data FM
Update process. At this time, the data operation output circuit 23D
The frame data FM = 03 is read out based on the inverted data (X) update pulse SP2 from AND2.

【0095】これにより、表1のステップPの処理が
終了する。さらに、表1のステップPの処理に移行す
る。
Thus, the process of step P in Table 1 is completed. Further, the processing shifts to the processing of step P in Table 1.

【0096】すなわち、ステップP2でステップPに
基づくフレームデータFM=03と更新処理に基づく基
準データJM=11との二値画論理値の不一致か否かの
判断処理をする。この際に、二値画論理が不一致の場合
(YES)となるため、ステップP3に移行する。
That is, in step P2, it is determined whether or not the binary image logical values of the frame data FM = 03 based on the step P and the reference data JM = 11 based on the update processing do not match. At this time, if the binary image logics do not match (YES), the process proceeds to Step P3.

【0097】ステップP3ではフレームデータFM=0
3が基準データJM=11より大きいか否かの判断処理
をする。この際に、該データFMが基準データJMより
小さい場合(NO)に該当するため、ステップP8に移
行する。
In step P3, the frame data FM = 0
A determination process is performed to determine whether or not 3 is larger than the reference data JM = 11. At this time, when the data FM is smaller than the reference data JM (NO), the process shifts to Step P8.

【0098】従って、ステップP8ではフレームデータ
FM=03が基準データJM=11より小さいか等しい
かの判断処理をする。この際に、該データFMが基準デ
ータJMより小さい場合(NO)に該当するため、ステ
ップP9に移行する。
Therefore, in step P8, it is determined whether the frame data FM = 03 is smaller than or equal to the reference data JM = 11. At this time, when the data FM is smaller than the reference data JM (NO), the process shifts to Step P9.

【0099】ステップP9ではステップP5と同様に不
一致累計+基準データJM→不一致累計の加算処理をす
る。この際に、本発明の実施例では両データFM=0
3,JM=11の二値画論理値が「0」と「1」で不一
致である。これにより、不一致「1」の加算処理をし、
その累計は「2」となる。
In step P9, as in step P5, the processing of adding the total of the mismatches + the reference data JM → the total of the mismatches is performed. At this time, in the embodiment of the present invention, both data FM = 0
3, the binary image logical values of JM = 11 do not match between “0” and “1”. As a result, the mismatching “1” is added,
The total is “2”.

【0100】その後、ステップP10でフレームデータF
Mと基準データJMとの減算処理結果の絶対値の演算処
理をする。この際に、両データFM,JMの減算結果
(差)は「2」となり、その結果、更新データDRとし
てFM=2がFMデータ保持回路33に格納される。
Thereafter, in step P10, the frame data F
The absolute value of the subtraction result between M and the reference data JM is calculated. At this time, the subtraction result (difference) between the two data FM and JM is “2”. As a result, FM = 2 is stored in the FM data holding circuit 33 as the update data DR.

【0101】次に、ステップP11でフレームデータFM
の更新処理をする。この際に、データ演算出力回路23D
のAND2 からの反転データ(X)更新パルスSP2に基づ
いて基準データJM=02が読出し処理される。
Next, at step P11, the frame data FM
Update process. At this time, the data operation output circuit 23D
The reference data JM = 02 is read out based on the inverted data (X) update pulse SP2 from AND2.

【0102】これにより、表1のステップPの処理が
終了する。さらに、表1のステップPの処理に移行す
る。
Thus, the process of step P in Table 1 ends. Further, the processing shifts to the processing of step P in Table 1.

【0103】すなわち、ステップP2で更新処理に基づ
くフレームデータFM=02とステップPに基づく基
準データJM=02との二値画論理値の不一致か否かの
判断処理をする。この際に、二値画論理が一致する場合
(NO)となるため、ステップP4にのみ移行する。
That is, in step P2, it is determined whether or not the binary image logical values of the frame data FM = 02 based on the update processing and the reference data JM = 02 based on step P do not match. At this time, if the binary image logics match (NO), the process proceeds to step P4 only.

【0104】従って、ステップP4では減算結果が正極
性か否かの判断処理をする。この際に、減算結果が正極
性の場合(YES)には、ステップP6に移行する。ま
た、減算結果が正極性でない場合(NO)には、ステッ
プP13に移行する。本発明の実施例では減算結果が
「0」,すなわち、フレームデータFM=02と基準デ
ータJM=02とが等しい場合(NO)に該当するため
ステップP13からステップP14に移行する。
Therefore, in step P4, a process for determining whether or not the subtraction result has a positive polarity is performed. At this time, if the subtraction result has a positive polarity (YES), the flow shifts to Step P6. If the subtraction result is not positive (NO), the program shifts to Step P13. In the embodiment of the present invention, since the subtraction result is “0”, that is, the case where the frame data FM = 02 is equal to the reference data JM = 02 (NO), the process shifts from step P13 to step P14.

【0105】ステップP14ではXデータ終了か否の判断
処理をする。この際に、Xデータの終了の場合(YES)
には、ステップP15に移行し、Xデータが終了していな
い場合(NO)には、ステップP16に移行する。本発明
の実施例では、Xデータが終了していない場合(NO)
に該当するため、ステップP16でフレームデータFMと
基準データJMの更新処理をする。ここで、データ演算
出力回路23DのAND2 ,AND3からの反転,非反転デー
タ(X)更新パルスSP2, SP1に基づいて基準データJ
M=13,フレームデータFM=12がそれぞれ読出し
処理される。
At step P14, it is determined whether or not the X data is completed. At this time, if the end of X data (YES)
Then, the process shifts to Step P15. If the X data is not completed (NO), the process shifts to Step P16. In the embodiment of the present invention, when X data is not completed (NO)
In step P16, the frame data FM and the reference data JM are updated. Here, the reference data J based on the inverted and non-inverted data (X) update pulses SP2 and SP1 from AND2 and AND3 of the data operation output circuit 23D.
M = 13 and frame data FM = 12 are read out.

【0106】これにより、表1のステップPの処理が
終了する。さらに、表1のステップPの処理に移行す
る。
Thus, the process of step P in Table 1 ends. Further, the processing shifts to the processing of step P in Table 1.

【0107】すなわち、ステップP2でステップPに
基づくフレームデータFM=12と更新処理に基づく基
準データJM=13との二値画論理値の不一致か否かの
判断処理をする。この際に、二値画論理が一致の場合
(NO)となるため、ステップP3,P4に移行する。
That is, in step P2, it is determined whether or not the binary image logical values of the frame data FM = 12 based on the step P and the reference data JM = 13 based on the update processing do not match. At this time, if the binary image logics match (NO), the process proceeds to steps P3 and P4.

【0108】ステップP3ではフレームデータFM=1
2が基準データJM=13より大きいか否かの判断処理
をする。この際に、該データFMが基準データJMより
小さい場合(NO)に該当するため、ステップP8に移
行する。
In step P3, the frame data FM = 1
It is determined whether or not 2 is larger than the reference data JM = 13. At this time, when the data FM is smaller than the reference data JM (NO), the process shifts to Step P8.

【0109】従って、ステップP8ではフレームデータ
FM=12が基準データJM=13より小さいか等しい
かの判断処理をする。この際に、該データFMが基準デ
ータJMより小さい場合(NO)に該当するため、ステ
ップP9に移行する。
Therefore, in step P8, it is determined whether or not the frame data FM = 12 is smaller than or equal to the reference data JM = 13. At this time, when the data FM is smaller than the reference data JM (NO), the process shifts to Step P9.

【0110】ステップP9ではステップP5と同様に不
一致累計+基準データJM→不一致累計の加算処理をす
る。この際に、本発明の実施例では両データFM=0
1,JM=13の二値画論理値が「1」と「1」で一致
している。これにより、不一致「1」の加算処理は要せ
ず、その累計は「2」のままである。
In step P9, as in step P5, the process of adding the total of mismatches + the reference data JM → the total of mismatches is performed. At this time, in the embodiment of the present invention, both data FM = 0
The binary image logical values of 1, JM = 13 coincide with “1” and “1”. As a result, the adding process of the mismatch “1” is not required, and the total thereof remains “2”.

【0111】その後、ステップP10でフレームデータF
Mと基準データJMとの減算処理結果の絶対値の演算処
理をする。この際に、両データFM,JMの減算結果
(差)は「1」となり、その結果、更新データDRとし
てJM=1がJMデータ保持回路36に格納される。
Thereafter, in step P10, the frame data F
The absolute value of the subtraction result between M and the reference data JM is calculated. At this time, the subtraction result (difference) between the two data FM and JM is “1”. As a result, JM = 1 is stored in the JM data holding circuit 36 as the update data DR.

【0112】次に、ステップP11でフレームデータFM
の更新処理をする。この際に、データ演算出力回路23D
のAND2からの反転データ(X)更新パルスSP2に基づ
いてフレームデータFM=04が読出し処理される。
Next, at step P11, the frame data FM
Update process. At this time, the data operation output circuit 23D
The frame data FM = 04 is read out based on the inverted data (X) update pulse SP2 from AND2.

【0113】これにより、表1のステップPの処理が
終了する。さらに、表1のステップPの処理に移行す
る。
Thus, the processing of step P in Table 1 ends. Further, the processing shifts to the processing of step P in Table 1.

【0114】すなわち、ステップP2でステップPに
基づくフレームデータFM=04と更新処理に基づく基
準データJM=11との二値画論理値の不一致か否かの
判断処理をする。この際に、二値画論理が不一致の場合
(YES)となるため、ステップP3,P4に移行する。
That is, in step P2, it is determined whether or not the binary image logical values of the frame data FM = 04 based on step P and the reference data JM = 11 based on the update processing do not match. At this time, if the binary image logics do not match (YES), the process proceeds to steps P3 and P4.

【0115】従って、ステップP4では減算結果が正極
性か否かの判断処理をする。この際に、減算結果が正極
性の場合(YES)には、ステップP6に移行する。ま
た、減算結果が正極性でない場合(NO)には、ステッ
プP13に移行する。本発明の実施例では減算結果が正極
性となる場合(YES)に該当するためステップP6に移
行する。
Therefore, in step P4, a process of determining whether or not the subtraction result has a positive polarity is performed. At this time, if the subtraction result has a positive polarity (YES), the flow shifts to Step P6. If the subtraction result is not positive (NO), the program shifts to Step P13. In the embodiment of the present invention, the process proceeds to Step P6 because the case corresponds to the case where the subtraction result has positive polarity (YES).

【0116】ステップP3ではフレームデータFM=0
4が基準データJM=11より大きいか否かの判断処理
をする。この際に、該データFMが基準データJMより
大きい場合(YES)に該当するため、ステップP5に移
行する。
In step P3, the frame data FM = 0
A determination process is performed to determine whether or not 4 is larger than the reference data JM = 11. At this time, when the data FM is larger than the reference data JM (YES), the process proceeds to Step P5.

【0117】従って、ステップP5では不一致累計+基
準データJM→不一致累計の加算処理をする。この際
に、本発明の実施例では両データFM=04,JM=1
1の二値画論理値が「0」と「1」で不一致である。こ
れにより、不一致「1」が加算処理され、その累計は
「3」となる。
Therefore, in step P5, the process of adding the total of mismatches + the reference data JM → the total of mismatches is performed. At this time, in the embodiment of the present invention, both data FM = 04, JM = 1
The binary image logical value of 1 does not match between "0" and "1". As a result, the mismatch “1” is added, and the total is “3”.

【0118】また、ステップP6でフレームデータFM
と基準データJMとの減算処理をする。この際に、両デ
ータFM,JMの減算結果(差)は「3」となり、その
結果、更新データDR=3がFMデータ保持回路33に
格納される。
In step P6, the frame data FM
And the reference data JM are subtracted. At this time, the subtraction result (difference) between the two data FM and JM is “3”. As a result, the updated data DR = 3 is stored in the FM data holding circuit 33.

【0119】その後、ステップP7で基準データJMの
更新処理をする。この際に、データ演算出力回路23Dの
AND2からの反転データ(X)更新パルスSP2に基づい
て基準データJM=03が読出し処理される。
Thereafter, in step P7, the reference data JM is updated. At this time, the reference data JM = 03 is read out based on the inverted data (X) update pulse SP2 from AND2 of the data operation output circuit 23D.

【0120】これにより、表1のステップPの処理が
終了する。さらに、表1のステップPの処理に移行す
る。
Thus, the processing of step P in Table 1 ends. Further, the processing shifts to the processing of step P in Table 1.

【0121】すなわち、ステップP2でステップPに
基づくフレームデータFM=03と更新処理に基づく基
準データJM=03との二値画論理値の不一致か否かの
判断処理をする。この際に、二値画論理が一致する場合
(NO)となるため、ステップP4にのみ移行する。
That is, in step P2, it is determined whether or not the binary image logical values of the frame data FM = 03 based on the step P and the reference data JM = 03 based on the update processing do not match. At this time, if the binary image logics match (NO), the process proceeds to step P4 only.

【0122】従って、ステップP4では減算結果が正極
性か否かの判断処理をする。この際に、減算結果が正極
性の場合(YES)には、ステップP6に移行する。ま
た、減算結果が正極性でない場合(NO)には、ステッ
プP13に移行する。本発明の実施例では減算結果が
「0」,すなわち、フレームデータFM=03と基準デ
ータJM=03とが等しい場合(NO)に該当するため
ステップP13からステップP14に移行する。
Accordingly, in step P4, a process for determining whether or not the subtraction result has a positive polarity is performed. At this time, if the subtraction result has a positive polarity (YES), the flow shifts to Step P6. If the subtraction result is not positive (NO), the program shifts to Step P13. In the embodiment of the present invention, since the subtraction result is “0”, that is, the case where the frame data FM = 03 is equal to the reference data JM = 03 (NO), the process shifts from step P13 to step P14.

【0123】ステップP14ではXデータ終了か否の判断
処理をする。この際に、Xデータの終了の場合(YES)
には、ステップP15に移行し、Xデータが終了していな
い場合(NO)には、ステップP16に移行する。本発明
の実施例では、Xデータが終了する場合(YES)に該当
するため、ステップP15に移行する。
At step P14, it is determined whether or not X data has been completed. At this time, if the end of X data (YES)
Then, the process shifts to Step P15. If the X data is not completed (NO), the process shifts to Step P16. In the embodiment of the present invention, this corresponds to the case where the X data ends (YES), so that the routine shifts to Step P15.

【0124】従って、ステップP15ではYデータの終了
か否の判断処理をする。この際に、Yデータの終了の場
合(YES)には、相関処理を終了する。また、Yデータ
が終了していない場合(NO)には、ステップP17に移
行する。
Accordingly, in step P15, a process for determining whether or not the end of the Y data is performed. At this time, if the end of the Y data (YES), the correlation processing ends. If the Y data has not been completed (NO), the program shifts to Step P17.

【0125】これにより、表1のステップPの処理が
終了し、ステップPのエンドフラグにより、Y6行目
の相関処理を終了する。このことで、Y6行目の不一致
数「3」を検出することができる。
As a result, the processing in step P in Table 1 is completed, and the correlation processing in the Y6th row is completed by the end flag in step P. Thus, the mismatch number “3” in the Y6th row can be detected.

【0126】このようにして、本発明の実施例に係る相
関処理方法によれば、図7のフローチャートに示すよう
にステップP1の二値画像パターンデータD1の圧縮処
理に続いて、ステップP2〜P17でフレームデータFM
と基準データJMとの比較検出処理をしている。
As described above, according to the correlation processing method according to the embodiment of the present invention, as shown in the flowchart of FIG. And the frame data FM
And the reference data JM.

【0127】例えば、ステップP1で二値画像パターン
データD1及び基準パターンデータD2が行単位に同一
二値画論理値0/1の連続数に基づいて圧縮処理され、
8ビットのフレームデータFMと基準パターンデータD
2を圧縮処理した8ビットの基準データJMとがステッ
プP2〜P17で行単位に各々第7ビットの二値画論理値
0/1,第0ビット〜第6ビットの同一論理値0/1に
基づいて比較更新処理されている。
For example, in step P1, the binary image pattern data D1 and the reference pattern data D2 are compressed on a line-by-line basis on the basis of the number of consecutive identical binary image logical values 0/1.
8-bit frame data FM and reference pattern data D
In step P2 to P17, the 8-bit reference data JM obtained by compressing 2 is converted into a 7-bit binary image logical value 0/1 and a 0-th to 6-bit identical logical value 0/1 in units of rows. Based on the comparison update process.

【0128】このため、被相関パターンと基準パターン
とを従来例のように1画素単位毎に比較処理することな
く、両パターンを圧縮データ単位毎に比較処理をするこ
とが可能となる。このことで、比較画素数が増加した場
合であっても、取扱いデータ量の低減化を図ることが可
能となる。
For this reason, it is possible to perform a comparison process for each of the compressed data units without having to compare the correlated pattern and the reference pattern for each pixel as in the conventional example. This makes it possible to reduce the amount of handled data even if the number of comparison pixels increases.

【0129】これにより、ハード的に相関処理をするこ
とができ、当該相関処理装置を内蔵した画像処理装置の
パターン検査等の高速化を図ることが可能となる。
As a result, the correlation processing can be performed in a hardware manner, and the speed of pattern inspection and the like of an image processing apparatus incorporating the correlation processing apparatus can be increased.

【0130】 (3)本発明の実施例に係る画像処理装置の説明 図9は、本発明の実施例に係る画像処理装置の構成図で
ある。
(3) Description of Image Processing Apparatus According to Embodiment of the Present Invention FIG. 9 is a configuration diagram of an image processing apparatus according to an embodiment of the present invention.

【0131】図において、LSI装置等のパターン検査
等をする画像処理装置は、カメラ29,信号入出力回路
24,A/D変換器25,ROM26,相関処理回路2
7及び判定出力回路28から成る。
In the figure, an image processing device such as an LSI device for performing pattern inspection or the like includes a camera 29, a signal input / output circuit 24, an A / D converter 25, a ROM 26, a correlation processing circuit 2
7 and a judgment output circuit 28.

【0132】すなわち、カメラ29は被画像取得対象2
0の一例となるLSI装置等を撮像して、画像取得デー
タDINの一例となるアナログ画像取得信号を出力するも
のである。信号入出力回路24は画像入出力手段14の
一実施例であり、被画像取得対象20の画像取得データ
DINを入出力するI/Oインターフェース回路等であ
る。
That is, the camera 29 is the object 2
0, and outputs an analog image acquisition signal as an example of image acquisition data DIN. The signal input / output circuit 24 is an embodiment of the image input / output unit 14, and is an I / O interface circuit for inputting / outputting image acquisition data DIN of the image acquisition target 20 or the like.

【0133】また、A/D変換器25は信号処理手段1
5の一実施例であり、画像取得データDINの二値化処理
をして二値画像パターンデータD1を出力するものであ
る。ROM(読出し専用メモリ)26は記憶手段16の
一実施例であり、被画像取得対象20の基準パターンデ
ータD2を格納するものである。本発明の実施例では圧
縮されていない基準パターンデータD2が格納されてい
る。また、記憶手段16はRAM(随時書込み読出し可
能メモリ)であっても良い。
The A / D converter 25 is a signal processing means 1
5 is an embodiment in which image acquisition data DIN is binarized and binary image pattern data D1 is output. The ROM (read only memory) 26 is an embodiment of the storage means 16 and stores the reference pattern data D2 of the image acquisition target 20. In the embodiment of the present invention, uncompressed reference pattern data D2 is stored. Further, the storage means 16 may be a RAM (memory that can be written and read at any time).

【0134】相関処理回路27は相関処理手段17の一
実施例であり、二値画像パターンデータD1と基準パタ
ーンデータD2との相関処理をして相関結果データD3
を出力するものである。ここで、相関処理回路27が図
4〜6に示した本発明の実施例に係る相関処理装置から
成っていることを特徴とする。従って、動作機能等につ
いては説明を省略する(図7,8参照)。
The correlation processing circuit 27 is an embodiment of the correlation processing means 17, and performs a correlation process between the binary image pattern data D1 and the reference pattern data D2 to obtain correlation result data D3.
Is output. Here, the correlation processing circuit 27 is characterized by comprising the correlation processing device according to the embodiment of the present invention shown in FIGS. Therefore, the description of the operation function and the like is omitted (see FIGS. 7 and 8).

【0135】また、比較出力回路28は判定出力手段1
8の一実施例であり、相関結果データD3と判定基準デ
ータD4とに基づいて判定結果データDoutを出力する
ものである。
The comparison output circuit 28 is provided with the judgment output means 1
8 is an example of outputting the judgment result data Dout based on the correlation result data D3 and the judgment reference data D4.

【0136】このようにして、本発明の実施例に係る画
像処理装置によれば、図9に示すように信号入出力回路
24,A/D変換器25,ROM26,相関処理回路2
7及び判定出力回路28が具備され、該相関処理回路2
7が本発明の実施例に係る相関処理装置から成ってい
る。
As described above, according to the image processing apparatus according to the embodiment of the present invention, as shown in FIG. 9, the signal input / output circuit 24, the A / D converter 25, the ROM 26, the correlation processing circuit 2
7 and a judgment output circuit 28, and the correlation processing circuit 2
Reference numeral 7 denotes a correlation processing device according to the embodiment of the present invention.

【0137】このため、被画像取得対象20のアナログ
画像取得信号DINが信号入出力回路24に入力される
と、該取得信号DINがA/D変換器25により二値化処
理され、その二値画像パターンデータD1が相関処理回
路27に出力される。また、ROM26に格納されてい
る被画像取得対象20の基準パターンデータD2が読み
出され、それが相関処理回路27に出力される。このこ
とで、二値画像パターンデータD1と基準パターンデー
タD2とが相関処理回路27により相関処理され、その
相関結果データD3が判定出力手段18に出力される。
また、該判定出力回路28では、相関結果データD3と
判定基準データD4とに基づいて判定結果データDout
を出力することが可能となる。
Therefore, when the analog image acquisition signal DIN of the image acquisition target 20 is input to the signal input / output circuit 24, the acquisition signal DIN is binarized by the A / D converter 25, and the binary The image pattern data D1 is output to the correlation processing circuit 27. Further, the reference pattern data D2 of the image acquisition target 20 stored in the ROM 26 is read out and output to the correlation processing circuit 27. As a result, the binary image pattern data D1 and the reference pattern data D2 are correlated by the correlation processing circuit 27, and the correlation result data D3 is output to the judgment output means 18.
The judgment output circuit 28 judges the judgment result data Dout based on the correlation result data D3 and the judgment reference data D4.
Can be output.

【0138】これにより、半導体集積回路装置の微細
化,高集積化に伴う相関処理をする情報量が益々多くな
った場合でも、画像圧縮/相関処理をしているので画像
処理時間の短縮化を図ること,及び当該画像処理装置の
光学系分解能を高めることが可能となる。また、評価判
定精度の向上及び当該画像処理装置の性能の向上を図る
ことが可能となる。
As a result, even when the amount of information for performing the correlation processing accompanying the miniaturization and high integration of the semiconductor integrated circuit device increases, the image compression / correlation processing is performed, so that the image processing time can be reduced. It is possible to improve the resolution of the optical system of the image processing apparatus. Further, it is possible to improve the evaluation determination accuracy and the performance of the image processing apparatus.

【0139】なお、画像処理装置において、被画像処理
対象20の圧縮処理された基準パターンデータD21を予
めROM26等に記憶処理をすることで、基準データ圧
縮回路22を省略することが可能となる。
In the image processing apparatus, the reference data compression circuit 22 can be omitted by storing the compressed reference pattern data D21 of the image processing target 20 in the ROM 26 or the like in advance.

【0140】これにより、当該画像処理装置のコンパク
ト化及び低廉化を図ることが可能となる。
As a result, it is possible to reduce the size and cost of the image processing apparatus.

【0141】[0141]

【発明の効果】以上説明したように、本発明の相関処理
装置によれば第1,第2のデータ圧縮手段と、被相関圧
縮データ出力手段,基準圧縮データ出力手段,データ演
算出力手段,データ比較出力手段及びデータ入出力制御
手段13Eから成る圧縮データ相関処理手段13とが具備
されている。
As described above, according to the correlation processing apparatus of the present invention, the first and second data compression means, the correlated compressed data output means, the reference compressed data output means, the data calculation output means, and the data A compressed data correlation processing means 13 comprising a comparison output means and a data input / output control means 13E is provided.

【0142】このため、第1,第2のデータ圧縮手段に
より圧縮された被相関圧縮データ,基準圧縮データが被
相関圧縮データ出力手段,基準圧縮データ出力手段を介
してデータ演算出力手段,データ比較出力手段に出力さ
れる。このことで、データ演算出力手段から更新データ
がデータ比較出力手段に出力され、該データ比較出力手
段では、被相関圧縮データ,基準圧縮データ及び更新デ
ータに基づいて相関処理され、その結果、相関結果デー
タが出力される。このことから、半導体集積回路装置の
微細化,高集積化に伴う相関処理をする情報量が益々多
くなった場合でも、相関処理時間の短縮化を図ることが
可能となる。
For this reason, the correlated compressed data and the reference compressed data compressed by the first and second data compression means are supplied to the data calculation output means and the data comparison means via the correlated compressed data output means and the reference compressed data output means. Output to output means. As a result, the updated data is output from the data calculation output means to the data comparison output means, and the data comparison output means performs correlation processing based on the correlated compressed data, the reference compressed data, and the update data. Data is output. This makes it possible to reduce the correlation processing time even when the amount of information for performing the correlation processing accompanying the miniaturization and high integration of the semiconductor integrated circuit device increases.

【0143】また、本発明の相関処理方法によれば二値
画像パターンデータの圧縮処理に続いて、被相関圧縮デ
ータと基準圧縮データとの比較検出処理をしている。
Further, according to the correlation processing method of the present invention, following the compression processing of the binary image pattern data, the comparison detection processing of the correlated compressed data and the reference compressed data is performed.

【0144】このため、被相関パターンと基準パターン
とを従来例のように1画素単位毎に比較処理することな
く、両パターンを圧縮データ単位毎に比較処理をするこ
とが可能となる。このことで、比較画素数が増加した場
合であっても、取扱いデータ量の低減化を図ることが可
能となる。
Therefore, it is possible to compare both patterns for each compressed data unit without comparing the correlated pattern and the reference pattern for each pixel as in the conventional example. This makes it possible to reduce the amount of handled data even if the number of comparison pixels increases.

【0145】さらに、本発明の画像処理装置によれば画
像入出力手段,信号処理手段,記憶手段,相関処理手段
及び判定出力手段が具備され、該相関処理手段が上記の
本発明に係る相関処理装置から成っている。
Further, according to the image processing apparatus of the present invention, there are provided an image input / output means, a signal processing means, a storage means, a correlation processing means and a judgment output means, wherein the correlation processing means comprises the above-mentioned correlation processing according to the present invention. Made of equipment.

【0146】このため、被画像取得対象のアナログ画像
取得信号が信号処理手段により二値化処理され、その二
値画像パターンデータが相関処理手段に出力される。ま
た、記憶手段に格納されている基準パターンデータ又は
基準圧縮データが読み出され、それが相関処理手段に出
力される。このことで、被相関圧縮データと基準圧縮デ
ータとが相関処理手段により相関処理され、判定出力手
段において、その相関結果データと判定基準データに基
づいて判定処理をすることが可能となる。
Therefore, the analog image acquisition signal to be acquired is binarized by the signal processing means, and the binary image pattern data is output to the correlation processing means. Further, the reference pattern data or the reference compressed data stored in the storage means is read out and output to the correlation processing means. Thus, the correlated compressed data and the reference compressed data are correlated by the correlation processing means, and the judgment output means can perform the judgment processing based on the correlation result data and the judgment reference data.

【0147】これにより、ハード的に相関処理をするこ
とができ、半導体集積回路装置のパターン検査等の高速
化を図ること、及び当該画像処理装置の光学系分解能を
高めることが可能となる。また、評価判定精度の向上及
び当該画像処理装置の性能の向上に寄与するところが大
きい。
As a result, the correlation processing can be performed in a hardware manner, so that the speed of pattern inspection of the semiconductor integrated circuit device can be increased, and the resolution of the optical system of the image processing device can be increased. In addition, it greatly contributes to improvement of evaluation determination accuracy and improvement of performance of the image processing apparatus.

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

【図1】本発明に係る相関処理装置の原理図である。FIG. 1 is a principle diagram of a correlation processing apparatus according to the present invention.

【図2】本発明に係る相関処理方法の原理図である。FIG. 2 is a principle diagram of a correlation processing method according to the present invention.

【図3】本発明に係る画像処理装置の原理図である。FIG. 3 is a principle diagram of an image processing apparatus according to the present invention.

【図4】本発明の実施例に係る相関処理装置の構成図で
ある。
FIG. 4 is a configuration diagram of a correlation processing device according to an embodiment of the present invention.

【図5】本発明の実施例に係る各データ圧縮回路の機能
説明図である。
FIG. 5 is an explanatory diagram of functions of each data compression circuit according to the embodiment of the present invention.

【図6】本発明の実施例に係る圧縮データ相関回路の構
成図である。
FIG. 6 is a configuration diagram of a compressed data correlation circuit according to an embodiment of the present invention.

【図7】本発明の実施例に係る相関処理方法のフローチ
ャートである。
FIG. 7 is a flowchart of a correlation processing method according to an embodiment of the present invention.

【図8】本発明の実施例に係るフローチャートの補足説
明図である。
FIG. 8 is a supplementary explanatory diagram of the flowchart according to the embodiment of the present invention.

【図9】本発明の実施例に係る画像処理装置の構成図で
ある。
FIG. 9 is a configuration diagram of an image processing apparatus according to an embodiment of the present invention.

【図10】従来例に係る相関処理回路の構成図である。FIG. 10 is a configuration diagram of a correlation processing circuit according to a conventional example.

【図11】従来例に係る相関処理方法の説明図である。FIG. 11 is an explanatory diagram of a correlation processing method according to a conventional example.

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

11…第1のデータ圧縮手段、12…第2のデータ圧縮
手段、13…圧縮データ相関処理手段、13A…被相関圧
縮データ出力手段、13B…基準圧縮データ出力手段、13
C…データ演算出力手段、13D…データ比較出力手段、
13E…データ入出力制御手段、14…画像入出力手段、
15…信号処理手段、16…記憶手段、17…相関処理
手段、18…判定出力手段、D1…二値画パターンデー
タ、D2…基準パターンデータ、D3…相関結果デー
タ、DR…更新データ、D11…被相関圧縮データ、D21
…基準圧縮データ、S1,S2…第1,第2の制御信
号、DIN…画像取得データ、Dout …判定結果データ。
11: first data compression means, 12: second data compression means, 13: compressed data correlation processing means, 13A: correlated compressed data output means, 13B: reference compressed data output means, 13
C: data calculation output means, 13D: data comparison output means,
13E: data input / output control means, 14: image input / output means,
15: Signal processing means, 16: Storage means, 17: Correlation processing means, 18: Judgment output means, D1: Binary image pattern data, D2: Reference pattern data, D3: Correlation result data, DR: Update data, D11 ... Correlated compressed data, D21
... Reference compressed data, S1, S2, first and second control signals, DIN, image acquisition data, Dout, determination result data.

フロントページの続き (56)参考文献 特開 昭62−249292(JP,A) 特開 昭62−249293(JP,A) 特開 昭58−161082(JP,A) 特開 昭64−61881(JP,A) 特開 昭57−137978(JP,A) (58)調査した分野(Int.Cl.7,DB名) G06T 7/00 Continuation of the front page (56) References JP-A-62-249292 (JP, A) JP-A-62-249293 (JP, A) JP-A-58-161022 (JP, A) JP-A-64-61881 (JP) , A) JP-A-57-137978 (JP, A) (58) Fields investigated (Int. Cl. 7 , DB name) G06T 7/00

Claims (4)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 被相関処理対象(19)の二値画像パタ
ーンデータ(D1)を圧縮して被相関圧縮データ(D1
1)を出力する第1のデータ圧縮手段(11)と、前記
被相関処理対象(19)の基準パターンデータ(D2)
を圧縮して基準圧縮データ(D21)を出力する第2のデ
ータ圧縮手段(12)と、前記被相関圧縮データ(D1
1)と基準圧縮データ(D21)との相関処理をする圧縮
データ相関処理手段(13)とを有し、 前記圧縮データ相関処理手段(13)が、第1の制御信
号(S1)に基づいて前記被相関圧縮データ(D11)を
出力する被相関圧縮データ出力手段(13A)と、第2の
制御信号(S2)に基づいて前記基準圧縮データ(D2
1)を出力する基準圧縮データ出力手段(13B)と、前
記被相関圧縮データ(D11)及び基準圧縮データ(D2
1)の差を更新データ(DR)として出力するデータ演
算出力手段(13C)と、前記更新データ(DR)、前記
被相関圧縮データ(D11)及び前記基準圧縮データ(D
21)に基づいて相関処理をするデータ比較出力手段(13
D)と、基準信号(CLK)に基づいて前記第1及び第2
の制御信号(S1,S2)を出力するデータ入出力制御
手段(13E)とを有することを特徴とする相関処理装
置。
The binary image pattern data (D1) of an object (19) to be correlated is compressed to generate compressed data (D1).
A first data compression means (11) for outputting 1) and reference pattern data (D2) for the correlated processing object (19)
A second data compression means (12) for compressing the compressed compressed data and outputting the reference compressed data (D21);
1) and a compressed data correlation processing unit (13) for performing a correlation process between the reference compressed data (D21) and the compressed data correlation processing unit (13) based on the first control signal (S1). The correlated compressed data output means (13A) for outputting the correlated compressed data (D11), and the reference compressed data (D2) based on a second control signal (S2).
1), a reference compressed data output means (13B), the correlated compressed data (D11) and the reference compressed data (D2).
A data operation output means (13C) for outputting the difference 1) as update data (DR); the update data (DR), the correlated compressed data (D11) and the reference compressed data (D
Data comparison and output means (13) for performing correlation processing based on (21)
D) and the first and second signals based on the reference signal (CLK).
And a data input / output control means (13E) for outputting the control signals (S1, S2).
【請求項2】 被相関処理対象(19)の二値画像パタ
ーンデータ(D1)の圧縮処理をし、前記圧縮処理され
た被相関圧縮データ(D11)と前記被相関処理対象(1
9)の基準パターンデータ(D2)を圧縮処理した基準
圧縮データ(D21)との比較検出処理をする相関処理方
法において、 前記比較検出処理は、行単位にnビットの被相関圧縮デ
ータ(D11)及びnビットの基準圧縮データ(D21)の
各々最上位ビットの二値画論理値(0/1)、下位n−
1ビットの同一論理値(0/1)に基づいて比較更新処
理をすることを特徴とする相関処理方法。
2. A compression process is performed on the binary image pattern data (D1) of the correlated processing object (19), and the compressed correlated compressed data (D11) and the correlated processing object (1) are compressed.
9) In the correlation processing method for comparing and detecting the reference pattern data (D2) obtained by compressing the reference pattern data (D2) with the reference compressed data (D21), the comparison and detection processing includes n bits of correlated compressed data (D11) for each row. And n-bit reference compressed data (D21), the binary image logical value (0/1) of the most significant bit and the lower n-
A correlation processing method, wherein comparison and update processing is performed based on the same logical value (0/1) of one bit.
【請求項3】 被画像取得対象(20)の画像取得デー
タ(DIN)を入出力する画像入出力手段(14)と、前
記画像取得データ(DIN)の二値化処理をして二値画像
パターンデータ(D1)の出力をする信号処理手段(1
5)と、前記被画像取得対象(20)の基準パターンデ
ータ(D2)を格納する記憶手段(16)と、前記二値
画像パターンデータ(D1)と基準パターンデータ(D
2)との相関処理をして相関結果データ(D3)の出力
をする相関処理手段(17)と、前記相関結果データ
(D3)と判定基準データ(D4)とに基づいて判定結
果データ(Dout )を出力する判定出力手段(18)と
を具備し、 前記相関処理手段(17)が、 被相関処理対象(19)の二値画像パターンデータ(D
1)を圧縮して被相関圧縮データ(D11)を出力する第
1のデータ圧縮手段(11)と、前記被相関処理対象
(19)の基準パターンデータ(D2)を圧縮して基準
圧縮データ(D21)を出力する第2のデータ圧縮手段
(12)と、前記被相関圧縮データ(D11)と基準圧縮
データ(D21)との相関処理をする圧縮データ相関処理
手段(13)とを有し、且つ、前記圧縮データ相関処理
手段(13)が、 第1の制御信号(S1)に基づいて前記被相関圧縮デー
タ(D11)を出力する被相関圧縮データ出力手段(13
A)と、第2の制御信号(S2)に基づいて前記基準圧
縮データ(D21)を出力する基準圧縮データ出力手段
(13B)と、前記被相関圧縮データ(D11)及び基準圧
縮データ(D21)の差を更新データ(DR)として出力
するデータ演算出力手段(13C)と、前記更新データ
(DR)、前記被相関圧縮データ(D11)及び前記基準
圧縮データ(D21)に基づいて相関処理をするデータ比
較出力手段(13D)と、基準信号(CLK)に基づいて前
記第1及び第2の制御信号(S1,S2)を出力するデ
ータ入出力制御手段(13E)とを有することを特徴とす
る画像処理装置。
3. An image input / output means (14) for inputting / outputting image acquisition data (DIN) of an image acquisition target (20), and a binary image obtained by performing a binarization process on the image acquisition data (DIN). Signal processing means (1) for outputting pattern data (D1)
5), storage means (16) for storing the reference pattern data (D2) of the image acquisition target (20), the binary image pattern data (D1) and the reference pattern data (D
A correlation processing means (17) for performing correlation processing with 2) and outputting correlation result data (D3); and determination result data (Dout) based on the correlation result data (D3) and determination reference data (D4). And a correlation output means (18) for outputting the binary image pattern data (D) of the correlated processing target (19).
(1) a first data compression means (11) for outputting correlated compressed data (D11); and a reference pattern data (D2) for compressing the reference pattern data (D2) of the correlated processing target (19). D21), and compressed data correlation processing means (13) for performing correlation processing between the correlated compressed data (D11) and reference compressed data (D21). The compressed data correlation processing means (13) outputs the correlated compressed data (D11) based on the first control signal (S1).
A), reference compressed data output means (13B) for outputting the reference compressed data (D21) based on the second control signal (S2), the correlated compressed data (D11) and the reference compressed data (D21). And a correlation operation based on the data calculation output means (13C) for outputting the difference as the update data (DR) and the update data (DR), the correlated compressed data (D11) and the reference compressed data (D21). Data comparison and output means (13D) and data input / output control means (13E) for outputting the first and second control signals (S1, S2) based on a reference signal (CLK). Image processing device.
【請求項4】 請求項3に記載の画像処理装置におい
て、前記記憶手段(16)が前記被画像処理対象(2
0)の圧縮処理された基準パターンデータ(D2)の記
憶処理をしていることを特徴とする画像処理装置。
4. The image processing apparatus according to claim 3, wherein the storage means (16) stores the image processing target (2
An image processing apparatus which stores the compressed reference pattern data (D2) of (0).
JP2403385A 1990-12-18 1990-12-18 Correlation processing device, correlation processing method, and image processing device Expired - Fee Related JP3009230B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2403385A JP3009230B2 (en) 1990-12-18 1990-12-18 Correlation processing device, correlation processing method, and image processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2403385A JP3009230B2 (en) 1990-12-18 1990-12-18 Correlation processing device, correlation processing method, and image processing device

Publications (2)

Publication Number Publication Date
JPH04217076A JPH04217076A (en) 1992-08-07
JP3009230B2 true JP3009230B2 (en) 2000-02-14

Family

ID=18513122

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2403385A Expired - Fee Related JP3009230B2 (en) 1990-12-18 1990-12-18 Correlation processing device, correlation processing method, and image processing device

Country Status (1)

Country Link
JP (1) JP3009230B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005262587A (en) * 2004-03-17 2005-09-29 Fuji Xerox Co Ltd Image compression device/method and compressed data processing device/method

Also Published As

Publication number Publication date
JPH04217076A (en) 1992-08-07

Similar Documents

Publication Publication Date Title
JP3009230B2 (en) Correlation processing device, correlation processing method, and image processing device
JP3408869B2 (en) Image processing device
KR0126893B1 (en) Mistogram processing unit
JP3352761B2 (en) Image data position conversion method
JPH0129643Y2 (en)
JP2792137B2 (en) Data processing device
JP2716894B2 (en) Labeling circuit for image processing
JP2973789B2 (en) Label area perimeter calculation device
JP2690936B2 (en) Digital image analyzer
KR0173246B1 (en) Apparatus for processing binary image projection
JPH01119872A (en) Conversion circuit
JP2861105B2 (en) Spoke register generation circuit
JP3111563B2 (en) Inspection equipment for printed wiring boards
JP2962148B2 (en) Image processing device
JPH09167964A (en) Image input circuit for image processor
JP3003925B2 (en) Defect inspection equipment
JP2515534B2 (en) Signal filtering device
EP0447541A1 (en) Image data processor system and method
JPH0397079A (en) Device for detecting center of gravity
JPH02156395A (en) Paper money discrimination device
JPS63106879A (en) Image processor
JPH01229386A (en) Sample pattern generating device
JPS6112316B2 (en)
JPH0666070B2 (en) Pattern processor
JPS5930174A (en) Directing code arithmetic circuit

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 19991116

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313113

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20071203

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20081203

Year of fee payment: 9

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20081203

Year of fee payment: 9

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20091203

Year of fee payment: 10

LAPS Cancellation because of no payment of annual fees