Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JPH0656617B2 - Labeling method for labeling processor - Google Patents
[go: Go Back, main page]

JPH0656617B2 - Labeling method for labeling processor - Google Patents

Labeling method for labeling processor

Info

Publication number
JPH0656617B2
JPH0656617B2 JP18574085A JP18574085A JPH0656617B2 JP H0656617 B2 JPH0656617 B2 JP H0656617B2 JP 18574085 A JP18574085 A JP 18574085A JP 18574085 A JP18574085 A JP 18574085A JP H0656617 B2 JPH0656617 B2 JP H0656617B2
Authority
JP
Japan
Prior art keywords
label
labeling
temporary
image
processor
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 - Fee Related
Application number
JP18574085A
Other languages
Japanese (ja)
Other versions
JPS6246381A (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.)
Hitachi Ltd
Original Assignee
Hitachi Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP18574085A priority Critical patent/JPH0656617B2/en
Publication of JPS6246381A publication Critical patent/JPS6246381A/en
Publication of JPH0656617B2 publication Critical patent/JPH0656617B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Character Discrimination (AREA)
  • Image Analysis (AREA)
  • Medical Treatment And Welfare Office Work (AREA)
  • Investigating Or Analysing Biological Materials (AREA)
  • Character Input (AREA)

Description

【発明の詳細な説明】 〔発明の利用分野〕 本発明は、一画面に存在する複数個の物体を識別するた
めに番号(ラベル)付けするラベリングプロセツサに係
り、特に高速処理に好適なラベリングプロセツサに関す
る。
Description: BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a labeling processor for assigning numbers (labels) to identify a plurality of objects existing on one screen, and is particularly suitable for high-speed processing. Regarding processors.

〔発明の背景〕 ITVカメラ等の視覚センサを用いた画像処理装置にお
いて、一つの画面中の複数の物体を番号付けして区別す
るラベル付け処理が重要となる。
BACKGROUND OF THE INVENTION In an image processing device using a visual sensor such as an ITV camera, a labeling process for numbering and distinguishing a plurality of objects in one screen is important.

ラベル付け処理には幾つかの手法があるが、ITVカメ
ラのようにラスタスキヤン形に読出される画像のラベル
付けに適した手法に、特開昭57-67987号に示されるよう
な、画面中の局所領域(例えば縦2×横3画素)の画素
データをラスタスキヤン形に切出して処理する手法があ
る。
There are several methods for labeling, but a method suitable for labeling an image read out in a raster scan pattern like an ITV camera is disclosed in Japanese Patent Laid-Open No. 57-67987. There is a method of cutting out pixel data of a local region (for example, vertical 2 × horizontal 3 pixels) into a raster scan pattern and processing it.

この手法では、第2図で示すように、同一物体でも初め
は別々の物体として異なる番号を付ける場合がある。こ
れは、後に分離した番号が合流する点(JOINT点)で同
一物体とわかるため、この時点で分離ラベルの関係をラ
ベル関係テーブル(LRT)に記憶する。このような仮
のラベルを付けながらLRTを作成する処理を仮ラベリ
ングと呼ぶ。この仮ラベリングに引き続き、LRTをソ
フトウエアで解析し、最終的なラベルを付けるためのラ
ベル変換テーブル(LTT)を作成する。これをテーブ
ル変換と呼ぶ。次にこのLTTに基づき、仮ラベルを最
終ラベルに変換する。これをリラベリングと呼ぶ。
In this method, as shown in FIG. 2, the same object may be given different numbers at first as separate objects. This is because it is known that they are the same object at the point (JOINT point) where the separated numbers merge later, so the relationship of the separated labels is stored in the label relationship table (LRT) at this point. The process of creating an LRT while attaching such a temporary label is called temporary labeling. Subsequent to this temporary labeling, the LRT is analyzed by software, and a label conversion table (LTT) for final labeling is created. This is called table conversion. Next, based on this LTT, the temporary label is converted into the final label. This is called relabeling.

従来、ラベル画像を得るためには、仮ラベリングの処理
で得られた仮のラベルを一旦画像メモリに記憶させて仮
ラベル画像を得、更に、この仮ラベル画像を用いて、L
TTのテーブル参照により最終的なラベル画像を得てい
た。
Conventionally, in order to obtain a label image, a temporary label obtained by the process of temporary labeling is temporarily stored in an image memory to obtain a temporary label image, and then this temporary label image is used to obtain L
The final label image was obtained by referring to the TT table.

