JP2541006Y2 - Binary image expansion processing device - Google Patents

Binary image expansion processing device

Info

Publication number
JP2541006Y2
JP2541006Y2 JP2438391U JP2438391U JP2541006Y2 JP 2541006 Y2 JP2541006 Y2 JP 2541006Y2 JP 2438391 U JP2438391 U JP 2438391U JP 2438391 U JP2438391 U JP 2438391U JP 2541006 Y2 JP2541006 Y2 JP 2541006Y2
Authority
JP
Japan
Prior art keywords
image
expansion
expansion processing
processing
explanatory diagram
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 - Lifetime
Application number
JP2438391U
Other languages
Japanese (ja)
Other versions
JPH04111648U (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.)
Screen Holdings Co Ltd
Dainippon Screen Manufacturing Co Ltd
Original Assignee
Screen Holdings Co Ltd
Dainippon Screen Manufacturing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Screen Holdings Co Ltd, Dainippon Screen Manufacturing Co Ltd filed Critical Screen Holdings Co Ltd
Priority to JP2438391U priority Critical patent/JP2541006Y2/en
Publication of JPH04111648U publication Critical patent/JPH04111648U/en
Application granted granted Critical
Publication of JP2541006Y2 publication Critical patent/JP2541006Y2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Image Processing (AREA)
  • Editing Of Facsimile Originals (AREA)

Description

【考案の詳細な説明】[Detailed description of the invention]

【0001】[0001]

【産業上の利用分野】この考案は2値画像の膨張処理装
置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a binary image expansion processing apparatus.

【0002】[0002]

【従来の技術】例えば、プリント基板の外観検査におい
ては、スルーホールとパターンの位置ずれを知る必要が
ある。このため光学的にこれらの幾何学的形状を読みと
り画像処理を行っている。図6から図9はこの光学的な
読み取りを模式的に示したものである。
2. Description of the Related Art For example, in a visual inspection of a printed circuit board, it is necessary to know a positional shift between a through hole and a pattern. Therefore, these geometric shapes are optically read and image processing is performed. 6 to 9 schematically show the optical reading.

【0003】図6においてスルーホール3の縁を覆う銅
パターン2を有するプリント基板1をガラステーブル4
の上に載置する。光源5はガラステーブル4に対してプ
リント基板1の側に設けられ、入射光L1 をプリント基
板1に照射する。入射光L1はプリント基板1で反射さ
れ、反射光L3 はCCDカメラ等の受光装置7に捉えら
れる。
In FIG. 6, a printed circuit board 1 having a copper pattern 2 covering an edge of a through hole 3 is attached to a glass table 4.
Place on top of. Light source 5 is provided on the side of the printed circuit board 1 against the glass table 4 is irradiated with the incident light L 1 to the printed circuit board 1. The incident light L 1 is reflected by the printed circuit board 1, the reflected light L 3 is captured in the light receiving device 7 such as a CCD camera.

【0004】このようにして読みとられたプリント基板
の形状は,一般に2値画像へと変換され、その後の処理
がすすめられる。この2値画像の変換には通常2種の閾
値Th1,Th2(Th1>Th2)が適用される。
[0004] The shape of the printed circuit board thus read is generally converted into a binary image, and the subsequent processing is performed. Usually, two types of threshold values Th1 and Th2 (Th1> Th2) are applied to the conversion of the binary image.

【0005】図7は2値画像への変換の様子を示したも
のである。受光装置7の受けた反射光L3 の明るさのレ
ベルは、閾値Th1,Th2によって領域,,に
弁別され、領域即ち反射光L3 が明るい部分は銅パタ
ーン2であると、領域即ち暗い部分はスルーホール3
であると、また中間のレベルの領域は基板材であると
判断するのである。そして領域及びを検出した場合
には“1”を、領域を検出した場合には“0”を、そ
れぞれ値とする信号Sを生成する。
FIG. 7 shows a state of conversion into a binary image. Brightness levels of the received reflected light L 3 of the light receiving device 7 is discriminated in the region ,, the threshold Th1, Th2, regions or reflected light L 3 is bright portion when there copper pattern 2, regions or dark areas Is through hole 3
Then, the region at the intermediate level is determined to be the substrate material. Then, a signal S having a value of “1” when an area is detected and a value of “0” when an area is detected is generated.

【0006】図8は更にガラステーブル4に対してプリ
ント基板1の反対側に光源6を設け、入射光L2 を照射
した場合である。このとき受光装置7は入射光L1 の反
射光及び入射光L2 の透過光の合成光L4 を受ける。合
成光L4 はそのレベルによって図9に示すように閾値T
h1,Th2によって弁別され、最も明るい領域はス
ルーホール3であり、次ぎに明るい領域は銅パターン
であると、また領域は基板材であると判断される。こ
の場合には領域及びを検出した場合には、“1”
を、領域を検出した場合には“0”をそれぞれ値とす
る信号Sを生成する。
FIG. 8 shows a case in which a light source 6 is further provided on the glass table 4 on the side opposite to the printed circuit board 1 and irradiated with incident light L 2 . At this time the light-receiving apparatus 7 receives the combined light L 4 of the reflected light of the incident light L 1 and the incident light L 2 of the transmitted light. Threshold T as combined light L 4 are shown in FIG. 9 by the level
The brightest area is discriminated by h1 and Th2, and it is determined that the brightest area is the through hole 3, the next bright area is the copper pattern, and the area is the substrate material. In this case, when an area and a region are detected, “1” is set.
And a signal S having a value of “0” when an area is detected.

