JPH01296384A - Pattern processor - Google Patents

Pattern processor

Info

Publication number
JPH01296384A
JPH01296384A JP63125741A JP12574188A JPH01296384A JP H01296384 A JPH01296384 A JP H01296384A JP 63125741 A JP63125741 A JP 63125741A JP 12574188 A JP12574188 A JP 12574188A JP H01296384 A JPH01296384 A JP H01296384A
Authority
JP
Japan
Prior art keywords
pattern
data
picture
filter
partial
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP63125741A
Other languages
Japanese (ja)
Inventor
Yutaka Sako
裕 酒匂
Yozo Ouchi
大内 洋三
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.)
Hitachi Ltd
Original Assignee
Hitachi 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 Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP63125741A priority Critical patent/JPH01296384A/en
Publication of JPH01296384A publication Critical patent/JPH01296384A/en
Pending legal-status Critical Current

Links

Landscapes

  • Image Processing (AREA)
  • Image Analysis (AREA)

Abstract

PURPOSE:To make a pattern processor adaptable to a picture process for a picture having continuously or partial changing properties by causing different filters of act at every picture coordinates containing an object pattern in the pattern processor. CONSTITUTION:An object pattern is converted into analog picture signals 1S by means of an image pickup device 1 and further converted into digital picture data 2S by means of an A/D converter 2. The picture data are segmented by a partial pattern segmentation circuit 3 into partial pattern data groups (P0), (P1), (P2),... of the number corresponding to the number of various filter factors. Synchronously to the segmentation, data 4a indicating that which filter factor group is to be selected at each picture coordinates are read out of the address of a memory 4 for selecting filter factor designated by an address generation circuit 10. Then one set of filter factor group is selected from filter factor groups (a0), (a1), (a2),... in accordance with the value of the data 4a by means of a selection circuit 8.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、!1品選別等に必要な、パターンの各位置毎
に異なる処理や判定を行うためのパターン処理装置に関
する。
[Detailed Description of the Invention] [Industrial Application Field] The present invention has the following features: The present invention relates to a pattern processing device for performing different processing and determination for each position of a pattern, which is necessary for sorting one item, etc.

〔従来の技術〕[Conventional technology]

工業製品の組み立てや選別の自動化に画像処理技術の導
入が盛んに行われている。例えば「パターン認識技術の
検査への応用」 (日立評論voQ。
Image processing technology is being actively introduced to automate the assembly and sorting of industrial products. For example, "Application of pattern recognition technology to inspection" (Hitachi Review voQ).

59 Na1l p、29)に述べられているように、
搬送装置上の部品や製品を選別するために1通常、搬送
装置の真上にテレビカメラを設置し、そこから得られた
画像を処理して対象物の自動認識を行なっている。
59 Na1l p, 29),
In order to sort parts and products on a conveyance device, a television camera is usually installed directly above the conveyance device, and the images obtained from the camera are processed to automatically recognize the objects.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

しかしながら、設備の周辺環境や雰囲気で、テレビカメ
ラを真上に設置できず、搬送装置に対して斜め方向に置
かざるを得ない場合も多い。この場合、第2図(a)に
示したように、検査対象物は、テレビカメラの焦点が合
っている位置(A)からの距離にほぼ比例したボケが生
ずる。焦点深度が深いレンズを用いても、大きい対象物
の選別の場合、程度の差はあるが、遠心の位置(B)で
は若干のボケが生じてしまう。このようなボケを含んだ
画像の処理の雅しい点は1例えば、対象物の位置検出の
ために、境界エツジを求めようとしても、エツジ情報の
広がりが画像の位置毎に異なるため1位If (A)の
エツジ検出用フィルタが、位! (B)のエツジ検出に
役立たない場合があるこζである。
However, due to the surrounding environment and atmosphere of the equipment, it is not possible to install the television camera directly above it, and it is often necessary to place it diagonally with respect to the transport device. In this case, as shown in FIG. 2(a), the object to be inspected becomes blurred in proportion to the distance from the focused position (A) of the television camera. Even if a lens with a deep focal depth is used, when a large object is to be sorted, some blurring will occur at the centrifugal position (B), although there are differences in degree. The elegant point of processing an image containing such blur is 1. For example, even if you try to find the boundary edge to detect the position of an object, the spread of edge information differs depending on the position of the image, so the first If The edge detection filter in (A) is! This may not be useful for edge detection in (B).

〔課題を解決するための手段〕[Means to solve the problem]

