JPS6334A - High-speed labelling - Google Patents

High-speed labelling

Info

Publication number
JPS6334A
JPS6334A JP14028586A JP14028586A JPS6334A JP S6334 A JPS6334 A JP S6334A JP 14028586 A JP14028586 A JP 14028586A JP 14028586 A JP14028586 A JP 14028586A JP S6334 A JPS6334 A JP S6334A
Authority
JP
Japan
Prior art keywords
labeling
label
pixel
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
JP14028586A
Other languages
Japanese (ja)
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.)
Ikegami Tsushinki Co Ltd
Original Assignee
Ikegami Tsushinki 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 Ikegami Tsushinki Co Ltd filed Critical Ikegami Tsushinki Co Ltd
Priority to JP14028586A priority Critical patent/JPS6334A/en
Publication of JPS6334A publication Critical patent/JPS6334A/en
Pending legal-status Critical Current

Links

Landscapes

  • Labeling Devices (AREA)
  • Image Analysis (AREA)

Abstract

(57)【要約】本公報は電子出願前の出願データであるた
め要約のデータは記録されません。
(57) [Summary] This bulletin contains application data before electronic filing, so abstract data is not recorded.

Description

【発明の詳細な説明】 (産業上の利用分野〉 本発明は、2値画像処理におけるラベリング(連続した
境界線で囲まれた領域(以下「連結成分という。」)に
ラベルを付けること。)であって、殊に高速処理の可能
な手法に関するものである。
Detailed Description of the Invention (Industrial Field of Application) The present invention relates to labeling in binary image processing (labeling an area surrounded by continuous border lines (hereinafter referred to as "connected components")). In particular, it relates to a method capable of high-speed processing.

〈従来技術〉 最近における画像処理には、サンプリングされた細菌の
形状と数、空気中の塵の大きさと数等、写真又はテレビ
ジョンカメラ等によって撮像された画像から2値画面を
作成し、その画面に含まれる連結成分の属性を調べ、そ
れぞれの属性に該当するものの数を調べる分野がある。
<Prior art> Recent image processing involves creating a binary screen from an image taken with a photograph or television camera, etc. to determine the shape and number of sampled bacteria, the size and number of dust in the air, etc. There is a field in which the attributes of connected components included in a screen are examined, and the number of components corresponding to each attribute is determined.

このような場合、処理の都合上それぞれの連結成分の番
号又は記号を付すことが行われている。この番号又は記
号を付すことをラベリングと呼んでいる。
In such cases, numbers or symbols are assigned to each connected component for convenience of processing. Adding this number or symbol is called labeling.

ラベリングにも幾つかの手法が用いられているが、−般
的な手法について説明する。、2渣画面は連結成分のあ
る部分は1、背景:よ0のIllをとるが、この存在を
調べるには第5図へに示すよう;二画面を走査し、初め
に検出した画素について伝播処理を行って、Bのように
その連結成分lを確定する。
Although several techniques are used for labeling, a general technique will be explained. , in the two-residue screen, the part with the connected component takes Ill, and the background: 0. To check this existence, as shown in Figure 5; scan the two screens and propagate the first detected pixel. Processing is performed to determine the connected component l as shown in B.

ここに伝播処理とは、第5図に示す初めに1になった中
心画素r8 の8近傍(fo 〜fv )に対し同じく
lの値をとる画素に同じラベルを付け、次にこれら新し
くlのラベルを付けられた画素の8近傍にも同じラベル
を付けてゆき、この操作を繰返すことによって、あたか
も初めに1になった点から次々と1の値をとる画素が伝
播してゆくようになることをいう。連結成分1が確定す
ると、0図に示すように連結成分1を取去って連結成分
が初めに1になった点から走査を行ない、同様にして連
結成分2を確定し、以下同様にして次々と連結成分を確
定する。このような方法によれば、走 ・査と伝播処理
の回数は連結成分の数だけ必要になり、処理に長時間を
要することになる。更に、このような処理はコンピュー
タを使用し、ソフトウェアによって行っているが、処理
内容が曳雉でステップ数が多くなるので、これも処理時
間が長くなる原因となっている。
Here, the propagation process is to attach the same label to the 8 neighboring pixels (fo to fv) of the center pixel r8 that initially becomes 1 (fo to fv) as shown in FIG. By attaching the same label to the eight neighbors of the labeled pixel and repeating this operation, it becomes as if the pixels taking the value of 1 are propagated one after another from the point where it first became 1. Say something. When connected component 1 is determined, as shown in Figure 0, connected component 1 is removed and scanning is performed from the point where the connected component first became 1, connected component 2 is determined in the same way, and so on. and determine the connected components. According to such a method, the number of times of scanning and propagation processing is equal to the number of connected components, and the processing takes a long time. Further, although such processing is performed using a computer and software, the processing content is variable and the number of steps is large, which also causes a long processing time.

〈発明が解決しようとする問題点〉 以上述べたように、−般的なラベリングは連結成分の数
だけ走査を繰返す必要があり、且つソフトウェアによっ
て伝播処理を行っていたため処理に長時間を要し、リア
ルタイムで結果を出す必要のある用途等には時間がかか
り過ぎるという問題点があった。そこで本発明は、ラベ
リングの処理を高速化し、画像処理の時間を短縮するこ
とを目的とする。
<Problems to be solved by the invention> As mentioned above, general labeling requires repeated scanning for the number of connected components, and propagation processing is performed by software, which takes a long time. However, there is a problem in that it takes too much time for applications that require results to be produced in real time. Therefore, an object of the present invention is to speed up labeling processing and shorten image processing time.

く問題点を解決する手段及び作用〉 本発明においては、ラベリングを全て論理回路によって
行い高速化を図ると共に、走査を順方向と逆方向から行
い、少数の走査によってラベリングを完了するように構
成されている。第1回目の順方向走査によって、全画面
の連結成分がラベリングされる。しかし、この走査だけ
では、同一の連結成分であっても枝状に分かれている部
分は異なるラベリングがされているので、逆方向の走査
:こよって同一の連結成分内のラベリングを同一ラベリ
ングに置換える補正を行なう。逆方向の走査゛によって
も補正できないときは更に走査を行い、補正がなくなれ
ばラベリングは完了する。
Means and Effects for Solving the Problems In the present invention, all labeling is performed by logic circuits to increase speed, and scanning is performed in the forward and reverse directions so that labeling is completed with a small number of scans. ing. The first forward scan labels the connected components of the entire screen. However, with only this scanning, even if the same connected component is branched, the branched parts are labeled differently, so scanning in the opposite direction: Thus, the labeling within the same connected component is replaced with the same labeling. Perform the correction. If correction cannot be made by scanning in the reverse direction, further scanning is performed, and when the correction is no longer possible, labeling is completed.

ラベリング処理回路は、画1象メモリから8近傍又は4
近傍画素の監視のできるパイプラインレジスタにデータ
を読出し、これからラベリング演算回路によって所要の
ラベリングをするよう構成され、高速処理用プロセッサ
によ゛って制御される。
The labeling processing circuit uses 8 neighboring or 4
Data is read into a pipeline register that can monitor neighboring pixels, and a labeling calculation circuit performs necessary labeling on the data, which is controlled by a high-speed processing processor.

ここに、8近傍画素によって伝播処理を行ったとき、連
続性はよいが接触している連結成分は分離できず一体と
なった連結成分として認識される。
Here, when propagation processing is performed using eight neighboring pixels, connected components that have good continuity but are in contact cannot be separated and are recognized as an integrated connected component.

−方、4近傍によるときは、分離性がよくなる特徴があ
る。
- On the other hand, when using four neighbors, the separability is improved.

画像メモリには、2値化された原画と、ラベリングが完
了したか否かの表示と、ラベリングナンバーの3種のメ
モリが含まれる。パイプラインレジスタは、画面サイズ
M列・N行に対し、(M−3)画素の長さのもの3行分
を用意し、各行に対し3画素分のラッチを1妾続し、レ
ジスタとラッチの組を直列に接続することjこより、ラ
ッチ上;:中心画素に対する8近傍のデータを取出すこ
とができる。中心画素の値が0すなわち背景であったと
きは、処理を次の画素に移す。中心画素の値が1すなわ
ち画像情報があったときは伝播処理を行なう。伝播処理
は8近傍のラベルナンバーを調べ、中心のラベルナンバ
ーより小さなナンバーがあったときはその小さな番号に
置換える。ラベリングナンバーは、初め全画面に対し最
大(3桁なら999)にとっであるので、画像情報のあ
った画素は自動的に周囲の番号に置換えられる。中心画
素の値が1であって8近傍と番号と置換わらないときは
8近傍と番号が同一か、8近傍の画像が0すなわち背景
のときか、番号が付加されていない(999の状態)と
きである。8近傍と番号が同一のときは、すでにラベリ
ングが完了していることになる。8近傍と番号の比較を
行って置換されなく、かつ中心画素がラベル化されてい
ないときは(ラベル化されたか否かはラベル完フラグを
調べれば分る。)、新しいラベルナンバーを付ける。
The image memory includes three types of memories: a binarized original image, a display indicating whether labeling has been completed, and a labeling number. For the screen size M columns and N rows, three pipeline registers with a length of (M-3) pixels are prepared, one latch for three pixels is connected to each row, and the register and latch are connected. By connecting the pairs in series, it is possible to extract eight neighboring data for the central pixel on the latch. When the value of the center pixel is 0, that is, the background, processing is moved to the next pixel. When the value of the center pixel is 1, that is, there is image information, propagation processing is performed. The propagation process examines label numbers in the 8 neighborhood, and if there is a number smaller than the center label number, it is replaced with that smaller number. Since the labeling number is initially set to the maximum for the entire screen (999 if it is 3 digits), pixels with image information are automatically replaced with surrounding numbers. If the value of the center pixel is 1 and the number is not replaced with the number in the 8 neighborhood, either the number is the same as the 8 neighborhood, the image in the 8 neighborhood is 0, that is, the background, or no number is added (state of 999). It's time. If the number is the same as the 8 neighbors, it means that labeling has already been completed. 8 If the numbers are compared with the neighboring pixels and the pixel is not replaced and the center pixel is not labeled (it can be determined whether it has been labeled or not by checking the label complete flag), a new label number is assigned.

第1図;よ、ラベリングの過捏を示したものである。Figure 1: This shows the over-elaboration of labeling.

前に述べたように、枝状に分かれた部分は1本の走査線
上においては8近傍の範囲に入らないので、順方向走査
の(2)図では同一の連結成分において異なるラベリン
グがされるが、逆方向走査の(3)図では連結成分内に
おいて異なるラベルは若き番号に置換えられる。(4)
図において更に順方向の走査を行えば、伝播の終了すな
わち連結成分内においては同一のラベリングがされてい
ることが確認されるので、(5)図において欠番の補正
を行い、ラベリングは完了する。
As mentioned earlier, branch-like parts do not fall within the 8-neighborhood range on one scanning line, so in figure (2) of forward scanning, the same connected component is labeled differently. , In figure (3) of backward scanning, different labels within the connected components are replaced with lower numbers. (4)
If the figure is further scanned in the forward direction, it is confirmed that the propagation has ended, that is, that the same labeling is performed within the connected components, so (5) the missing numbers in the figure are corrected and the labeling is completed.

〈実施例〉 次に、第2図ラベリング回路のブロック図、第2図ラベ
リングの順序を示すフローチャートを用いて詳細に説明
する。括弧内の表示は、フローチャートの各ステップの
名称を示す。
<Example> Next, a detailed explanation will be given using the block diagram of the labeling circuit shown in FIG. 2 and the flowchart shown in FIG. 2 showing the order of labeling. The display in parentheses indicates the name of each step in the flowchart.

第2図において、lは画像メモリで、2値化された原画
像のデータD7を格納するメモリ、ラベリングが完了し
ているか否かを示すデータLF。
In FIG. 2, l denotes an image memory, which stores the binarized original image data D7, and data LF indicating whether labeling is completed or not.

を格納するメモリ、ラベリングナンバーを格納するメモ
リN。を含んでいる。画素数はM列・N行で、画像メモ
リ制御カウンタFCN、5によって書込み、読°出しの
アドレスを制御する。2は中心・画素及び8近傍の画素
のデータを取出すために、長さくM−3)画素のシフト
レジスタ6・7・8と1画素分のラッチ9〜17を図示
するようにパイプライン状に直列に接続したもので、各
ラッチには相隣る3X3行列(3列3行)のデータが格
納される。各画素のデータは簡単の為にf、 −f。
A memory that stores the labeling number, and a memory N that stores the labeling number. Contains. The number of pixels is M columns and N rows, and the writing and reading addresses are controlled by the image memory control counter FCN, 5. 2) In order to extract the data of the center pixel and 8 neighboring pixels, the length is M-3) Pixel shift registers 6, 7, 8 and latches 9 to 17 for one pixel are arranged in a pipeline shape as shown in the figure. They are connected in series, and each latch stores data in an adjacent 3×3 matrix (three columns and three rows). The data of each pixel is f, -f for simplicity.