【0007】以上の様にして求められた銅パターン2及
びスルーホール3の2値画像の例を図10に示す。2a
は銅パターン2を、3aはスルーホール3をそれぞれ表
わす画像である。これらの画像2a,3aはその後の画
像処理に供される。例えばプリント基板のパターニング
の検査を行うときは、スルーホール3の画像3aを膨張
して銅パターン2の画像2aの穴を埋める。閾値が2種
あったので、画像2aと画像3aとの間に空隙が生じる
ためである。
FIG. 10 shows an example of a binary image of the copper pattern 2 and the through hole 3 obtained as described above. 2a
Is an image representing the copper pattern 2, and 3a is an image representing the through hole 3, respectively. These images 2a and 3a are subjected to subsequent image processing. For example, when inspecting the patterning of a printed circuit board, the image 3a of the through hole 3 is expanded to fill the hole of the image 2a of the copper pattern 2. This is because there are two types of thresholds, so that a gap is generated between the image 2a and the image 3a.

【0008】[0008]

【考案が解決しようとする課題】スルーホール3の画像
3aを膨張する際には4連結膨張処理、8連結膨張処理
による方法が良く用いられる。4連結膨張処理とは図1
1に示すように2次元的に展開された画素群PXにおい
て中央の着目画素C0 の値が“1”の場合、これと一辺
を接して隣接する画素C1 ,C2 ,C3 ,C4 の値をも
“1”とする方法である。換言すれば図12に示すよう
に、元来存在する画素C0 の上下左右に画素C1
2 ,C3 及びC4 を存在させる処理方法である。以下
では簡単のため、このような考え方で表現することにす
る。図中P4 は、4連結膨張処理を行うことを指す。
When the image 3a of the through hole 3 is expanded, a method using a 4-connection expansion process and an 8-connection expansion process is often used. Fig. 1
If the two-dimensionally expanded pixel group PX as shown in 1 value in the center of the target pixel C 0 is "1", the pixel C 1, C 2, C 3 adjacent in contact with this and one side, C In this method, the value of 4 is also set to “1”. In other words, as shown in FIG. 12, the pixel C 1 vertically and horizontally pixels C 0 originally present,
This is a processing method in which C 2 , C 3 and C 4 are present. In the following, for the sake of simplicity, such a concept will be used. Figure P 4 refers to performing four-connected expansion process.

【0009】同様の考え方により、8連結膨張処理P8
を行うことにより、図13に示すように元来存在する画
素と一辺又は一頂点で接する画素C1 ,C2 ,C3 ,C
4 ,C5 ,C6 ,C7 及びC8 を存在させることで画像
を膨張することができる。
[0009] Based on the same concept, the 8-connected expansion processing P 8
, The pixels C 1 , C 2 , C 3 , and C that are in contact with the originally existing pixels at one side or one vertex as shown in FIG.
4, C 5, C 6, the image can expand the by the presence of C 7 and C 8.

【0010】しかし4連結膨張処理P4 ,8連結膨張処
理P8 はアルゴリズムが容易であるが、膨張された画像
は元の画像に対して均等に膨張されたものではないとい
う問題点があった。
[0010] However, the 4-connected expansion processing P 4 and the 8-connection expansion processing P 8 have a problem that, although the algorithm is easy, the expanded image is not uniformly expanded with respect to the original image. .

【0011】図14,図15はそれぞれ4連結膨張処理
4 ,8連結膨張処理P8 を繰り返した場合に、1つの
画素がどのようにして膨張されて行くかを示したもので
ある。4連結膨張処理P4 ,8連結膨張処理P8 のいず
れによっても概ね正方形に膨張されてゆくことがわか
る。これは、膨張の方向が特定方向に偏っているためで
ある。8連結膨張処理P8 の場合には斜め方向の膨張も
行われるが、上下左右方向に対して2の平方根倍の膨張
となる。
FIGS. 14 and 15 show how one pixel is expanded when the 4-connection expansion processing P 4 and the 8-connection expansion processing P 8 are repeated, respectively. It can be seen that each of the four-connection expansion processing P 4 and the eight-connection expansion processing P 8 expands into a substantially square shape. This is because the direction of expansion is biased in a specific direction. In the case of 8-connected expansion process P 8 is also performed in the oblique direction expansion, but the square root of two times the expand against vertical and horizontal directions.

【0012】この様な膨張時の画像の歪みを防ぐため
に、ユークリッド距離を用いた膨張も用いられるが、4
連結膨張処理P4 、8連結膨張処理P8 に比較して処理
系が非常に複雑になるという欠点があった。
In order to prevent such image distortion during expansion, expansion using the Euclidean distance is also used.
There is a disadvantage that the processing system becomes very complicated as compared with the connection expansion processing P 4 and the 8-connection expansion processing P 8 .