本発明の目的は、上に述べた。ボケに代表される画像性
質が連続的、又は9部分的に異なる場合の画像処理に最
適なパターン処理装置を提供することにある。そのため
に1画像の各位置でサイズの異なるフィルタリングや論
理演算を高速に実行できる機構を持つ。
The objects of the invention have been stated above. It is an object of the present invention to provide a pattern processing device that is optimal for image processing when image properties represented by blurring are different continuously or in nine parts. To this end, it has a mechanism that can perform filtering and logical operations of different sizes at high speed at each position in one image.

〔作用〕[Effect]

このようにすれば、各位置でのパターンの特徴を決定す
るのに必要な画像情報量を動的に制御できる0例えば、
第2図のような画像の場合、テレビカメラの方向とレン
ズの特性が既知であれば、計算や実験でおおよそのボケ
の程度を画像の各位置で求めることができる。そこで、
そのデータを予め、第2図(b)のように求めておき、
画像処理を行うときに、そのデータを参考にして、フィ
ルタサイズを変更する。このようにすれば1位置(A)
から位置(B)に到る画像空間に対して、それぞれのボ
ケの広がりに対応した画像情報を用いたエツジ検出が可
能となる。
In this way, the amount of image information required to determine the pattern characteristics at each position can be dynamically controlled. For example,
In the case of an image like that shown in FIG. 2, if the direction of the television camera and the characteristics of the lens are known, the approximate degree of blur can be determined at each position in the image by calculation or experiment. Therefore,
The data is obtained in advance as shown in Figure 2 (b),
When performing image processing, change the filter size using that data as a reference. In this way, the 1st position (A)
Edge detection using image information corresponding to the spread of each blur becomes possible for the image space from to position (B).

〔実施例〕〔Example〕

以下、本発明を実施例によって詳細に説明する。 Hereinafter, the present invention will be explained in detail with reference to Examples.

第1図(a)に本発明のパターン処理装置の構成の一実
施例を示す。
FIG. 1(a) shows an embodiment of the configuration of a pattern processing apparatus of the present invention.