と表示しであるが、各データとも上部に図示しであるよ
うに、2値化された原画像のデータD9、ラベリングが
完了しているか否かを示すデータLP 、、ラベリング
ナンバーN7 を含んでいる。D7及びLP、はそれぞ
れ22・23を経て高速プロセッサ4に入力され、N7
 は次段のラベリング演算回路3に人力される。第4図
に示すように、シフトレジスタ6から画像メモリのデー
タを画素番号の(00)から出力し、ラッチ17から元
のメモリに人力するようにすれば順走査となり、(IJ
N)から出力するようにすれば逆走査となる。
However, as shown at the top, each data includes the binarized original image data D9, the data LP indicating whether labeling has been completed, and the labeling number N7. There is. D7 and LP are input to the high-speed processor 4 via 22 and 23, respectively, and N7
is manually input to the labeling calculation circuit 3 at the next stage. As shown in FIG. 4, by outputting the image memory data from the shift register 6 starting from pixel number (00) and manually inputting it to the original memory from the latch 17, forward scanning is achieved, and (IJ
If the output is output from N), reverse scanning will be performed.

ラベリング処理前は、LF、は0、N、、:まラベリン
グによってとり得る最大のILI NnAx より1多
い数にしておく。ラベリングを行なうには、まずラベル
カウンタL8L−(:N、 41 へN cIIEsE
T、43を人力して初期化を行なう(ラベルカウンク初
期化)。
Before the labeling process, LF is set to 0, N, . To perform labeling, first enter label counter L8L-(:N, 41 to N cIIEsE
Initialize T and 43 manually (label count initialization).

次に、フリップフロップFF3 へFFR2を人力して
画面変化フラグ48をオフにし、画面メモリ制御カウン
タFCN、 5を初期化する(走査開始初期化)。次に
シフトレジスタ6ヘシフトクロツク5FtJl を加え
、画面メモリ1からのデータをシフトレジスタ6へ1画
素シフトさせる(1画素シフト)。次に画面メモリ制御
カウンタFCN、 5のカウントを1つアップする(画
像メモ1JRADR+1)。以後この操作を繰返し、3
行分のデータをレジスタに入力するまで続ける(FCN
 (2,2)。ここで画像メモ91への人力を有効にす
る(画像メモ1JWADR=0)。ここから画素対応の
処理が始まり、まずフリップフロップFF2.50へF
FRI、 53  を加えてリセットし、ラベリング処
理前51を初期化する(画像対応初期化)。
Next, the screen change flag 48 is turned off by manually inputting FFR2 to the flip-flop FF3, and the screen memory control counter FCN,5 is initialized (scanning start initialization). Next, a shift clock 5FtJl is applied to the shift register 6, and the data from the screen memory 1 is shifted by one pixel to the shift register 6 (one pixel shift). Next, the count of screen memory control counter FCN, 5 is incremented by one (image memo 1JRADR+1). After that, repeat this operation until 3
Continue until rows of data are input into the register (FCN
(2,2). Here, human power to the image memo 91 is enabled (image memo 1JWADR=0). From here, pixel-related processing begins, and first the flip-flop FF2.50 is
FRI, 53 is added and reset, and the pre-labeling processing 51 is initialized (image correspondence initialization).

次に、3X3行列の中心画素が画面の任意の位置:二あ
るときのラベリングは中心画素D8 が1であるか0で
あるかをコンピュータによって検出する(データ着)。
Next, when the center pixel of the 3×3 matrix is located at an arbitrary position on the screen, the computer detects whether the center pixel D8 is 1 or 0 for labeling (data arrival).

Oのときは背景であるからシフトクロック5FCK1.
20によって中心を次の画素に移動する(1画素シフト
 メモリ1νRITε)。1のときは情報があるので伝
播処理を行なう(伝播処理)。
When it is O, it is the background, so the shift clock 5FCK1.
20 moves the center to the next pixel (1 pixel shift memory 1νRITε). When it is 1, there is information, so propagation processing is performed (propagation processing).

伝播処理は次のようにして行なう。まずフリップフロッ
プFF1.36にN7 選択40の信号を入力し1、セ
レクタ33をN、、選択に切換え、ラベルナンバー選択
器25をカウンタCNイ、28によってN8 を選択す
るようにし、ラベルラッチ32にNL口^Di、38 
を加えて中心画素のラベルナンバーN、を入力する。次
1こ、カウンタ281こn=n+1.29 を加えるこ
とにより、N0〜N、が次々とコンパレータ31に加え
られ、ラベルラッチ32に格納されているN、と比較さ
れる。アンドゲート34には、カウンタ28と交互にN
LOAD2.37が加えられているので、番号0以外の
数字でN6 より小さなラベルナンバーがあれは導通し
、オアゲート35を介してラベルラッチ32のクロック
端子LPl  にNし口へ口2.37  が現れ、N、
  は上記の小さなラベルナンバー;二置換わろCラベ
ル更新)。ラベルナンバーは、最大のラベルナンバーN
、IAx+lにセットされているので、自動的に0以外
の周囲の番号に置換えられる。アンドゲート34の導通
により、伝播信号TPが発生ずるので、オアゲートを介
してフリップフロップFF2 がセットされ、ラベリン
グフラグ51がオンになる 。
The propagation process is performed as follows. First, the N7 selection 40 signal is input to the flip-flop FF1.36, the selector 33 is switched to N, and the label number selector 25 is set to select N8 by the counter CN28. NL mouth ^Di, 38
, and input the label number N of the center pixel. Next, by adding n=n+1.29 to the counter 281, N0 to N are successively added to the comparator 31 and compared with N stored in the label latch 32. The AND gate 34 has an N value alternately with the counter 28.
Since LOAD2.37 is added, any label number other than 0 and smaller than N6 becomes conductive, and a gate 2.37 appears at the clock terminal LPl of the label latch 32 via the OR gate 35. ,N,
is the small label number above; two-substituted Waro C label update). The label number is the maximum label number N
, IAx+l, so it is automatically replaced with a surrounding number other than 0. As the AND gate 34 becomes conductive, the propagation signal TP is generated, so the flip-flop FF2 is set via the OR gate, and the labeling flag 51 is turned on.

Ns が1であってN0〜N、の何れかの番号に置換わ
らないときは、Nsのラベルナンバーが8近傍のう・ベ
ルナンバーと同じか、8近傍の画素にはラベルナンバー
がないときである。このことは、LF8を調べlであれ
ばラベリングは完、0であればラベリングが行われてい
ないものとして新しいラベルナンバーをラベリングカウ
ンタ41から与える。この動作はフリップフロップFF
I、36  をN0選択39によってセットし、ラベリ
ングカウンタ41にNC=NC+1  人力42を加え
、ラベルラッチ32にNLOADI、 3g を加える
ことによって行なう。このと、き、New SET 5
2によってFF2.50  をセットし、ラベリングフ
ラグ51を1にする。
When Ns is 1 and is not replaced with any number from N0 to N, the label number of Ns is the same as the bell number in the 8 neighborhood, or the pixels in the 8 neighborhood have no label number. be. This means that when LF8 is checked, if it is 1, labeling is complete, and if it is 0, labeling has not been performed, and a new label number is given from the labeling counter 41. This operation is a flip-flop FF
This is done by setting I, 36 by N0 selection 39, applying NC=NC+1 manual force 42 to labeling counter 41, and adding NLOADI, 3g to label latch 32. Konoto, Ki, New SET 5
FF2.50 is set by 2, and the labeling flag 51 is set to 1.

FF3.47  ’=よ、順方向又は逆方向の操作によ
ってFF2.50  がセットされればFF3.47が
セットされ、画面変化フラグ48をオンにする。この画
面変化フラグ48は、伝播が行われ又は新しいラベルが
1画素でも付けられたことを示すもので、このフラグが
セットされている限りラベリングは終了していないので
、順方向走査と逆方向走査を交互にラベリングが終了す
るまで行なう。
FF3.47'=Y, if FF2.50 is set by forward or reverse operation, FF3.47 is set and the screen change flag 48 is turned on. This screen change flag 48 indicates that propagation has been performed or that a new label has been attached to even one pixel.As long as this flag is set, labeling has not finished, so forward scanning and backward scanning Repeat these steps alternately until labeling is completed.

FF2.50  は1画素ごとにラベル更新が合ったか
どうかを示すラベリングフラグ51として使用され、こ
れがオンになっていれば、中心画素のセレクタSL1.
18によりラベルラッチの出力を選択する側に切換わり
、シフトクロックSFCに2.21を人力することによ
り、f、にN8及びラベリング完フラグLF+=1がセ
ットされ、新しい番号となる。
FF2.50 is used as a labeling flag 51 that indicates whether the label has been updated for each pixel, and if this flag is on, the center pixel selector SL1.
18, the label latch output is selected, and by inputting 2.21 to the shift clock SFC, N8 and labeling complete flag LF+=1 are set to f, which becomes a new number.

このようにして新しい番号Nw とラベル完フラグLF
nはf8 にセットされた後、FF2.50  をFF
R1,53によってリセットすることにより、セレクタ
SLI、 18はfコ が選択されるので、シフトクロ
ック5FCK1.20を加えることにより、次の画素の
データが中心に移動し、f8 の情報は「4 に移る。
In this way, the new number Nw and the label complete flag LF
After n is set to f8, FF2.50 is set to FF
By resetting with R1,53, the selector SLI,18 selects fco, so by adding the shift clock 5FCK1.20, the data of the next pixel moves to the center, and the information of f8 is changed to "4". Move.

このシフト動作を繰返して行ない、ラベリングされた番
号はシフトレジスタ8・ラッチ15・16・17を経て
画像メモリに戻る(1画面シフト・メモリ■R1丁ε)
This shift operation is repeated, and the labeled number returns to the image memory via shift register 8, latches 15, 16, and 17 (1 screen shift memory ■R1 block ε)
.

順方向又は逆方向走査の終了点は、画像メモリ制御カウ
ンタ5から出力される画面終了信号によって判定するこ
とができる(1画面終了)。
The end point of forward or reverse scanning can be determined by the screen end signal output from the image memory control counter 5 (end of one screen).

ラベルの設定があったかどうかは、走査の開始前にFF
R2,49によってFF3.47  をリセットしてお
けば、ラベルの伝播又は新しいラベルの登録が1画素で
も行われるとFF3.47  がセットされ画面変化フ
ラグがオンとなるので、走査終了後に画面変化フラグ4
8を調べれば分る( ラベル設定有)。ラベルの設定が
無ければラベリングが終了したので、欠番ラベルの修正
を行ない(欠番ラベル連番修正)ラベリングは終了する
。ラベルの設定のあったときは、更に前回の走査を繰返
し、画面変化フラグがオンしなくなるまで繰返す。
Whether a label has been set or not is determined by the FF before the start of scanning.
If FF3.47 is reset by R2, 49, when even one pixel of label propagation or new label registration is performed, FF3.47 will be set and the screen change flag will be turned on, so the screen change flag will be set after scanning is completed. 4
You can find out by looking up 8 (with label setting). If no label is set, labeling has ended, and the missing number labels are corrected (missing number label serial number correction), and the labeling ends. When a label is set, the previous scan is repeated until the screen change flag is no longer turned on.

このようにして第1回目の1岨方向の走査により、全画
面のラベリングがいかなる形状の連結成分Iてついても
行われ、第2回目の走査からはlj :′;る1云播処
理のみが行われる。この伝115処理は、[8のデータ
D、、=1に対し、「8近傍の画素N。−N71ごつい
てNLO八Dへとn=n+l をCN、、=7までカロ
えるだけで完了するので、処理時間は更に短くなる。
In this way, by the first scan in the 1-axis direction, labeling of the entire screen is performed for connected components I of any shape, and from the second scan, only the 1-line dissemination process is performed such that lj :'; It will be done. This process is completed by simply adding n=n+l to CN, , =7 for the data D, ,=1 of [8, pixel N.-N71 in the vicinity of 8, and moving to NLO8D. Therefore, the processing time becomes even shorter.

中心画素の近傍点は、以上述べた8近傍による実施例の
外4近傍であっても、ラベリング演算回路はそのまま使
用することができる。又、正六角形の範囲を設定する等
の変化も持たせることができる。又、パイプライン回路
も一部分変えても同様の機能を持たせることができる。
The labeling arithmetic circuit can be used as is even if the neighboring points of the center pixel are 4 neighboring points other than the 8 neighboring points described above in the embodiment. It is also possible to make changes such as setting a regular hexagonal range. Further, the same function can be provided even if the pipeline circuit is partially changed.

更に、ラベリング演算回路も上記の実施例に限定される
ものではない。又、上記の実施例においては、ラベリン
グ回路は全て論理回路で構成したが、−部をソフトウェ
アで構成してもよい。
Furthermore, the labeling calculation circuit is not limited to the above embodiment. Further, in the above embodiment, the labeling circuit is entirely composed of logic circuits, but the negative part may be composed of software.

く効果〉 以上説明したように、本発明によれば連結成分ごとに走
査と伝播処理を繰返えす必要がなく、数回の走査によっ
てラベリングを完了することができるので、所要時間を
著しく短縮でき、かつすべて論理回路によって構成した
ので、更に処理時間を短縮でき、その総合効果は誠に大
なるものがある。
Effects> As explained above, according to the present invention, there is no need to repeat scanning and propagation processing for each connected component, and labeling can be completed with several scans, so the required time can be significantly reduced. , and since they are all constructed from logic circuits, the processing time can be further shortened, and the overall effect is truly great.

その応用の範囲も広く、連結成分の大小、形状の如何を
問わずいかなる画像のラベリングにも適用することがで
きる。  ”
Its range of applications is wide, and it can be applied to labeling any image, regardless of the size or shape of connected components. ”

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

第1図は枝状の部分のある連結成分におけるラベリング
の過程を示す図面、第2図はラベリング回路のブロック
図、第3図はラベリングの過程を示すフローチャート、
第4図は順方向走査と逆方向走査の説明図、第5図は3
X3行列の説明図、第6図は従来技術の説明図である。 ■−画像メモリ、23X3行列、3 ラベリング演算回
路、4−高速処理用プロセッサ、5 画像メモリ制御カ
ウンタ、6・7・8 長さくM−1)のシフトレジスタ
、9〜17  ラッチ、18  選択SLI、22  
中心画素の有無り、23  ラベリング完LF、、、2
4  ラベリンダナンバーN、、、25  セレクタ、
28  カウンタ、31  コンパレークCpl 。 32  ラベルラッチ、33  セレクタ、34  ア
ントゲ−)、35−オアゲート、36  フリップ70
ツブFF1.41  ラベリングカウンタ、47  フ
リツプフロツプFF2.48  画面変化フラグ、50
  フリップフロツブFF3.51  ラベリングフラ
グ特許出願人  池上通信機株式会社 −へ 手続補正書(方式) 昭和61年 9 月 228 1、事件の表示 昭和61年 特許願第140285号 2発明の名称 高速ラベリング ふ補正をする者 事件との関係特許出願人 池上通信機株式会社 5、補正命令の日付 図面の浄占(内容に変更なし)
FIG. 1 is a drawing showing the labeling process in a connected component with a branch-like part, FIG. 2 is a block diagram of the labeling circuit, and FIG. 3 is a flowchart showing the labeling process.
Figure 4 is an explanatory diagram of forward scanning and reverse scanning, and Figure 5 is 3
An explanatory diagram of the X3 matrix, FIG. 6 is an explanatory diagram of the prior art. - Image memory, 23x3 matrix, 3 Labeling operation circuit, 4- Processor for high-speed processing, 5 Image memory control counter, 6.7.8 Shift register with length M-1), 9 to 17 Latch, 18 Selection SLI, 22
Presence or absence of center pixel, 23 Labeling complete LF, 2
4 Label Linda number N,,,25 Selector,
28 counter, 31 comparator Cpl. 32 label latch, 33 selector, 34 anime), 35 or gate, 36 flip 70
Tube FF1.41 Labeling counter, 47 Flip-flop FF2.48 Screen change flag, 50
Flip Flotub FF 3.51 Labeling Flag Patent Applicant Ikegami Tsushinki Co., Ltd. Procedural Amendment (Method) September 1985 228 1. Indication of the Case 1985 Patent Application No. 140285 2. Name of the Invention High Speed Labeling Flag Person making the amendment Related to the case Patent applicant Ikegami Tsushinki Co., Ltd. 5, interpretation of the drawing dated the amendment order (no change in content)