【0013】この考案は上記問題点を解決するためにな
されたものであって、簡単に、歪みが少なく均等に膨張
された膨張画像を得ることができる画像膨張処理装置を
提供するものである。
The present invention has been made to solve the above problem, and an object of the present invention is to provide an image dilation processing apparatus capable of easily obtaining a dilated image that is uniformly expanded with little distortion.

【0014】[0014]

【課題を解決するための手段】この考案にかかる2値画
像の膨張処理装置は、4連結膨張処理装置による膨張処
理と8連結膨張処理装置による膨張処理とを交互に連続
して実行する。
SUMMARY OF THE INVENTION A dilation processing apparatus for a binary image according to the present invention executes dilation processing by a 4-connected dilation processing apparatus and dilation processing by an 8-connected dilation processing apparatus alternately and continuously.

【0015】[0015]

【作用】この考案においては、4連結膨張処理装置によ
る膨張処理と8連結膨張処理装置による膨張処理とが交
互に連続して行われるので、それぞれの膨張処理の欠点
を累積することなく相補的に画像を膨張する。
In the present invention, the expansion processing by the 4-connection expansion processing apparatus and the expansion processing by the 8-connection expansion processing apparatus are performed alternately and continuously, so that the disadvantages of the respective expansion processing are complemented without accumulating. Dilate the image.

【0016】[0016]

【実施例】まず、4連結膨張処理P4 と8連結膨張処理
8 とについてそれぞれ説明する。
[Example] First, each described 4 inflatable connecting process P 4 and 8 connecting dilation P 8.

【0017】図16にスルーホール3の画像3aの一例
を示す。円8aは画像3aの上下左右方向において内接
する円(以下「内接円」)である。従って画像3aを膨
張していった際に、その膨張された画像の内接円が、ほ
ぼその膨張された画像の輪郭となってゆくことが望まし
い。
FIG. 16 shows an example of an image 3 a of the through hole 3. The circle 8a is a circle inscribed in the vertical and horizontal directions of the image 3a (hereinafter, "inscribed circle"). Therefore, when the image 3a is expanded, it is desirable that the inscribed circle of the expanded image almost becomes the contour of the expanded image.

【0018】図17は4連結膨張処理P4 を1回施した
場合である。膨張された画像3bの内接円8bは、その
半径において円8aよりも画素の一辺分だけ長くなる。
なお、以下では処理前の画像を斜線にて示す。もしこの
まま4連結膨張処理P4 を繰り返してゆくと図18,図
19,図20の順に、膨張画像は3c,3d,3eと、
内接円は8c,8d,8eと膨張してゆく。そして4連
結膨張処理P4 のみを4回繰り返した図20において
は、膨張画像3eの輪郭と、内接円8eとは大きな差異
が生じている。
FIG. 17 shows a case where the four-link expansion processing P 4 is performed once. The inscribed circle 8b of the expanded image 3b is longer at its radius by one side of the pixel than the circle 8a.
In the following, the image before processing is indicated by oblique lines. If the 4-connected dilation process P 4 is repeated as it is, the dilated images are 3c, 3d, and 3e in the order of FIGS. 18, 19, and 20, and
The inscribed circle expands as 8c, 8d, 8e. Then 4 in the coupling expansion process P 4 only four repetitions Figure 20, the contour of the expansion image 3e, a large difference occurs in the inscribed circle 8e.

【0019】同様なことは8連結膨張処理P8 のみを繰
り返して行っても生じる。図21から図24は図16に
示した画像3aを順に8連結膨張処理P8 で膨張してい
った場合を示す。即ち膨張された画像は3f,3g,3
h,3iと、内接円は8f,8g,8h,8iと、それ
ぞれ順に膨張してゆくが、図24に示すように、8連結
膨張処理P8 のみを4回繰り返すと、膨張画像3iの輪
郭と内接円8iとでは大きな差異が生じる。
A similar situation occurs when only the 8-connected expansion processing P 8 is repeated. Figure 24 shows a case where began to expand at turn 8 inflatable connecting process P 8 images 3a shown in FIG. 16 from FIG. 21. That is, the expanded image is 3f, 3g, 3
h, and 3i, inscribed circle 8f, 8 g, 8h, and 8i, respectively but slide into inflated sequentially, as shown in FIG. 24, when repeated four times only 8 inflatable connecting process P 8, the dilated image 3i A great difference occurs between the contour and the inscribed circle 8i.

【0020】一方、後で詳述する本考案に係る膨張処理
装置を用いた場合には、まず8連結膨張処理装置によっ
て図16に示された画像3aに8連結膨張処理P8 を施
し、図25に示す膨張画像3jを得る。このとき、画像
3jの内接円は8jであり、これらはそれぞれ図21の
画像3f,内接円8fと一致する。
Meanwhile, in the case of using an expansion processing apparatus according to the present invention which will be described later, subjected to 8-connected expansion process P 8 on the image 3a shown in FIG. 16 by the first 8 inflatable connecting processor, FIG. An expanded image 3j shown in FIG. At this time, the inscribed circle of the image 3j is 8j, which respectively correspond to the image 3f and the inscribed circle 8f of FIG.