第3図(a)に、上記ラベリングの処理フエーズである仮
ラベリング、(b)にリラベリングのそれぞれのハードウ
エア構成を示す。
FIG. 3 (a) shows the respective hardware configurations of temporary labeling, which is the processing phase of the labeling, and FIG. 3 (b), the relabeling.

まず、仮ラベリングにおいて必要なハードウエア構成
は、原画像が格納されている2値画像メモリ4B、分離
ラベルの関係を記憶するためのテーブルLRT700を
含むラベリングプロセツサ3、及び、ラベリングプロセ
ツサ3から出力された仮ラベルを記憶する濃淡画像メモ
リ4G1である。
First, the hardware configuration required for the temporary labeling is from the binary image memory 4B in which the original image is stored, the labeling processor 3 including the table LRT700 for storing the relationship of the separated labels, and the labeling processor 3. It is a grayscale image memory 4G1 for storing the output temporary label.

そして、リラベリングでは、テーブル変換で作成された
LTT800をルツクアツプテーブル構成とするラベリ
ングプロセツサ3と、先の仮ラベル画像が格納されてい
る濃淡画像メモリ4G1が必須となる。
In the relabeling, the labeling processor 3 having the LTT 800 created by the table conversion as the lookup table configuration and the grayscale image memory 4G1 in which the temporary label image is stored are indispensable.

つまり、先に述べたラベリング手法においては、ラベリ
ングプロセツサ3の他に、ラベリングの中間結果となる
仮ラベル画像を記憶するための濃淡画像メモリ4G1が
必ず必要となり、このためにシステムの小型化、低価格
化の妨げになるという問題があつた。
That is, in the labeling method described above, in addition to the labeling processor 3, a grayscale image memory 4G1 for storing a temporary label image which is an intermediate result of the labeling is indispensable, which makes the system compact, There was a problem that it hindered price reduction.

濃淡画像メモリは、画像の大きさ、ラベル付けの最大個
数に依存するが、何れにしても大容量のメモリ(例え
ば、画像の大きさが縦512×横512画素、最大ラベ
ル付け個数が256個の場合、256Kバイトとなる)
が必要となるからである。
The grayscale image memory depends on the size of the image and the maximum number of labels, but in any case, a large-capacity memory (for example, the size of the image is 512 × 512 pixels in the maximum, the maximum number of labels is 256). In case of, it becomes 256K bytes)
Is necessary.

また、第2の問題としては、ラベリングプロセツサ3の
内部構造が仮ラベリングとリラベリングとで違いが生じ
ることである。
The second problem is that the internal structure of the labeling processor 3 is different between temporary labeling and relabeling.

仮ラベリングでのラベリングプロセツサ3は、第3図
(a)で示す様に、2値画像メモリ4Bを入力とし、濃淡
画像メモリ4G1に仮ラベルを出力する構成であり、リ
ラベリングでは、濃淡画像メモリ4G1を入力とするテ
ーブルルツクアツプ処理となる。
Figure 3 shows the labeling processor 3 for temporary labeling.
As shown in (a), the binary image memory 4B is input, and the temporary label is output to the grayscale image memory 4G1. In relabeling, the grayscale image memory 4G1 is input as a table-up backup process.

この様に、2つの処理フエーズでは、ラベリングプロセ
ツサ3の内部のデータパスが異なり、内部構成が複雑に
なるという問題も発生する。
As described above, in the two processing phases, the data path inside the labeling processor 3 is different, and the internal configuration becomes complicated.

〔発明の目的〕[Object of the Invention]

本発明の目的は、ラベリングの中間結果である仮ラベル
を記憶するための濃淡画像メモリを必要とせずラベリン
グを実現し、小型化、低価格化を可能としたラベリング
プロセッサのラベリング方法を提供することにある。
An object of the present invention is to provide a labeling method for a labeling processor that realizes labeling without requiring a grayscale image memory for storing a temporary label which is an intermediate result of labeling, and that enables downsizing and cost reduction. It is in.

〔発明の概要〕[Outline of Invention]