Claims (1)

【特許請求の範囲】 1、画像メモリと、該画像メモリから中心画素及びその
近傍の画素データを取出す手段と、前記取出したデータ
から各連結成分のラベリングナンバーを第1回の順方向
走査で算出する手段と、第2回目以降の逆方向走査又は
順方向走査により各連結成分内の異なったラベリングナ
ンバーを同一のラベリングナンバーに置換える手段と、
ラベリングが終了したか否かを検定する手段とを有する
高速ラベリング。 2、画像メモリに、2値化画像のデータ、各画像のラベ
リング完を示すデータ、各画素のラベリングナンバーを
示すデータを格納した特許請求範囲1の高速ラベリング
。 3、伝播処理の近傍点として、8近傍を用いた特許請求
範囲1ないし2の高速ラベリング。 4、伝播処理の近傍点として、4近傍を用いた特許請求
範囲1ないし2の高速ラベリング。
[Scope of Claims] 1. An image memory, means for extracting pixel data of a center pixel and its vicinity from the image memory, and calculating a labeling number of each connected component from the extracted data in a first forward scan. and means for replacing different labeling numbers in each connected component with the same labeling number by second and subsequent backward scans or forward scans;
and means for verifying whether labeling is completed. 2. High-speed labeling according to claim 1, wherein the image memory stores data of a binarized image, data indicating the completion of labeling of each image, and data indicating the labeling number of each pixel. 3. High-speed labeling according to claims 1 and 2 using 8 neighbors as neighboring points for propagation processing. 4. High-speed labeling according to claims 1 and 2 using four neighbors as neighboring points for propagation processing.
JP14028586A 1986-06-18 1986-06-18 High-speed labelling Pending JPS6334A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP14028586A JPS6334A (en) 1986-06-18 1986-06-18 High-speed labelling

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP14028586A JPS6334A (en) 1986-06-18 1986-06-18 High-speed labelling