【0021】次に4連結膨張処理装置によって4連結膨
張処理P4 を施したのが図26に示す画像3kである。
2回連続して8連結膨張処理P8 を施した図22の画像
3gと比較すると、円8kは円8gと一致するが、より
膨張画像の輪郭に近いことがわかる。換言すれば、画像
3kは画像3gよりも均等に膨張されているということ
がいえる。
[0021] The next 4 inflatable connecting apparatus was subjected to 4 connecting expansion process P 4 by is the image 3k shown in FIG. 26.
Compared to image 3g of FIG. 22 which has been subjected to two 8-connected expansion process P 8 is continuously circle 8k is consistent with circles 8 g, it can be seen that the closer the contour of more dilated image. In other words, it can be said that the image 3k is more evenly expanded than the image 3g.

【0022】更に今度は8連結膨張処理P8 を施して図
27の膨張画像3lを得る。この内接円8lは画像3l
の輪郭とはややずれるが、3回連続して8連結膨張処理
8を施した図23の画像3hと比較するとそのずれは
小さく、更に4連結膨張処理P4 を施すことにより、図
28に示すように、内接円8mとほぼ同じ輪郭を有する
膨張画像3mを得ることができる。
Further, this time, an 8-connected dilation process P 8 is performed to obtain a dilated image 31 shown in FIG. This inscribed circle 8l is the image 3l
Although slightly deviated from the outline of FIG. 28, the deviation is small as compared with the image 3h of FIG. 23 in which the 8-connection expansion processing P 8 is performed three times in succession, and the 4-connection expansion processing P 4 is further performed. As shown, an expanded image 3m having substantially the same contour as the inscribed circle 8m can be obtained.

【0023】このように4連結膨張処理P4 と8連結膨
張処理P8 を交互に繰り返すことにより、相補的な方向
へと膨張処理がなされる。よって元の画像3aがほぼ円
形であった場合には、概ね正方形の膨張画像を得る4連
結膨張処理P4 若しくは8連結膨張処理P8 のみの繰り
返しによる膨張処理よりも円形に近づいてゆく。
As described above, by alternately repeating the 4-connection expansion processing P 4 and the 8-connection expansion processing P 8 , expansion processing is performed in a complementary direction. Thus if the original image 3a was almost circular, Yuku generally closer to a circle than repeated due to the expansion processing of only four inflatable connecting process P 4 or 8 linked expansion process P 8 to obtain an expansion square image.

【0024】交互にする処理は、4連結膨張処理P4
ら始めてもよい。図29は、図16の画像3aに4連結
膨張処理P4 を施したものであり、膨張画像3n,内接
円8nはそれぞれ図17の膨張画像3b,内接円8bと
一致する。これに更に8連結膨張処理P8 を施すと図3
0の膨張画像3p,内接円8pが得られ、画像3pの輪
郭と内接円8pとは概ね一致する。なお、4連結膨張処
理P4 と8連結膨張処理P8 とをそれぞれ1回ずつ行っ
た場合、その順序に拘らず得られる膨張画像は等しくな
る。斜線部を比較すればわかるように、図26の処理を
行う前の膨張画像3jと図30の処理を行う前の膨張画
像3nとは異なるが、膨張画像3pと膨張画像3kは一
致する。4連結膨張処理P4 と8連結膨張処理P8 が相
補的に画像を膨張するためである。
The alternate processing may be started from the 4-connected expansion processing P 4 . Figure 29 is one subjected to 4 connecting expansion process P 4 on the image 3a of FIG. 16, the expansion image 3n, inscribed circle 8n is dilated image 3b, respectively, in FIG 17, consistent with the inscribed circle 8b. When this is further subjected to an 8-connection expansion process P 8 , FIG.
Thus, a dilated image 3p of 0 and an inscribed circle 8p are obtained, and the outline of the image 3p and the inscribed circle 8p substantially coincide with each other. Incidentally, in the case of performing 4 inflatable connecting process P 4 and 8 connecting dilation process P 8 and the once each expansion image obtained regardless of the order is equal. As can be seen by comparing the shaded portions, the dilated image 3j before performing the processing in FIG. 26 is different from the dilated image 3n before performing the processing in FIG. 30, but the dilated image 3p and the dilated image 3k match. This is because the 4-connection expansion processing P 4 and the 8-connection expansion processing P 8 complementarily expand the image.