本発明は、仮ラベリングにおいては、従来必要となつた
仮ラベルは記憶せず、分離したラベルの関係だけをラベ
ル関係テーブルLRTに記憶し、テーブル変換において
は、LRT情報により最終ラベルに統合するラベル変換
テーブルLTTを作成し、リラベリング処理において
は、仮ラベリングと全く同じ構成で、仮ラベルを出力さ
せ、その出力に対して、LTTでテーブル変換を行い最
終的なラベルを得るようにしたものである。これによ
り、ラベリングの途中結果である仮ラベリング時の仮ラ
ベル記憶用濃淡画像メモリが不要となり、さらに、仮ラ
ベリングと全く同一の構成でリラベリングが実現できる
ために、ラベリングプロセツサの構成の簡単化、小型
化、低価格化が可能となる。
The present invention does not store a temporary label that has been conventionally required in temporary labeling, stores only the relation of separated labels in the label relation table LRT, and converts the label into a final label by LRT information in the table conversion. A conversion table LTT is created, and in the relabeling process, the temporary label is output with the same configuration as the temporary labeling, and the table conversion is performed by the LTT for the output to obtain the final label. is there. This eliminates the need for a grayscale image memory for temporary label storage during temporary labeling, which is an intermediate result of labeling, and enables relabeling with the exact same configuration as temporary labeling, thus simplifying the configuration of the labeling processor. , Downsizing and cost reduction are possible.

〔発明の実施例〕Example of Invention

以下、本発明の一実施例を説明する。 An embodiment of the present invention will be described below.

ラベリングプロセツサ10を含む画像処理装置のシステ
ム構成を第1図に示す。ITVカメラ6の映像はA/D
変換器5で1ビツトにデイジタル化(物体は“1”,背
景は“0”)され、2値画像データ8が出力される。2
値画像データ8は、2値画像メモリ4Bあるいはラベリ
ングプロセツサ10を含む画像プロセツサ3に入力され
る。画像プロセツサ3の処理結果である処理画像データ
99は、ヒストグラムプロセツサ15で累積処理等の演
算が行われる。
FIG. 1 shows a system configuration of an image processing apparatus including the labeling processor 10. Video of ITV camera 6 is A / D
The converter 5 digitizes it into one bit (the object is "1", the background is "0"), and the binary image data 8 is output. Two
The value image data 8 is input to the binary image memory 4B or the image processor 3 including the labeling processor 10. The processed image data 99 which is the processing result of the image processor 3 is subjected to calculation such as cumulative processing in the histogram processor 15.

なお、画像プロセツサ3の入力は、2値画像データ8あ
るいは、2値画像メモリ4Bの読出しデータであるメモ
リリードデータ7のどちらでも選択できる。
The input of the image processor 3 can be selected from either the binary image data 8 or the memory read data 7 which is the read data from the binary image memory 4B.

2値画像メモリ4B、画像プロセツサ3、ヒストグラム
プロセツサ15は、システムプロセツサ1により制御さ
れる。
The binary image memory 4B, the image processor 3, and the histogram processor 15 are controlled by the system processor 1.