Publications (1)

Publication Number Publication Date
JPS6334A true JPS6334A (en) 1988-01-05

Family

ID=15265225

Family Applications (1)

Application Number Title Priority Date Filing Date
JP14028586A Pending JPS6334A (en) 1986-06-18 1986-06-18 High-speed labelling

Country Status (1)

Country Link
JP (1) JPS6334A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005267362A (en) * 2004-03-19 2005-09-29 Ricoh Co Ltd Image processing method using simd processor and image processor

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS53118945A (en) * 1977-03-28 1978-10-17 Agency Of Ind Science & Technol Linked component pick up circuit
JPS5425634A (en) * 1977-07-29 1979-02-26 Fuji Electric Co Ltd Recognizing unit of a plurality of patterns
JPS57143686A (en) * 1981-03-02 1982-09-04 Fuji Electric Co Ltd Recognizing device for plural patterns
JPS59208667A (en) * 1983-05-13 1984-11-27 Matsushita Electric Ind Co Ltd Labelling device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS53118945A (en) * 1977-03-28 1978-10-17 Agency Of Ind Science & Technol Linked component pick up circuit
JPS5425634A (en) * 1977-07-29 1979-02-26 Fuji Electric Co Ltd Recognizing unit of a plurality of patterns
JPS57143686A (en) * 1981-03-02 1982-09-04 Fuji Electric Co Ltd Recognizing device for plural patterns
JPS59208667A (en) * 1983-05-13 1984-11-27 Matsushita Electric Ind Co Ltd Labelling device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005267362A (en) * 2004-03-19 2005-09-29 Ricoh Co Ltd Image processing method using simd processor and image processor
JP4482356B2 (en) * 2004-03-19 2010-06-16 株式会社リコー Image processing method and image processing apparatus using SIMD processor

