JPH01245366A - Labeling processing system - Google Patents

Labeling processing system

Info

Publication number
JPH01245366A
JPH01245366A JP7382988A JP7382988A JPH01245366A JP H01245366 A JPH01245366 A JP H01245366A JP 7382988 A JP7382988 A JP 7382988A JP 7382988 A JP7382988 A JP 7382988A JP H01245366 A JPH01245366 A JP H01245366A
Authority
JP
Japan
Prior art keywords
label
image
labeling
processing
value
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
JP7382988A
Other languages
Japanese (ja)
Inventor
Tetsuo Hattori
服部 哲郎
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.)
Toshiba Engineering Corp
Original Assignee
Toshiba Engineering 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 Toshiba Engineering Corp filed Critical Toshiba Engineering Corp
Priority to JP7382988A priority Critical patent/JPH01245366A/en
Publication of JPH01245366A publication Critical patent/JPH01245366A/en
Pending legal-status Critical Current

Links

Landscapes

  • Image Analysis (AREA)

Abstract

PURPOSE:To prevent continued binary images from being separated to attain labeling by executing the integrating processing of inter-label connecting information stored in a table between lines of raster scanning. CONSTITUTION:An image labeled by primary labeling processing is stored in an image memory 21 and delayed for one image. After passing the final line of the image through a primary labeling part 10, the label integration of the line is executed and the integrated information is copied on a table LRAMB 22 by a copying circuit 23. At the time of executing the primary labeling processing of the succeeding input image, the image in the memory 21 is extruded like a pipeline. At that time, the value of the image already labeled by the primary labeling is used as an address to access the LRAMB 22 and data are outputted from the LRAMB 22. Thereby, labeling can be executed without generating the separation of the binary images.

Description

【発明の詳細な説明】 [発明の目的] (産業上の利用分野) 本発明は、ITVカメラ(工業用途テレビカメラ)等の
画像人力装置から得られる画面中に存在する任意形状の
複数又は単一のパターン(物体)の連結性、形状1面積
等を識別するために連結領域に対して番号(ラベル)を
付与するラベリング処理方式に関し、特に、ビデオレー
トで、しかも連続する2値画像に対して分離を生じない
ようにしてラベリングすることができるようにしたラベ
リング処理方式に関する。
Detailed Description of the Invention [Objective of the Invention] (Industrial Application Field) The present invention is directed to a plurality of arbitrary shaped Regarding a labeling processing method that assigns a number (label) to a connected region in order to identify the connectivity of a pattern (object), shape, area, etc., it is particularly applicable to continuous binary images at video rate. The present invention relates to a labeling processing method that allows labeling to be performed without causing separation.

(従来の技術) 従来のラベリング処理方式として、−秒間に30枚の画
像を収集するビデオレートで送られてくる連続画像をラ
スタ走査しながら連結パターンの認識を行うものがある
。この方式では、論理マスクとして連続する2行に亙る
例えば縦2×横3画素を原画像中からラスタ走査形に切
出して該切りだし画素に対するラベル値付与や連結性認
識等の処理を行う。すなわち、この切出された画素にあ
って注目画素と隣接(又は連結)し、且つ既にラベルが
付与されている画素のラベル値により画素のラベル値を
決定して付与する。この一連の手順を1次ラベリングと
言うことがある。
(Prior Art) As a conventional labeling processing method, there is one in which connected patterns are recognized while raster scanning continuous images sent at a video rate of 30 images per second. In this method, for example, two consecutive rows of 2 pixels by 3 pixels horizontally are cut out in raster scanning form from the original image as a logical mask, and processing such as labeling and connectivity recognition is performed on the cut pixels. That is, the label value of the pixel is determined and assigned based on the label value of the pixel that is adjacent to (or connected to) the pixel of interest among the extracted pixels and has already been assigned a label. This series of steps is sometimes called primary labeling.