ラベリングプロセツサ10の内部構成は、第4図に示す
ように、 (1)ITVカメラ6や2値画像メモリ4Bから、ラスタ
スキヤン方向に出力される2値画像データ8あるいは、
メモリリードデータ7を縦2画素、横3画素の局所領域
を切出す画像切出し部100 (2)画像切出し部100からの3×2画素の局所領域画
素データ20により、ラベル発生を制御する回路部20
0 (3)ラベル関係テーブルLRT700からの前ラスタラ
ベル70を入力とし、ラベル発生制御部200からの制
御信号30に基づき、 (i)注目画素のセグメントラベルSEG55 (ii)注目画素の3×2画素の既ラベルのうちの最大ラベ
ルMAXラベル60、最小ラベルMINラベル65 を出力するラベル発生部300 (4)SEG55を1ラスタ分遅延させるラベル・ライン
・バツフア500 (5)ラベル制御部200からの制御信号30に従い、ラ
ベル合流時(JOINT点)でのMAXラベル60をテーブ
ルアドレスとし、MINラベル65をテーブルデータと
して書込むラベル関係テーブルLRT700。従つて、
本テーブル700は、同一物体のラベル間の関係をMA
X・MIN型で記憶するものである。ラベル・ライン・
バツフア500の出力ラベル75は、LRT700を介
して、1ライン前の前ラスタのラベル70としてラベル
発生部300に与えられる。このMAX・MIN書込み
と、ラベルラインバツフア500の出力ラベル75の変
換はマルチプレクサ600を介して時分割処理される。
The internal structure of the labeling processor 10 is, as shown in FIG. 4, (1) binary image data 8 output in the raster scan direction from the ITV camera 6 or the binary image memory 4B, or
Image cutout unit 100 that cuts out the local area of the memory read data 7 of 2 pixels in the vertical direction and 3 pixels in the horizontal direction (2) A circuit unit that controls label generation by the local area pixel data 20 of 3 × 2 pixels from the image cutout unit 100 20
0 (3) The previous raster label 70 from the label relation table LRT 700 is input, and based on the control signal 30 from the label generation control unit 200, (i) the segment label SEG55 of the target pixel (ii) the 3 × 2 pixel of the target pixel Of the existing labels, the maximum label MAX label 60 and the minimum label MIN label 65 are output. Label generation unit 300 (4) Label line buffer 500 for delaying SEG55 by one raster (5) Control from label control unit 200 A label relation table LRT 700 in which the MAX label 60 at the time of label merging (JOINT point) is used as a table address and the MIN label 65 is written as table data according to the signal 30. Therefore,
This table 700 shows the relationship between the labels of the same object.
It is stored as an X-MIN type. Label line
The output label 75 of the buffer 500 is given to the label generating unit 300 as the label 70 of the previous raster one line before through the LRT 700. The MAX / MIN writing and the conversion of the output label 75 of the label line buffer 500 are time-divisionally processed via the multiplexer 600.

(6)LRT700からの前ラスタラベル70を変換する
ラベル変換テーブルLTT800。LTT800の出力
がラベリング・プロセツサ10の出力データとして出力
される。
(6) Label conversion table LTT800 for converting the previous raster label 70 from the LRT700. The output of the LTT 800 is output as the output data of the labeling processor 10.

(7)ラベル発生制御部200の指令信号30に従い、M
AX・MINラベル60,65を比較し、不一致時ラベ
ル分離発生及びそのラベルを記憶するラベル分離検出部
900 の7つの部分から構成され、システムプロセツサからシ
ステムバス2を介して制御される。
(7) In accordance with the command signal 30 of the label generation control unit 200, M
The AX / MIN labels 60 and 65 are compared with each other, and are composed of seven parts of a label separation detection unit 900 for storing the label separation occurrence and the label when they do not match, and are controlled by the system processor via the system bus 2.

本ラベルリング・プロセツサ10のラベル付け処理の方
法を下記に説明する。
A method of labeling the present labeling processor 10 will be described below.

〔1〕仮ラベリング (1)処理中のラスタにおいて連続する物体(この連続を
セグメントと呼ぶ)には同一セグメント番号SEGを割
り付ける。
[1] Temporary labeling (1) The same segment number SEG is assigned to consecutive objects (this continuity is called a segment) in the raster being processed.

(2)上記セグメントが、画面上位、即ち前ラスタの物体
と合流するとき(これをJOINT点と呼ぶ)、SEGとは
独立に、合流する2つのラベル最大値をMAXラベル、
最小値をMINラベルとして保持する。このとき、MA
X≠MINならば、ラベル関係テーブルLRTのMAX
アドレスにMIN値を書込む。
(2) When the above segment merges with the object on the upper screen of the screen, that is, the previous raster (this is called the JOINT point), the maximum two labels that merge are independent of SEG,
Keep the minimum value as the MIN label. At this time, MA
If X ≠ MIN, MAX of label relation table LRT
Write the MIN value to the address.

(3)従つて、セグメントの最初の点(これをSTART点と呼
ぶ)では、新しいラベル番号(これをNEW LABELと呼
ぶ)を割付け、MAX,MINもNLとする。なお、S
点で既にJOINTしている場合には、SEG,MAX,M
INに前ラスタの合流ラベルを割当てる。
(3) Therefore, at the first point of the segment (this is called the START point), a new label number (this is called NEW LABEL) is assigned and MAX and MIN are also set to NL. In addition, S
If you already JOINT at the point, SEG, MAX, M
The merge label of the previous raster is assigned to IN.

