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
JPS6242315B2 - - Google Patents
[go: Go Back, main page]

JPS6242315B2 - - Google Patents

Info

Publication number
JPS6242315B2
JPS6242315B2 JP3235682A JP3235682A JPS6242315B2 JP S6242315 B2 JPS6242315 B2 JP S6242315B2 JP 3235682 A JP3235682 A JP 3235682A JP 3235682 A JP3235682 A JP 3235682A JP S6242315 B2 JPS6242315 B2 JP S6242315B2
Authority
JP
Japan
Prior art keywords
label information
image data
interest
point
raster
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
Application number
JP3235682A
Other languages
Japanese (ja)
Other versions
JPS58151669A (en
Inventor
Yoshuki Okuyama
Tadaaki Bando
Yoshiki Kobayashi
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 JP3235682A priority Critical patent/JPS58151669A/en
Publication of JPS58151669A publication Critical patent/JPS58151669A/en
Publication of JPS6242315B2 publication Critical patent/JPS6242315B2/ja
Granted legal-status Critical Current

Links

Landscapes

  • Image Analysis (AREA)

Description

【発明の詳細な説明】 本発明は画像処理装置のラベリング処理回路に
係り、特に2値画像中に存在する独立した要素に
ラベル付を行なうに好適な画像処理装置のラベリ
ング処理回路に関する。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a labeling processing circuit for an image processing apparatus, and more particularly to a labeling processing circuit for an image processing apparatus suitable for labeling independent elements present in a binary image.

従来よりこの種の画像処理装置のラベリング処
理回路は、第1図aに示すように、横がmで縦が
nの2値画像中に存在する独立したラベル“1”
の画素の集合体である要素W1〜W5に、同図bに
示すように各ラベル要素WL1〜WL5に番号1、
2、3、……の如くラベル(番号)を付しラベル
格納メモリに記憶させる処理を行なう回路である
ことは周知の通りである。従つて、第1図bは前
記処理回路に用いられるラベル格納メモリの原理
的な記憶形態を示したものであつて、符号m及び
nは同図aの画像に対応させたものであり、かつ
符号lは記憶する画像の枚数を示したものであ
る。
Conventionally, the labeling processing circuit of this type of image processing apparatus has been used to detect an independent label "1" existing in a binary image of m width and n length, as shown in FIG. 1a.
As shown in FIG .
It is well known that this circuit performs a process of attaching labels (numbers) such as 2, 3, . . . and storing them in a label storage memory. Therefore, FIG. 1b shows the principle storage form of the label storage memory used in the processing circuit, and the symbols m and n correspond to the images in FIG. 1a, and The code l indicates the number of images to be stored.

第2図は、上記画像処理装置のラベリング処理
回路の具体的構成を示すブロツク図である。この
図に示すように該ラベリング処理回路10は、2
値画像メモリ12から読出した2値画像データ1
00を複数ラスタ分記憶し近傍画像データ102
として出力するラインバツフア14と、このライ
ンバツフア14からの近傍画像データ102及び
後述する前ラスタラベル情報104に基づいて2
値画像中に存在する独立した要素にラベル付を行
なうために注目点に対するラベル情報106を発
生するラベル情報発生部16と、このラベル情報
発生部16からの該ラベル情報106の1ラスタ
分記憶し、次のラスタ走査時に読出された近傍画
像データ102に対応させて前ラスタラベル情報
104をラベル情報発生部16に出力させるラベ
リング外部制御部20とから構成されている。
FIG. 2 is a block diagram showing a specific configuration of the labeling processing circuit of the image processing apparatus. As shown in this figure, the labeling processing circuit 10 includes two
Binary image data 1 read from value image memory 12
00 for multiple rasters and stores nearby image data 102.
2 based on the line buffer 14 to be output as
A label information generating section 16 generates label information 106 for a point of interest in order to label independent elements existing in a value image, and a label information generating section 16 stores one raster of the label information 106 from this label information generating section 16. , and a labeling external control section 20 that causes the label information generation section 16 to output previous raster label information 104 in correspondence with the neighboring image data 102 read out during the next raster scan.

このように構成されたラベリング処理回路10
によれば、例えば第1図aに示すような2値画像
を記憶する2値画像メモリ12から読出した2値
画像データ100を複数ラスタ分だけ記憶したラ
インバツフア14からの近傍画像データ102A
(第5図a参照)を取り込み、ラベル情報発生部
16に供給し、ラベル情報発生部16では前記近
傍画像データ102A及び第5図bに示す如き前
ラスタラベル情報104Aに基づいて、第1図b
に示すように独立の要素WL1〜WL5にラベル付を
行ないラベル格納メモリ18に記憶させるもので
ある。
Labeling processing circuit 10 configured in this way
According to, for example, neighboring image data 102A from a line buffer 14 storing a plurality of rasters of binary image data 100 read from a binary image memory 12 storing binary images as shown in FIG.
(see FIG. 5a) and supplies it to the label information generating section 16, where the label information generating section 16 generates the data as shown in FIG. b
As shown in the figure, independent elements WL 1 to WL 5 are labeled and stored in the label storage memory 18.

第3図は、上記従来のラベリング処理装置にお
けるラベル情報発生部の詳細構成を示すブロツク
図である。図に示すように、近傍画像データx0
x4をデコーダ22に取り込み、デコーダ22は、
注目点x0が第1論理(ここは、以下論理“1”と
する)であつて、連結データx1,x2,x3及びx4
第2論理(以下“0”とする)と判断されると出
力108を送出するように構成されている。この
デコーダ22からの出力信号108を取り込むカ
ウンタ24は、出力信号108により計数を開始
する処理がなされるように構成されている。この
場合に選択器26は、前記デコーダ22からの出
力信号108に基づいてカウンタ24からの計数
値110を選択して論理積回路(以下、アンド回
路という)30に供給できるように構成されてい
る。このアンド回路30は注目点x0の信号を他の
入力端に加えて選択器26からの信号112をラ
ベル情報106として出力することにより、注目
点x0に対して新たなラベル付がされように構成さ
れている。また、シフトレジスタ32,34及び
36は図示のように接続されると共に夫々近傍画
像データx3,x2及びx1に対応してすでにラベル付
けされたラベル情報104A、つまり前ラスタに
おけるラベル情報L1,L2及びL3が格納されるよ
うになつている。また、アンド回路30の出力1
12は、シフトレジスタ38に格納されるように
なつている。シフトレジスタ32,34,36及
び38から出力された夫々のラベル情報SL1
SL2,SL3及びSL4は、比較器40に供給されるよ
うになつている。この比較器40は、入力された
ラベル情報SL1,SL2,SL3及びSL4のうち、最大
値(或いは“0”以外の最小値)を検出して選択
器26に送出するように構成されている。この選
択器26は比較器40から送出されたラベル情報
の最大値(最小値)114が選択器26に供給で
きるように構成されている。前記選択器26は、
デコーダからの送出信号108が論理“0”のと
きに比較器40が選択制御されて信号114を選
択器出力112としてアンド回路30に送出され
るようになつている。このアンド回路30は、注
目点x0と出力信号112との論理積をとることに
より、注目点が論理“1”のときのみ選択器26
の出力信号112をラベル情報106として送出
するようになつている。
FIG. 3 is a block diagram showing the detailed configuration of the label information generating section in the conventional labeling processing device. As shown in the figure, neighboring image data x 0 ~
x 4 into the decoder 22, and the decoder 22
The point of interest x 0 is the first logic (hereinafter referred to as logic “1”), and the connected data x 1 , x 2 , x 3 and x 4 are the second logic (hereinafter referred to as “0”). It is configured to send an output 108 if determined. The counter 24 that receives the output signal 108 from the decoder 22 is configured to start counting in response to the output signal 108. In this case, the selector 26 is configured to select the count value 110 from the counter 24 based on the output signal 108 from the decoder 22 and supply it to an AND circuit (hereinafter referred to as an AND circuit) 30. . This AND circuit 30 adds the signal of the point of interest x 0 to the other input terminal and outputs the signal 112 from the selector 26 as the label information 106, thereby attaching a new label to the point of interest x 0 . It is composed of Further, the shift registers 32, 34 and 36 are connected as shown in the figure, and label information 104A already labeled corresponding to neighboring image data x 3 , x 2 and x 1 , that is, label information L in the previous raster 1 , L2 and L3 are stored. Also, the output 1 of the AND circuit 30
12 is stored in the shift register 38. The respective label information SL 1 output from the shift registers 32, 34, 36 and 38,
SL 2 , SL 3 and SL 4 are adapted to be supplied to a comparator 40 . This comparator 40 is configured to detect the maximum value (or the minimum value other than "0") among the input label information SL 1 , SL 2 , SL 3 and SL 4 and send it to the selector 26 has been done. This selector 26 is configured so that the maximum value (minimum value) 114 of the label information sent from the comparator 40 can be supplied to the selector 26 . The selector 26 is
When the output signal 108 from the decoder is at logic "0", the comparator 40 is selectively controlled and the signal 114 is output to the AND circuit 30 as the selector output 112. This AND circuit 30 performs a logical AND operation between the point of interest
The output signal 112 of is sent out as label information 106.

上述のように構成されたラベル情報発生部16
の動作を説明する。特に、ラインバツフア14か
ら取り込んだ近傍画像データ102のうちの注目
点x0及び連結データx1〜x4の状態を場合分けして
説明する。
Label information generation unit 16 configured as described above
Explain the operation. In particular, the states of the point of interest x 0 and the connected data x 1 to x 4 of the neighboring image data 102 taken in from the line buffer 14 will be explained by case.

まず、第一の場合は、x0が論理“1”、x1〜x4
の全てが論理“0”の場合である。この場合は、
デコーダ22からの出力信号108が論理“1”
となると考えられる。従つて、カウンタ24は、
計数を始め、計数完了値を出力信号110として
出力する。このとき、選択器26は、出力信号1
08によりカウンタ24側が選択されており、選
択器26の出力信号112は、カウンタ24の計
数終了値110が出力されている。従つて、アン
ド回路30から出力されるラベル情報106は、
x0=“1”であるから結局カウンタ24の計数終
了値110が出力されることになる。
First, in the first case, x 0 is logic “1” and x 1 to x 4
This is the case when all of the values are logic "0". in this case,
Output signal 108 from decoder 22 is logic “1”
It is thought that. Therefore, the counter 24 is
It starts counting and outputs the counting completion value as an output signal 110. At this time, the selector 26 outputs the output signal 1
08, the counter 24 side is selected, and the output signal 112 of the selector 26 is the count end value 110 of the counter 24. Therefore, the label information 106 output from the AND circuit 30 is
Since x 0 =“1”, the count end value 110 of the counter 24 will be outputted.

次に、第二の場合は、x0が論理“1”、x1〜x4
のうちの一又は二以上が論理“1”の場合であ
る。
Next, in the second case, x 0 is logic “1”, x 1 ~ x 4
This is the case when one or more of them is logic "1".

この場合はデコーダ22からの出力信号108
が論理“0”であると考えてよい。このためカウ
ンタ24は計数を停止する。また、この時に、出
力信号108により選択器26は、比較器40か
らの出力信号114をその出力信号112として
出力する。この比較器40は、シフトレジスタ3
2,34,36及び38からの出力信号SL1
SL2,SL3及びSL4の信号のうち、例えば最大値を
出力信号114として出力する。従つて、ラベル
情報106としてアンド回路30から出力される
信号は、前回のラスタにおけるラベル情報が出力
されることになる。
In this case, the output signal 108 from the decoder 22
may be considered to be logic "0". Therefore, the counter 24 stops counting. Also, at this time, the output signal 108 causes the selector 26 to output the output signal 114 from the comparator 40 as its output signal 112. This comparator 40 is connected to the shift register 3
Output signals SL 1 from 2, 34, 36 and 38,
Among the signals SL 2 , SL 3 and SL 4 , for example, the maximum value is output as the output signal 114 . Therefore, the signal output from the AND circuit 30 as the label information 106 is the label information for the previous raster.

第三の場合は、注目点x0が論理“0”の場合で
ある。
The third case is a case where the point of interest x 0 is logic "0".

この場合において、デコーダ22から出力され
る出力信号108は論理“0”としてよいから、
カウンタ24はもちろん計数を禁止され、かつ選
択器26からの出力信号112は比較器40から
の出力信号114が選択されている。しかし、ア
ンド回路30は、x0が論理“0”であるためラベ
ル情報106は出力されないことになる。
In this case, the output signal 108 output from the decoder 22 may be set to logic "0".
The counter 24 is of course prohibited from counting, and the output signal 114 from the comparator 40 is selected as the output signal 112 from the selector 26. However, the AND circuit 30 does not output the label information 106 because x 0 is logic "0".

前記ラベル情報発生部16は、上記のように動
作するものである。
The label information generating section 16 operates as described above.

第4図は、従来例によるラベリング処理を説明
するために示す説明図である。図において120
は2値画像メモリ12から取り出した2値画像デ
ータ100の一例であり、ラベル情報発生部16
においてラベリング処理122がなされてラベル
格納メモリ18に格納したラベル情報106のラ
ベル情報メモリ124である。第4図に示すよう
な階段状の図形の場合、×印の点、つまり符号
Y1,Y2,……,Y7を付した画素126に対し
て、逐次カウンタ24は、計数(カウントアツ
プ)がなされ図に示すようにラベル格納メモリ1
6の中には、ラベル1,2,……,7として格納
される。このように同一画素126に対して、多
数のラベルが付けられることになり、この場合カ
ウンタ24のビツト数は有限であるため、この最
大値を超えてオーバーフローすることがある。例
えばカウンタのビツト数がlビツトの場合、その
最大計数値は2l−1である。従つて、第4図に
示すような図形が、要素として1画面中に多数存
在するような場合は、特に前述した如くオーバー
フローする可能性が強くなる。
FIG. 4 is an explanatory diagram shown for explaining labeling processing according to a conventional example. 120 in the figure
is an example of binary image data 100 taken out from the binary image memory 12, and the label information generation unit 16
This is the label information memory 124 of the label information 106 that has been subjected to the labeling process 122 and stored in the label storage memory 18. In the case of a step-like figure as shown in Figure 4, the point marked with an
The sequential counter 24 counts up (counts up) the pixels 126 labeled Y 1 , Y 2 , . . . , Y 7 and stores them in the label storage memory 1 as shown in the figure.
6 are stored as labels 1, 2, . . . , 7. In this way, a large number of labels are attached to the same pixel 126, and since the number of bits in the counter 24 is finite in this case, it may overflow beyond this maximum value. For example, if the number of bits in the counter is l, the maximum count value is 2 l -1. Therefore, when a large number of graphics as shown in FIG. 4 exist as elements in one screen, there is a particularly strong possibility that overflow will occur as described above.

更に、詳説すれば、注目点x0に対してラベル付
を行う際、そのラベル値を決定する要因となる情
報は、第5図aに示す近傍画像データx1〜x4
び、各近傍の画像データx1〜x4に対応して割付け
られたラベル情報L1〜L4(第5図b参照)であ
る。これだけのデータでラベル付を行う場合は第
4図で示したように、例えば図中符号Y1とY2
の間のラスタ方向(この場合、図示横方向)の間
隔が2画素以上離れている図形へのラベル付を行
うことになり、ラベル付カウンタ24のカウント
アツプが頻繁になりどうしてもカウンタのオーバ
ーフローするという欠点があつた。
Furthermore, to explain in detail, when labeling the point of interest x 0 , the information that determines the label value is the neighboring image data x 1 to x 4 shown in FIG. This is label information L 1 to L 4 (see FIG. 5b) allocated corresponding to image data x 1 to x 4 . When labeling with this much data, as shown in Figure 4, for example, if the interval between the symbols Y 1 and Y 2 in the figure in the raster direction (in this case, the horizontal direction) is two or more pixels apart. As a result, the labeling counter 24 counts up frequently, resulting in an inevitable overflow of the counter.

このような現象の生じる理由は、注目点x0に対
してラベル付をする際、前ラスタ方向の注目点x0
と連結していない画像データに対して付けられた
ラベルデータを無視しているためである。
The reason why this phenomenon occurs is that when labeling the point of interest x 0 , the point of interest x 0 in the previous raster direction
This is because the label data attached to the image data that is not connected to the image data is ignored.

本発明の目的は、上記従来技術の欠点を解消
し、ラベル付用カウンタのオーバーフローの確率
を減少させた画像処理装置のラベリング処理回路
を提供するにある。
SUMMARY OF THE INVENTION An object of the present invention is to provide a labeling processing circuit for an image processing apparatus that eliminates the drawbacks of the prior art described above and reduces the probability of overflow of a labeling counter.

本発明は、上記目的を達成するため、近傍画像
データのうちの注目点が第1論理(例えば論理
“1”)であつて、この注目点に連結する連結画像
データ及び前ラスタ拡張画像データが第2論理
(例えば、論理“0”)の場合にラベル付情報を発
生するカウンタを計数させると共に、計数完了値
をラベル情報として出力し、かつ注目点が第1論
理であつて近傍画像データ及び前ラスタ拡張画像
データのうちのいずれか一つが第1論理の場合
に、前記カウンタの計数を禁止すると共に、注目
点を含むラスタの拡張画像データ中に注目点から
連続する第1論理となる前記拡張画像データを検
出し、これに対応する前ラスタ拡張ラベル情報を
含む前ラスタラベル情報に基づいて形成したラベ
ル情報を出力するようにしたものである。
In order to achieve the above object, the present invention provides that a point of interest among neighboring image data is a first logic (for example, logic "1"), and connected image data and previous raster extended image data connected to this point of interest are In the case of the second logic (for example, logic "0"), a counter that generates labeled information is counted, and the counting completion value is output as label information, and when the point of interest is the first logic, neighboring image data and If any one of the previous raster extended image data is the first logic, the counter is prohibited from counting, and the raster extended image data including the point of interest is the first logic that is continuous from the point of interest. The extended image data is detected and label information formed based on previous raster label information including previous raster extended label information corresponding to the detected extended image data is output.

以下、本発明の一実施例を図面に基づいて説明
する。
Hereinafter, one embodiment of the present invention will be described based on the drawings.

まず、本発明の原理を説明する。本発明では、
ラベル付カウンタを計数させる条件として前ラス
タ拡張画像データx1″〜xN″を情報として取り込
むことによりカウントアツプの条件をさらに厳し
くしている。つまりx0=“1”,x1〜x4=“0”の
条件に加えた前ラスタ方向拡張画像情報である
x1″〜xN″=“0”という条件を全部満足したとき
のみカウンタの計数をさせるようにすると共に、
x1′からx′N+1までの拡張画像データを第6図に示
すようなアンド回路42X1,42X2,……42
Nの接続により、連続して論理“1”が続く位
置を検出し、その論理“1”の出力信号X1〜XN
を出力する。更に前ラスタn−1に存在する前ラ
スタ拡張画像データx″1,x″Nに対応して割付けら
れた前ラスタ拡張ラベル情報L′1〜L′Nと当該出力
信号X1〜XNとアンド回路44X1,44X2,44
Nでそれぞれ論理積をとることにより前ラスタ
拡張ラベル情報L′1〜L′Nの中からx0と連結してい
るラベル情報が抽出され、x0に対するラベル付の
情報として比較器40に供給されることになる。
ここで示した原理は、4連結の考え方つまり注目
する画素に対して、上下左右方向の連なる“1”
の画素を連結したものとみなす考え方に基づいて
いる。これに対して、8連結の考え方つまり注目
する画素と上下左右、斜め方向に連なる“1”の
画素を連結したものとみなす考え方があるが、基
本的には同様の原理であることは言うまでもな
い。言い換えると、注目点に対して“1”の画素
が拡張された画像データの範囲内で、どこまで連
結しているかを抽出できれば良い。このようにし
たことにより、ラベル付用カウンタがオーバーフ
ローする確率は、大幅に減少させることが可能と
なる。
First, the principle of the present invention will be explained. In the present invention,
The conditions for counting up are further made stricter by taking in the previous raster extended image data x 1 '' to x N '' as information as a condition for counting the labeled counter. In other words, it is the previous raster direction extended image information in addition to the conditions of x 0 = “1” and x 1 to x 4 = “0”.
In addition to causing the counter to count only when all the conditions x 1 ″ to x N ″ = “0” are satisfied,
The extended image data from x 1 ' to x' N+1 is processed by AND circuits 42X 1 , 42X 2 , 42 as shown in FIG.
By connecting XN , the position where logic "1" continues is detected, and the output signal of that logic " 1 " is
Output. Further, the previous raster extended label information L' 1 to L' N allocated corresponding to the previous raster extended image data x'' 1 and x'' N existing in the previous raster n- 1 and the corresponding output signals X 1 to X N AND circuit 44X 1 , 44X 2 , 44
The label information connected to x 0 is extracted from the previous raster extended label information L' 1 to L' N by performing a logical product on each of will be supplied.
The principle shown here is the concept of 4-connection.
It is based on the idea that pixels of 2 are considered to be connected. On the other hand, there is the idea of 8-connection, in which the pixel of interest is considered to be a connection of "1" pixels that are connected vertically, horizontally, and diagonally, but it goes without saying that the principle is basically the same. . In other words, it is only necessary to extract to what extent pixels of "1" are connected to the point of interest within the range of the expanded image data. By doing this, the probability that the labeling counter will overflow can be significantly reduced.

なお、上記添字Nの数が、N=1からN=5ま
での間において、上記ラベリング回路は、最も高
効率で動作することが、シユミレーシヨンの結果
からわかつている。
It is known from simulation results that the labeling circuit operates with the highest efficiency when the number of subscripts N is between N=1 and N=5.

第7図は、本発明に係る一実施例を示すブロツ
ク図であり、上記添字NをN=1とした場合の8
連結でラベル付けを行う回路例である。第7図に
示す一実施例において、第3図に示す構成要素と
同一のものには同一の符号を付して説明を省略す
る。第7図の実施例が第3図の構成と異なる点
は、デコーダ46を、注目点x0が論理“1”であ
つて連結画像データx1〜x4及び前ラスタ拡張画像
データx″1とも論理“0”の場合に例えば論理
“1”の出力信号108が出力され、これ以外の
条件の場合に例えば論理“0”と出力信号108
が出力されるように構成し、かつ注目点x0
x1″とが8連結で連結していることを検出するア
ンド回路42X1からの信号SX1をアンド回路44
X1の一方の入力端子に入力すると共に、前ラス
タラベル情報104のうちの前ラスタ拡張ラベル
情報L′1を格納するシフトレジスタ48からの前
ラスタ拡張ラベル情報信号SL1′をアンド回路44
X1の他方の入力端子に入力し、そのアンド回路
44X1における前二つの信号SX1及びSL′1の論理
積出力信号SSL′1を比較器40に供給してラベル
付の一情報とした点にある。
FIG. 7 is a block diagram showing one embodiment of the present invention, in which the subscript N is 8 when N=1.
This is an example of a circuit that performs labeling by concatenation. In the embodiment shown in FIG. 7, the same components as those shown in FIG. 3 are designated by the same reference numerals, and the description thereof will be omitted. The embodiment of FIG. 7 differs from the configuration of FIG. 3 in that the decoder 46 is configured such that the point of interest x 0 is logic "1" and the connected image data x 1 to x 4 and the previous raster extended image data x'' 1 For example, when both are logic "0", an output signal 108 of logic "1" is output, and for other conditions, for example, logic "0" and output signal 108 are output.
is configured so that it is output, and the point of interest x 0 and
The signal SX 1 from the AND circuit 42
The AND circuit 44 inputs the previous raster extended label information signal SL 1 ' from the shift register 48 that is input to one input terminal of the X 1 and stores the previous raster extended label information L' 1 of the previous raster label information 104.
X 1 is inputted to the other input terminal, and the logical product output signal SSL' 1 of the previous two signals SX 1 and SL' 1 in the AND circuit 44X 1 is supplied to the comparator 40 as one piece of labeled information. At the point.

このように構成した本実施例の動作を以下に説
明する。図において、ラインバツフア14からの
近傍画像データ102を取り込んだデコーダ46
は、近傍データx0〜x4及びx″1からカウンタ24
のカウントアツプする条件を判定して出力信号1
08を送出する。このデコーダ46は、この実施
例では、注目点x0=“1”、連結画像データx1〜x4
=“0”、前ラスタ拡張画像データx″1=0が成立
した場合に、出力信号108が送出される。ま
た、シフトレジスタ36には連結画像データx3
割付けられたラベル情報L3が格納される。同様
に、シフトレジスタ34,32,38及び48に
は、夫々画像データx2,x1,x4及びx″1に割付け
られたラベル情報L2,L1,L4及びL′1が格納され
る。又、オア回路45X1とアンド回路42X1
は、x1と拡張画像データx1′と前ラスタ拡張デー
タx1″とに基づいて注目点x0がx2″と8連結で連結
していることを検出し、出力信号SX1を送出す
る。この信号SX1がアンド回路44X1に送出され
るとシフトレジスタ48に格納されている前ラス
タ拡張画像データx″1に割付けられたラベル情報
L″1が注目点x0と連結しているとして、選択器4
0に供給される。すなわち、アンド回路44X1
は、ラベル情報L′1と注目点x0とが連結している
場合に、シフトレジスタ48に格納されているラ
ベル情報L′1が有効となり、連結していない場合
には無効となる制御が行なわれる。そして比較器
40において、シフトレジスタ32,34,3
6,38及び48に格納されているラベル情報
L1,L2,L3,L4及びL′1のうち最大(或いは
“0”以外の最小)値114を抽出して選択器2
6に供給する。この比較器40の出力信号114
とカウンタ34の出力信号110とが選択器20
に送出され、選択器26はデコーダ46の出力信
号108により前記各信号のいずれか一方を選択
するように制御されて、その出力信号112がア
ンド回路30に送出される。この場合信号108
が送出されている(例えば、論理“1”)場合
は、カウンタ24の出力信号110が選択されて
出力信号112とされ、信号108が送出されな
い(例えば、論理“0”)場合は比較器40の出
力信号114が選択されて出力信号112とされ
る。アンド回路30では、選択器26の出力信号
112と注目点x0との論理積により注目点x0
“1”の時のみ有効となる制御が行なわれる。こ
の時、アンド回路30から送出される信号106
が注目点x0に対するラベル情報となる。
The operation of this embodiment configured in this manner will be described below. In the figure, a decoder 46 receives neighboring image data 102 from the line buffer 14.
is the counter 24 from the neighboring data x 0 to x 4 and x″ 1
Determine the condition for counting up and output signal 1.
Send 08. In this embodiment, the decoder 46 receives the attention point x 0 =“1” and the connected image data x 1 to x 4
=" 0 " and previous raster extended image data Similarly, the shift registers 34, 32, 38 and 48 have label information L 2 , L 1 , L 4 and L assigned to the image data x 2 , x 1 , x 4 and x″ 1 , respectively. ′ 1 is stored. Also, OR circuit 45X 1 and AND circuit 42X 1
detects that the point of interest x 0 is connected to x 2 ″ in an 8-connection based on x 1 , extended image data x 1 ′, and previous raster extended data x 1 ″, and sends out an output signal SX 1 do. When this signal SX 1 is sent to the AND circuit 44X 1 , label information assigned to the previous raster extended image data x″ 1 stored in the shift register 48
Assuming that L″ 1 is connected to the point of interest x 0 , selector 4
0. That is, AND circuit 44X 1
In this case, when the label information L' 1 and the point of interest x 0 are connected, the label information L' 1 stored in the shift register 48 is valid, and when they are not connected, the control becomes invalid. It is done. Then, in the comparator 40, the shift registers 32, 34, 3
Label information stored in 6, 38 and 48
The maximum (or minimum other than "0") value 114 is extracted from L 1 , L 2 , L 3 , L 4 and L' 1 and sent to the selector 2.
Supply to 6. Output signal 114 of this comparator 40
and the output signal 110 of the counter 34 are the selector 20
The selector 26 is controlled by the output signal 108 of the decoder 46 to select one of the signals, and the output signal 112 is sent to the AND circuit 30. In this case signal 108
is being sent out (for example, a logic "1"), the output signal 110 of the counter 24 is selected as the output signal 112, and when the signal 108 is not being sent out (for example, a logic "0"), the output signal 110 of the counter 24 is selected as the output signal 112. The output signal 114 of is selected as the output signal 112. The AND circuit 30 performs control that is valid only when the point of interest x 0 is "1 " by ANDing the output signal 112 of the selector 26 and the point of interest x 0 . At this time, the signal 106 sent from the AND circuit 30
is the label information for the point of interest x 0 .

以上のように、本発明では注目点x0に対するラ
ベル付け処理を行う際のラベルを決定する条件
が、従来例と比較して拡張されることにより、カ
ウンタ24の計数(カウントアツプ)すべき回数
を減らすことができ、カウンタ24のオーバーフ
ローする確率を減少させることができた。
As described above, in the present invention, the conditions for determining the label when performing the labeling process for the point of interest x 0 are expanded compared to the conventional example, so that the number of times the counter 24 should be counted It was possible to reduce the probability that the counter 24 would overflow.

本実施例は、要するに、注目点x0に対してのラ
ベル付を行う際、注目点x0と連結している連結画
像データx1〜x4以外の画像データ、即ち、注目点
x0と2画素以上離れている前ラスタ拡張画像デー
タx″1まで拡張してラベル付けの判断を行つてお
り、かつ注目点x0と連続して“1”でつながつて
いる前ラスタのラベル情報がx0のラベル付けに反
映することができるようにしたものである。この
ようにしたので、ラベル付け用カウンタのカウン
トアツプすべき回数が削減され、カウンタのオー
バーフローする確率を減少することができるもの
である。また拡張した画像データの連結性の判断
は、従来の処理を同時に行うことができるので処
理時間増加させることがないものである。
In short, in this embodiment, when labeling the point of interest x 0 , image data other than the connected image data x 1 to x 4 connected to the point of interest x 0 , that is, the point of interest
The label of the previous raster is expanded to the previous raster extended image data x″ 1 which is two or more pixels away from x 0 , and is used to determine the labeling, and is connected to the point of interest x 0 with a continuous “1”. This allows the information to be reflected in the labeling of x 0. This reduces the number of times the labeling counter needs to be counted up and reduces the probability of counter overflow. Furthermore, since conventional processing can be performed simultaneously to determine the connectivity of expanded image data, the processing time does not increase.

なお、上記実施例は、負論理で構成してもよい
ことはいうまでもない。
It goes without saying that the above embodiment may be constructed using negative logic.

以上、述べたように本発明によれば、ラベル付
用のカウンタがオーバーフローすることがないの
で、信頼性の向上を図れるという効果がある。
As described above, according to the present invention, since the labeling counter does not overflow, reliability can be improved.

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

第1図はラベル付処理の概要を説明するために
示す説明図、第2図は画像処理装置のラベリング
処理回路の全体構成を示すブロツク図、第3図は
従来のラベリング処理回路におけるラベル情報発
生部を示すブロツク図、第4図は従来のラベル付
動作を説明するために示す説明図、第5図は第3
図のラベル処理の関係を示す説明図、第6図は本
発明の基本原理を説明するために示すブロツク
図、第7図は本発明に係る一実施例を示すブロツ
ク図である。 14…ラインバツフア、16…ラベル情報発生
部、18…ラベル格納メモリ、20…ラベリング
外部制御部、24…ラベル付用カウンタ、26…
選択器、32,34,36,38及び48…シフ
トレジスタ、40…比較器、30,42及び44
…アンド回路、46…デコーダ、x0…注目点、x1
〜x4…連結画像データ、L1〜L4…前ラスタラベル
データ、x′1〜x′x+1…拡張画像データ、x″1〜x″N
…前ラスタ拡張画像データ。
Fig. 1 is an explanatory diagram for explaining the outline of labeling processing, Fig. 2 is a block diagram showing the overall configuration of a labeling processing circuit of an image processing device, and Fig. 3 is a label information generation in a conventional labeling processing circuit. 4 is an explanatory diagram for explaining the conventional labeling operation, and FIG. 5 is a block diagram showing the 3rd section.
FIG. 6 is a block diagram showing the basic principle of the present invention, and FIG. 7 is a block diagram showing an embodiment of the present invention. 14... Line buffer, 16... Label information generation section, 18... Label storage memory, 20... Labeling external control section, 24... Labeling counter, 26...
Selector, 32, 34, 36, 38 and 48...Shift register, 40...Comparator, 30, 42 and 44
...AND circuit, 46...decoder, x 0 ...point of interest, x 1
~x 4 ...Concatenated image data, L 1 ~ L 4 ...Previous raster label data, x' 1 ~x' x+1 ...Extended image data, x'' 1 ~ x'' N
...Previous raster extended image data.

Claims (1)

【特許請求の範囲】[Claims] 1 2値画像メモリからの2値画像データより複
数ラスタ分を記憶しラスタ走査された画像データ
のうち注目点xi,jに隣接する画像データである
近傍画像データxi-1,j-1,xi,j-1,xi+1,j-
,xi-1,jとして出力するラインバツフアと、
このラインバツフアからの近傍画像データ及び前
ラスタラベル情報に基づいて注目点xi,jに対す
るラベル情報を発生するラベル情報発生部と、前
記ラベル情報発生部からの前記ラベル情報を全画
面分にわたり記憶するラベル格納メモリと、前記
ラベル情報発生部からのラベル情報の1ラスタ分
を記憶し、次のラスタ走査時に読み出された近傍
画像データに対応させた前記ラベル情報を前記ラ
ベル情報発生部に供給するラベリング外部制御部
とを含んで構成した画像処理装置のラベリング処
理回路において、前記ラベル情報発生部を、該ラ
インバツフアからの近傍画像データのうちの注目
点xi,jが第1論理であつて、この注目点xi,j
に連結する連結画像データxi-1,j-1,xi,j-1
i+1,j-1,xi-1,j,xi,j及び記ラスタ拡張画
像データxi+2,j-1,xi+3,j-1,xi+4,j-1,……
i+o,j-1が第2論理の場合に新たなラベル情報
として出力し、かつ注目点xi,jが第1論理であ
つて近傍画像データ及び前ラスタ拡張画像データ
のうちのいずれか一つが第1論理の場合に、注目
点xi,jを含むラスタの拡張画像データ中に注目
点xi,jから連続して第1論理となる前記拡張画
像データを検出し、これに対応する前ラスタ拡張
ラベル情報を含む前ラスタラベル情報に基づいて
形成したラベル情報を出力するように構成したこ
とを特徴とする画像処理装置のラベリング処理回
路。
1 Neighboring image data x i -1,j-1 which is image data adjacent to the point of interest x i,j among the image data stored in multiple rasters from the binary image data from the binary image memory and raster scanned. , x i,j-1 , x i+1,j-
1 , a line buffer outputting as x i-1,j ,
a label information generation unit that generates label information for the point of interest x i,j based on the neighboring image data from this line buffer and previous raster label information; and a label information generation unit that stores the label information from the label information generation unit for the entire screen. A label storage memory stores one raster worth of label information from the label information generating section, and supplies the label information corresponding to neighboring image data read out during the next raster scan to the label information generating section. In the labeling processing circuit of an image processing device configured to include a labeling external control section, the label information generation section is configured such that a point of interest x i,j of neighboring image data from the line buffer is a first logic; This point of interest x i,j
Connected image data x i-1,j-1 , x i,j-1 ,
x i+1,j-1 , x i-1,j , x i,j and raster extended image data x i+2,j-1 , x i+3,j-1 , x i+4,j -1 ,...
If x i+o,j-1 is the second logic, it is output as new label information, and the point of interest x i,j is the first logic, and it is either the neighboring image data or the previous raster extended image data. If one of them is the first logic, detect the extended image data that is the first logic consecutively from the point of interest x i,j in the extended image data of the raster including the point of interest x i,j , and 1. A labeling processing circuit for an image processing apparatus, characterized in that the labeling processing circuit is configured to output label information formed based on previous raster label information including corresponding previous raster extended label information.
JP3235682A 1982-03-03 1982-03-03 Labeling processing circuit of picture processing device Granted JPS58151669A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3235682A JPS58151669A (en) 1982-03-03 1982-03-03 Labeling processing circuit of picture processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3235682A JPS58151669A (en) 1982-03-03 1982-03-03 Labeling processing circuit of picture processing device

Publications (2)

Publication Number Publication Date
JPS58151669A JPS58151669A (en) 1983-09-08
JPS6242315B2 true JPS6242315B2 (en) 1987-09-08

Family

ID=12356672

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3235682A Granted JPS58151669A (en) 1982-03-03 1982-03-03 Labeling processing circuit of picture processing device

Country Status (1)

Country Link
JP (1) JPS58151669A (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS60169985A (en) * 1984-02-15 1985-09-03 Hitachi Ltd Color extracting device
JP5027075B2 (en) 2008-08-05 2012-09-19 株式会社ジャパンディスプレイウェスト Image processing apparatus, image input apparatus, and image input / output apparatus

Also Published As

Publication number Publication date
JPS58151669A (en) 1983-09-08

Similar Documents

Publication Publication Date Title
US4574357A (en) Real time character thinning system
US4855933A (en) Line figure connecting apparatus
EP0279160A2 (en) High speed serial pixel neighborhood processor and method
US4887302A (en) Labelling circuit for image processor
EP0191200B1 (en) Image processing device for the real-time processing and recognition of two-dimensional images, and image processing system including at least two series-connected image processing devices of this kind
JP2001022342A (en) Pixel number conversion circuit and image display device using the same
JPS6242315B2 (en)
US4809343A (en) Maximum/minimum value conversion circuit for image processing
JP2935803B2 (en) Defect inspection equipment
US5438682A (en) Data processing system for rewriting parallel processor output data using a sequential processor
JP3483751B2 (en) Motion vector detecting device and motion vector detecting method
JP2969930B2 (en) Line memory of image processing device
JPS6329472B2 (en)
JP2716894B2 (en) Labeling circuit for image processing
JPH05131674A (en) Recording device
JPH06214556A (en) Image processing device
JPH0762795B2 (en) Image extractor
JPS63254578A (en) Pattern recognition device
JP2989193B2 (en) Image memory interleaved input / output circuit
JP2658346B2 (en) Parallel image processing device
JP3061830B2 (en) Image processing device
JPH0371326A (en) Scanning adding device
JPS62294901A (en) Position detector
JPS6326784A (en) Image connection processor
JPS6231257A (en) Two-dimensional encoding device for picture signal