JPS6326784A - Image connection processor - Google Patents

Image connection processor

Info

Publication number
JPS6326784A
JPS6326784A JP61171083A JP17108386A JPS6326784A JP S6326784 A JPS6326784 A JP S6326784A JP 61171083 A JP61171083 A JP 61171083A JP 17108386 A JP17108386 A JP 17108386A JP S6326784 A JPS6326784 A JP S6326784A
Authority
JP
Japan
Prior art keywords
label
pixel
image data
interest
circuit
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
JP61171083A
Other languages
Japanese (ja)
Inventor
Masato Suda
正人 須田
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 Corp
Original Assignee
Toshiba 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 Corp filed Critical Toshiba Corp
Priority to JP61171083A priority Critical patent/JPS6326784A/en
Publication of JPS6326784A publication Critical patent/JPS6326784A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To reduce a circuit scale, and to make a device small in size by using a wired OFF circuit for a selecting circuit of a label number of a connecting component. CONSTITUTION:In a line buffer 31, label numbers of a binary image data before one scan and each image data are stored. The binary image data of an aimed picture element P is stored in an FF 33. Binary image data of picture elements A-C being adjacent to the upper left part, the upper part and the left part of the aimed picture element P, and its label numbers are held in latching circuits 34-36. Output signals of the FF 33 and the latching circuits 34-36, and a time division pulse signal from a control circuit 30 are applied to a ROM 37 being a connection detecting means, and in accordance with it, the ROM 37 outputs data D0-D8. At the time of putting a new label number to the aimed picture element P, a black label counter NNH 38 executes a count operation by D1, and it is outputted to a label bus 41 by a '0' output of the data D8. Also, outputs of the latching circuits 33-34 are outputted by a '0' output of D2-D4 from 3-state gates 42-44.

Description

【発明の詳細な説明】 [発明の目的] (産業上の利用分野) この発明は、二値画像の連結成分を検出する画像連結処
理装置に関する。
DETAILED DESCRIPTION OF THE INVENTION [Object of the Invention] (Industrial Application Field) The present invention relates to an image connection processing device that detects connected components of binary images.

〈従来の技術) 文字認識における文字の切出しや画像計測の分野におい
て、従来よりラベリング回路が用いられている。このラ
ベリング回路は、画像データから連結成分を抽出し、連
結成分毎に一つのラベル番号を付与するもので、例えば
第8図に示すように構成されている。
(Prior Art) Labeling circuits have been used in the field of character extraction and image measurement in character recognition. This labeling circuit extracts connected components from image data and assigns one label number to each connected component, and is configured as shown in FIG. 8, for example.

即ち、ラインバッファ1には二値化された1ライン前の
画像データ(“1”、”O”)とこれに対応する各画素
のラベルが格納される。そして、着目画素Pの画像デー
タをフリップフロップ回路2(P)に格納し、この着目
画素Pに対して左上、上及び左に隣接する各隣接画素A
、B、Cの画像データとラベル番号とをラッチ回路3,
4.5に格納する。これらフリップフロップ回路2及び
ラッチ回路3〜5に画像データが格納されると、これら
4ピツトの画像データによって着目画素と隣接画素との
連結の有無及びその連結する画素の位置が分るので、こ
れをROM 6のアドレスとじて与える。ROM6は、
着目画素Pが隣)妾画素A。
That is, the line buffer 1 stores the binarized image data of the previous line ("1", "O") and the label of each pixel corresponding thereto. Then, the image data of the pixel of interest P is stored in the flip-flop circuit 2 (P), and each adjacent pixel A adjacent to the upper left, upper and left side of the pixel of interest P
, B, C and the label number are sent to the latch circuit 3,
Store in 4.5. When image data is stored in these flip-flop circuits 2 and latch circuits 3 to 5, it is possible to determine whether or not a pixel of interest is connected to an adjacent pixel and the position of the connected pixel based on the image data of these four pits. is given as the address of ROM 6. ROM6 is
Pixel of interest P is adjacent) concubine pixel A.

B、Cのいずれか一つと連結している場合には、連結し
ている隣接画素のラベル番号をマルチプレクサ7を介し
て選択する。また、もし、連結画素がない場合には、新
たに付与するラベル番号が格納されている白ラベルカウ
ンタ8又は黒ラベルカウンタ9の値を選択する。この結
果、連結成分に同一のラベル番号が付与され、連結処理
部1oに入力される。連結処理部1oでは、ラベル番号
の連結を並列又はバイブライン処理することによって処
理の高速化が図られている。
If it is connected to either one of B or C, the label number of the connected adjacent pixel is selected via the multiplexer 7. Furthermore, if there is no connected pixel, the value of the white label counter 8 or black label counter 9 in which a newly assigned label number is stored is selected. As a result, the same label number is assigned to the connected components and input to the connection processing unit 1o. In the concatenation processing unit 1o, processing speed is increased by performing concatenation of label numbers in parallel or in a vibrating manner.