更にこの場合、2つの異なるラベル値の付与されている
画素が連結しているとき(ラベルが合流しているとも言
う)、ラベル間連結情報テーブルにその情報を書込み、
1回目の画像、全体のラスタ走査が終了した後に、ラベ
ル間連結情報テーブルにおけるラベル間連結情報を統合
する。その後に、1次ラベリング処理によって付与され
た仮ラベル画像を再度ラスタ走査し、上記の統合処理さ
れたテーブルに基づき連結パターン上の画素が同一ラベ
ル値になるように処理し、最終ラベル画像を得る。この
手順を2次ラベリングと言うことがある。
Furthermore, in this case, when pixels with two different label values are connected (also called merging of labels), that information is written in the inter-label connection information table,
After the first raster scan of the entire image is completed, the inter-label connection information in the inter-label connection information table is integrated. After that, the temporary label image given by the primary labeling process is raster-scanned again, and the pixels on the connected pattern are processed to have the same label value based on the integrated table described above to obtain the final label image. . This procedure is sometimes called secondary labeling.

以上の1次ラベリング、2次ラベリングによる従来のラ
ベリング処理方式の具体例を、特開昭62−46381
号公報に示されている第8図を参照して説明する。すな
わち、第8図に示すように原画像に対しては、同一物体
でも初めは別々の物体として異なるラベル値を付ける。
A specific example of the conventional labeling processing method using the above primary labeling and secondary labeling is disclosed in Japanese Patent Application Laid-Open No. 62-46381.
This will be explained with reference to FIG. 8 shown in the publication. That is, as shown in FIG. 8, even if the object is the same, different label values are attached to the original image as separate objects.

これは、後に分離したラベル値が合流する点(ジヨイン
ト点)で同一物体とわかるため、この時点で分離ラベル
の関係をラベル関係テーブルLRTに記憶する。
This is because it is later determined that the objects are the same object at the point where the separated label values join (joint point), so the relationship between the separated labels is stored in the label relationship table LRT at this point.

このような仮のラベルを付けながらラベル関係テーブル
LRTを作成する処理を仮ラベリング(1次ラベリング
)と呼ぶ。この仮ラベリングに引続きラベル関係テーブ
ルLRTをソフトウェアで解析し、最終的なラベルを付
けるためのラベル変換テーブルLTTを作成する。これ
をテーブル変換と呼ぶ。次にこのラベル変換テーブルL
TTに基づき仮ラベルを最終ラベルに変換する。これを
リラベリング(2次ラベリング)と呼ぶ。ここで、最終
ラベル画像を得るためには仮ラベリング処理で得られた
仮のラベルを一旦画像メモリに記憶させて仮ラベル画像
を得、更に、この仮ラベル画像を用いてラベル変換テー
ブルLTTのテーブル参照により最終的なラベル画像を
得るようにしている。
The process of creating the label relationship table LRT while attaching such temporary labels is called temporary labeling (primary labeling). Following this temporary labeling, the label relationship table LRT is analyzed by software to create a label conversion table LTT for attaching the final label. This is called table conversion. Next, this label conversion table L
Convert the temporary label to a final label based on TT. This is called relabeling (secondary labeling). Here, in order to obtain the final label image, the temporary label obtained by the temporary labeling process is temporarily stored in the image memory to obtain the temporary label image, and then this temporary label image is used to create a table in the label conversion table LTT. The final label image is obtained by reference.

上述した従来の方式では、第8図に示すような比較的単
純なパターンであれば分離が生じることなく正確にパタ
ーンそれぞれにラベル値を付与することができるが、複
雑な連結パターンであると分離を生じることがある。以
下、分離が生じる例を第9図〜第13図を参照して説明
する。すなわち、第9図に示すように画像FM中に一つ
の連結パターンFATがあり、これを論理マスクMAに
よりラベリングする例を説明する。第10図は第9図の
拡大図であり、最終ラベル画像としては本来は第11図
に示す連結パターンFATのラベル値が例えば1で、周
囲のラベル値が例えば0のものになるべきものである。
In the conventional method described above, if the pattern is relatively simple as shown in Figure 8, it is possible to accurately assign a label value to each pattern without causing separation, but if it is a complex connected pattern, it is possible to give a label value to each pattern. may occur. Hereinafter, examples in which separation occurs will be described with reference to FIGS. 9 to 13. That is, as shown in FIG. 9, there is one connected pattern FAT in the image FM, and an example will be described in which this is labeled with the logical mask MA. FIG. 10 is an enlarged view of FIG. 9, and the final label image should originally have the label value of the connected pattern FAT shown in FIG. 11 as 1, for example, and the surrounding label values as 0. be.