【0025】図31は膨張画像3pに4連結膨張処理P
4 を施した膨張画像3q及び内接円8qを示したもので
ある。内接円8qと膨張画像3qの輪郭とはややずれる
が、3回連続して4連結膨張処理P4 を施した図19の
画像3dと比較するとそのずれは小さく、更に8連結膨
張処理P8 を施すことにより内接円8rとその輪郭がほ
ぼ等しい膨張画像3rを得ることができる(図32)。
なお、前述のように、互いに等しい膨張画像3p,3k
に対して1回ずつ4連結膨張処理P4 、8連結膨張処理
8 を行ったので、膨張画像3r,内接円8rはそれぞ
れ図28の膨張画像3m,内接円8mと一致する。
FIG. 31 shows a 4-connected dilation process P for the dilated image 3p.
4 shows an expanded image 3q subjected to 4 and an inscribed circle 8q. It is slightly deviated from the inscribed circle 8q the contour of the expansion image 3q, 3 consecutive times 4 inflatable connecting process P 4 when compared with the image 3d of FIG. 19 which has been subjected to the shift is small, further 8 inflatable connecting process P 8 , An inflated image 3r whose contour is substantially equal to the inscribed circle 8r can be obtained (FIG. 32).
As described above, the same expanded images 3p and 3k
Since the four-connection expansion processing P 4 and the eight-connection expansion processing P 8 are performed once for each, the expanded image 3r and the inscribed circle 8r match the expanded image 3m and the inscribed circle 8m in FIG. 28, respectively.

【0026】上記に示したような処理を行って、均等な
膨張画像を得るための具体的装置の構成を説明する。図
3は本考案を適用するプリント基板検査装置10の全体
構成を示すブロック図である。ステージ20は図6に示
すガラステーブル4を備え、プリント基板1を載置し
て、ライン方向Xごとのイメージを読み取らせながら搬
送方向Yへと送る。このステージ20の移動はステージ
駆動系21によって駆動される。図6又は図8に示され
るような構成を有する読み取り装置22によって画素ご
とに読み取られたプリント基板1のイメージは、2値化
回路23によって2値化画像となり、図10に示すよう
な銅パターン2の画像2a及びスルーホール3の画像3
aを得る。これらは膨張処理回路24に送られ、スルー
ホール3の画像3aに対しては前述した膨張処理が行わ
れる。これを銅パターン2の画像2aと合成してデータ
Dを得た後、欠陥検出回路25へと送る。ここでは異常
なパターンがあれば欠陥としてその座標を記憶する。記
憶された座標は、MPU26によって読出され、CRT
27に欠陥座標が表示される。また、欠陥を示す座標は
欠陥確認装置28、欠陥品除去装置29及び欠陥位置マ
ーキング装置30等に送られる。
The structure of a specific apparatus for performing the processing described above to obtain a uniform dilated image will be described. FIG. 3 is a block diagram showing an overall configuration of a printed circuit board inspection apparatus 10 to which the present invention is applied. The stage 20 includes the glass table 4 shown in FIG. 6, and places the printed circuit board 1 thereon, and sends the image in the transport direction Y while reading an image for each line direction X. The movement of the stage 20 is driven by a stage drive system 21. The image of the printed circuit board 1 read for each pixel by the reading device 22 having a configuration as shown in FIG. 6 or FIG. 8 becomes a binarized image by the binarization circuit 23, and the copper pattern as shown in FIG. 2 of image 2 and image 3 of through hole 3
Obtain a. These are sent to the expansion processing circuit 24, and the above-described expansion processing is performed on the image 3a of the through hole 3. This is combined with the image 2a of the copper pattern 2 to obtain data D, and then sent to the defect detection circuit 25. Here, if there is an abnormal pattern, its coordinates are stored as a defect. The stored coordinates are read out by the MPU 26 and the CRT
The defect coordinates are displayed at 27. The coordinates indicating the defect are sent to the defect confirmation device 28, the defect removal device 29, the defect position marking device 30, and the like.

【0027】欠陥確認装置28は、例えばCRT27上
に検出された欠陥を拡大表示するための措置である。
The defect confirmation device 28 is a measure for enlarging and displaying a defect detected on the CRT 27, for example.

【0028】欠陥品除去装置29は、欠陥を有する被検
査物を検出した場合、不良品トレーなどに搬送する装置
である。
The defective product removing device 29 is a device for transporting a defective inspection object to a defective product tray or the like when it is detected.

【0029】また、欠陥位置マーキング装置30は、欠
陥部分に直接、または、その部分に該当するシート上の
点にマーキングを行うための装置である。これらの装置
は、必要に応じて取り付けられる。
The defect position marking device 30 is a device for marking a defect directly or on a point on a sheet corresponding to the defect. These devices are installed as needed.

【0030】図1は本考案の一実施例である膨張処理回
路24の内部構成の一例を示すブロック図であり、図2
5から図28で示した手順に対応するものである。スル
ーホール3の画像3aはシリアルに回路24へと移送さ
れ、ラインメモリ60、61にて2次元的に展開され、
8連結膨張ブロック40において8連結膨張処理P8
施されて膨張画像3jが生成される。
FIG. 1 is a block diagram showing an example of the internal configuration of the expansion processing circuit 24 according to an embodiment of the present invention.
5 to 5 correspond to the procedure shown in FIG. The image 3a of the through hole 3 is serially transferred to the circuit 24 and is developed two-dimensionally in the line memories 60 and 61.
Dilated image 3j is generated 8 inflatable connecting 8 inflatable connecting process P 8 in block 40 is subjected.