(4)セグメントの終了の点(これをEND点と呼ぶ)で
は、LRTのSEGアドレスにその時点でのMINラベ
ルを書込む。
(4) At the end point of the segment (this is called the END point), the MIN label at that time is written in the SEG address of the LRT.

(5)前ラスタのラベルは、SEGがLRTで最小のラベ
ルに変換される。従つて(2)のMAX,MIN書込み
は、最も最近に更新された最小ラベルどうしで比較され
るため、分離発生の確率が非常に小さくできる。
(5) The label of the previous raster is converted to the minimum label by SEG in LRT. Therefore, in the MAX and MIN writes of (2), since the smallest labels updated most recently are compared, the probability of occurrence of separation can be made very small.

〔2〕テーブル変換 これはシステムプロセツサ1でのソフトウエアで実行さ
れるもので、次の処理が行われる。
[2] Table conversion This is executed by software in the system processor 1, and the following processing is performed.

(1)LRTの情報を基に、仮ラベリング時の仮ラベルを
仮ラベル中の最小値のラベル(これをルートラベルと呼
ぶ)に変換するようにセツトする。
(1) Based on the information of the LRT, the temporary label at the time of temporary labeling is set so as to be converted into a label having the minimum value (this is called a root label) in the temporary label.

(2)LLTを、前記ルートラベルが連続した番号のラベ
ルに変換されるようにセットする。
(2) Set the LLT so that the root label is converted into a consecutive numbered label.

〔3〕リラベンリグ 仮ラベリング時と全く同一動作を行う。仮ラベリング時
との違いは、この時ラベリングプロセツサ10から出力
される出力データ9が最終のラベルとなつていることで
ある。第5図に、この原理を示す。尚、ラベリングプロ
セツサ中のLRT700、LTT800の中で○印を付
してたものがルートラベルを示す。
[3] Relaben rig Performs exactly the same operation as during temporary labeling. The difference from the temporary labeling is that the output data 9 output from the labeling processor 10 at this time is the final label. This principle is shown in FIG. In addition, in the LRT700 and LTT800 in the labeling processor, those marked with a circle show the route label.

ラベリングプロセツサ10には、図に示す様な2値画像
データ8、あるいはメモリリードデータ7が入力され
る。その時、〔2〕のテーブル変換によりLRT700
には、仮ラベルがルートラベルに変換されるようなデー
タが入つている。
Binary image data 8 or memory read data 7 as shown in the figure is input to the labeling processor 10. At that time, by the table conversion of [2], the LRT700
Contains data for converting the temporary label into a root label.

第5図の入力画像に含まれている物体A〜Dのうち、物
体Cには仮ラベルとしてラベル3,4,5が割当てられ
るが、そのうちの最小ラベル3がルートラベルとなり、
ラベル4,5はルートラベル3となるようにLRT70
0にセツトされる。同様に物体Dには、仮ラベル7がル
ートラベル6となるようにLRT700にセツトされ
る。物体A,B,Eの様に、単純形状のものには、仮ラ
ベリングにおいても、最終的なルートラベルが割付けら
れるために、LRT700のソフトフエアによるルート
ラベルの設定は行われない。
Of the objects A to D included in the input image of FIG. 5, the labels C 3, 4, and 5 are assigned to the object C as temporary labels, and the minimum label 3 among them is the root label,
LRT70 so that labels 4 and 5 are route labels 3.
Set to 0. Similarly, the object D is set in the LRT 700 so that the temporary label 7 becomes the root label 6. Since the final route label is assigned to simple shapes such as the objects A, B, and E even in the temporary labeling, the route label is not set by the software of the LRT 700.

また、LTT800には、〔2〕のテーブル変換により
ルートラベルを連続したラベルに変換するような値がセ
ツトされている。つまりLRT700から出力される前
ラスタラベル70は、必ず仮ラベルがルートラベルに変
換されるから、第5図の場合には、ルートラベル1,
2,3,6,8がLTT800に入力される。LTT8
00では、ルートラベル6を4に、また、ルートラベル
8を5に変換する様に、値がセツトされている。
Further, the LTT 800 is set with a value for converting the root label into a continuous label by the table conversion of [2]. That is, in the front raster label 70 output from the LRT 700, the temporary label is always converted into the root label. Therefore, in the case of FIG.
2, 3, 6, and 8 are input to the LTT 800. LTT8
At 00, the values are set so that the route label 6 is converted into 4 and the route label 8 is converted into 5.