ここで、便宜的に第0行〜第12行を定めた第12図に
示すように、第1行〜第12行までの連結パターンFA
Tの各領域画素に論理マスク領域での連結性の認識によ
りラベル値1〜8が付与され、このラベル関係は第13
図(a)に示すラベル関係テーブルLRTに書込まれ、
仮ラベルが出来上がる。そして、統合処理がなされるこ
とにより第13図(b)のラベル変換テーブルLTTが
出来上がる。このラベル変換テーブルLTTによる最終
ラベル画像は第14図のようになり、図示の如く本来は
連結してぃなけばならないのにラベル値1と3との分離
が生じることになる。
Here, as shown in FIG. 12, in which rows 0 to 12 are defined for convenience, the connection pattern FA from rows 1 to 12 is
Label values 1 to 8 are assigned to each area pixel of T by recognition of connectivity in the logical mask area, and this label relationship is the 13th
Written in the label relationship table LRT shown in Figure (a),
A temporary label will be created. Then, by performing the integration process, the label conversion table LTT shown in FIG. 13(b) is completed. The final label image based on this label conversion table LTT becomes as shown in FIG. 14, and as shown in the figure, label values 1 and 3 are separated even though they should originally be connected.

このような分離は、一つのラベル関係テーブル上で合流
ラベル対を認識しているためであるので、これを生じな
いようにする対策としては、仮ラベル処理後に作成され
るラベル関係テーブルを記憶するに加えて、合流ラベル
対(例えば2−1)の全てを画像メモリ上の位置(アド
レス)に対応して記憶しておくことにより実現できる。
This kind of separation is due to recognition of merged label pairs on one label relationship table, so as a measure to prevent this from occurring, it is necessary to memorize the label relationship table created after temporary label processing. In addition, this can be realized by storing all merged label pairs (for example, 2-1) corresponding to positions (addresses) on the image memory.

しかし乍、このような手法を取ると、結果的に2つのラ
ベル関係テーブルが存在することと同じになり、統合の
ための比較演算量が格段に増加しくラベル値の種類の数
の階乗分だけ比較演算を行う。)且つ処理が複雑になる
という問題点があり、実用的でなかった。
However, if such a method is adopted, the result is the same as the existence of two label relationship tables, and the amount of comparison calculations for integration increases significantly. only performs comparison operations. ) and the processing was complicated, making it impractical.

上述以外の手法としては、分離は一つのラベル関係テー
ブル上で合流ラベル対を認識しているために生じる結果
であることに着目し、ラベル関係を複数個のテーブルで
表すものがある。しかし乍この手法も上述と同じように
統合のための比較演算量が格段に増加し且つ処理が複雑
になるという問題点があり、実用的でなかった。
As a method other than the above, there is a method that focuses on the fact that separation is a result of recognizing confluent label pairs on a single label relationship table, and expresses label relationships using a plurality of tables. However, like the above-mentioned method, this method also had the problem of significantly increasing the amount of comparison calculations for integration and complicating the processing, and was not practical.

(発明が解決しようとする課題) 上述したように従来の技術においては、2つの手法共に
ラベル統合のための比較演算量が格段に増加し且つ処理
が複雑になることからその処理時間は多く要することに
なり、ビデオレートでしかも連続する2値画像に対して
ラベリングを行うことは容易でなかった。
(Problems to be Solved by the Invention) As mentioned above, in the conventional technology, the amount of comparison calculation for label integration increases significantly and the processing becomes complex, so that the processing time is required for both methods. Therefore, it is not easy to label continuous binary images at video rate.

そこで本発明の目的は、ビデオレートで、しかも連続す
る2値画像に対して分離を生じないようにしてラベリン
グすることができるようにしたラベリング処理方式を提
供することにある。
SUMMARY OF THE INVENTION An object of the present invention is to provide a labeling processing method that can label continuous binary images at a video rate without causing separation.