【0031】膨張画像3jは連続して次の4連結膨張処
理P4 を受けるために次段のラインメモリ60、61へ
送られるが、タイミング調整・セレクタブロック70へ
も送られ、8連結膨張処理P8 のみの膨張画像をも得る
ことができる。いずれの膨張段階の画像を出力するかは
セレクト信号SELによって制御される。以下の膨張画
像3k,3l,3mについても同様である。
The expansion image 3j but is continuously fed to the next stage of the line memory 60, 61 to receive the next four inflatable connecting process P 4, also sent to the timing adjustment selector block 70, 8 inflatable connecting process dilated image of only P 8 can also be obtained. Which expansion stage image is output is controlled by the select signal SEL. The same applies to the following dilated images 3k, 3l, 3m.

【0032】膨張画像3jは、8連結膨張処理P8 の場
合と同様にしてラインメモリ60により2次元的に展開
され、4連結膨張ブロック50によって膨張画像3kを
得る。以下同様にして膨張画像3i,3mを得る。
The expansion image 3j is developed by the line memory 60 as in the case of 8-connected expansion process P 8 two-dimensionally to obtain a dilated image 3k by 4 inflatable connecting block 50. Thereafter, dilated images 3i and 3m are obtained in the same manner.

【0033】タイミング調整・セレクタブロック70で
は膨張処理によるタイミングのずれを調整し、同様にタ
イミング調整された銅パターン2の画像2aと合成すべ
き膨張画像を選択する。いずれの画像を選択すればよい
かは画像2aの孔を埋めることができるかどうかによっ
て異なる。選択された膨張画像はORゲート71によっ
て画像2aとの合成データDを生成する。
The timing adjustment / selector block 70 adjusts the timing deviation due to the expansion processing, and selects an expanded image to be combined with the copper pattern 2 image 2a whose timing has been similarly adjusted. Which image should be selected depends on whether the hole in the image 2a can be filled. The selected dilated image generates combined data D with the image 2a by the OR gate 71.

【0034】また、図29から図32に示す処理、即ち
まず4連結膨張処理P4 を行ってから次ぎに連続して8
連結膨張処理P8 を行う場合には、図1における8連結
膨張ブロック40と4連結膨張ブロック50を入れ替え
れば良い(図2)。つまり、この考案ではいずれの処理
を先行して行うかを問わない。
Further, the process shown in FIG. 32 from FIG. 29, i.e., first 4 inflatable connecting process P 4 continuously to the next after performing 8
When performing the connection expansion processing P 8 , the 8-connection expansion block 40 and the 4-connection expansion block 50 in FIG. 1 may be replaced (FIG. 2). That is, in the present invention, it does not matter which process is performed first.

【0035】図4に8連結膨張ブロック40の内部構成
を示す。9個のDフリップフロップF1 〜F9 及びOR
ゲート41から成っており、3つの入力端I1 ,I2
3を備える。これらの入力端I1 ,I2 ,I3 から
は、それぞれこのブロック40における膨張処理前の画
素のデータ、この画素のデータをラインメモリ60によ
って1列遅らせた画素のデータ、更にラインメモリ61
によってもう1列遅らせた画素のデータが入力され、2
次元的に展開されている。またクロックCKは、Dフリ
ップフロップF1 〜F9 を同期して動作させている。
FIG. 4 shows the internal configuration of the 8-connection expansion block 40. 9 D flip-flops F 1 to F 9 and OR
The gate 41 comprises three input terminals I 1 , I 2 ,
Provided with the I 3. From these input terminals I 1 , I 2 , I 3 , the pixel data before the expansion processing in the block 40, the pixel data obtained by delaying the pixel data by one column by the line memory 60, and the line memory 61, respectively.
, The data of the pixel delayed by another column is input, and
Dimensionally expanded. The clock CK operates the D flip-flops F 1 to F 9 in synchronization.

【0036】今、入力端I1 からDフリップフリップF
1 に入力されたある画素のデータが“1”であったとす
ると、その他のDフリップフロップF2 〜F9 における
画素のデータが“0”であったか“1”であったかに拘
らず、ORゲート41は“1”を出力する。
Now, from the input terminal I 1 to the D flip flip F
When the data of a pixel that is input to one is assumed to be "1", regardless of the other D or data of a pixel in the flip-flop F 2 to F 9 is "0" which was either "1", OR gate 41 Outputs “1”.

【0037】次のクロックCKに同期して、上記ある画
素のデータ“1”はDフリップフロップF2 に移行す
る。このときもORゲート41の出力は“1”である。
同様に、上記ある画素のデータ“1”が順次にDフリッ
プフロップF3 〜F9 へ移行し、この期間内は、ORゲ
ート41の出力が“1”に保持される。
[0037] In synchronization with the next clock CK, the certain data of a pixel "1" is shifted to D flip-flop F 2. Also at this time, the output of the OR gate 41 is "1".
Similarly, the data “1” of a certain pixel sequentially shifts to the D flip-flops F 3 to F 9 , and during this period, the output of the OR gate 41 is held at “1”.

