JPH0490078A - Centroid detector - Google Patents

Centroid detector

Info

Publication number
JPH0490078A
JPH0490078A JP2203957A JP20395790A JPH0490078A JP H0490078 A JPH0490078 A JP H0490078A JP 2203957 A JP2203957 A JP 2203957A JP 20395790 A JP20395790 A JP 20395790A JP H0490078 A JPH0490078 A JP H0490078A
Authority
JP
Japan
Prior art keywords
center
data
gravity
image data
image
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
JP2203957A
Other languages
Japanese (ja)
Inventor
Masato Ozawa
正人 小沢
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.)
Juki Corp
Original Assignee
Juki Corp
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 Juki Corp filed Critical Juki Corp
Priority to JP2203957A priority Critical patent/JPH0490078A/en
Publication of JPH0490078A publication Critical patent/JPH0490078A/en
Pending legal-status Critical Current

Links

Landscapes

  • Image Analysis (AREA)

Abstract

PURPOSE:To reduce an error generated by the setting of a threshold and to improve detecting accuracy by obtaining plural corrected centroids based upon data obtained by binarizing image data by using plural different thresholds. CONSTITUTION:In centroid operation to be executed by a CPU 1, image data in an image memory 8 are successively read out as a line along the (x) axis and inputted to a binarizing circuit 7. The circuit 7 can set up two kinds of thresholds H, L based upon the control of the CPU 1. The operation using the thresholds H, L is executed once in each image stored in the memory 8. Thus, plural centroid data are obtained based upon the data obtained by binarizing image data by plural different thresholds and more accurately corrected centroids can be obtained based upon the centroid data. Consequently, an error to be generated due to binarization can be reduced in image centroid computing processing and rapid processing can be attained.

Description

【発明の詳細な説明】 [産業上の利用分野1 本発明は重心検出装置、特に2次元画像データを2値化
データとして扱い、その重心を検出する重心検出装置に
関するものである。
DETAILED DESCRIPTION OF THE INVENTION [Industrial Field of Application 1] The present invention relates to a center of gravity detection device, and particularly to a center of gravity detection device that treats two-dimensional image data as binarized data and detects its center of gravity.

[従来の技術] 従来より2画像認識処理において、ある画像パターンの
基準点として2次元画像データの重心位置を検出する技
法が知られている。
[Prior Art] Conventionally, in two-image recognition processing, a technique is known in which the position of the center of gravity of two-dimensional image data is detected as a reference point of a certain image pattern.

この種の処理では、たとえば、プリント基板の位置を加
工機械上の所定位置に位置決めするために、複数の円形
などのプリントパターンをプリント基板上に形成してお
き、このプリントパターンの重心位置をパターンの基準
位置として検出し、この位置を加工機械上の所定位置に
位置決めする用途が知られている。
In this type of processing, for example, in order to position the printed circuit board at a predetermined position on a processing machine, a plurality of circular or other printed patterns are formed on the printed circuit board, and the center of gravity of these printed patterns is There is a known use in which the reference position is detected as a reference position, and this position is positioned at a predetermined position on a processing machine.

2次元の画像パターンすなわち図形の重心位置は、画像
濃度あるいは輝度を質量と考え、慣性モーメントを用い
て表現できることが知られている。
It is known that the position of the center of gravity of a two-dimensional image pattern, that is, a figure, can be expressed using the moment of inertia, considering image density or brightness as mass.

ある図形が含まれるxy直交座標を考えた場合、重心位
置の座標(xG、yG)は次のように示される。
When considering xy orthogonal coordinates that include a certain figure, the coordinates (xG, yG) of the center of gravity are expressed as follows.

xG=Xa+om/S        +H(1)yG
=Ymom  /S             ・−(
2)ただし、S:図形の面積 xG:y軸に対する1次慣性モーメントyG:x軸に対
する1次慣性モーメント上記の演算方法は、多値の画像
データについても適用してもよいが、通常は画像の中心
点として用いることが多いため、また、計算コストも小
さくなるので、画像データを2値として扱う。
xG=Xa+om/S+H(1)yG
= Ymom /S ・-(
2) However, S: Area of the figure The image data is treated as binary because it is often used as the center point and the calculation cost is low.

この場合、x、y軸に関する慣性モーメントは、画像デ
ータが論理1をとる画素の配列インデックス(2次元ア
ドレス)の総和として扱える。
In this case, the moments of inertia regarding the x and y axes can be handled as the sum of array indices (two-dimensional addresses) of pixels whose image data takes logic 1.

[発明が解決しようとする課題] 画像データの2値化は、画像メモリに格納する前、画像
メモリからの読出し後、重心演算の前などいずれの時点
で行なってもよい。
[Problems to be Solved by the Invention] Binarization of image data may be performed at any time, such as before storing it in the image memory, after reading it from the image memory, or before calculating the center of gravity.

しかし、この2値化により、1/2画素ぶんの誤差が生
じる。たとえば、ここで濃度値は0〜225までの値に
量子化されるとし、第4図(a)に斜線で示すように、
CCDマトリクス上に物体の画像が存在するものとする
However, this binarization causes an error of 1/2 pixel. For example, suppose here that the density value is quantized into values from 0 to 225, and as shown by diagonal lines in FIG. 4(a),
Assume that an image of an object exists on a CCD matrix.

第4図(a)の画像は、たとえばチップマウンタなどに
おいて1つの処理対象として扱うべき物体の形状をその
まま表現している6 ただし、その濃度分布にはばらつきがあり、たとえば、
しきい値244により2値化した場合、第4図(b)の
ような2値化画像データが得られ、また、しきい(1M
96により2値化した場合、第4図(C)のような2値
化画像データが得られるように分布している。第5図の
ヒストグラムは、第4図(a)の矢印LLにより示され
る直線上の濃度分布を示している。
The image in FIG. 4(a) directly represents the shape of an object that should be treated as a single processing target in a chip mounter, etc.6 However, there are variations in its density distribution, and for example,
When binarized using the threshold value 244, binarized image data as shown in FIG. 4(b) is obtained;
96, the distribution is such that binarized image data as shown in FIG. 4(C) is obtained. The histogram in FIG. 5 shows the concentration distribution on the straight line indicated by the arrow LL in FIG. 4(a).

ここで、第4図(a)における物体の重心は、第4図(
a)の・印により示される位置に検出されなければなら
ないが、第4図(b)のしきい値では重心位置は右方へ
1/8画素ずれた三角形の位置となり、第4図(C)の
しきい値では、左方へ1/8画素ずれた位置に検出され
る。
Here, the center of gravity of the object in Fig. 4(a) is
It must be detected at the position indicated by the mark in (a), but with the threshold value in Figure 4 (b), the center of gravity is at the triangular position shifted by 1/8 pixel to the right, and as shown in Figure 4 (C ) is detected at a position shifted by 1/8 pixel to the left.

本発明の課題は、画像の重心演算処理において、2値化
により生じる誤差を低減し、また、高速処理を可能とす
ることにある。
An object of the present invention is to reduce errors caused by binarization and to enable high-speed processing in image gravity center calculation processing.

[課題を解決するための手段] 以上の課題を解決するために1本発明においては2次元
画像データを2値化データとして扱い、その重心を検出
する重心検出装置において、前記画像データを異なる複
数のしきい値を用いて2値化したデータに基づき画像デ
ータの重心をそれぞれ求める第1の処理手段と、この処
理手段によりしきい値ごとに求められた画像データの複
数の重心データから入力された2次元画像データの重心
を求める第2の処理手段からなる構成を採用した。
[Means for Solving the Problems] In order to solve the above problems, the present invention treats two-dimensional image data as binarized data, and uses a center of gravity detection device that detects the center of gravity of the two-dimensional image data as binary data. a first processing means that calculates the center of gravity of the image data based on the data binarized using the threshold; A configuration consisting of a second processing means for determining the center of gravity of the two-dimensional image data was adopted.

[作用J 以上の構成によれば、前記画像データを異なる複数のし
きい値を用いて2値化したデータに基づき複数の重心デ
ータを得、これに基づきより正確に補正された重心を求
めることができる。
[Operation J] According to the above configuration, a plurality of centroid data is obtained based on data obtained by binarizing the image data using a plurality of different threshold values, and a more accurately corrected centroid is determined based on this data. I can do it.

[実施例] 以下、図面に示す実施例に基づき、本発明の詳細な説明
する。
[Example] Hereinafter, the present invention will be described in detail based on the example shown in the drawings.

第1図(a)に本発明による重心検出装置の構造を示す
。第1図(a)において符号8は、画像メモリで、CC
Dなとのイメージセンサから読み出された多値の画像デ
ータが格納される。データはたとえば8ビツト(0〜2
55)により表現される。
FIG. 1(a) shows the structure of a gravity center detection device according to the present invention. In FIG. 1(a), reference numeral 8 denotes an image memory, CC
Multivalued image data read from an image sensor such as D is stored. For example, the data is 8 bits (0 to 2
55).

画像メモリ8のアクセスは、アドレス生成回路9により
制御される。アドレス生成回路9では2次元アドレス〜
1次元アドレスの変換処理を行なう。いっばんに乗算演
算の低速なCPUを用いる場合、2次元アドレス演算を
ハードウェア演算回路により行なうことによりCPUの
負担を軽減し、高速処理を期待できる。
Access to the image memory 8 is controlled by an address generation circuit 9. In the address generation circuit 9, the two-dimensional address ~
Performs one-dimensional address conversion processing. First, when using a CPU that performs slow multiplication operations, the burden on the CPU can be reduced by performing two-dimensional address operations using a hardware operation circuit, and high-speed processing can be expected.

ここでは、後述の先頭アドレスラッチ/メモリ5H15
L、終了アドレスラッチ/メモリ6H16L右よびCP
UIによる画像メモリ8のアクセスにおいてアドレス生
成回路9が使用されるものとする6 重心演算は、マイクロプロセッサなどからなるCPU1
により行なわれる。CPU 1の制御プログラム(後述
)はROM2に格納しておく。
Here, the start address latch/memory 5H15, which will be described later, is
L, end address latch/memory 6H16L right and CP
It is assumed that the address generation circuit 9 is used when the image memory 8 is accessed by the UI.6 The center of gravity calculation is performed by the CPU 1 consisting of a microprocessor, etc.
This is done by A control program (described later) for the CPU 1 is stored in the ROM 2.

重心演算において、画像メモリ8内の画像ブタは、第1
図(b)に示すように、X軸に沿ったラインとして順次
読み出され、2値化回路7に入力される。
In the centroid calculation, the image pig in the image memory 8 is
As shown in FIG. 7B, the signals are sequentially read out as lines along the X-axis and input to the binarization circuit 7.

2値化回路7は、CPU 1の制御によりHおよびLの
2種類のしきい値を設定できるようになっている。ここ
で、しきい値Hはたとえば255、Lは96とする(8
ビツト量子化の場合)。しきい値HおよびLを用いた演
算は、それぞれ画像メモリ8内の画像について1回づつ
行なわれる。
The binarization circuit 7 is capable of setting two types of thresholds, H and L, under the control of the CPU 1. Here, the threshold value H is, for example, 255, and L is 96 (8
bit quantization). The calculations using the threshold values H and L are performed once for each image in the image memory 8.

2値化回路7の出力は、しきい値HおよびLのそれぞれ
の2値化セツシヨンにおいて、データラッチおよびFI
FOメモリからなる先頭アドレスラッチ/メモリ5日、
ないし5L、終了アドレスラッチ/メモリ6H1ないし
6Lに入力される5実際には、各ラインの先頭から、最
初に画像データが0から1に転じたアドレスが先頭アド
レスラッチ/メモリ5H15Lのラッチにラッチされ、
その場合、さらに画像データlからOに転じたアドレス
が終了アドレスラッチ/メモリ6H16Lのラッチにラ
ッチされその後、先頭アドレスラッチ/メモリ5H1な
いし5Lおよび終了アドレスラッチ/メモリ6H1ない
し6Lのメモリ部分にラッチデータが転送される。
The output of the binarization circuit 7 is supplied to the data latch and FI in each binarization session for thresholds H and L.
Starting address latch/memory 5 days consisting of FO memory,
to 5L, end address latch/memory 6H1 to 6L 5Actually, from the beginning of each line, the address where the image data first changes from 0 to 1 is latched into the start address latch/memory 5H1 to 5L latch. ,
In that case, the address where the image data 1 has changed to O is further latched in the end address latch/memory 6H16L, and then the latch data is stored in the memory portions of the start address latch/memory 5H1 to 5L and the end address latch/memory 6H1 to 6L. is transferred.

有効なデータがライン中になければ、ライン処理終了後
、先頭アドレスラッチ/メモリ5H,ないし5L、終了
アドレスラッチ/メモリ6H1ないし6Lのメモリ値は
0に設定される。このように、2値化回路7のしきい値
HJよびしごとに画像メモリ8内の画像データを走査す
ることにより、先頭アドレスラッチ/メモリ5日、ない
し5L、終了アドレスラッチ/メモリ6H5ないし6L
内には、各ラインごとの画像データの先頭および終了位
置が格納されることになる。
If there is no valid data in the line, after the line processing is completed, the memory values of the start address latches/memories 5H to 5L and the end address latches/memories 6H1 to 6L are set to 0. In this way, by scanning the image data in the image memory 8 every time the threshold value HJ of the binarization circuit 7 is determined, the start address latch/memory 5th to 5L and the end address latch/memory 6H5 to 6L are scanned.
The start and end positions of the image data for each line are stored within.

上記処理の終了後、異なるしきい値H,Lごとに得られ
た先頭アドレスラッチ/メモリ5H1ないし5L、終了
アドレスラッチ/メモリ6H1ないし6L内の各ライン
ごとの画像データの先頭および終了位置からしきい値H
,Lによる重心位置を求め、これを平均(たとえば算術
平均)することにより補正された重心位置を求める。
After the above processing is completed, the start and end positions of the image data for each line in the start address latch/memories 5H1 to 5L and end address latches/memories 6H1 to 6L obtained for each different threshold value H, L are calculated. Threshold H
, L, and then average (eg, arithmetic average) the corrected center of gravity position.

先頭アドレスラッチ/メモリ5H,ないし5L、Jよび
終了アドレスラッチ/メモリ6H。
Start address latch/memory 5H, 5L, J and end address latch/memory 6H.

ないし6Lの選択は、CPU 1によりセレクタ3を介
して行なわれる。
The selection of 6L to 6L is performed by the CPU 1 via the selector 3.

第2図に、上記の重心演算を行なうためのCPU 1の
制御プログラムを示す。
FIG. 2 shows a control program for the CPU 1 for performing the above-mentioned gravity center calculation.

ステップSlでは、2値化回路7のしきい値をHとし、
2値化回路7によりlラインデータの2値化を行なう。
In step Sl, the threshold value of the binarization circuit 7 is set to H,
The binarization circuit 7 binarizes the l line data.

2値化されたラインデータは不図示のバッファなどに格
納される。このラインデータにつき、ステップS2以降
の処理が行なわれる。
The binarized line data is stored in a buffer (not shown) or the like. Processing from step S2 onwards is performed on this line data.

1画面のデータ処理は、ステップ82〜S6j、iよび
ステップSlOの1ライン処理のループにより行なう。
Data processing for one screen is performed by a loop of one line processing of steps 82 to S6j, i and step SlO.

まず、ステップs2では当該ラインに有効データがある
か否かを判定し、有効データがなければステップ510
でIライン走査の終了を判定する。
First, in step s2, it is determined whether or not there is valid data on the line, and if there is no valid data, step 510 is performed.
The end of the I-line scan is determined.

ステップ510で1ライン走査終了の場合には、ステッ
プS7へ、1ライン終了でなければステップS2を繰り
返す。
If one line scanning is completed in step 510, the process advances to step S7, and if one line scanning is not completed, step S2 is repeated.

ステップS2で有効データが存在する場合には、ステッ
プS3において先頭アドレスラッチ/メモリ5Hに先頭
データをラッチする。この場合には、ステップS4に移
行してステップS4、S5のループにより有効データの
終了(1−0への反転)を監視する。
If valid data exists in step S2, the leading data is latched in the leading address latch/memory 5H in step S3. In this case, the process moves to step S4, and the end of valid data (inversion to 1-0) is monitored through a loop of steps S4 and S5.

ステップS5でラインデータ終了の場合には、ステップ
S6に移行し、ステップS3でラッチした先頭アドレス
およびステップS4でラッチした終了アドレスを先頭ア
ドレスラッチ/メモリ5H1終了アドレスラツチ/メモ
リ6Hのメモリ部分に格納する6 ステップS7では、1画面の終了を検出し、1画面の終
了の場合にはステップS8に移行し、そうでなければス
テップSlからの処理を繰り返す。
If the line data ends in step S5, the process moves to step S6, and the start address latched in step S3 and the end address latched in step S4 are stored in the memory portion of the start address latch/memory 5H1 end address latch/memory 6H. 6 In step S7, the end of one screen is detected, and if it is the end of one screen, the process moves to step S8, otherwise the process from step Sl is repeated.

ステップS7で1画面の終了が検出された場合には、ス
テップS8に移行し、データの先頭および終了アドレス
から各ラインの総和およびX、y軸の1次モーメントを
求める6そして、ステップS9において、(1)および
(2)式による演算を行ない重心(x HG、 y H
G)を求める。
If the end of one screen is detected in step S7, the process moves to step S8, and the total sum of each line and the first moments of the X and y axes are calculated from the start and end addresses of the data6.Then, in step S9, Perform calculations using equations (1) and (2) to find the center of gravity (x HG, y H
Find G).

ステップSll〜S20の処理は、それぞれステップS
l〜510に相当し、ここでは先頭アドレスラッチ/メ
モリ5H1終了アドレスラツチ/メモリ6Hを先頭アド
レスラッチ/メモリSL、終了アドレスラッチ/メモリ
6Lに置き換え、しきい値りを用いた重心(x LG、
 y LG)を求める処理が行なわれる。処理内容は全
く同じなのでここでは説明を省略する。
The processing in steps Sll to S20 is performed in steps Sll to S20, respectively.
Here, the start address latch/memory 5H1, the end address latch/memory 6H are replaced with the start address latch/memory SL, the end address latch/memory 6L, and the center of gravity (x LG,
yLG) is performed. Since the processing contents are exactly the same, the explanation will be omitted here.

ステップS21では、ステップS9、S19で求められ
たしきい値H,Lによる重心位置(x HG、 y H
G) !3よび(x IG、 y LG)の算術平均(
(xHG+ xLGl / 2、(xHG+ yLG)
 / 2 )を補正された重心(xG、yG)として算
出する。
In step S21, the center of gravity position (x HG, y H
G)! 3 and the arithmetic mean of (x IG, y LG) (
(xHG+ xLGl/2, (xHG+ yLG)
/2) is calculated as the corrected center of gravity (xG, yG).

以上の処理を行なう場合、第4図の画像データの重心は
、第3図のX印の位置に求められる(ここでは、しきい
[L=96の場合の重心(x LG、 y LG)を三
角形により示しである)。上記方式により求められる重
心は、図示のように第4図(b)に示される重心位置に
、より近い正確なものとなる。
When performing the above processing, the center of gravity of the image data in Figure 4 is found at the position of the X mark in Figure 3 (here, the center of gravity (x LG, y LG) when the threshold [L = 96 (indicated by a triangle). The center of gravity determined by the above method is more accurate and closer to the center of gravity shown in FIG. 4(b) as shown.

したがって、上記実施例によれば、従来方式よりも重心
検出精度を大きく向上することができる。また、画像の
有効領域をラインデータの先頭/終了アドレスで囲まれ
た範囲としで扱うので。
Therefore, according to the above embodiment, the accuracy of detecting the center of gravity can be greatly improved compared to the conventional method. Also, the effective area of the image is treated as a range surrounded by the start/end addresses of the line data.

ラインごとの実時間による逐次処理が可能であり、リア
ルタイムかつ高速な重心検出処理が可能である。さらに
、上記のように画像の有効領域をラインデータの先頭/
終了アドレスは、画像の輪郭線と考えることができるが
、この輪郭線内が全て有効画像データであるとみなし重
心位置を検出しているので、走査される画像そのものに
欠陥があったり、異物などにより走査プロセスで画像デ
ータに欠陥が生じたとしても目的の画像パタンの本来の
重心位置を正確に検出できるという優れた効果がある。
Sequential processing in real time for each line is possible, and real-time and high-speed center of gravity detection processing is possible. Furthermore, as shown above, the effective area of the image is
The end address can be thought of as the contour line of the image, but since the center of gravity position is detected assuming that everything within this contour line is valid image data, there may be defects in the scanned image itself, foreign objects, etc. This has an excellent effect in that even if a defect occurs in the image data during the scanning process, the original position of the center of gravity of the target image pattern can be accurately detected.

本実施例では、画像の有効領域をラインデータの先頭/
終了アドレスで囲まれた範囲とし、画像データが中空の
場合はないとみなしているが、異なるしきい値を用いて
重心をそれぞれ求め、それを平均する方式は画像の中空
部分をも参照する場合でも利用できる。この場合には、
各しきい値の演算において、画像データの先頭/終了ア
ドレスだけでなく、全ての有効(1)データのアドレス
を加算し、面積で除算することになる。
In this example, the effective area of the image is
The range surrounded by the end address is assumed, and there are no cases where the image data is hollow. However, the method of calculating the center of gravity using different thresholds and averaging them is the method that refers to the hollow parts of the image as well. But it can be used. In this case,
In each threshold calculation, not only the start/end addresses of image data but also the addresses of all valid (1) data are added and divided by the area.

また、以上では、2つのしきい値H,Lを用いる例を示
したが、しきい値の数を3以上であってもよい。また、
複数のしきい値から得られる重心を用いた補正は、算術
平均以外の方法により行なってもよい。しきい値を増や
すことにより、演算時間は増大するが、得られる重心の
誤差はより小さ(できる。
Moreover, although the example using two threshold values H and L has been shown above, the number of threshold values may be three or more. Also,
Correction using the center of gravity obtained from a plurality of threshold values may be performed by a method other than arithmetic averaging. By increasing the threshold, the calculation time increases, but the error of the obtained center of gravity becomes smaller.

[発明の効果] 以上から明らかなように、本発明によれば、2次元画像
データを2値化データとして扱い、その重心を検出する
重心検出装置において、前記画像データを異なる複数の
しきい値を用いて2値化したデータに基づき画像データ
の重心をそれぞれ求める第1の処理手段と、この処理手
段によりしきい値ごとに求められた画像データの複数の
重心データから入力された2次元画像データの重心を求
める第2の処理手段からなる構成を採用しているので、
画像データを異なる複数のしきい値を用いて2値化した
データに基づき複数の補正された重心を得るためしきい
値設定により生じる誤差を小さくし、検出精度を太き(
向上できるという優れた効果がある。
[Effects of the Invention] As is clear from the above, according to the present invention, in a center of gravity detection device that treats two-dimensional image data as binarized data and detects its center of gravity, the image data is processed by a plurality of different thresholds. a first processing means that calculates the center of gravity of each image data based on the data binarized using the second processing means; and a two-dimensional image input from a plurality of center of gravity data of the image data obtained for each threshold value by this processing means. Since it adopts a configuration consisting of a second processing means for determining the center of gravity of the data,
In order to obtain multiple corrected centroids based on data obtained by binarizing image data using multiple different threshold values, errors caused by threshold settings are reduced, and detection accuracy is increased (
It has a great effect of improving.

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

第1図(a)は本発明を採用した重心検出装置の構成を
示したブロック図、第1図(b)は本発明を採用した重
心検出装置の画像データ走査方向を示した説明図、第2
図は第1図の装置の制御手順を示したフローチャート図
、第3図は本発明を採用した重心検出装置の重心検出処
理を示した説明図、第4図(a)〜(c)は従来技術の
問題点を示した説明図、第5図は第4図(a)における
画像濃度分布のグラフ図である6 1−・−CPU       2・−ROM3・・・セ
レクタ     4・・・セレクタ5−・・先頭アドレ
スラッチ/メモリ 6−・・終了アドレスラッチ/メモリ 7−・・2値化回路    8−画像メモリ9・・・ア
ドレス生成回路
FIG. 1(a) is a block diagram showing the configuration of a center of gravity detecting device adopting the present invention, FIG. 1(b) is an explanatory diagram showing the image data scanning direction of the center of gravity detecting device adopting the present invention, and FIG. 2
The figure is a flowchart showing the control procedure of the device in FIG. 1, FIG. 3 is an explanatory diagram showing the center of gravity detection process of the center of gravity detection device adopting the present invention, and FIGS. 4(a) to (c) are conventional An explanatory diagram showing the technical problems, FIG. 5 is a graph of the image density distribution in FIG. ...Start address latch/memory 6--End address latch/memory 7--Binarization circuit 8-Image memory 9--Address generation circuit

Claims (1)

【特許請求の範囲】 1)2次元画像データを2値化データとして扱い、その
重心を検出する重心検出装置において、前記画像データ
を異なる複数のしきい値を用いて2値化したデータに基
づき画像データの重心をそれぞれ求める第1の処理手段
と、 この処理手段によりしきい値ごとに求められた画像デー
タの複数の重心データから入力された2次元画像データ
の重心を求める第2の処理手段からなることを特徴とす
る重心検出装置。 2)前記第2の処理手段は、前記第1の処理手段により
しきい値ごとに求められた画像データの複数の重心デー
タの算術平均を入力された2次元画像データの重心とす
ることを特徴とする請求項第1項に記載の重心検出装置
。 3)画像データを所定の走査ラインを単位として入力し
、その走査ライン中の有効画像パターンに対応した有効
画像データの最初および最後の座標を抽出する抽出手段
と、 この抽出手段から走査ラインごとに得られる有効画像デ
ータの最初および最後の座標から所定形式のデータを求
め累積し、走査終了後この所定形式のデータの累積結果
に基づき走査ラインごとに得られる有効画像データの最
初および最後の座標全体が対応する有効画像パターンの
輪郭線パターンの重心位置の座標を当該画像パターンの
重心位置の座標に相当するとして検出する手段を設けた
ことを特徴とする請求項第1項または第2項に記載の重
心検出装置。
[Claims] 1) A center of gravity detection device that treats two-dimensional image data as binarized data and detects its center of gravity based on data obtained by binarizing the image data using a plurality of different threshold values. A first processing means for determining the center of gravity of each image data; and a second processing means for determining the center of gravity of the input two-dimensional image data from a plurality of center of gravity data of the image data determined for each threshold value by this processing means. A center of gravity detection device comprising: 2) The second processing means sets the arithmetic mean of the plurality of centroid data of the image data obtained for each threshold value by the first processing means as the centroid of the input two-dimensional image data. The center of gravity detection device according to claim 1. 3) Extraction means for inputting image data in units of a predetermined scanning line and extracting the first and last coordinates of effective image data corresponding to the effective image pattern in the scanning line; Data in a predetermined format is obtained and accumulated from the first and last coordinates of the obtained valid image data, and after scanning is completed, the entire first and last coordinates of the valid image data obtained for each scanning line are calculated based on the cumulative result of the data in the predetermined format. Claim 1 or 2 further comprising means for detecting the coordinates of the center of gravity of the outline pattern of the corresponding effective image pattern as corresponding to the coordinates of the center of gravity of the image pattern. Center of gravity detection device.
JP2203957A 1990-08-02 1990-08-02 Centroid detector Pending JPH0490078A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2203957A JPH0490078A (en) 1990-08-02 1990-08-02 Centroid detector

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2203957A JPH0490078A (en) 1990-08-02 1990-08-02 Centroid detector

Publications (1)

Publication Number Publication Date
JPH0490078A true JPH0490078A (en) 1992-03-24

Family

ID=16482462

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2203957A Pending JPH0490078A (en) 1990-08-02 1990-08-02 Centroid detector

Country Status (1)

Country Link
JP (1) JPH0490078A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007286930A (en) * 2006-04-18 2007-11-01 Juki Corp Method for detecting gravity center of object
JP2008198111A (en) * 2007-02-15 2008-08-28 Namco Bandai Games Inc Instructed position calculation system, instruction object, and game system
JP2008198112A (en) * 2007-02-15 2008-08-28 Namco Bandai Games Inc Indication position operation system, indication body, and game system

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5719882A (en) * 1980-07-10 1982-02-02 Toshiba Corp Extracting method for center of gravity in binary coded two dimensional pattern
JPS58217084A (en) * 1982-06-11 1983-12-16 Fujitsu Ltd Visual device for robot
JPS5958587A (en) * 1982-09-29 1984-04-04 Fuji Electric Co Ltd Pattern processing device
JPS6073408A (en) * 1983-09-30 1985-04-25 Matsushita Electric Ind Co Ltd Pattern recognizing device
JPS61170875A (en) * 1985-01-25 1986-08-01 Matsushita Electric Works Ltd Picture processing method
JPS63147281A (en) * 1986-12-11 1988-06-20 Canon Inc Pattern detecting method
JPS63223882A (en) * 1987-03-11 1988-09-19 Brother Ind Ltd Image processing and inspecting device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5719882A (en) * 1980-07-10 1982-02-02 Toshiba Corp Extracting method for center of gravity in binary coded two dimensional pattern
JPS58217084A (en) * 1982-06-11 1983-12-16 Fujitsu Ltd Visual device for robot
JPS5958587A (en) * 1982-09-29 1984-04-04 Fuji Electric Co Ltd Pattern processing device
JPS6073408A (en) * 1983-09-30 1985-04-25 Matsushita Electric Ind Co Ltd Pattern recognizing device
JPS61170875A (en) * 1985-01-25 1986-08-01 Matsushita Electric Works Ltd Picture processing method
JPS63147281A (en) * 1986-12-11 1988-06-20 Canon Inc Pattern detecting method
JPS63223882A (en) * 1987-03-11 1988-09-19 Brother Ind Ltd Image processing and inspecting device

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007286930A (en) * 2006-04-18 2007-11-01 Juki Corp Method for detecting gravity center of object
JP4707598B2 (en) * 2006-04-18 2011-06-22 Juki株式会社 Method for detecting the center of gravity of an object
JP2008198111A (en) * 2007-02-15 2008-08-28 Namco Bandai Games Inc Instructed position calculation system, instruction object, and game system
JP2008198112A (en) * 2007-02-15 2008-08-28 Namco Bandai Games Inc Indication position operation system, indication body, and game system
US8290214B2 (en) 2007-02-15 2012-10-16 Namco Bandai Games Inc. Indication position calculation system, indicator for indication position calculation system, game system, and indication position calculation method for user input in dynamic gaming systems

Similar Documents

Publication Publication Date Title
JPH1166325A (en) Method and device for determining boundary of object and recording medium recording boundary determination program for object
JP3266429B2 (en) Pattern detection method
JPH0490078A (en) Centroid detector
JPH0130180B2 (en)
CN109146916A (en) A kind of moving body track method and device
US5835629A (en) Code pattern-image processing apparatus
CN110264488B (en) Binary image edge extraction device
WO2024044913A1 (en) Method, apparatus, electronic device, storage medium and computer program product for detecting circuit board assembly defect
JPS60157681A (en) Detection system of ruggedness of picture graphic form
JPS62154076A (en) Picture processing method
JPH07113975B2 (en) Center of gravity detector
JPS5927374A (en) Boundary line tracking circuit
JP2841866B2 (en) Image processing apparatus and method and its application
JP3675366B2 (en) Image extraction processing device
CN118154570A (en) Silicon wafer fragment detection method and device based on sub-pixel outline
JP2838556B2 (en) Image processing device
CN112444208A (en) High-throughput shellfish external morphology automatic measurement method based on edge detection
JPH0351965A (en) Pattern matching processor
CN115761039A (en) SEM image contour drawing method, device and program product
JPH02227787A (en) Method and device for recognizing picture pattern
JPH04307680A (en) Image processor
JPH06323825A (en) Inspection equipment for printed mark
JPH07104137B2 (en) Method of detecting the rotation angle of the target pattern
JPS59108907A (en) Position detecting device for three dimensional body
JP2003331260A (en) Position detection device