第2図(a)のような対象パターンは撮像装置1により
アナログ画像信号1s、そして、A/D変換器2により
ディジタル画像データ2sに変換される。そして、それ
らの画像データは、部分パターン切り出し回路3により
、各種のフィルタ係数個数に対応した画素数の部分パタ
ーンデータ群(poL (ptL (pz)、・・・に
切り出される。一方、その処理と同期して、アドレス発
生回路10で指定されるフィルタ係数選択用メモリ4の
アドレスから、各画像座標でどのフィルタ係数群を選択
するかを示すデータ4aが読みだされる。これらのデー
タは、対象画像の座標ごとのフィルタ係数群を指定でき
るような形式で、フィルタ係数選択用メモリ4に記憶さ
れている。そして、そのデータの値に従って、選択回路
8により、フィルタ係数群(ao)、 (al)、 (
az)、・・・の内の1組のフィルタ係数群が選択され
る。
A target pattern as shown in FIG. 2(a) is converted into an analog image signal 1s by the imaging device 1 and into digital image data 2s by the A/D converter 2. Then, these image data are cut out by the partial pattern cutting circuit 3 into partial pattern data groups (poL (ptL (pz), ...) with the number of pixels corresponding to the number of various filter coefficients. Synchronously, data 4a indicating which filter coefficient group to select at each image coordinate is read from the address of the filter coefficient selection memory 4 specified by the address generation circuit 10. It is stored in the filter coefficient selection memory 4 in a format that allows specifying a filter coefficient group for each coordinate of the image. Then, according to the value of the data, the selection circuit 8 selects the filter coefficient groups (ao), (al ), (
az), . . . one set of filter coefficients is selected.

第1図(b)に、  (ao)、 (al)、 (az
)に対応したフィルタの具体例を示す、このフィルタは
、水平及び垂直のエツジに感度があるものである。
In Figure 1(b), (ao), (al), (az
) This filter is sensitive to horizontal and vertical edges.

また、このデータ4aは1選択したフィルタ係数群の係
数個数と同じ画素数の特定の部分パターンデータ群を選
択するために選択回路7にも使用される。このようにし
て選択された部分パターンデータ群とフィルタ係数群は
、積和回路9における積和演算、すなわち、フィルタリ
ング処理に使用される。そして、この積和演算処理結果
を画像データ9Sとして出力する。この画像データは、
エツジを強調したもので、第2図(c)に対応するもの
である 部分パターン切り出し回路3は、原画像の幅(X方向)
に対応した長さを持ち、必要とするフィルタのY方向の
最大長さに対応した本数のシフトレジスタ群1と、部分
パターン保持用の、フィルタのX、Y方向の最大長さに
対応した幅と本数のシフトレジスタ群2からなる。この
回路に入力される画像データは、装置の基本クロック毎
に各シフトレジスタ内で順次シフトされていくので、シ
フトレジスタ群2内には最大のフィルタに対応する部分
パターンが格納されている。従って、各フィルタ(ao
)、 (al)、 (az)、・・・の係数個数と同じ
画素数の部分パターン(po)、 (pl)、 (pz
)。
This data 4a is also used by the selection circuit 7 to select a specific partial pattern data group having the same number of pixels as the number of coefficients in one selected filter coefficient group. The partial pattern data group and filter coefficient group selected in this way are used for the product-sum calculation in the product-sum circuit 9, that is, the filtering process. Then, the product-sum calculation processing result is output as image data 9S. This image data is
The partial pattern cutout circuit 3, which emphasizes edges and corresponds to FIG. 2(c), is configured to
Shift register group 1 with a length corresponding to the maximum length of the required filter in the Y direction, and a width corresponding to the maximum length of the filter in the X and Y directions for holding partial patterns. The shift register group 2 consists of a number of shift registers. Since the image data input to this circuit is sequentially shifted within each shift register every basic clock of the device, the partial pattern corresponding to the largest filter is stored in the shift register group 2. Therefore, each filter (ao
), (al), (az), ... partial patterns (po), (pl), (pz
).

・・・は、このシフトレジスタ群の各要素から求められ
る。
... is obtained from each element of this shift register group.

シフトレジスタ5は、ある画像座標での部分パターンに
、所望のフィルタ係数のフィルタを作用される際の、部
分パターン切り出し回路での画像データの遅れに原因す
るタイミングのくいちがいを解消するために使用される
The shift register 5 is used to eliminate a timing discrepancy caused by a delay in image data in the partial pattern extraction circuit when a filter with a desired filter coefficient is applied to a partial pattern at a certain image coordinate. Ru.

以上説明したように、認識対象を含む画像各位置で異な
るフィルタが作用するように、フィルタ係数選択用メモ
リに適切なデータを格納することで、本発明を完全に具
体化できる。
As described above, the present invention can be fully implemented by storing appropriate data in the filter coefficient selection memory so that a different filter acts on each position of the image including the recognition target.

本実施例では、フィルタ係数選択用メモリ4に適切なデ
ータを格納する方法を取ったが、アドレス発生回路10
のアドレス値を用いた演算により、選択すべきフィルタ
係数の種類を直接求めるようにしても良い。また、本実
施例では、エツジを強調する場合を説明したが、フィル
タの係数を変えることで1画像の位置ごとで異なるサイ
ズの平均化処理等も可能である。
In this embodiment, a method is adopted in which appropriate data is stored in the filter coefficient selection memory 4, but the address generation circuit 10
The type of filter coefficient to be selected may be directly determined by calculation using the address value. Further, in this embodiment, a case has been described in which edges are emphasized, but by changing the filter coefficients, it is also possible to perform averaging processing of different sizes for each position of one image.

また、本実施例では、a淡側像処理を念頭において説明
したが、2値画像処理の場合には、積和回路を適当な論
理回路に変更すれば、同様な機能を実現できる。
Furthermore, although this embodiment has been described with a-light side image processing in mind, in the case of binary image processing, the same function can be realized by replacing the product-sum circuit with an appropriate logic circuit.

〔発明の効果〕〔Effect of the invention〕

以上説明したごとく1本発明のパターン処理装置では、
対象のパターンを含む画像座標毎に異なるフィルタを作
用させられるので、画像の性質が連続、又は部分的に変
化している画像処理に適している。
As explained above, in the pattern processing device of the present invention,
Since a different filter can be applied to each image coordinate including the target pattern, it is suitable for image processing in which the properties of the image are continuously or partially changing.

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

第1図は、本発明のパターン処理装置の構成を示すブロ
ックおよびフィルタ係数群の説明図、第2図は、本発明
の詳細な説明した説明図である。 1・・・撮影装置、2・・・A/D変換器、3・・・部
分パターン切り出し回路、4・・・フィルタ係数選択用
メモリ、5・・・シフトレジスタ、6・・・フィルタ係
数群、7・・・選択回路、8・・・選択回路、9・・・
積和回路、10・・・アドレス発生回路。
FIG. 1 is an explanatory diagram of blocks and filter coefficient groups showing the configuration of a pattern processing apparatus of the present invention, and FIG. 2 is an explanatory diagram explaining the present invention in detail. DESCRIPTION OF SYMBOLS 1... Photographing device, 2... A/D converter, 3... Partial pattern extraction circuit, 4... Memory for filter coefficient selection, 5... Shift register, 6... Filter coefficient group , 7... selection circuit, 8... selection circuit, 9...
Product-sum circuit, 10...address generation circuit.

Claims (1)

【特許請求の範囲】 1、パターンを処理する装置において、係数個数と係数
値が異なる複数種のフィルタ用係数群を記憶する手段と
、時系列で入力される画素データから、互いに異なる個
数の画素データ群からなる複数種の部分画像を一時的に
記憶する手段と、該フィルタ用係数群と該部分画像のど
れを用いるかを該画素データに入力するタイミング毎に
指定する手段と、指定された該フィルタ用係数群と該部
分画像を用いて積和演算を行う手段を有することを特徴
とするパターン処理装置。 2、パターンを処理する装置において、係数個数と係数
値が異なる複数種の2値マスク用係数群を記憶する手段
と、時系列で入力される画素データから、互いに異なる
個数の画素データ群からなる複数種の部分画像を一時的
に記憶する手段と、該2値マスク用係数群と該部分画像
のどれを用いるかを該画素データの入力するタイミング
毎に指定する手段と、指定された該2値マスク用系係数
群と該部分画像を用いて論理演算を行う手段を有するこ
とを特徴とするパターン処理装置。
[Claims] 1. In a pattern processing device, means for storing a plurality of types of filter coefficient groups having different numbers of coefficients and coefficient values, and means for storing different numbers of pixels from pixel data inputted in time series. means for temporarily storing a plurality of types of partial images consisting of a data group; means for specifying which of the filter coefficient group and the partial image is to be used at each timing of inputting the pixel data; A pattern processing device comprising means for performing a product-sum operation using the filter coefficient group and the partial image. 2. In a pattern processing device, a means for storing a plurality of types of binary mask coefficient groups having different numbers of coefficients and coefficient values, and a means for storing a plurality of types of binary mask coefficient groups having different numbers of coefficients and coefficient values, and a means for storing different numbers of pixel data groups from pixel data inputted in time series. means for temporarily storing a plurality of types of partial images; means for specifying which of the binary mask coefficient group and the partial image is to be used at each input timing of the pixel data; A pattern processing device characterized by having means for performing a logical operation using a value mask system coefficient group and the partial image.
JP63125741A 1988-05-25 1988-05-25 Pattern processor Pending JPH01296384A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63125741A JPH01296384A (en) 1988-05-25 1988-05-25 Pattern processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63125741A JPH01296384A (en) 1988-05-25 1988-05-25 Pattern processor

Publications (1)

Publication Number Publication Date
JPH01296384A true JPH01296384A (en) 1989-11-29

Family

ID=14917644

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63125741A Pending JPH01296384A (en) 1988-05-25 1988-05-25 Pattern processor

Country Status (1)

Country Link
JP (1) JPH01296384A (en)

Similar Documents

Publication Publication Date Title
US4817175A (en) Video stream processing system
US4774569A (en) Method for adaptively masking off a video window in an overscanned image
EP0371055B1 (en) Apparatus for enhancing and thresholding scanned microfilm images and methods for use therein
US4870500A (en) Image signal processing apparatus
US4855943A (en) Method and apparatus for deaveraging a stream of averaged data
EP0663758A2 (en) Image processing method and apparatus
US5140444A (en) Image data processor
US4868670A (en) Apparatus and method for improving the compressibility of an enhanced image through use of a momentarily varying threshold level
EP0547881A1 (en) Method and apparatus for implementing two-dimensional digital filters
JPH01296384A (en) Pattern processor
JPH06129992A (en) Inspection device for periodic pattern
JPH056431A (en) Detector for feature point of contour line
JP3124167B2 (en) Image processing method and apparatus
JPH04295980A (en) Image reader
JPH069062B2 (en) Area extraction device
JPH08202871A (en) Picture information processor
JPH0683959A (en) Area division system for image
WO2003049036A2 (en) Discriminating between synthetic and natural image regions
CN117788452A (en) Method and apparatus for detecting defects on the backside of a wafer
JPS62108381A (en) Density histogram detecting system
JPS596419B2 (en) Character extraction method
JPS6280779A (en) Character reader
JPH10191065A (en) Image filtering method and device
JPH0687264B2 (en) Image binarization method
CN113111921A (en) Object recognition method, object recognition device, electronic equipment and storage medium