[発明の構成] (課題を解決するための手段) 本発明は上記課題を解決し且つ目的を達成するために次
のような手段を講じたことを特徴としている。すなわち
、本発明は、2値画像をラスタ走査することによって得
られる画素列に対し、連続する2行に亙る論理マスクに
よってその局所領域内の注目画素に対してラベルを付し
且つそのラベル値を、画像メモリに割当てし且つテーブ
ルに書込むと共に周囲画素との連結性を識別し該認識に
基づいて前記テーブルに書込まれたラベル値を更新する
ことを特徴とするものであり、この場合、ラスタ走査の
行間にて前記テーブルに保持されたラベルの連結量情報
を統合処理するようにしてもよい。
[Structure of the Invention] (Means for Solving the Problems) The present invention is characterized by taking the following measures in order to solve the above problems and achieve the objects. That is, in the present invention, for a pixel column obtained by raster scanning a binary image, a logical mask spanning two consecutive rows is used to label the pixel of interest in the local area, and to calculate the label value. , is characterized in that it allocates it to the image memory and writes it in a table, identifies the connectivity with surrounding pixels, and updates the label value written in the table based on the recognition, in this case, The link amount information of labels held in the table may be integrated and processed between rows of raster scanning.

(作用) このような構成によれば、論理マスクのラスタ走査によ
り注目画素毎にラベル付けに伴うラベル値の画像メモリ
への割当と、テーブルへの書込み及び連結性識別による
ラベル値の更新と各行後とのラベルの統合が一括して行
われるので、任意形状のパターンを有する2値画像に対
して分離を生じないようにしてラベリングすることがで
きるる。また、画像メモリへの割当処理、テーブルへの
書込み及び連結性識別によるラベル値の更新処理は、単
にデータ書込み処理及び判断処理を画素数だけ行うもの
であるので、従来のような比較演算と比べると単純であ
り且つ処理時間も要しない。
(Function) According to this configuration, the label value is assigned to the image memory by labeling each pixel of interest by raster scanning of the logical mask, and the label value is updated by writing to the table and connectivity identification, and each row Since the subsequent labels are integrated at once, it is possible to label a binary image having an arbitrary-shaped pattern without causing separation. In addition, the process of allocating to the image memory, writing to the table, and updating the label value by identifying connectivity is simply data write process and judgment process for the number of pixels, so it is difficult to compare it with conventional comparison operations. It is simple and requires no processing time.

従って、ラスタ走査の行間にて前記テーブルに保持され
たラベル値を前記画像メモリに割当て処理することによ
り、ビデオレートで、しかも連続する2値画像に対して
分離を生じないようにしてラベリングすることができる
ものである。
Therefore, by allocating and processing the label values held in the table in the image memory between the rows of raster scanning, it is possible to label consecutive binary images at the video rate without causing separation. It is something that can be done.

(実施例) 以下本発明にかかるラベリング処理方式の一実施例を図
面を参照して説明する。
(Example) An example of the labeling processing method according to the present invention will be described below with reference to the drawings.

第1図は本実施例方式を実行することができるプロセッ
サのハードウェア構成を示すブロック図、第2図は論理
マスクを示す図、第3図は本実施例におけるラベル付け
のアルゴリズムを示す図、第4図はラベル間連結情報統
合テーブル及びその統合アルゴリズムを示す図、第5図
〜第7図は連結パターンに対するラベリングの具体例を
示す図である。
FIG. 1 is a block diagram showing the hardware configuration of a processor that can execute the method of this embodiment, FIG. 2 is a diagram showing a logical mask, and FIG. 3 is a diagram showing a labeling algorithm in this embodiment. FIG. 4 is a diagram showing an inter-label connection information integration table and its integration algorithm, and FIGS. 5 to 7 are diagrams showing specific examples of labeling for connection patterns.