【0038】すなわち、この8連結膨張ブロック40
は、入力されたある画素のデータが“1”であれば、3
画素づつ3列の計9画素分のデータを“1”とし、結
局、図13に示すような膨張を行うことになる。
That is, the 8-connection expansion block 40
Is 3 if the input pixel data is "1".
The data for a total of nine pixels in three columns for each pixel is set to "1", and as a result, expansion as shown in FIG. 13 is performed.

【0039】4連結膨張ブロック50の内部構成も同様
であり、図5に示すように入力端I1 ,I2 ,I3 を備
え、DフリップフロップF10〜F16とORゲート51か
ら成っている。クロックCKはDフリップフロップF10
〜F16を同期して動作させる。但しDフリップフロップ
10及びF15はそれぞれ次段のF11及びF16の為の遅延
処理を行っている。
The internal configuration of the 4-connected expansion block 50 is the same, and has input terminals I 1 , I 2 , I 3 as shown in FIG. 5 and comprises D flip-flops F 10 to F 16 and an OR gate 51. I have. Clock CK is D flip-flop F 10
Synchronize to F 16 by operating. However D flip-flops F 10 and F 15 are respectively subjected to the delay processing for the next stage of the F 11 and F 16.

【0040】この膨張ブロック50の動作は上記膨張ブ
ロック40と同様であり、結果として図12に示す膨張
を行う。
The operation of the expansion block 50 is the same as that of the expansion block 40. As a result, the expansion shown in FIG. 12 is performed.

【0041】[0041]

【考案の効果】以上に説明したように、本考案によれば
2値画像の膨張処理装置において、4連結膨張処理装置
による膨張処理と8連結膨張処理装置による膨張処理と
を交互に連続して実行するので、複数回の膨張処理を順
次実行しても4連結膨張処理と8連結膨張処理のそれぞ
れの欠点を累積することがなく相補的に画像を膨張し、
簡単に、歪みが少なく均等に膨張された膨張画像を得る
ことができる。
As described above, according to the present invention, in the binary image expansion processing apparatus, the expansion processing by the 4-connection expansion processing apparatus and the expansion processing by the 8-connection expansion processing apparatus are alternately and continuously performed. Therefore, even if a plurality of dilation processes are sequentially performed, the image is complementarily dilated without accumulating the respective drawbacks of the 4-link dilation process and the 8-link dilation process,
It is possible to easily obtain an evenly expanded dilated image with little distortion.

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

【図1】本考案の第1の実施例である膨張処理回路24
の構成図である。
FIG. 1 is an expansion processing circuit according to a first embodiment of the present invention;
FIG.

【図2】本考案の第2の実施例である膨張処理回路24
の構成図である。
FIG. 2 shows an expansion processing circuit according to a second embodiment of the present invention;
FIG.

【図3】本考案の実施例を適用するプリント基板検査装
置10の全体構成図である。
FIG. 3 is an overall configuration diagram of a printed circuit board inspection apparatus 10 to which the embodiment of the present invention is applied.

【図4】8連結膨張ブロック40の構成図である。FIG. 4 is a configuration diagram of an 8-connection expansion block 40;

【図5】4連結膨張ブロック50の構成図である。5 is a configuration diagram of a four-connection expansion block 50. FIG.

【図6】従来の技術の説明図である。FIG. 6 is an explanatory diagram of a conventional technique.

【図7】従来の技術の説明図である。FIG. 7 is an explanatory diagram of a conventional technique.

【図8】従来の技術の説明図である。FIG. 8 is an explanatory diagram of a conventional technique.

【図9】従来の技術の説明図である。FIG. 9 is an explanatory diagram of a conventional technique.

【図10】従来の技術の説明図である。FIG. 10 is an explanatory diagram of a conventional technique.

【図11】4連結膨張処理P4 の説明図である。11 is an explanatory view of a four-connected expansion process P 4.

【図12】4連結膨張処理P4 の説明図である。12 is an explanatory view of a four-connected expansion process P 4.

【図13】8連結膨張処理P8 の説明図である。[13] 8 is an explanatory view of the connecting dilation P 8.

【図14】従来の技術の説明図である。FIG. 14 is an explanatory diagram of a conventional technique.

【図15】従来の技術の説明図である。FIG. 15 is an explanatory diagram of a conventional technique.

【図16】従来の技術の説明図である。FIG. 16 is an explanatory diagram of a conventional technique.

【図17】従来の技術の説明図である。FIG. 17 is an explanatory diagram of a conventional technique.

【図18】従来の技術の説明図である。FIG. 18 is an explanatory diagram of a conventional technique.

【図19】従来の技術の説明図である。FIG. 19 is an explanatory diagram of a conventional technique.

【図20】従来の技術の説明図である。FIG. 20 is an explanatory diagram of a conventional technique.

【図21】従来の技術の説明図である。FIG. 21 is an explanatory diagram of a conventional technique.

【図22】従来の技術の説明図である。FIG. 22 is an explanatory diagram of a conventional technique.