しかしながら、上述した従来の画像連結処理装置にあっ
ては、ラベル番号を選択するマルチプレクサ7の使用I
Cの数をラベル番号のビット数分だけ必要とする。この
ため、対象画面中に非常に数多くの連結成分が存在する
場合には、極めて多くのICを用いるマルチプレクサを
必要とした。
However, in the conventional image concatenation processing device described above, the use of the multiplexer 7 for selecting the label number
The number of C's required is equal to the number of bits of the label number. Therefore, if a large number of connected components exist in the target screen, a multiplexer using a large number of ICs is required.

また、連結処理部において並列処理、パイプライン処理
を行なうためにも、多くのレジスタを必要とした。この
ため、従来の画像処理装置にあっては対中とする画面の
画素数の増加に伴って回路規模が増大するという欠点が
あった。
Furthermore, many registers were required to perform parallel processing and pipeline processing in the concatenation processing section. For this reason, conventional image processing apparatuses have had the disadvantage that the circuit size increases as the number of pixels on the screen increases.

(発明が解決しようとする問題点) このように、従来の画像連結処理装置にあっては、特に
連結成分の多い画像の処理を行なう場合、回路規模の増
大が避けられず、装置の小形1ヒ、低価格化を損うとい
う問題があった。
(Problems to be Solved by the Invention) As described above, in the conventional image concatenation processing device, especially when processing an image with many connected components, an increase in circuit scale is unavoidable, and the device is small. There was a problem with lower prices.

この発明は、このような問題を解決すべくなされたもの
で、回路規模の縮小が図れ、装置の小形化、低価格化に
寄与し得る画像連結処理装置を提供することを目的とす
る。
The present invention has been made to solve such problems, and an object of the present invention is to provide an image concatenation processing device that can reduce the circuit scale and contribute to miniaturization and cost reduction of the device.