第1図に示すプロセッサにおいて、第2図に示す論理マ
スクMAにより画像メモリFM上をラスタ走査しながら
連結性判断と、ラベル付は操作を行う。実際には第1図
のプロセッサは、ビデオレートで送られてくる連続画像
に対するハードウェア上のバイブライン処理により、1
次ラベリング部10による1次ラベリング処理つまり2
値画像をラスタ走査することによりて得られる画素列に
′対し、連続する2行に亙る論理マスク(局所マスク)
MAによってその局所領域内の注目画素Pに対してラベ
ルを付し且つそのラベル値を、画像メモリ21に割当て
し且つテーブル13に書込むと共に周囲画素との連結性
を識別し該認識に基づいて前記テーブル13に書込まれ
たラベル値を更新する処理と、これに引続く2次ラベリ
ング部20による2次ラベリング処理つまりラスタ走査
のブランキング期間である行間にて前記テーブルLRA
M^13に保持されたラベル値間の連結情報の統合処理
との2段階で実行される。
In the processor shown in FIG. 1, connectivity determination and labeling operations are performed while raster scanning the image memory FM using the logical mask MA shown in FIG. In reality, the processor shown in Figure 1 uses hardware-based vibration line processing for continuous images sent at video rate.
Primary labeling process by the next labeling unit 10, that is, 2
A logical mask (local mask) covering two consecutive rows for the pixel column obtained by raster scanning the value image.
A label is attached to the pixel of interest P in the local area by MA, and the label value is assigned to the image memory 21 and written to the table 13, and the connectivity with surrounding pixels is identified and based on the recognition. The process of updating the label value written in the table 13, and the subsequent secondary labeling process by the secondary labeling unit 20, that is, the table LRA is updated between the lines during the blanking period of raster scanning.
This process is performed in two steps, including the process of integrating the link information between the label values held in M^13.

また、第2図の論理マスクMA中のx、y、z。Also, x, y, z in the logical mask MA in FIG.

Uはそれらが位装置する点(画素)でのラベル値を表す
変数とし、Pはその点の2値パターンの値(1又は0)
を表す変数とする。さらに、連結という用語は以下8連
接の意味で用いる。そして、第3図において、連接情報
を示すテーブルを1次元配列LRAM (・)で表す。
U is a variable representing the label value at the point (pixel) that they are located, and P is the value of the binary pattern at that point (1 or 0)
Let be a variable that represents Further, the term "concatenation" will be used hereinafter to mean 8-concatenation. In FIG. 3, a table indicating connection information is represented by a one-dimensional array LRAM (.).

そしてテーブルLRAMA13はRAM (ランダムア
クセスメモリ)等にて実現される。また、ラベル(数)
カウンタ値をLCとし、 V−wax  (X、U) 、Z’−LRAM (Z)
とし、記号“−”は変数への代入を表すものとする。
The table LRAMA13 is implemented using a RAM (random access memory) or the like. Also, label (number)
Let the counter value be LC, V-wax (X, U), Z'-LRAM (Z)
The symbol "-" represents assignment to a variable.

先ず、1次ラベリング部10ついて説明する。First, the primary labeling section 10 will be explained.

すなわち、この1次ラベリング部10における処理は8
通りに場合分けをして連結性判断とラベル付は操作を第
3図のアルゴリズムに従って行う。
That is, the processing in this primary labeling unit 10 is 8
Connectivity judgment and labeling are performed according to the algorithm shown in FIG. 3 by dividing the cases accordingly.

第3図のアルゴリズムは、(1)から(8)までの手順
により注目画素Pに対してその出現順にインクリメント
されるラベルカウンタ値LCを付し且つその連接情報と
してラベル値をテーブルLRAMA13に書込むように
なっている。この場合、注目画素Pとこれに隣接してい
る周囲画素とが連結性を有するものであると判断される
と、注目画素Pのラベル値をその連結している画素(既
にラベル値が付けられている。)のラベル値に設定すべ
く処理を行う。
The algorithm shown in FIG. 3 attaches a label counter value LC that is incremented in the order of appearance to the pixel of interest P according to steps (1) to (8), and writes the label value to the table LRAMA13 as its connection information. It looks like this. In this case, if it is determined that the pixel of interest P and surrounding pixels adjacent to it have connectivity, the label value of the pixel of interest P is transferred to the connected pixels (which have already been assigned label values). Processing is performed to set the label value of ).

