JPS61221981A - Label attachment system for area - Google Patents

Label attachment system for area

Info

Publication number
JPS61221981A
JPS61221981A JP6212985A JP6212985A JPS61221981A JP S61221981 A JPS61221981 A JP S61221981A JP 6212985 A JP6212985 A JP 6212985A JP 6212985 A JP6212985 A JP 6212985A JP S61221981 A JPS61221981 A JP S61221981A
Authority
JP
Japan
Prior art keywords
label
temporary
labels
direct connection
connection
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.)
Granted
Application number
JP6212985A
Other languages
Japanese (ja)
Other versions
JPH0318229B2 (en
Inventor
Toshiyuki Goto
敏行 後藤
Takeshi Masui
桝井 猛
Shigeru Sasaki
繁 佐々木
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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP6212985A priority Critical patent/JPS61221981A/en
Publication of JPS61221981A publication Critical patent/JPS61221981A/en
Publication of JPH0318229B2 publication Critical patent/JPH0318229B2/ja
Granted legal-status Critical Current

Links

Landscapes

  • Image Analysis (AREA)

Abstract

PURPOSE:To perform the attachment of temporary labels at a high speed by detecting the connecting relation and replacing these labels for each connecting relation to add the same label. CONSTITUTION:A temporary label attachment part 1<1> detects the connecting relations of the temporary labels attached to each minor area. A label arrangement part 2' arranges the overlap areas of detected connecting relations and then unifies these overlap areas into a part to detect the arranged connecting relations. A direct label detecting part 3<1> produces directly a connection table from the arranged connecting relations. A label tracing part 4<1> searches directly the connection table and displays the connecting relations in a graph based on a certain temporary label. A label replacement part 5<1> replaces the labels with '1' and '2' for 1-2-3-5 and 4-6-7-8 respectively according to the label tracing result.

Description

【発明の詳細な説明】 〔概 要〕 本発明は領域のラベル付け方式に係り、直接接続してい
る暫定ラベルを検出iその追跡を行うことにより高速で
間接接続している暫定ラベルを検出するようにして、暫
定のラベルを更新し領域のラベル付け処理の高速化を図
ったものである。
[Detailed Description of the Invention] [Summary] The present invention relates to an area labeling method, which detects directly connected temporary labels and tracks them to detect indirectly connected temporary labels at high speed. In this way, the temporary label is updated to speed up the area labeling process.

〔産業上の利用分野〕[Industrial application field]

本発明は領域のラベル付け方式に関する。 The present invention relates to a region labeling scheme.

一般に、第7図(A)に示すように、■と■で表わされ
る2値画像において背景Hの部分が■で、領域11.[
2,13の部分は■で、それぞれ表現されている。
Generally, as shown in FIG. 7(A), in a binary image represented by ■ and ■, the background H portion is ■, and the area 11. [
Parts 2 and 13 are represented by ■, respectively.

しかし、単に領域部分が■で表わされるだけでは11と
■2とI3の区別がつかない。
However, if the area portion is simply represented by ■, it is not possible to distinguish between 11, ■2, and I3.

そこで、第7図(B)のように、同じ■で表現される3
つの領域に、1,2,3のようにラベルを付ければそれ
らの間に明確な区別ができる。
Therefore, as shown in Figure 7 (B), 3 is expressed by the same ■.
By labeling the two areas as 1, 2, 3, etc., you can clearly distinguish between them.

例えば、図示する領域がそれぞれ染色体であり、その面
積を求める場合、第7図(B)のように各染色体に1,
2,3のラベル付けを行って予め区別をしておいて構成
画素■のヒストグラムを算出すれば、それぞれの面積は
簡単に求まる。
For example, if each of the illustrated regions is a chromosome and its area is to be determined, each chromosome has one,
By labeling 2 and 3 to distinguish them in advance and calculating the histogram of the constituent pixels (2), the area of each can be easily determined.

本発明は、このように各領域が2値画像で表現される領
域のうちのどれかを明確に判明できるようにしたラベル
付け方式に関する。
The present invention relates to a labeling method that makes it possible to clearly identify which of the regions each region is represented by a binary image.

〔従来の技術及び発明が解決しよう、とする問題点〕[Problems that the conventional technology and invention are intended to solve]

従来のラベル付け方式は、小領域ごとに暫定ラベルを付
加した後それらの接続関係を検出し、小領域により形成
された連続領域に通し番号から成る暫定ラベルを変更付
加する方式であった。
The conventional labeling method is a method in which a temporary label is attached to each small area, the connection relationship between the small areas is detected, and a temporary label consisting of a serial number is changed and added to a continuous area formed by the small areas.

しかし、上記通し番号に変換するに際しては暫定ラベル
のクラスタリングを行うが、従来のクラスタリング方式
は多くの演算処理工程を必要とする。
However, when converting into the serial number, the temporary labels are clustered, but the conventional clustering method requires many calculation processing steps.

このため、従来のラベル付け方式は高速実行が困難であ
るという問題点があった。
For this reason, the conventional labeling method has a problem in that it is difficult to execute it at high speed.

c問題点を解決するための手段及び作用〕本発明は暫定
ラベルの接続関係が平面グラフを構成するという性質を
利用することにより上記問題点を解消し高速ラベル付け
を目的とするものであって、その手段は暫定ラベル取付
部とラベル整理部と直接接続ラベル検出部とラベル追跡
部とラベル更新部より成り、この手段によって暫定ラベ
ルのクラスタリング処理に要する演算量を削減すること
ができるので高速のラベル付け処理が可能となる。
c. Means and operation for solving the problems] The present invention aims to solve the above problems and achieve high-speed labeling by utilizing the property that the connection relationships of temporary labels constitute a planar graph. This means consists of a temporary label attaching section, a label sorting section, a directly connected label detecting section, a label tracking section, and a label updating section, and this means can reduce the amount of calculation required for clustering processing of temporary labels, resulting in high-speed processing. Labeling processing becomes possible.

〔実施例〕〔Example〕

以下、本発明を実施例により添付図面を参照して説明す
る。
Hereinafter, the present invention will be explained by way of examples with reference to the accompanying drawings.

更新部5 から構成されている。It is composed of an update section 5.

上記暫定ラベル取付部1”はウィンドにより2値画像を
走査することにより初期値を1とするラベルを暫定的に
取付ける装置である。
The temporary label attaching section 1'' is a device that temporarily attaches a label with an initial value of 1 by scanning a binary image using a window.

ラベル整理部2 は、上記暫定ラベルの接続関係のうち
で重複部分を整理する装置である。直接ラベル検出部3
 は、上述した整理された接続関係から各小領域が直接
に接続しているすべての小領域を検出し、後述する直接
接続テーブルを作成する装置である。
The label organizing unit 2 is a device that organizes overlapping parts among the connections of the temporary labels. Direct label detection section 3
is a device that detects all small areas to which each small area is directly connected from the above-mentioned organized connection relationships and creates a direct connection table, which will be described later.

また、ラベル追跡部4 は、上記直接接続テーブルの内
容に基いてラベルの追跡を行って、直接又は間接に接続
しているすべての暫定ラベルを検出する装置である。
The label tracking section 4 is a device that tracks labels based on the contents of the direct connection table and detects all temporary labels that are directly or indirectly connected.

更に、ラベル更新部5 は、上記ラベルの追跡結果に基
いて暫定ラベルを変更する装置である。
Furthermore, the label updating unit 5 is a device that changes the temporary label based on the label tracking results.

以下、上記構成を有する第1図の装置の動作を第2図乃
至第6図に基いて説明する。
Hereinafter, the operation of the apparatus shown in FIG. 1 having the above configuration will be explained based on FIGS. 2 to 6.

暫定ラベル取付部1 は、第2゛図に示すウィンドWに
よって画像Gをα方向に向かって走査し、jp!方向に
ラベル付けを行う。
The temporary label attaching unit 1 scans the image G in the α direction using the window W shown in FIG. Label directions.

第2図のウィンドWは、a、b、cで指称される3つの
窓を有し、その論理演算は、第1表に示すとおりである
The window W in FIG. 2 has three windows designated by a, b, and c, and the logical operations thereof are as shown in Table 1.

第1表において、「入力」の欄は窓a、b、cから入力
される信号を、「動作」の欄は窓Cによって領域の各部
即ち小領域に付される暫定ラベルを、それぞれ表わして
いる。
In Table 1, the ``Input'' column represents the signals input from windows a, b, and c, and the ``Operation'' column represents the provisional labels attached to each part of the area, that is, the small area, by window C. There is.

上記a、b、cの各入力のうち*は不定、NZは零以外
を、それぞれ示している。
Among the above inputs a, b, and c, * indicates an indefinite value, and NZ indicates a value other than zero.

暫定ラベル取付部1 は、上記第1表の論理演算により
小領域に暫定ラベルを付すが、a=*。
The temporary label attaching unit 1 attaches a temporary label to the small area using the logical operations shown in Table 1 above, where a=*.

b=*、c=0 (第3図(A)の左図)の場合は、C
=0(第3図(A)の右図)、即ちラベルは付されない
In the case of b = *, c = 0 (left diagram of Figure 3 (A)), C
=0 (right side of FIG. 3(A)), ie, no label is attached.

a=0.b=Ojc≠0の場合(第3図(B)の左側)
は、暫定的にc=L、即ち初期値L=1のラベルを取付
ける(第3図(B)の右側)。ここに初めてラベルが発
生する。
a=0. When b=Ojc≠0 (left side of Figure 3 (B))
temporarily attaches a label of c=L, that is, initial value L=1 (on the right side of FIG. 3(B)). This is where the label appears for the first time.

a−Q、b≠Q、c≠0の場合(第3図(C)の左側)
、C=a=O1即ち前回と同じラベルL=1を付ける(
第3図(C)の右側)。
In the case of a-Q, b≠Q, c≠0 (left side of Figure 3 (C))
, C=a=O1, that is, add the same label L=1 as last time (
(right side of Figure 3(C)).

これは、a≠O,b”’Q、c≠Oの場合も同様である
This also applies to the cases where a≠O, b'''Q, and c≠O.

次に、a、b、cがすべて零でなく、窓Wが完全に領域
Iに入った場合(第3図(D)の左側)、取付けられて
いる暫定ラベルLとL“をa、bによって比較し、c=
Min (a、 b )即ち小さい方、例えば、Lを暫
定ラベルとして取付ける(第3図(D)の右側)。
Next, if a, b, and c are all non-zero and the window W completely enters the area I (left side of Fig. 3 (D)), change the attached temporary labels L and L'' to a, b. Compare by c=
Min (a, b), ie the smaller one, for example L, is attached as a temporary label (right side in Figure 3(D)).

次に、暫定ラベル取付部l は、各小領域に取付けられ
た暫定ラベルの接続関係を検出する。この場合の演算論
理は第2表に示すとおりである。
Next, the temporary label attaching unit l detects the connection relationship of the temporary labels attached to each small area. The arithmetic logic in this case is as shown in Table 2.

この接続関係の検出は、例えば第3図(D)のように同
じ領域内でありながら異なる暫定ラベルa=L、b=L
’が取付けられた場合の接続関係を検出する。
Detection of this connection relationship is performed by using different temporary labels a=L, b=L within the same area, as shown in FIG. 3(D), for example.
Detect the connection relationship when ' is installed.

第2表 ラベル整理部2 では、検出された接続関係の重複部分
を整理するが、その動作を第4図に基いて説明する。
The second table label sorting section 2 sorts out overlapping parts of the detected connection relationships, and its operation will be explained based on FIG. 4.

第4図(A)は暫定ラベル取付後の画像G、第4図(B
)は出力された接続関係、第4図(C)は整理された接
続関係である。
Figure 4 (A) is image G after temporary label attachment, Figure 4 (B)
) is the output connection relationship, and FIG. 4(C) is the organized connection relationship.

から8までの暫定ラベルが取り付けられている。Temporary labels from to 8 are attached.

また第4図(B)においては、第2表の演算論理に従っ
て、暫定ラベルの接続関係が検出されている。第4図(
B)の下線を施した部分が重複部分である。
Further, in FIG. 4(B), the connection relationship of the provisional labels is detected according to the arithmetic logic in Table 2. Figure 4 (
The underlined part in B) is the overlapping part.

ラベル整理部2 は、この重複部分を1つにまとめて、
第4図(C)に示すように、整理された接続関係を検出
する。
The label organizer 2 combines these duplicate parts into one,
As shown in FIG. 4(C), organized connection relationships are detected.

直接ラベル検出部3 は、上記整理された接続関係(第
5図(A))から直接接続テーブルを作成する(第5図
(C))。
The direct label detection unit 3 creates a direct connection table (FIG. 5(C)) from the organized connection relationships (FIG. 5(A)).

この直接接続テーブルは1から8までの各暫定ラベルご
と(X)にそれぞれに接続されている暫定ラベル(Y)
をまとめたものである。
This direct connection table shows the provisional labels (Y) connected to each provisional label (X) from 1 to 8.
It is a collection of.

更に、ラベル追跡部4 は、上記直接接続テーブル(第
5図(B))をサーチしつつ、ある1つの暫定ラベルを
基準に接続関係をグラフに表現する(第6図(A))、
!IIち直接接続テーブル(第5図(B))の暫定ラベ
ル欄Xの暫定ラベルlには、暫定ラベルの3と2と5が
接続していることがわかる(第6図(A)の左側の■)
0次に暫定ラベル2(X)を基準にすれば、それには3
と1が接続されている。従って2と3が接続されている
ことがわかる(■)。
Furthermore, while searching the direct connection table (FIG. 5(B)), the label tracking unit 4 expresses the connection relationship in a graph based on one provisional label (FIG. 6(A)).
! It can be seen that temporary labels 3, 2, and 5 are connected to temporary label l in temporary label column X of the direct connection table (Figure 5 (B)) (left side of Figure 6 (A)). ■)
If we use the temporary label 2 (X) as the standard, then 3
and 1 are connected. Therefore, it can be seen that 2 and 3 are connected (■).

これにより、暫定ラベル1−2−3−5の独立したグル
ープが形成された。
As a result, an independent group of temporary labels 1-2-3-5 was formed.

また、第5図(B)のテーブルにおいて、暫定ラベル4
(X)を基準にすれば、それには6に接続している(■
)。次に6についてみれば、7と8に接続している(■
)。そして、7についてみれば、それは8に接続してい
ることがわかる(■)。
In addition, in the table of FIG. 5(B), provisional label 4
Based on (X), it is connected to 6 (■
). Next, if we look at 6, it is connected to 7 and 8 (■
). If we look at 7, we can see that it is connected to 8 (■).

従って、4−6−7−8の独立のグループが形成された
Therefore, 4-6-7-8 independent groups were formed.

尚、上記ラベルの追跡はグラフの辺をたどることにより
行うが、この辺の総数は平面的グラフであることを考慮
すれば量大3×(ラベル数)−6である。従って、追跡
処理は暫定ラベルの最大値に比例する時間内に完了でき
る。
Note that the label tracking described above is performed by tracing the edges of the graph, and considering that the graph is a planar graph, the total number of edges is 3×(number of labels)−6. Therefore, the tracking process can be completed within a time proportional to the maximum value of the provisional label.

ラベル更新部5 では、ラベルの追跡結果(第6図(B
))に基いて、1−2−3−5は暫定ラベルを1に、4
−6−7−8は暫定ラベルを2に、それぞれ変更する。
The label updating unit 5 updates the label tracking results (Fig. 6(B)
)), 1-2-3-5 sets the temporary label to 1 and 4
-6-7-8 change the temporary label to 2, respectively.

これにより、当初は不明確であった領域11 とr2の
区別(第4図(A))が明確になった。つまり、各領域
に1対1に対応するラベル付け処理を行うことができる
As a result, the distinction between region 11 and r2 (FIG. 4(A)), which was initially unclear, became clear. In other words, labeling processing can be performed in one-to-one correspondence to each region.

〔発明の効果〕〔Effect of the invention〕

上記のとおり、本発明によれば、従来のように暫定ラベ
ルのクラスタリングを行うことなく、小領域ごとに付加
した暫定ラベルを検出後にその追跡を行い、接続関係を
検出し該接続関係ごとに上記暫定ラベルを変更して同じ
暫定ラベルを付加することにより、暫定ラベル付け処理
を高速に行うことが可能となった。
As described above, according to the present invention, without performing clustering of provisional labels as in the past, provisional labels added to each small area are detected and tracked, connection relationships are detected, and the above-mentioned By changing the temporary label and adding the same temporary label, it is now possible to perform the temporary labeling process at high speed.

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

第1図は本発明方式の構成図、第2図は本発明方式に使
用されるウィンドの構成図、第3図(A)〜(D)は暫
定ラベル取付部の動作説明図、第4図(A)〜(C)は
ラベル整理部の動作説明図、第5図(A)、  (B)
は直接接続ラベル検出部の動作説明図、第6図(A)、
(B)はラベル追跡部及び更新部の動作説明図、第7図
(A)、  (B)は産業上の利用分野の説明図である
。 ■ ・・・暫定ラベル取付部、 ! 2 ・・・ラベル整理部、 3 ・・・直接接続ラベル検出部、 4 ・・・ラベル追跡部、 5 ・・・ラベル更新部。
Fig. 1 is a block diagram of the method of the present invention, Fig. 2 is a block diagram of a window used in the method of the present invention, Figs. (A) to (C) are operation explanatory diagrams of the label sorting section, and Figures 5 (A) and (B)
is an explanatory diagram of the operation of the direct connection label detection section, FIG. 6 (A),
7(B) is an explanatory diagram of the operation of the label tracking unit and the updating unit, and FIGS. 7(A) and 7(B) are explanatory diagrams of the industrial application field. ■ ...Temporary label attachment part, ! 2...Label sorting unit, 3...Direct connection label detection unit, 4...Label tracking unit, 5...Label update unit.

Claims (1)

【特許請求の範囲】[Claims] 背景と領域とが2値で表わせる画像の上記領域にラベル
を付けるようにしたラベル付け方式において、上記画像
を走査してビデオ信号を入力し該入力信号に対応して小
領域ごとに暫定ラベルを取り付けると共に既設の近傍暫
定ラベルとの接続関係を検出する暫定ラベル取付部と、
上記接続関係のうち重複部分をまとめて整理した接続関
係を生成するラベル整理部と、上記整理された接続関係
に基いて順次各暫定ラベルごとにそれに接続している暫
定ラベルを対応づけた直接接続テーブルを生成する直接
接続ラベル検出部と、上記直接接続テーブルを検索して
相互に接続している接続関係のグループを生成するラベ
ル追跡部と、上記各グループの暫定ラベルを変更して各
グループごとに同じ暫定ラベルを付加するラベル更新部
から構成されていることを特徴とする領域のラベル付け
方式。
In a labeling method in which a label is attached to the above-mentioned region of an image in which the background and the region can be represented by binary values, the above-mentioned image is scanned, a video signal is inputted, and a provisional label is created for each small region in response to the input signal. a temporary label attachment part that attaches the label and detects the connection relationship with the existing nearby temporary label;
A label organizer that generates a connection relationship that organizes the overlapping parts of the above connection relationships, and a direct connection that sequentially associates each temporary label with the temporary labels connected to it based on the above organized connection relationships. A direct connection label detection unit that generates a table; a label tracking unit that searches the above direct connection table and generates groups of interconnected connections; and a label tracking unit that searches the above direct connection table to generate groups of interconnected connections; A labeling method for an area, comprising a label updating unit that adds the same temporary label to a region.
JP6212985A 1985-03-28 1985-03-28 Label attachment system for area Granted JPS61221981A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6212985A JPS61221981A (en) 1985-03-28 1985-03-28 Label attachment system for area

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6212985A JPS61221981A (en) 1985-03-28 1985-03-28 Label attachment system for area

Publications (2)

Publication Number Publication Date
JPS61221981A true JPS61221981A (en) 1986-10-02
JPH0318229B2 JPH0318229B2 (en) 1991-03-12

Family

ID=13191153

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6212985A Granted JPS61221981A (en) 1985-03-28 1985-03-28 Label attachment system for area

Country Status (1)

Country Link
JP (1) JPS61221981A (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS59208667A (en) * 1983-05-13 1984-11-27 Matsushita Electric Ind Co Ltd Labelling device
JPS6014376A (en) * 1983-07-05 1985-01-24 Fujitsu Ltd Segmentation circuit

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS59208667A (en) * 1983-05-13 1984-11-27 Matsushita Electric Ind Co Ltd Labelling device
JPS6014376A (en) * 1983-07-05 1985-01-24 Fujitsu Ltd Segmentation circuit

Also Published As

Publication number Publication date
JPH0318229B2 (en) 1991-03-12

Similar Documents

Publication Publication Date Title
Perkins Area segmentation of images using edge points
Capson An improved algorithm for the sequential extraction of boundaries from a raster scan
JPS61221981A (en) Label attachment system for area
JPH0344349B2 (en)
US6668252B2 (en) Hierarchical structure generating method and apparatus generating hierarchical structure display table based on parent-child relationship table
Sebok et al. An algorithm for line intersection identification
JPS61221980A (en) Label attachment system for area
JPS61259341A (en) Loop detecting processing system
Jain et al. Analyzing a real world scene sequence using fuzziness
Miller et al. Template based method of edge linking using a weighted decision
JPH0231428B2 (en) RYOIKINORABERUTSUKEKAIRO
JPH0816931B2 (en) Contour extraction method
JPH03206574A (en) Raster scan type labeling processing system
JPH04115369A (en) Interactive wiring system
JP2617135B2 (en) Labeling device for connected areas
Martin Hierarchical Region Structures: A method for structuring image regions
JPH07129779A (en) Intruding object recognizing method
JPS63211473A (en) Labeling circuit for connected region
JPS62219177A (en) Control and processing system for attaching label on area
Fukuda et al. A method on software development and maintenance support with reference to documentation(1 st report, basic concept of the support tool and contradiction detection methods in logic).
JPS58142467A (en) Picture data processor
JPH0489524A (en) Classifying method of signal
JPS6356763A (en) Image data area division method
JPH03135680A (en) Line end detecting method of linear graphic
JPH0520792B2 (en)

Legal Events

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