[発明の構成〕 (問題点を解決するための手段) 本発明は、以下のように構成された画像連結処理装置に
おいて、特に選択手段の構成に特徴がある。
[Structure of the Invention] (Means for Solving the Problems) The present invention is an image linking processing apparatus configured as follows, and is particularly characterized by the configuration of the selection means.

即ち、本発明に係る画像連結処理装置には、まず第1乃
至第3の保持手段が備えられている。第1の保持手段は
着目画素の二値画像データを保持する。第2の保持手段
は上記着目画素に隣接する近傍画素の二圃画像データ及
びそのラベル番号を保持する。第3の保持手段は新たに
付与するラベル番号を保持する。そして、前記第1及び
第2の保持手段で保持された二値画像データを元に前記
着目画素と近傍画素との連結を連結検出手段で検出し、
該連結検出手段の検出結果に基づいて前記第2及び第3
の保持手段から着目画素に付与するラベル番号を選択手
段で選択するようにした画像連結処理装置における上記
選択手段が、前記第2及び第3の保持手段の出力を入力
とするワイヤードオア回路で構成され、前記連結検出手
段の検出結果に基づき前記第2及び第3の保持手段から
のラベル番号出力を択一的に入力するものである。
That is, the image linking processing device according to the present invention is first provided with first to third holding means. The first holding means holds binary image data of the pixel of interest. The second holding means holds second field image data of neighboring pixels adjacent to the pixel of interest and their label numbers. The third holding means holds a newly assigned label number. and detecting a connection between the pixel of interest and a neighboring pixel by a connection detection means based on the binary image data held by the first and second holding means,
Based on the detection result of the connection detection means, the second and third
In the image concatenation processing device, the selection means selects a label number to be given to the pixel of interest from the holding means of the pixel of interest. The label number output from the second and third holding means is selectively input based on the detection result of the connection detecting means.

(作用)。(action).

第2及び第3の保持手段に保持されたラベル番号は、連
結検出手段からのデータに基づき、あるタイミングでワ
イヤードオア回路に択一的に入力される。したがって、
ワイヤードオア回路の出力を、そのまま選択されたラベ
ル番号として以後使用することができる。この場合、連
結成分が非常に多くても回路規模が増加することは殆ど
ない。
The label numbers held in the second and third holding means are selectively input to the wired-OR circuit at a certain timing based on data from the connection detection means. therefore,
The output of the wired-OR circuit can then be used as it is as the selected label number. In this case, even if there are a large number of connected components, the circuit scale will hardly increase.

(実施例) 以下、本発明の一実施例について説明する。(Example) An embodiment of the present invention will be described below.

第1図は本発明の一実施例に係る画像処理装置の構成を
示す図である。
FIG. 1 is a diagram showing the configuration of an image processing apparatus according to an embodiment of the present invention.

このi置は、画素連結の有無、その方向などを検出する
連結成分抽出部21と、検出された連結成分のラベルを
統合・整理する連結処理部22とに大別される。
This i-position is roughly divided into a connected component extraction section 21 that detects the presence or absence of pixel connections, their directions, etc., and a connection processing section 22 that integrates and organizes the labels of the detected connected components.

連結成分抽出部L1は次のように構成される。The connected component extraction unit L1 is configured as follows.

即ち、制御回路30は、この装置の処理タイミングを指
示する回路で、第2図に示すようなP1〜P4 、W1
〜W4の4サイクルの時分割パルスを出力する。
That is, the control circuit 30 is a circuit that instructs the processing timing of this device, and controls P1 to P4, W1 as shown in FIG.
Outputs a 4-cycle time-division pulse of ~W4.

ラインバッファ31は、−走査前の二値画像データ(゛
0パ、“1°′のデータ)と、各画像データのラベル番
号とを対にして格納するもので、アンド回路32を介し
て読出しのイネーブル状態が設定される。尚、ここでは
、黒画素に対してラベル番号を付加するものとし、白画
素についてはラベル番号が付与されないものとする。
The line buffer 31 stores the binary image data before scanning (data of '0' and '1') and the label number of each image data in pairs, and reads them out via the AND circuit 32. The enable state of is set. Here, it is assumed that a label number is added to a black pixel, and a label number is not added to a white pixel.

着目画素Pの二値化面(象データは、第1の保持手段で
あるフリップフロップ(以下rFFjと呼ぶ)33に格
納される。この着目画素Pの左上、上及び左に隣接する
各隣接画素A、B、Cの二値画像データ及びラベル番号
は、第2の保持手段であるラッチ回路34.35.36
にそれぞれ保持される。FF33及びラッチ回路34.
35は、Wlのタイミングで保持され、ラッチ回路36
はこれよりも前のW4の時点で保持される。
The binarized plane (image data) of the pixel of interest P is stored in a flip-flop (hereinafter referred to as rFFj) 33, which is a first storage means. The binary image data of A, B, and C and label numbers are stored in latch circuits 34, 35, and 36, which are second holding means.
are held respectively. FF33 and latch circuit 34.
35 is held at the timing of Wl, and the latch circuit 36
is held at W4, which is earlier than this.

これらFF33.ラッチ回路34,35.36に保持さ
れた計4ビットの二値画像データは、連結検出手段であ
るROM37の下位アドレスAO〜A3として与えられ
ている。また、このROM37の上位アへレスA4−八
〇には、P2〜P4の時分割パルスが与えられている。
These FF33. A total of 4 bits of binary image data held in the latch circuits 34, 35, and 36 are given as lower addresses AO to A3 of the ROM 37, which is a connection detection means. Further, time division pulses P2 to P4 are given to the upper address A4-80 of this ROM 37.

したがって、ROM37には、P2〜P4にかけて異な
るアドレスが与えられ、これに応じて異なるデータDO
〜D8を出力する。このデータDO〜D8は、後述する
各カウンタのカウントパルス、ゲートのイネーブルパル
ス、メモリのライトパルスなどに使用される。
Therefore, different addresses are given to the ROM 37 from P2 to P4, and accordingly different data DO
~D8 is output. The data DO to D8 are used as count pulses for each counter, gate enable pulses, memory write pulses, etc., which will be described later.

ROM37のoo 、oi端子には、第3の保持手段で
ある黒ラベルカウンタ(以下、rNNHJと呼ぶ)38
および白ラベルカウンタ(以下、rNNLJと呼ぶ)3
つが接続されている。 NNH38には次のようなラベ
ル番号が保持されている。即ち、着目画素が黒で隣接画
素が全て白の場合、着目画素Pには連結成分の始点を示
すものとして新たなラベル番号を付与する必要があるが
、上記NNH38には、この新たに付与すべきラベル番
号が格納されている。一方、NNL39には、白画素の
新たなラベル番号が格納されるが、この黒画素のみにラ
ベル番号を付与する場合には使用しない。
A black label counter (hereinafter referred to as rNNHJ) 38, which is a third holding means, is connected to the oo and oi terminals of the ROM 37.
and white label counter (hereinafter referred to as rNNLJ) 3
are connected. The following label numbers are held in the NNH38. That is, when the pixel of interest is black and all adjacent pixels are white, it is necessary to give a new label number to the pixel of interest P as indicating the starting point of the connected component, but this new label number is not assigned to the above NNH38. The label number to be used is stored. On the other hand, a new label number for a white pixel is stored in the NNL 39, but it is not used when assigning a label number only to this black pixel.

これらNNH38,NNL39は、ROM37のデータ
Do、D+の変化によってカウント動作を行ない、その
出力は通常はハイインピーダンス状態で、データD7.
D8の“′0″出力によってイネーブル状態となりラベ
ルバス41に出力される。また、3つのラッチ回路34
〜36からの出力は、3ステートゲート42,43.4
4を各別に介して上記ラベルバス41に与えられている
These NNH38 and NNL39 perform counting operations according to changes in data Do and D+ in the ROM 37, and their outputs are normally in a high impedance state, and data D7.
The "0" output from D8 enables the enable state and is output to the label bus 41. In addition, three latch circuits 34
The outputs from ~36 are the three-state gates 42, 43.4
4 separately to the label bus 41.

これら3つのゲート42〜44も、その出力は通常はハ
イインピーダンス状態であり、ROM37の02 、D
3 、D4出力がo ”になるとイネーブル状態となる
。つまり、これらNNH38゜NNL39及びゲート4
2〜44は、ラベルバス41に対してワイヤードオア接
続されており、このワイヤードオア接続と上記イネーブ
ルパルスとによってラベルの選択手段が構成されている
。このラベルバス41へ出力されるラベル番号は、W4
のタイミングでラインバッファ31、ラッチ回路36及
び連結処理部22の連結テーブルに入力される。
The outputs of these three gates 42 to 44 are also normally in a high impedance state, and the outputs of the ROM 37 02, D
3, when the D4 output becomes o'', it becomes an enable state.In other words, these NNH38°NNL39 and gate 4
2 to 44 are wired-OR connected to the label bus 41, and this wired-OR connection and the enable pulse constitute a label selection means. The label number output to this label bus 41 is W4
The signal is input to the line buffer 31, latch circuit 36, and connection table of the connection processing section 22 at the timing of .

連結処理部22は、制御カウンタ51と、2つのメモリ
52.53と、連結ラベル統合部54と、連結テーブル
55とで構成されている。
The concatenation processing section 22 includes a control counter 51, two memories 52 and 53, a concatenation label integration section 54, and a concatenation table 55.

2つのメモリ52.53は、着目画素Pに隣接画素C,
Bが連結されていて、かつ隣Ig:画素B。
Two memories 52 and 53 store pixel C adjacent to pixel P of interest,
B is connected and adjacent Ig: pixel B.

Cのラベル番号が異なる場合、着目画素Pにいずれのラ
ベル番号を付与すべきかを決定するため、−次的に両隣
多画素B、Cのラベル番号を保持しておくもので、例え
ば隣接画素Cのラベル番号が第1のメモリ52に格納さ
れ、隣接画素Bのラベル番号が第2のメモリ53に格納
される。  ゛連結ラベル統合部54は、これら2つの
メモリ52.53に格納された同一アドレスの異なるラ
ベル番号を統合し連結テーブル55に格納するものであ
る。なお、制御カウンタ51は、これらメモリ52.5
3及び連結ラベル統合部54のアドレスを制御するカウ
ンタである。
When the label numbers of C are different, in order to determine which label number should be assigned to the pixel of interest P, the label numbers of the neighboring multi-pixels B and C are held on both sides. The label number of the adjacent pixel B is stored in the first memory 52, and the label number of the adjacent pixel B is stored in the second memory 53. The concatenated label integrating unit 54 is for consolidating the different label numbers of the same address stored in these two memories 52 and 53 and storing them in the concatenated table 55. Note that the control counter 51 is connected to these memories 52.5.
3 and the address of the connected label integration unit 54.

以上のように構成された画像連結装置において、着目画
素Pとその隣接画素A、B、Cが第3図のd1〜d16
の各場合、着目画素Pに次のようなラベル番号が付与さ
れる。
In the image linking device configured as described above, the pixel of interest P and its adjacent pixels A, B, and C are arranged as shown in d1 to d16 in FIG.
In each case, the following label number is given to the pixel P of interest.

即ち、先ず、di 、d2.d3.d5.d6゜d12
.d13及び(j15のケースは、着目画素が”0°′
(白)であるから、ラベル番号は付与されない。
That is, first, di, d2. d3. d5. d6゜d12
.. In the cases of d13 and (j15, the pixel of interest is "0°"
(white), so no label number is assigned.

di、d14のケースは、着目画素Pは隣接画素B、C
が白であるから、連結成分の始点とされる。
In the case of di, d14, the pixel of interest P is adjacent pixels B, C
Since is white, it is taken as the starting point of the connected component.

なお、d14では隣接画素Aとはいわゆる「4連拮」で
あるため、この場合には離れていると見なされる。この
ため、着目画素PにはNNH38に保持された新たなラ
ベル番号が付与される。
Note that in d14, the adjacent pixel A is in a so-called "four-in-a-row" relationship, so in this case, it is considered that they are far apart. Therefore, a new label number held in the NNH 38 is assigned to the pixel P of interest.

d7 、 dlo、 di6の場合には、着目画素Pが
隣接画素Cと連結しているので、ラッチ回路36内のラ
ベル番号が付与される。
In the case of d7, dlo, and di6, since the pixel P of interest is connected to the adjacent pixel C, a label number within the latch circuit 36 is assigned.

C18,dllの場合には、着目画素Pが隣接画素Bと
連結されているので、ラッチ回路35に保持されたラベ
ル番号が付与される。
In the case of C18, dll, since the pixel P of interest is connected to the adjacent pixel B, the label number held in the latch circuit 35 is assigned.

d9の場合には、着目画素Pが隣接画素Bと隣接画素C
とに連結されており、しかもこれら隣接画素B、Cのラ
ベル番号が異なる場合が考えられる。したがって、この
場合には、隣接画素Cのラベル番号を仮に付与しておく
とともに、前述したようにメモリ52.53にそれぞれ
隣接画素C1Bのラベル番号を保持し、後の統合処理に
供する。
In the case of d9, the pixel P of interest is adjacent pixel B and adjacent pixel C.
It is conceivable that the adjacent pixels B and C have different label numbers. Therefore, in this case, the label number of the adjacent pixel C is provisionally assigned, and the label number of the adjacent pixel C1B is held in the memories 52 and 53, respectively, as described above, and is used for later integration processing.

第4図は二値画像データの一例を示す図である。FIG. 4 is a diagram showing an example of binary image data.

このような画像が入力された場合、ラスタスキャンによ
って暫く第3図d15のパターンを検出し、第4図(a
)の01の時点においてdiのパターンを検出する。こ
の時点ではラッチ回路36には既に′O″の二値画像デ
ータ及びラベル番号が格納されている。Plのパルスで
ラインバッファ31は読出しイネーブル状態となり、W
lのパルスで着目画素Pの二値画像データがFF33に
格納され、隣接画素A、Bの二値画像データ及びラベル
番号がラッチ回路34.35に格納される。
When such an image is input, the pattern shown in Fig. 3 d15 is detected for a while by raster scanning, and then the pattern shown in Fig. 4 (a) is detected.
) is detected at time 01 of di. At this point, the latch circuit 36 has already stored the binary image data of 'O' and the label number.The line buffer 31 enters the read enable state with the pulse of Pl, and the
The binary image data of the pixel P of interest is stored in the FF 33 with the pulse of l, and the binary image data and label numbers of the adjacent pixels A and B are stored in the latch circuits 34 and 35.

P2パルスがROM37に入力されると、ROM37の
アドレスは、第5図の第1段に示すように(01100
10)となる。その時、ROM37のデータは、開開に
示すように< 111111100 )となる。
When the P2 pulse is input to the ROM 37, the address of the ROM 37 becomes (01100) as shown in the first stage of FIG.
10). At that time, the data in the ROM 37 becomes <111111100) as shown in the figure.