以上のアルゴリズムは、−時保持レジスタ群11及びラ
インバッファ14を経て送られてくる画素X、Y、Z、
P、Uに対してラベル付は論理回路12で実行される。
The above algorithm uses pixels X, Y, Z,
Labeling of P and U is performed by the logic circuit 12.

また、各行の走査毎に連結情報テーブルLRAMA13
におけるラベル情報の統合が行われる。すなわち、この
ラベル統合処理のアルゴリズムは、ラベル統合回路15
により第4図(a)に示すテーブルLRAM^13に対
し第4図(b)のステップSt−ステップS4が実行さ
れることによりなされる。ここで、ラベル値の最大値を
Nとし、kをテーブルLRAMA13へのアドレス値と
している。このアルゴリズムにより行われる統合処理は
、作成されているテーブルL RA M A13のラベ
ル値をアドレスとし、該アドレスを1づつインクリメン
トしつつ順次該アドレスをラベル値として再代入するこ
とによりラベル統合が行われるようになる。
In addition, for each row scan, the link information table LRAMA13
Integration of label information is performed. That is, this label integration processing algorithm is based on the label integration circuit 15.
This is done by executing steps St to S4 in FIG. 4(b) on the table LRAM^13 shown in FIG. 4(a). Here, the maximum value of the label value is N, and k is the address value to the table LRAMA13. In the integration process performed by this algorithm, label integration is performed by using the label value of the created table L RAM A13 as an address, incrementing the address by 1, and sequentially resubstituting the address as the label value. It becomes like this.

次に2次ラベリング部20について説明する。Next, the secondary labeling section 20 will be explained.

すなわち、上述の1次ラベリング処理によってラベル付
けされた画像は画像メモリ21に蓄えられ、1画像分デ
イレイされる。画像の最終行が1次ラベリング部10を
通過した後、その行でのラベル統合が行われ、同時にそ
の統合情報はコピー回路23によりテーブルLRAMs
22にコピーされる。その後、次の入力画像が1次ラベ
リング処理されるとき、画像メモリ21内の画像はパイ
プライン的に押出される。このとき、1次ラベリングで
既にラベル付けされた画像の値をアドレスとしてテーブ
ルLRAMe22へアクセスし、そのデータを出力する
。すなわち、テーブルL RA M F122が一種の
濃度変換テーブルとなり、この変換により各連結成分は
それぞれ同一のラベル値となる。
That is, the images labeled by the above-described primary labeling process are stored in the image memory 21 and delayed by one image. After the last line of the image passes through the primary labeling unit 10, label integration is performed on that line, and at the same time, the integrated information is stored in the table LRAMs by the copy circuit 23.
Copied to 22. Thereafter, when the next input image is subjected to primary labeling processing, the image in the image memory 21 is pushed out in a pipeline manner. At this time, the table LRAMe22 is accessed using the value of the image already labeled in the primary labeling as an address, and the data is output. That is, the table LRAMF122 becomes a kind of density conversion table, and through this conversion, each connected component becomes the same label value.

以上の具体例は第5図〜第7図に示される。すなわち、
連結パターンFATは第5図から第6図へと行毎にラベ
ル付けがなされ、第12行において連結性判断により統
合処理が行われるので、第7図に示すように最終ラベル
画像が出力されることになる。
The above specific examples are shown in FIGS. 5 to 7. That is,
The connected pattern FAT is labeled line by line from Figure 5 to Figure 6, and in the 12th line, integration processing is performed by determining connectivity, so the final label image is output as shown in Figure 7. It turns out.