Similar Documents

Publication Publication Date Title
US4953224A (en) Pattern defects detection method and apparatus
US3706071A (en) Binary image processor
JPS63223881A (en) Processor near high-speed series pixel
KR970007011B1 (en) Serial video processor and fault-tolerant serial video processor device
KR920003460B1 (en) Parallel pipeline image processor with 2x2 window architecture
JPS6334A (en) High-speed labelling
US4809343A (en) Maximum/minimum value conversion circuit for image processing
Ikenaga et al. CAM/sup 2: a highly-parallel two-dimensional cellular automaton architecture
JPS59208667A (en) Labelling device
JPH01302475A (en) Labeling system for image data
JP4661529B2 (en) Image processing device
CN115499603B (en) Reading circuit with image mirroring function and infrared thermal imager
JP2705052B2 (en) Pattern inspection equipment
JP2753349B2 (en) Arbitrary angle rotation image data input / output method, input / output circuit thereof, and electronic file device using the same
KR930010022B1 (en) All processing circuit for binary picture signal
JPH03100774A (en) Picture labeling circuit
JPS62168270A (en) Pattern changing device
JPS61878A (en) Label attaching circuit
JPH0211948B2 (en)
SU411476A1 (en)
JPS63244276A (en) Image segmenting method and labeling device
JPS6247784A (en) Image processor
JPH02126374A (en) Repeated type labeling system
JPH11296685A (en) Image processor
JPH04359386A (en) Image processor