P3パルスがROM37に入力されると、ROM37の
アドレスは、同図の第2段に示すように(101001
0)となる。その時、ROM37のデータは、同道に示
すように(111111101)となる。
When the P3 pulse is input to the ROM 37, the address of the ROM 37 is changed to (101001) as shown in the second stage of the figure.
0). At that time, the data in the ROM 37 becomes (111111101) as shown in the same road.

この結果、データの再下位ビットOOが“′1″゛に立
上がるので、NNH38がカウントアツプする。
As a result, the lower bit OO of the data rises to "1", so the NNH 38 counts up.

P4パルスがROM 37に入力されると、ROM37
のアドレスは、同図の第3段に示すように(11000
10)となる。その時、ROM37のデータは、同道に
示すように(011111100)となる。
When the P4 pulse is input to ROM 37, ROM 37
The address is (11000) as shown in the third row of the same figure.
10). At that time, the data in the ROM 37 becomes (011111100) as shown in the same road.

この結果、最上位ピットD8が゛oパに変化するので、
NNH38はイネーブル状態となってラベルバス41に
出力される。この時、続いてW4パルスがラインバッフ
ァ31.ラッチ回路36及び連結テーブル55に与えら
れるので、これらに着目画素PのラベルとしてNNH3
8の内容が格納される。以上の手順は、e2.e3.e
5についても同様である。
As a result, the top pit D8 changes to a hole, so
The NNH 38 is enabled and output to the label bus 41. At this time, the W4 pulse is then applied to the line buffer 31. Since it is given to the latch circuit 36 and the connection table 55, these are used as the label of the pixel P of interest NNH3.
The contents of 8 are stored. The above procedure is e2. e3. e
The same applies to 5.