以上のように本実施例によれば、論理マスクMAのラス
タ走査により注目画素毎にラベル付けに伴うラベル値の
画像メモリ21への割当と、テーブルLRAMへの書込
み及び連結性識別によるラベル値の更新とが一括して行
われるので、従来のようにテーブルLRAMA13上で
連結性の讃別を行ってないことにより、2値画像に対し
て分離を生じないようにしてラベリングすることができ
る。また、画像メモリ21への割当処理、テーブルL 
RA MA 13への書込み及び連結性識別によるラベ
ル値の更新処理は、単にデータ書込み処理及び判断処理
を画素数だけ行うものであるので、従来のような比較演
算と比べると単純であり且つ処理時間も要しない。従っ
て、ビデオレートで、しかも連続する2値画像に対して
分離を生じないようにしてラベリングすることができる
ものである。
As described above, according to this embodiment, label values are assigned to the image memory 21 by labeling each pixel of interest by raster scanning of the logical mask MA, and label values are assigned to the image memory 21 by writing to the table LRAM and identifying connectivity. Since the updating is performed all at once, the connectivity is not classified on the table LRAMA13 as in the conventional method, so that it is possible to label the binary image without causing separation. In addition, allocation processing to the image memory 21, table L
Writing to RAM A 13 and updating label values by identifying connectivity is simply data writing and judgment processing for the number of pixels, so it is simpler and requires less processing time than conventional comparison operations. It is not necessary. Therefore, it is possible to label continuous binary images at the video rate without causing separation.

さらに、ラスタ走査の行間つまりブランキング期間を利
用してテーブルLRAMに保持されたラベル値間の連結
情報の統合処理することにより、−層の短時間処理を可
能にできる。
Furthermore, by using the row spacing of raster scanning, that is, the blanking period, to integrate the link information between label values held in the table LRAM, it is possible to process the - layer in a short time.

本発明は上記実施例に限定されるものではなく本発明の
要旨を逸脱しない範囲で種々変形して実施できるもので
ある。
The present invention is not limited to the above embodiments, but can be implemented with various modifications without departing from the gist of the present invention.

[発明の効果] 以上のように本発明によれば、1個のテーブルを用いて
ラベル値の割当、書込み及び連結性識別によるラベル値
の更新処理を行うようにしているので、ビデオレートで
、しかも連続する2値画像に対して分離を生じないよう
にしてラベリングすることができるようにしたラベリン
グ処理方式を提供できる。
[Effects of the Invention] As described above, according to the present invention, one table is used to perform label value assignment, writing, and label value update processing through connectivity identification, so that at a video rate, Furthermore, it is possible to provide a labeling processing method that can label continuous binary images without causing separation.

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

第1図は本発明にかかるラベリング処理方式の一実施例
を実行することができるプロセッサの71−ドウエア構
成を示すブロック図、第2図は論理マスクを示す図、第
3図は本実施例におけるラベル付けのアルゴリズムを示
す図、第4図はラベル間連結情報統合テーブル及びその
統合アルゴリズムを示す図、第5図〜第7図は連結パタ
ーンに対するラベリングの具体例を示す図、第8図は従
来骨 例を示す図、第9図〜第17図は従来の方式による問題
点を示す図である。 10・・・1次ラベリング部、11・・・レジスタ群、
12・・・ラベル付は論理回路、13・・・連結情報テ
ーブル(LRAMA ) 、14・・・ラインバッファ
、15・・・ラベル統合回路、20・・・2次ラベリン
グ部、21・・・画像メモリ、22・・・連結情報テー
ブル(LRAMB ) 、23・・・コピー回路。 出願人代理人  弁理士 鈴江武彦 第3図 第4図 第8図 MA 第9図 (a) 第13 (b) 図
FIG. 1 is a block diagram showing the 71-ware configuration of a processor that can execute an embodiment of the labeling processing method according to the present invention, FIG. 2 is a diagram showing a logical mask, and FIG. Figure 4 is a diagram showing the labeling algorithm, Figure 4 is a diagram showing the inter-label linkage information integration table and its integration algorithm, Figures 5 to 7 are diagrams showing specific examples of labeling for connection patterns, and Figure 8 is the conventional Figures 9 to 17 showing examples of bones are diagrams showing problems with the conventional method. 10... Primary labeling section, 11... Register group,
12... Labeled logic circuit, 13... Linked information table (LRAMA), 14... Line buffer, 15... Label integration circuit, 20... Secondary labeling unit, 21... Image Memory, 22... Linkage information table (LRAMB), 23... Copy circuit. Applicant's representative Patent attorney Takehiko Suzue Figure 3 Figure 4 Figure 8 MA Figure 9 (a) Figure 13 (b)