以上のようなデータが設定されているLRT700、及
びLTT800を含むラベリングプロセツサ10では、
仮ラベリングと全く同じ動作が行われ、ラベル発生器3
00から出力された仮ラベルが、ラベルラインバツフア
500を介してLRT700に入力される。LRT70
0では、仮ラベルがルートラベルに変換されLTT80
0に入力される。そしてLTT800では、ルートラベ
ルが連続番号に変換され、最終のラベルとなり出力デー
タ9が出力される。その結果、第5図に示す様に、物体
A〜Dに対しては、それぞれラベル1〜5が割付けられ
る。このとき、JOINT点では、全ての仮ラベルはルート
ラベルに変換されているので等しくなる筈であるが、分
離(本来、同一の物体であるにもかかわらず別のラベル
となつてしまう)する可能性もわずかながら有る。従つ
て、JOINT点で、MAX≠MINならば分離検出部90
で分離検出フラグをセツトし、LRTのMAXアドレス
にMINを書込む。即ちLRTに分離ラベルが記憶され
ることになる。従つてリラベリング後このフラグをチエ
ツクし、再び〔2〕の処理を繰返すと必ず完全な分離の
ないラベル付けが行える。
In the labeling processor 10 including the LRT 700 and the LTT 800 in which the above data is set,
The same operation as the temporary labeling is performed, and the label generator 3
The temporary label output from 00 is input to the LRT 700 via the label line buffer 500. LRT70
At 0, the temporary label is converted to the root label and LTT80
Input to 0. Then, in the LTT 800, the root label is converted into a serial number and becomes the final label, and the output data 9 is output. As a result, as shown in FIG. 5, labels 1 to 5 are assigned to the objects A to D, respectively. At this time, at the JOINT point, all temporary labels should be equal because they have been converted to root labels, but they can be separated (because they are originally the same object, they become different labels). There is a slight sex. Therefore, if MAX ≠ MIN at the JOINT point, the separation detection unit 90
Then, the separation detection flag is set, and MIN is written in the MAX address of the LRT. That is, the separation label is stored in the LRT. Therefore, if this flag is checked after relabeling and the process of [2] is repeated again, labeling without complete separation can be always performed.

なお、第4図の構成では、分離フラグの検出は、セグメ
ント出現後の2回目以降のJOINT点でのみ行う。
In the configuration shown in FIG. 4, the separation flag is detected only at the JOINT points after the second appearance of the segment.

ラベル発生制御部200の制御を、4連結画像の場合に
ついて詳細を示す。4連結とは、注目画素に対しその
上,下,左,右の画素とでのみ物体の結合があるとみな
すものである。従つて前記説明から、ラベル発生制御部
200は3×2画素のパターンにより、第6図に示すよ
うに ・セグメントSEG発生 ・MAX,MINラベル発生 ・LRT登録(書込み) を制御すればよい。尚、第6図においてxはdon′tcar
e,○は“1”画素を示している。
The control of the label generation control unit 200 will be described in detail for the case of a 4-connected image. The 4-connection means that it is considered that the object is connected only to the pixel above, below, left, and right with respect to the pixel of interest. Therefore, from the above description, the label generation control unit 200 may control the segment SEG generation, the MAX and MIN label generation, and the LRT registration (writing) according to the pattern of 3 × 2 pixels, as shown in FIG. In FIG. 6, x is don't car.
e and ◯ indicate “1” pixels.

以上、本発明の実施例を述べたが、 (1)最終ラベルを連続した番号にする必要のない場合に
は、換言すると、ルートラベルへの変換のみでよい場合
にはLTTは不要である。
The embodiment of the present invention has been described above. (1) When the final label does not have to be a continuous number, in other words, when only the conversion to the root label is necessary, the LTT is unnecessary.

(2)本発明で述べたMAXとMINを置き換えても全く
正常なラベル付け動作が行えることは明らかであり、ラ
ベル値の大小以外の関数で扱うことも可能である。
(2) It is clear that even if MAX and MIN described in the present invention are replaced, a completely normal labeling operation can be performed, and it is possible to handle with a function other than the size of the label value.