次に、第4図(a)のe4の状態を検出した場合に、は
、上記と同様P1の時点でFF33及びラッチ回路34
〜36内にそれぞれデータが保持され、P2パルスがR
OM37に入力されると、ROM37のアドレスは、第
5図の第4段に示すように(0411010)となる。
Next, when the state of e4 in FIG. 4(a) is detected, the FF 33 and the latch circuit 34 are
~36 data are held respectively, and the P2 pulse is R
When input to the OM 37, the address of the ROM 37 becomes (0411010) as shown in the fourth stage of FIG.

その時、ROM 37のデータは、同道に示すように(
111111100)である。P3パルスがROM13
7に入力されると、ROM37のアドレスは、同図の第
5段に示すよウニ(1011010) トナル。ソノ時
、ROM37のデータは変わらず、同国に示すように (111111110)を維持する。P4パルスがRO
M37に入力されると、ROM37のアドレスは、同図
の第6段に示すように(1101010)となる。
At that time, the data in ROM 37 is as shown in the same way (
111111100). P3 pulse is ROM13
7, the address of the ROM 37 is uni (1011010) tonal as shown in the fifth row of the figure. At the time of recording, the data in ROM37 remains unchanged and remains (111111110) as shown in the same country. P4 pulse is RO
When input to M37, the address of the ROM 37 becomes (1101010) as shown in the sixth row of the figure.

その時、ROM37のデータは、同国に示すよ)に(1
11111000)となる。この結果、データD2が“
0パに変化するので、ゲート42はイネーブル状態とな
ってラベルバス41にラッチ回路35に保持されたラベ
ル番号が出力される。この時、続いてW4パルスがライ
ンバッファ31.ラッチ回路36及び連結テーブル55
に与えられるので、これらに着目画素Pのラベルとして
隣接画素Bのラベル番号が格納される。
At that time, the data in ROM37 will be shown to the country (1
11111000). As a result, data D2 becomes “
Since the signal changes to 0, the gate 42 becomes enabled and the label number held in the latch circuit 35 is output to the label bus 41. At this time, the W4 pulse is then applied to the line buffer 31. Latch circuit 36 and connection table 55
, the label number of the adjacent pixel B is stored as the label of the pixel P of interest.