Claims (2)

【特許請求の範囲】[Claims] (1)2値画像をラスタ走査することによって得られる
画素列に対し、連続する2行に亙る論理マスクによって
その局所領域内の注目画素に対してラベルを付し且つそ
のラベル値を、画像メモリに割当てし且つテーブルに書
込むと共に周囲画素との連結性を識別し該認識に基づい
て前記テーブルに書込まれたラベル値を更新することを
特徴とするラベリング処理方式。
(1) For a pixel column obtained by raster scanning a binary image, a logical mask spanning two consecutive rows is used to label the pixel of interest in the local area, and the label value is stored in the image memory. A labeling processing method, characterized in that the label value written in the table is updated based on the recognition by identifying connectivity with surrounding pixels and writing in a table.
(2)ラスタ走査の行間にて前記テーブルに保持された
ラベル間連結情報の統合処理をすることを特徴とする請
求項1記載のラベリング処理方式。
(2) The labeling processing method according to claim 1, wherein the inter-label connection information held in the table is integrated between the rows of raster scanning.
JP7382988A 1988-03-28 1988-03-28 Labeling processing system Pending JPH01245366A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP7382988A JPH01245366A (en) 1988-03-28 1988-03-28 Labeling processing system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP7382988A JPH01245366A (en) 1988-03-28 1988-03-28 Labeling processing system

Publications (1)

Publication Number Publication Date
JPH01245366A true JPH01245366A (en) 1989-09-29

Family

ID=13529423

Family Applications (1)

Application Number Title Priority Date Filing Date
JP7382988A Pending JPH01245366A (en) 1988-03-28 1988-03-28 Labeling processing system

Country Status (1)

Country Link
JP (1) JPH01245366A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0830791A (en) * 1994-05-05 1996-02-02 Jenoptik Technol Gmbh Recognition method of image structure and circuit constitution used for said method
JP2011053965A (en) * 2009-09-02 2011-03-17 Micro Tekunika:Kk Labeling method, and system, apparatus and program for the method

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS629478A (en) * 1985-07-05 1987-01-17 Hitachi Ltd Labeling processor

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS629478A (en) * 1985-07-05 1987-01-17 Hitachi Ltd Labeling processor

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0830791A (en) * 1994-05-05 1996-02-02 Jenoptik Technol Gmbh Recognition method of image structure and circuit constitution used for said method
JP2011053965A (en) * 2009-09-02 2011-03-17 Micro Tekunika:Kk Labeling method, and system, apparatus and program for the method

Similar Documents

Publication Publication Date Title
JP3734549B2 (en) Divided area contour tracing device
US5222158A (en) Pattern recognition apparatus
US4718101A (en) Image processing segmentation apparatus
US4855933A (en) Line figure connecting apparatus
JPH01245366A (en) Labeling processing system
JPS63217479A (en) Analyzing device for particle image
JPS6353586B2 (en)
JP2993007B2 (en) Image area identification device
JPS61145689A (en) Area labeling circuit
WO1988008168A2 (en) Interconnect verification using serial neighborhood processors
JPH0433073A (en) Method and circuit for calculating end point of linked area
US20110032265A1 (en) Pipelined computing device for connecting contour elements from image data
JP2634905B2 (en) How to paint shapes
JPS63174187A (en) Picture processor
JPH0762795B2 (en) Image extractor
JP2716894B2 (en) Labeling circuit for image processing
JPH05143733A (en) Contour extracting device
JP2536183B2 (en) Image processing method and apparatus
JPH05233807A (en) Device and method for labelling processing
JPH03150675A (en) Labeling of connection zone and circumscribed rectangle calculation device
JP3108595B2 (en) Line labeling equipment
JP2513371B2 (en) Color image processing device
JPS63182788A (en) Method for generating contour line of picture processor
JPS6093572A (en) Graphic selective image processor
JPH03224071A (en) Line thinning system for binary image