(3)最終ラベルは、直接ヒストグラム処理を行い例え
ば、ラベル毎の面積、ラベル毎の重心等を抽出すること
により、画素対応のラベルを濃淡画像メモリに記憶する
必要がない。換言すれば本発明のラベリングプロセツサ
を含めたシステム構成の中に、ハード物量が大きい濃淡
画像メモリが全く不要となる。
(3) For the final label, it is not necessary to store the label corresponding to the pixel in the grayscale image memory by directly performing histogram processing and extracting the area for each label, the center of gravity for each label, and the like. In other words, in the system configuration including the labeling processor of the present invention, the grayscale image memory having a large amount of hardware is completely unnecessary.

以上のことが言える。The above can be said.

〔発明の効果〕〔The invention's effect〕

本発明によれば、ラベリングの中間結果である仮ラベル
を記憶する必要がないため、これに必要な濃淡画像メモ
リを削除することができ、小型、低価格なラベリングプ
ロセツサを実現できる。
According to the present invention, since it is not necessary to store a temporary label which is an intermediate result of labeling, it is possible to delete the grayscale image memory necessary for this, and it is possible to realize a small-sized and low-cost labeling processor.

また、仮ラベリング、リラベリングを全く同一構成のハ
ードウエアで実現できるために、構成が簡単なラベリン
グプロセツサを実現できる。
Further, since the temporary labeling and the relabeling can be realized by the hardware having the completely same structure, a labeling processor having a simple structure can be realized.

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

第1図は、本発明にかかる画像処理装置のシステム構成
図、第2図は一般的なラベル付け手順を示す図、第3図
は一般的なラベル付けのハードウエア構成を示す図、第
4図は第3図のラベリングプロセツサのブロツク構成
図、第5図は本発明のラベリングプロセツサの動作原理
を示す図、第6図は4連結画像のラベル発生制御部のパ
ターンを示す図である。 4B…2値画像メモリ、10…ラベリング・プロセツ
サ、100…画像切出し部、200…ラベル発生制御
部、300…ラベル発生部、ラベルラインバツフア50
0、700…ラベル関係テーブルLRT、800…ラベ
ル変換テーブルLTT、900…ラベル分離検出部。
FIG. 1 is a system configuration diagram of an image processing apparatus according to the present invention, FIG. 2 is a diagram showing a general labeling procedure, FIG. 3 is a diagram showing a general labeling hardware configuration, and FIG. FIG. 5 is a block diagram of the labeling processor of FIG. 3, FIG. 5 is a diagram showing the operation principle of the labeling processor of the present invention, and FIG. 6 is a diagram showing the pattern of the label generation control unit of the 4-connected image. . 4B ... Binary image memory, 10 ... Labeling processor, 100 ... Image cutout section, 200 ... Label generation control section, 300 ... Label generation section, Label line buffer 50
0, 700 ... Label relation table LRT, 800 ... Label conversion table LTT, 900 ... Label separation detection unit.