同様にe6.e7のパターンを検出した場合には、P2
パルスがROM37に入力されると、ROM37のアド
レスは、第5図の第7段に示すように(0111011
)となる。その時、ROM37のデータは、同国に示す
ように(110111011)である。このため、ゲー
ト42がイネーブル状態となってラッチ回路35の内容
がラベルバス41に出力され1、メモリ53に記憶され
る。P3パルスがROM37に入力されると、ROM3
7のアドレスは、同図の第8段に示すように(1041
011)となる。その時、ROM37のデータは、同国
に示すように(111010111)となる。この結果
、ゲート43はイネーブル状態となり、ラッチ回路36
の内のラベル番号がラベルバス41に出力され、メモリ
52に保持される。P4パルスがROM37に入力され
ると、ROM37のアドレスは、同図の第9段に示すよ
うに(1101011)となる。その時、ROM37の
データは、同国に示すように(111110111’)
となる。この結果、ラッチ回路36に保持されたラベル
番号のラベルバス41上への出力が維持されるので、続
く〜v4パルスによって上記ラベル番号がラインバッフ
ァ31゜ラッチ回路36及び連結テーブル55に与えら
れる。
Similarly e6. If e7 pattern is detected, P2
When the pulse is input to the ROM 37, the address of the ROM 37 is changed to (0111011) as shown in the seventh stage of FIG.
). At that time, the data in the ROM 37 is (110111011) as shown in the same page. Therefore, the gate 42 is enabled, and the contents of the latch circuit 35 are output to the label bus 41 and stored in the memory 53. When P3 pulse is input to ROM37, ROM3
The address of 7 is (1041) as shown in the 8th row of the same figure.
011). At that time, the data in the ROM 37 will be (111010111) as shown in the same page. As a result, the gate 43 becomes enabled and the latch circuit 36
The label number within is output to the label bus 41 and held in the memory 52. When the P4 pulse is input to the ROM 37, the address of the ROM 37 becomes (1101011) as shown in the ninth stage of the figure. At that time, the data in ROM37 is as shown in the same country (111110111')
becomes. As a result, the output of the label number held in the latch circuit 36 onto the label bus 41 is maintained, so that the label number is applied to the line buffer 31.degree. latch circuit 36 and the connection table 55 by the subsequent ~v4 pulse.

このような操作が続けられると、連結テーブル55には
第4図(b)に示すようなラベル番号が保持される。
If such operations are continued, label numbers as shown in FIG. 4(b) are held in the concatenation table 55.

この状態では同一の連結成分に1.2.4の異なるラベ
ル番号が付与されているので、これを同一のラベル番号
に統一する必要がある。そこで、以下の操作によって、
これら連結成分のラベル統合処理が行われる。
In this state, different label numbers 1, 2, and 4 are assigned to the same connected component, so it is necessary to unify these to the same label number. Therefore, by the following operations,
Label integration processing for these connected components is performed.

まず、メモリ52の内容は第6図中f1に、メモリ53
の内容は同図f2に示される通りであり、これらは共に
同一の連結成分に付与されたラベル番号を意味している
。一方、連結テーブル55には、同図f3に示すような
4つのラベル番号が格納されている。舶述した2つのメ
モリ52.53のデータは、ラベル統合部54で比較さ
れ、ラベル番号の小さい方に統合される。この時、f3
のアドレス2と4の連結が失われないように、−時的に
アドレス4の内容であった2′′を保存し、再度アドレ
ス4の内容°“1′′とアドレス2の内容゛2′とを比
較して、アドレス2に1″を愚込む。この結果、最終的
には同図f4に示すように連結テーブル55の内容は統
合され、かつ並び変えられて“1″と3″とになる。
First, the contents of the memory 52 are shown in f1 in FIG.
The contents are as shown in f2 in the same figure, and these both mean label numbers given to the same connected component. On the other hand, the concatenation table 55 stores four label numbers as shown in f3 in the figure. The data in the two memories 52 and 53 described above are compared by the label integrating unit 54 and integrated into the one with the smaller label number. At this time, f3
In order not to lose the connection between addresses 2 and 4, save 2'', which was the content of address 4 temporarily, and re-create the content of address 4 ``1'' and the content of address 2 ``2''. , and insert 1'' into address 2. As a result, the contents of the concatenation table 55 are finally integrated and rearranged to become "1" and "3" as shown in f4 of the same figure.

以上の手順でラベル番号は求まるが、一般的な画像計測
においては、上記画像連結処理に加え、各連結成分の始
点、終点のx、y座標、これらの面積等を知る必要があ
る。この場合には、例えば第7図に示すように、連結処
理回路61で求められた各ラベルをカタログ作成回路6
2に与える。
Although the label number is determined by the above procedure, in general image measurement, in addition to the image connection process described above, it is necessary to know the x and y coordinates of the start point and end point of each connected component, their area, etc. In this case, for example, as shown in FIG.
Give to 2.

各ラベルの始点、終点のx、y座標及び面積は、走査時
にカタログ作成回路62と二次元カウンタ63とで計測
され、連結ラベル統合部54に同期して比較、加算、並
び変えの処理がなされる。連結統合された画像のx、y
!標の最小直(!!8点)、及び最大値(終点)、そし
て面積値は、カタログ作成回路62の内部のメモリに蓄
えられる。
The x, y coordinates and area of the start point and end point of each label are measured by the catalog creation circuit 62 and the two-dimensional counter 63 during scanning, and are compared, added, and rearranged in synchronization with the connected label integration unit 54. Ru. x, y of the concatenated and integrated image
! The minimum straightness (!!8 points), maximum value (end point), and area value of the target are stored in the internal memory of the catalog creation circuit 62.

以上のように本実施例によれば、選択手段としてワイヤ
ードオア回路を採用しているので、選択手段の回路構成
の簡単化を図ることができる。しかも、この実施例では
1つの処理を4つのサイクルの時分割処理によって行な
っているので、連結処理部では並列98理を行なう必要
がない、しだがって、これによっても回路構成の簡単化
が図れる。
As described above, according to this embodiment, since the wired-OR circuit is employed as the selection means, the circuit configuration of the selection means can be simplified. Moreover, in this embodiment, one process is performed by time-sharing processing of four cycles, so there is no need to perform parallel processing in the concatenation processing section. Therefore, this also simplifies the circuit configuration. I can figure it out.

なお、上述した実施例では、3つのラッチ回路の出力に
それぞれ3ステートゲートを配したが、イネーブル端子
付きのラッチ回路な用いれば、ROMのアドレス入力部
にアドレスラッチを設けておけば、各ゲートを省略でき
るので、さらに構成の簡単化を図ることができる。
In the above embodiment, three state gates were arranged at the outputs of the three latch circuits, but if a latch circuit with an enable terminal is used, each gate can be connected by providing an address latch at the address input section of the ROM. Since this can be omitted, the configuration can be further simplified.

また、以上の説明では、黒画素の連結を調べたが、白画
素のM語処理も、NNLを用いて同様に行なうことがで
きる。また、抽出する画素は2×3画素でも同様に4サ
イクルの連結処理は可能である。さらには走査方向も横
方向に限定されるものではなく、縦方向に走査するよう
にしても良い。
Further, in the above explanation, the connection of black pixels was investigated, but the M word processing of white pixels can be similarly performed using NNL. Further, even if the pixels to be extracted are 2×3 pixels, the 4-cycle concatenation process is similarly possible. Furthermore, the scanning direction is not limited to the horizontal direction, and scanning may be performed in the vertical direction.

[発明の効果コ 以上述べたように、本発明によれば、選択回路としてワ
イヤードオア回路を用い、着目画素に付与するラベル番
号を、連結検出手段の出力データによって択一的に選択
し、これを上記ワイヤードオア回路の入力に与えている
ので、選択回路の構成が簡略化でき、小形化、低価格化
の図れる画像連結処理装置を提供することができる。
[Effects of the Invention] As described above, according to the present invention, a wired-OR circuit is used as the selection circuit, and the label number to be given to the pixel of interest is selectively selected based on the output data of the connection detection means. is applied to the input of the wired-OR circuit, the configuration of the selection circuit can be simplified, and an image concatenation processing device that can be made smaller and lower in price can be provided.

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

第1図は本発明の一実施例に係る画像連結処理装置の構
成を示す回路図、第2図は同装置における制御パルスを
示すタイミング図、第3図は同装置における入カバター
ンの態様を示す図、第4図は同装置への入カニ圃画像の
例を示す図、第5図は同装置におけるROMの内容を示
す図、第6図は同装置における連結処理部の作用を説明
するため図、第7図は同装置の使用例を示すブロック図
、第8図は従来の面間処理装置の構成を示すブロック図
である。 1.31・・・ラインバッファ、2.33・・・フリッ
プフロップ回路、3〜5,34〜36・・・ラッチ回路
、6.37・・・ROM、7・・・マルチプレクサ、8
゜29・・・白ラベルカウンタ、9,38・・・黒ラベ
ルカウンタ、10.22・・・連結処理部、21・・・
連結成分抽出部、30・・・制御回路、42〜44・・
・3ステートゲート。 出願人代理人 弁理士 鈴江武彦 第3図 − 第2図 第4図 第6図
FIG. 1 is a circuit diagram showing the configuration of an image concatenation processing device according to an embodiment of the present invention, FIG. 2 is a timing diagram showing control pulses in the device, and FIG. 3 is a diagram showing an input pattern in the device. 4 is a diagram showing an example of a crab field image input to the device, FIG. 5 is a diagram showing the contents of the ROM in the device, and FIG. 6 is a diagram for explaining the operation of the connection processing section in the device. FIG. 7 is a block diagram showing an example of use of the same device, and FIG. 8 is a block diagram showing the configuration of a conventional inter-plane processing device. 1.31... Line buffer, 2.33... Flip-flop circuit, 3-5, 34-36... Latch circuit, 6.37... ROM, 7... Multiplexer, 8
゜29... White label counter, 9, 38... Black label counter, 10.22... Concatenation processing unit, 21...
Connected component extraction unit, 30... Control circuit, 42-44...
・3-state gate. Applicant's Representative Patent Attorney Takehiko Suzue Figure 3 - Figure 2 Figure 4 Figure 6

Claims (3)

【特許請求の範囲】[Claims] (1)着目画素の二値画像データを保持する第1の保持
手段と、上記着目画素に隣接する近傍画素の二値画像デ
ータ及びそのラベル番号を保持する第2の保持手段と、
新たに付与するラベル番号を保持する第3の保持手段と
、前記第1及び第2の保持手段で保持された二値画像デ
ータを元に前記着目画素と近傍画素との連結を検出する
連結検出手段と、該連結検出手段の検出結果に基づいて
前記第2及び第3の保持手段から着目画素に付与するラ
ベル番号を選択する選択手段とを具備した画像連結処理
装置において、 前記選択手段は、前記第2及び第3の保持手段の出力を
入力とするワイヤードオア回路で構成され、前記連結検
出手段の検出結果に基づき前記第2及び第3の保持手段
からのラベル番号出力を択一的に入力するものであるこ
とを特徴とする画像連結処理装置。
(1) a first holding unit that holds binary image data of a pixel of interest; a second holding unit that holds binary image data of neighboring pixels adjacent to the pixel of interest and their label numbers;
a third holding means for holding a newly assigned label number; and connection detection for detecting a connection between the pixel of interest and neighboring pixels based on the binary image data held by the first and second holding means. and a selection means for selecting a label number to be given to a pixel of interest from the second and third holding means based on the detection result of the connection detection means, the selection means comprising: It is constituted by a wired-OR circuit that receives the outputs of the second and third holding means as input, and selectively outputs the label number from the second and third holding means based on the detection result of the connection detection means. An image concatenation processing device characterized in that it is an input device.
(2)前記選択手段は、前記第2の保持手段に保持され
た近傍画素のうち異なるラベル番号を持つ複数の近傍画
素が前記着目画素に同時に連結することを前記連結検出
手段が検出した場合、前記連結検出手段の検出結果に基
づいて上記連結する複数のラベル番号を時分割入力する
ものであることを特徴とする特許請求の範囲第1項記載
の画像連結処理装置。
(2) The selection means is configured such that when the connection detection means detects that a plurality of neighboring pixels having different label numbers among the neighboring pixels held in the second holding means are simultaneously connected to the pixel of interest, 2. The image concatenation processing apparatus according to claim 1, wherein the plurality of label numbers to be concatenated are time-divisionally input based on the detection results of the concatenation detection means.
(3)前記第1及び第2の保持手段に二値画像データを
格納する第1のタイミング、前記連結する複数のラベル
番号を時分割入力する第2及び第3のタイミング、及び
前記着目画素にラベル番号を付与する第4のタイミング
の順に時分割処理されることを特徴とする特許請求の範
囲第2項記載の画像連結処理装置。
(3) A first timing for storing binary image data in the first and second holding means, a second and third timing for time-divisionally inputting the plurality of linked label numbers, and 3. The image concatenation processing device according to claim 2, wherein the image concatenation processing device performs time-division processing in the order of the fourth timing at which label numbers are assigned.
JP61171083A 1986-07-21 1986-07-21 Image connection processor Pending JPS6326784A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP61171083A JPS6326784A (en) 1986-07-21 1986-07-21 Image connection processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61171083A JPS6326784A (en) 1986-07-21 1986-07-21 Image connection processor

Publications (1)

Publication Number Publication Date
JPS6326784A true JPS6326784A (en) 1988-02-04

Family

ID=15916689

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61171083A Pending JPS6326784A (en) 1986-07-21 1986-07-21 Image connection processor

Country Status (1)

Country Link
JP (1) JPS6326784A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH03103703A (en) * 1989-09-19 1991-04-30 Yokogawa Electric Corp Image measuring instrument
JPH03206574A (en) * 1990-01-09 1991-09-09 Fujitsu Ltd Raster scan type labeling processing system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH03103703A (en) * 1989-09-19 1991-04-30 Yokogawa Electric Corp Image measuring instrument
JPH03206574A (en) * 1990-01-09 1991-09-09 Fujitsu Ltd Raster scan type labeling processing system

Similar Documents

Publication Publication Date Title
US5319606A (en) Blocked flash write in dynamic RAM devices
KR890004306B1 (en) Rasfer scan digital display system
EP0280320A2 (en) Graphics display controller equipped with boundary searching circuit
JPS6326784A (en) Image connection processor
JPS5832434B2 (en) recognition device
JPS58100888A (en) Image processor
JP3132771B2 (en) Image storage device and image processing device having the same
KR910004262B1 (en) Memory device having address control function
JP3011297B2 (en) High-speed image processing device
JPS58136093A (en) Display controller
JPH0758431B2 (en) Address line and data line connection system
JPH07118013B2 (en) Image data labeling method
JP2861435B2 (en) Pipeline type arithmetic unit
JPH064651A (en) Image processor
JPH08202324A (en) Picture data storage controller
JPH0129643Y2 (en)
JPS60232597A (en) Display unit
JPH03161879A (en) Image input device
JPS60218182A (en) Area sorting circuit
JPS61229175A (en) Pattern information processing system
JPS61131084A (en) Picture processor
JPH0371326A (en) Scanning adding device
JPS61214060A (en) Picture measuring circuit
JPS61269784A (en) Pattern detecting device
JPS6219726A (en) Color code detecting circuit