【図23】従来の技術の説明図である。FIG. 23 is an explanatory diagram of a conventional technique.

【図24】従来の技術の説明図である。FIG. 24 is an explanatory diagram of a conventional technique.

【図25】本考案の第1の実施例による画像膨張処理の
説明図である。
FIG. 25 is an explanatory diagram of the image expansion processing according to the first embodiment of the present invention;

【図26】本考案の第1の実施例による画像膨張処理の
説明図である。
FIG. 26 is an explanatory diagram of the image expansion processing according to the first embodiment of the present invention;

【図27】本考案の第1の実施例による画像膨張処理の
説明図である。
FIG. 27 is an explanatory diagram of the image expansion processing according to the first embodiment of the present invention;

【図28】本考案の第1の実施例による画像膨張処理の
説明図である。
FIG. 28 is an explanatory diagram of the image expansion processing according to the first embodiment of the present invention;

【図29】本考案の第2の実施例による画像膨張処理の
説明図である。
FIG. 29 is an explanatory diagram of the image expansion processing according to the second embodiment of the present invention;

【図30】本考案の第2の実施例による画像膨張処理の
説明図である。
FIG. 30 is an explanatory diagram of the image expansion processing according to the second embodiment of the present invention;

【図31】本考案の第2の実施例による画像膨張処理の
説明図である。
FIG. 31 is an explanatory diagram of the image expansion processing according to the second embodiment of the present invention;

【図32】本考案の第2の実施例による画像膨張処理の
説明図である。
FIG. 32 is an explanatory diagram of the image expansion processing according to the second embodiment of the present invention.

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

4 4連結膨張処理 P8 8連結膨張処理 3a スルーホール3の画像 3j〜3n,3p〜3r 膨張画像 40 8連結膨張ブロック 50 4連結膨張ブロックP 4 4 connecting dilation P 8 8 inflatable connecting process 3a through hole 3 of the image 3j~3n, 3p~3r dilated image 40 8 inflatable connecting block 50 4 inflatable connecting block

Claims (1)

(57)【実用新案登録請求の範囲】(57) [Scope of request for utility model registration] 【請求項1】 入力された2値画像に対して複数回の膨
張処理を順次に実行して前記2値画像の膨張を行う膨張
処理装置において、4連結膨張処理装置による膨張処理
と8連結膨張処理装置による膨張処理とを交互に連続し
て実行することを特徴とする2値画像の膨張処理装置。
1. An expansion processing apparatus for sequentially performing a plurality of expansion processings on an input binary image to expand the binary image, the expansion processing by a 4-connection expansion processing apparatus and the 8-connection expansion. An expansion processing apparatus for a binary image, wherein expansion processing by a processing apparatus is alternately and continuously performed.
JP2438391U 1991-03-18 1991-03-18 Binary image expansion processing device Expired - Lifetime JP2541006Y2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2438391U JP2541006Y2 (en) 1991-03-18 1991-03-18 Binary image expansion processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2438391U JP2541006Y2 (en) 1991-03-18 1991-03-18 Binary image expansion processing device

Publications (2)

Publication Number Publication Date
JPH04111648U JPH04111648U (en) 1992-09-29
JP2541006Y2 true JP2541006Y2 (en) 1997-07-09

Family

ID=31909359

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2438391U Expired - Lifetime JP2541006Y2 (en) 1991-03-18 1991-03-18 Binary image expansion processing device

Country Status (1)

Country Link
JP (1) JP2541006Y2 (en)

Also Published As

Publication number Publication date
JPH04111648U (en) 1992-09-29

Similar Documents

Publication Publication Date Title
JP4185789B2 (en) Pattern inspection method and apparatus
US5272763A (en) Apparatus for inspecting wiring pattern formed on a board
US5408538A (en) Method of and apparatus for inspecting the minimum annular width of a land on a printed circuit board
JP2541006Y2 (en) Binary image expansion processing device
JP2710527B2 (en) Inspection equipment for periodic patterns
JPH10135287A (en) Wafer inspecting equipment and inspecting method
JP3216439B2 (en) Internal inspection equipment for circular containers
JPS5924361B2 (en) 2D image comparison inspection device
JP2002303588A (en) Pattern defect inspection device
JP2502853B2 (en) Wiring pattern inspection device
JPH0723845B2 (en) Defect detection method
JP2003203218A (en) Visual inspection device and method
JP2524000B2 (en) Pattern inspection device
JP2745763B2 (en) Wiring pattern inspection equipment
JPH0979946A (en) Inspection device for display device
JPH09288037A (en) Inspection method for lcd panel
JP2676990B2 (en) Wiring pattern inspection equipment
JP2712803B2 (en) Wiring pattern inspection equipment
JP2005292048A (en) Visual inspection method and visual inspection device
JP2529505B2 (en) Wiring pattern inspection device
JP2819905B2 (en) Wiring pattern inspection equipment
JP3258794B2 (en) Convergence adjustment device
JPH1152904A (en) Testing method for lcd panel
JP2701872B2 (en) Surface inspection system
JP3278515B2 (en) Method and apparatus for detecting structural defects in an object