───────────────────────────────────────────────────── フロントページの続き (72)発明者 浅田 和佳 茨城県日立市大みか町5丁目2番1号 株 式会社日立製作所大みか工場内 (72)発明者 藤原 和紀 茨城県日立市大みか町5丁目2番1号 株 式会社日立製作所大みか工場内 (56)参考文献 特開 昭57−67987(JP,A) ─────────────────────────────────────────────────── ─── Continuation of the front page (72) Inventor Kazuka Asada 5-2-1 Omika-cho, Hitachi City, Ibaraki Prefecture Hitachi Ltd. Omika Plant, Ltd. (72) Inventor Kazuki Fujiwara 5-chome, Omika-cho, Hitachi City, Ibaraki Prefecture 2-1 Hitachi Ltd. Omika Factory, Hitachi Ltd. (56) Reference JP-A-57-67987 (JP, A)

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】ラベル付け対象画像中の物体とラベルとの
関係を記憶するラベル関係テーブルと、該ラベルを最終
ラベルに変換するラベル変換テーブルとを有し、前記ラ
ベル付け対象画像の2値化画像が記憶された画像メモリ
に対して2回の画像走査で最終ラベルを得るラベリング
・プロセッサのラベリング方法において、 前記画像メモリに対する第1回目の画像走査において、
取り込まれた2値化画像中の物体に対して仮ラベルを付
加し、物体とラベルの関係をラベル関係テーブルへ記憶
し、同一物体に付けられた仮ラベルが複数ある場合は、
仮ラベルのうち最小の値のラベルであるルートラベルを
当該同一物体のラベルとして記憶するように前記ラベル
関係テーブルをセットし、更に、該ルートラベルが連続
した番号を有するように前記ラベル変換テーブルをセッ
トし、 前記画像メモリに対する第2回目の画像走査において、
取り込まれた2値化画像中の物体に対して仮ラベルを付
加し、該仮ラベルが付加された物体に対して前記ラベル
関係テーブルに基づきルートラベルを付与し、更に、付
与されたルートラベルを前記ラベル変換テーブルに基づ
き変換したラベルを最終ラベルとして出力することを特
徴とするラベリング・プロセッサのラベリング方法。
1. A binarization of the labeling target image, comprising a label relation table for storing a relation between an object in the labeling target image and the label, and a label conversion table for converting the label into a final label. In a labeling method of a labeling processor for obtaining a final label in two image scans for an image memory in which an image is stored, in a first image scan for the image memory,
If a temporary label is added to an object in the captured binary image, the relationship between the object and the label is stored in the label relationship table, and if there are multiple temporary labels attached to the same object,
The label relation table is set so that the root label, which is the label having the smallest value among the temporary labels, is stored as the label of the same object, and further, the label conversion table is set so that the root label has a continuous number. Setting, in the second image scanning for the image memory,
A temporary label is added to the object in the captured binarized image, a route label is added to the object to which the temporary label is added based on the label relation table, and the added route label is added. A labeling method of a labeling processor, wherein a label converted based on the label conversion table is output as a final label.
JP18574085A 1985-08-26 1985-08-26 Labeling method for labeling processor Expired - Fee Related JPH0656617B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP18574085A JPH0656617B2 (en) 1985-08-26 1985-08-26 Labeling method for labeling processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP18574085A JPH0656617B2 (en) 1985-08-26 1985-08-26 Labeling method for labeling processor

Publications (2)

Publication Number Publication Date
JPS6246381A JPS6246381A (en) 1987-02-28
JPH0656617B2 true JPH0656617B2 (en) 1994-07-27

Family

ID=16176029

Family Applications (1)

Application Number Title Priority Date Filing Date
JP18574085A Expired - Fee Related JPH0656617B2 (en) 1985-08-26 1985-08-26 Labeling method for labeling processor

Country Status (1)

Country Link
JP (1) JPH0656617B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH03206574A (en) * 1990-01-09 1991-09-09 Fujitsu Ltd Raster scan type labeling processing system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5767987A (en) * 1980-10-15 1982-04-24 Tokyo Shibaura Electric Co Labeling treating system

Also Published As

Publication number Publication date
JPS6246381A (en) 1987-02-28

Similar Documents

Publication Publication Date Title
US4855933A (en) Line figure connecting apparatus
JPS63317886A (en) Information processing system and method
EP0492633B1 (en) Labelling circuit for image processing
JPH0656617B2 (en) Labeling method for labeling processor
JPH0624012B2 (en) Labeling processor
Hattori A high-speed pipeline processor for regional labelling based on a new algorithm
JP2716894B2 (en) Labeling circuit for image processing
JP3119011B2 (en) Image processing device
JP3108595B2 (en) Line labeling equipment
JP3395346B2 (en) Fillet coordinate generation method and device
JPH07182515A (en) Labeling circuit
JP2917367B2 (en) Character recognition device
JPS62182878A (en) labeling processor
JPH04184576A (en) Picture processor
JPS6410872B2 (en)
JPS61145689A (en) area labeling circuit
JPS63198171A (en) Picture processor
JPH0129643Y2 (en)
JPH0763469B2 (en) Ultrasonic diagnostic equipment
JPS62108381A (en) Density histogram detecting system
JPH0520792B2 (en)
JPH0644289B2 (en) Connected area labeling circuit
JPS62279480A (en) Fruit recognizing device
JPH01196678A (en) Closed area paint-out system
JPS6063677A (en) Storage system for image information

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees