JPH0887597A - Image processor - Google Patents

Image processor

Info

Publication number
JPH0887597A
JPH0887597A JP6225062A JP22506294A JPH0887597A JP H0887597 A JPH0887597 A JP H0887597A JP 6225062 A JP6225062 A JP 6225062A JP 22506294 A JP22506294 A JP 22506294A JP H0887597 A JPH0887597 A JP H0887597A
Authority
JP
Japan
Prior art keywords
label
coordinate
mask
memory
image
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
JP6225062A
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 JP6225062A priority Critical patent/JPH0887597A/en
Publication of JPH0887597A publication Critical patent/JPH0887597A/en
Pending legal-status Critical Current

Links

Landscapes

  • Image Analysis (AREA)

Abstract

PURPOSE: To provide an image processor which can shorten the information processing time between a labeling circuit which has an input/output buffer and a coordinate memory. CONSTITUTION: This image processor has a label adding circuit 12 which scans an input binary image by using a mask of specific size and adds a specific label when an aimed point of the mask is a black pixel, a 1st memory 20 which stores the added label, a coordinate memory 18 which stores the storage address coordinates of the label, a circuit 16 which calculates the address coordinates of the start point and end point of a group of identical successive labels among plural obtained labels, a coordinate memory 18 which stores the address coordinates of the start point and end point of the obtained identical label group, and a control part which updates the contents of the coordinate memories each time the same label is added, prereads a white pixel as a black pixel and propagates nearby labels when the aimed point is the white pixel and a specific mask output, and performs the coordinate processing of a label connected image on the basis of the propagated label.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】この発明は、入力2値画像をラベ
リングして編集、統合処理することにより例えば文字画
像を抽出するための画像処理装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image processing apparatus for extracting, for example, a character image by labeling an input binary image, editing and integrating the input binary image.

【0002】[0002]

【従来の技術】従来のラベリング方式は、入力2値画像
を例えば2×3のマスク(以下近傍マスクと称する)を
用いてラスタ走査し、近傍マスクの注目点の画素とその
近傍画素とをもとに画像の連結性を求める。例えば各連
続した黒画素に同一ラベル番号を付加し、それと同時に
同一ラベル画素同士の座標(始点・終点)比較、面積の
加算を行ない、出力情報としてラベル連結画像の座標情
報、面積情報を得る。なお、この段階で得られるラベル
を仮ラベルと称している。
2. Description of the Related Art In a conventional labeling method, an input binary image is raster-scanned by using, for example, a 2 × 3 mask (hereinafter referred to as a neighborhood mask), and a pixel of interest of the neighborhood mask and its neighborhood pixels are also scanned. And connect the images. For example, the same label number is added to each continuous black pixel, and at the same time, the coordinates (start point / end point) of the same label pixels are compared and the areas are added, and the coordinate information and the area information of the label connected image are obtained as output information. The label obtained at this stage is called a temporary label.

【0003】ラベリングの対象画像を黒画像とすれば、
ラベル番号付けの近傍マスク処理は注目点が黒画素にな
ったとき新規ラベルを付加し、または連続黒画素の場合
は注目点の近傍からのラベルの伝搬を行ない、上記出力
情報を得ている。そしてラスタ走査終了後、仮ラベルの
編集・統合処理を行い、異なる仮ラベル番号が付加され
た画像同士が連結していると判明した場合は、その座標
比較処理、面積加算を行ない、異種仮ラベル画像に同一
の本ラベルを付加した画像の情報が得られる。このよう
にして得られた画像情報を用いて例えば文字画像が抽出
される。
If the target image for labeling is a black image,
In the label numbering neighborhood masking process, a new label is added when the target point becomes a black pixel, or in the case of continuous black pixels, the label is propagated from the vicinity of the target point to obtain the output information. After raster scanning, edit / integrate temporary labels, and if it is found that images with different temporary label numbers are connected, coordinate comparison processing and area addition are performed for different temporary labels. Information of the image obtained by adding the same book label to the image is obtained. A character image, for example, is extracted using the image information obtained in this way.

【0004】このように、ラベリング処理は画像処理装
置、例えば文字読取装置における画像の抽出に利用され
る。文字読取装置においては、文字画像を抽出する場
合、対象となる文字画像は一般にほぼ同じ程度の大きさ
を持っていることから、極端に小さい画像、極端に大き
い画像を外部CPU処理で除去し、残りの画像を編集し
て文字画像を抽出するようにする。
As described above, the labeling process is used for image extraction in an image processing device, for example, a character reading device. In a character reading device, when a character image is extracted, the target character image generally has approximately the same size, so an extremely small image and an extremely large image are removed by an external CPU process. Edit the remaining images to extract character images.

【0005】[0005]

【発明が解決しようとする課題】従来、入力2値画像に
対し、近傍マスクの注目点が黒画素の時、ラベル番号付
けを行なうと同時に外部座標メモリに記憶された座標の
比較処理で黒画素の連続性を検出して連結画像の始点・
終点座標を求めている。ASIC、FPGA等で構成さ
れたラベリング回路においては、このラベリング回路内
に設けられ外部座標メモリとの間に接続された入出力バ
ッファに時間遅延が発生する。このため、近傍マスクの
注目点が黒画素であることが分かった後で外部の座標メ
モリの情報を読み出す動作を開始すると座標演算に時間
がかかることになる。
Conventionally, when a target point of a neighborhood mask is a black pixel for an input binary image, label numbering is performed and at the same time, a black pixel is processed by a comparison process of coordinates stored in an external coordinate memory. The continuity of the
Seeking the end point coordinates. In the labeling circuit composed of ASIC, FPGA, etc., a time delay occurs in the input / output buffer provided in the labeling circuit and connected to the external coordinate memory. Therefore, if the operation of reading information from the external coordinate memory is started after it is found that the target point of the neighboring mask is the black pixel, the coordinate calculation takes time.

【0006】さらに仮ラベルを本ラベルに編集・統合処
理する際も同様の状態が生じる。また、画像の抽出にお
いても、生成された外部の座標メモリを直接外部CPU
で比較処理するには多大な時間を要する。そこで、この
発明は、入出力バッファを有するラベリング回路と座標
メモリとの間の情報処理時間を短縮できる画像処理装置
を提供することを目的とする。
A similar situation occurs when the temporary label is edited / integrated into this label. Also, when extracting an image, the generated external coordinate memory is directly connected to the external CPU.
It takes a lot of time to carry out the comparison process. Therefore, an object of the present invention is to provide an image processing device capable of shortening the information processing time between a labeling circuit having an input / output buffer and a coordinate memory.

【0007】[0007]

【課題を解決するための手段】この発明の画像処理装置
は、入力2値画像を所定サイズのマスクを用いてラスタ
走査する手段と、前記マスクの注目点が黒画素の時に所
定のラベルを付加する手段と、この付加されたラベルを
記憶する第1のメモリと、このラベルの記憶アドレス座
標を記憶する座標メモリと、得られた複数のラベルのう
ち連続する同一ラベル群の始点、終点のアドレス座標を
求める手段と、得られた同一ラベル群の始点、終点のア
ドレス座標を記憶する座標メモリと、同一ラベルが付加
される都度前記座標メモリの内容を更新する手段と、前
記注目点が白画素でかつ特定のマスク出力のときにこの
白画素を黒画素と先き読みして近傍ラベルの伝搬を行う
手段と、伝搬されたラベルに基づいてラベル連結画像の
座標処理を行う手段と、を具備することを特徴とする。
An image processing apparatus according to the present invention adds a predetermined label when raster-scanning an input binary image by using a mask of a predetermined size and when a target point of the mask is a black pixel. Means, a first memory for storing the added label, a coordinate memory for storing the storage address coordinates of this label, and the start and end addresses of the same continuous label group among the obtained plurality of labels. A means for obtaining coordinates, a coordinate memory for storing the obtained address coordinates of the start point and the end point of the same label group, means for updating the contents of the coordinate memory each time the same label is added, and the target point being a white pixel. In addition, at the time of a specific mask output, the white pixel is pre-read as a black pixel to propagate the neighboring label, and the means for performing coordinate processing of the label connected image based on the propagated label. Characterized by comprising the, the.

【0008】この発明の画像処理装置は、入力2値画像
を所定サイズのマスクを用いてラスタ走査する手段と、
前記マスクの注目点が黒画素の時に所定の仮ラベルを付
加する手段と、この付加された仮ラベルを記憶する第1
のメモリと、この仮ラベルの記憶アドレス座標を記憶す
る座標メモリと、得られた複数の仮ラベルのうち連続す
る同一ラベル群の始点、終点のアドレス座標を求める手
段と、得られた同一仮ラベル群の始点、終点のアドレス
座標を記憶する座標メモリと、 同一仮ラベルが付加さ
れる都度前記座標メモリの内容を更新する手段と、前記
注目点が白画素でかつ特定のマスク出力のときにこの白
画素を黒画素と先き読みして近傍ラベルの伝搬を行う手
段と、伝搬された仮ラベルに基づいて仮ラベル連結画像
の座標処理を行う手段と、得られた仮ラベル連結画像の
座標を用いて本ラベルへの編集・統合処理を行う手段
と、を具備することを特徴とする。
The image processing apparatus of the present invention comprises means for raster-scanning the input binary image using a mask of a predetermined size,
A means for adding a predetermined temporary label when the target point of the mask is a black pixel, and a first means for storing the added temporary label.
Of the temporary label, a coordinate memory for storing the storage address coordinates of the temporary label, a means for obtaining the address coordinates of the start point and the end point of the same continuous label group among the plurality of obtained temporary labels, and the obtained same temporary label. A coordinate memory for storing the address coordinates of the start point and the end point of the group, a means for updating the contents of the coordinate memory each time the same temporary label is added, and a means for updating when the target point is a white pixel and a specific mask output. A means for pre-reading a white pixel as a black pixel to propagate a neighboring label, a means for performing coordinate processing on a temporary label connected image based on the transmitted temporary label, and a coordinate for the obtained temporary label connected image Means for performing editing / integration processing to this label by using the label.

【0009】この発明の画像処理装置は、入力2値画像
を所定サイズのマスクを用いてラスタ走査し、マスクの
注目点が黒画素の時に所定のラベルを付加するととも
に、前記注目点が白画素でかつ特定のマスク出力のとき
にこの白画素を黒画素と先き読みして近傍ラベルの伝搬
を行うことによりラベリングを行うラベリング回路と、
前記ラベリング回路から生成されたラベルの座標を記憶
する外部座標メモリと、前記ラベリング回路と外部座標
メモリとの間に接続されたバッファ回路と、を具備する
ことを特徴とする。
The image processing apparatus according to the present invention raster-scans an input binary image using a mask of a predetermined size, adds a predetermined label when the target point of the mask is a black pixel, and the target point is a white pixel. And at the time of a specific mask output, the labeling circuit that performs the labeling by pre-reading this white pixel as a black pixel and propagating the neighborhood label,
An external coordinate memory for storing the coordinates of the label generated from the labeling circuit, and a buffer circuit connected between the labeling circuit and the external coordinate memory are provided.

【0010】[0010]

【作用】この発明の画像処理装置は、入力2値画像を所
定サイズのマスクを用いてラスタ走査し、マスクの注目
点が黒画素の時に所定のラベルを付加するとともに、前
記注目点が白画素でかつ特定のマスク出力のときにこの
白画素を黒画素と先き読みして近傍ラベルの伝搬を行う
ことにより、入出力バッファを有するラベリング回路と
座標メモリとの間の情報処理時間を短縮するようにした
ものである。
According to the image processing apparatus of the present invention, an input binary image is raster-scanned using a mask of a predetermined size, a predetermined label is added when the target point of the mask is a black pixel, and the target point is a white pixel. And at the time of a specific mask output, the white pixels are read ahead as black pixels to propagate the neighborhood label, thereby shortening the information processing time between the labeling circuit having the input / output buffer and the coordinate memory. It was done like this.

【0011】[0011]

【実施例】以下、この発明の一実施例について図面を参
照して説明する。図1は本発明の一実施例構成図であ
る。図1の実施例における処理は、ラスタ走査による仮
ラベル付加処理と仮ラベルの編集・統合処理に分けられ
る。ラスタ走査時の入力情報としては制御信号発生部1
1に対するクロック信号、主走査方向のラインエンド信
号、画像全面のフレームエンド信号と、仮ラベルのラベ
ル付加部12に対するクロック信号に同期した2値画像
データである。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described below with reference to the drawings. FIG. 1 is a block diagram of an embodiment of the present invention. The processing in the embodiment of FIG. 1 is divided into a temporary label addition processing by raster scanning and a temporary label editing / integration processing. The control signal generator 1 is used as input information during raster scanning.
The binary image data is synchronized with the clock signal for 1, the line end signal in the main scanning direction, the frame end signal for the entire surface of the image, and the clock signal for the label adding unit 12 of the temporary label.

【0012】図1の制御信号発生部11はラスタ走査時
のマスク信号を発生し、ラベル付け部12において入力
2値画像にラベル番号付けを行なう。ラベル付け部12
の構成を図2に、近傍マスクとラベルの伝搬動作を図3
に、画像処理例を図4(a)、(b)、(c),(d)
に示す。
The control signal generator 11 shown in FIG. 1 generates a mask signal for raster scanning, and the labeling unit 12 assigns a label number to the input binary image. Labeling part 12
Fig. 2 shows the configuration of Fig. 2, and Fig. 3 shows the propagation operation of the neighborhood mask and label.
FIG. 4A, FIG. 4B, FIG. 4C, FIG.
Shown in

【0013】図2のラベル付け部12に含まれる制御部
12aは、ラスタ走査時のマスク信号により2×3の近
傍マスクM内の注目2値画素のみを近傍マスクMの注目
点Pに入力する。ここで近傍マスクMの注目点Pは2値
画素、A,B,Cは1ライン前に番号付けされラインバ
ッファに格納されていたラベル番号である。Dは1画素
前に番号付けされたラベルである。2値画素Pに対して
は、ラベルA,B,C,Dとの連結関係から新ラベル付
けまたはラベルの伝搬、すなわち同一ラベル付加が行な
われる。これまでに走査された画像と連結性のないと思
われる新たな画像が発生した場合は、図2の新ラベル番
号生成カウンタ12bの内容をPに付加し、新ラベル番
号生成カウンタ12bを次の新ラベルのためインクリメ
ントする。生成されたPのラベル番号は次のライン処理
のためセレクタ12cを介してラインバッファ12dに
格納されると共に図1のラベルバス13に出力される。
The control unit 12a included in the labeling unit 12 of FIG. 2 inputs only the binary pixel of interest in the 2 × 3 neighborhood mask M to the attention point P of the neighborhood mask M by the mask signal at the time of raster scanning. . Here, the attention point P of the neighborhood mask M is a binary pixel, and A, B, and C are label numbers numbered one line before and stored in the line buffer. D is a label numbered one pixel before. For the binary pixel P, a new label is attached or a label is propagated, that is, the same label is added, based on the connection relationship with the labels A, B, C, and D. When a new image that is considered to have no connectivity with the image scanned so far is generated, the contents of the new label number generation counter 12b of FIG. 2 are added to P, and the new label number generation counter 12b is set to the next value. Increment for new label. The generated label number of P is stored in the line buffer 12d through the selector 12c for the next line processing and is output to the label bus 13 of FIG.

【0014】図13は近傍マスクMによるラスタ走査に
よるラベル付けとその編集・統合処理のフローチャート
である。まず、図4を用いて図13のフローチャートに
おける入力2値画像の仮ラベル付け処理を説明する。
FIG. 13 is a flow chart of labeling by raster scanning with the neighborhood mask M and its editing / integrating processing. First, the temporary labeling processing of the input binary image in the flowchart of FIG. 13 will be described with reference to FIG.

【0015】図4(a)に入力2値画像を示した。ここ
で、“1”は黒画素を示し、空白部は白画素領域を示
す。このような入力2値画像を2×3の近傍マスクMで
ラスタ走査して行く。
FIG. 4A shows an input binary image. Here, "1" indicates a black pixel, and the blank portion indicates a white pixel area. Such an input binary image is raster-scanned with a 2 × 3 neighborhood mask M.

【0016】最初のステップS1で近傍マスクMによる
ラスタ走査が終了したかをチェックする。ここではラス
タ走査が開始されたばかりであるので、つぎのステップ
S2に進む。このステップS2では注目点Pに黒画素が
あるかをチェックする。
At the first step S1, it is checked whether or not the raster scanning by the neighborhood mask M is completed. Since the raster scanning has just been started here, the routine proceeds to the next step S2. In this step S2, it is checked whether or not the target point P has a black pixel.

【0017】図4(a)中でJで示した近傍マスクM位
置で注目点Pが“1”となり、図3の(17)の組み合
わせが得られる。これは、この入力画像で最初に得られ
た黒画素であり、これがステップS3で検知され、ステ
ップS4に進んで新ラベル番号1が付加される。
At the position of the neighboring mask M indicated by J in FIG. 4A, the target point P becomes "1", and the combination of (17) in FIG. 3 is obtained. This is the black pixel first obtained in this input image, which is detected in step S3, and the process proceeds to step S4, and the new label number 1 is added.

【0018】なお、近傍マスクMでラスタ走査して行く
に従って、図1の制御信号発生部11からはアドレス信
号が発生され、これがアドレス発生部16に供給され
る。アドレス発生部16からはX,Y座標データが出力
され、これがラベル付加部12およびカタログ作成部1
7に与えられる。カタログ作成部17は後述する連結画
像の始点、終点座標XL、XR、YT、YBを生成し、
外部の座標メモリ18に与える。ここで、カタログ作成
部17は図1のラベルバス13、データバス14、コマ
ンドバス15を介してラベリング回路を構成する回路ユ
ニット11、12、16、17、19に接続され、更
に、後述する編集・統合プログラム回路21およびCP
Uインターフェイス回路22に接続されている。CPU
インターフェイス回路22はさらに図示しないCPUに
接続されている。
As the raster scanning is performed by the neighborhood mask M, an address signal is generated from the control signal generator 11 of FIG. 1 and is supplied to the address generator 16. The address generation unit 16 outputs X, Y coordinate data, which is the label addition unit 12 and the catalog creation unit 1.
7 given. The catalog creating unit 17 creates start point and end point coordinates XL, XR, YT, YB of the connected image described later,
It is given to the external coordinate memory 18. Here, the catalog creating unit 17 is connected to the circuit units 11, 12, 16, 17, and 19 which form the labeling circuit via the label bus 13, the data bus 14, and the command bus 15 of FIG. -Integrated program circuit 21 and CP
It is connected to the U interface circuit 22. CPU
The interface circuit 22 is further connected to a CPU (not shown).

【0019】新ラベル番号1が付加されると同時に次の
ステップS5にて外部メモリに座標データが格納され
る。すなわち、新ラベル番号1が付加されると、これに
対応して図4(d)の連結テーブルadrs1にラベル
1を、座標メモリのadrs1に始点・終点情報を書き
込む。
At the same time that the new label number 1 is added, the coordinate data is stored in the external memory in the next step S5. That is, when the new label number 1 is added, the label 1 is written in the concatenation table adrs1 of FIG. 4D and the start point / end point information is written in the coordinate memory adrs1 in correspondence with this.

【0020】図1の回路では、この連結テーブルアドレ
スadrs1は、バス13およびバス15に接続された
連結処理部19を介して接続された連結テーブルメモリ
20のアドレスであり、座標メモリのアドレスadrs
1はカタログ作成部17を介してバス13、14、15
に接続された外部の座標メモリ18のアドレスである。
In the circuit of FIG. 1, the concatenation table address adrs1 is the address of the concatenation table memory 20 connected via the concatenation processing unit 19 connected to the bus 13 and the bus 15, and is the address adrs of the coordinate memory.
1 is buses 13, 14, 15 via the catalog creating unit 17.
This is the address of the external coordinate memory 18 connected to.

【0021】その後の走査で図4(a)の入力2値画像
の右から2列目の最上端の画素1がその注目点Pに来る
と、新しく図3の(17)の組み合わせが得られ、2番
目の新ラベル番号2が付加されることになる。以下同様
に新しく図3の(17)の組み合わせが得られる都度、
新たなラベル番号3、4、5、6が付加されて行く。
When the uppermost pixel 1 in the second column from the right of the input binary image of FIG. 4A comes to the point of interest P in the subsequent scanning, the new combination of (17) in FIG. 3 is obtained. The second new label number 2 will be added. Similarly, each time a new combination (17) in FIG. 3 is obtained,
New label numbers 3, 4, 5 and 6 are added.

【0022】得られたラベル番号は図1の連結テーブル
メモリ20、座標メモリ18へ書き込まれる。他の組み
合わせの黒画素Pは図3に示す黒画素の連結関係から注
目点Pにラベル番号を付加し座標メモリ18との大小比
較演算から座標メモリ18の更新を行なう。
The obtained label number is written in the concatenation table memory 20 and the coordinate memory 18 shown in FIG. With respect to the black pixels P of other combinations, a label number is added to the point of interest P from the connection relationship of the black pixels shown in FIG. 3, and the coordinate memory 18 is updated from the size comparison operation with the coordinate memory 18.

【0023】ステップS3において新たな黒画素ではな
いことが検知されると、次のステップS6に進んでラベ
ルの伝搬が行われる。例えば、図4(a)中でJで示し
た近傍マスクM位置の直下の画素一つ分下げた位置で
は、その注目点Pが“1”であることが分かる前の段階
では、図3の(3)の組み合わせとなる。この場合、も
しその注目点Pが“1”であれば、図4(a)の入力2
値画像の右端の上から1つ目と2つ目の黒画素が連続し
ていることになり、新ラベル番号は付加されず、2つ目
の画素には、図3の(3)の矢印で示したように、ラベ
ル番号1が伝搬され、付加される。同様に、図4(a)
の入力2値画像の右端の画像についてはその最下端の画
素を除いてすべてラベル番号1が伝搬され、付加され
る。
When it is detected in step S3 that the pixel is not a new black pixel, the process proceeds to the next step S6 and the label is propagated. For example, at a position lower by one pixel immediately below the position of the neighboring mask M indicated by J in FIG. 4A, at a stage before it is known that the attention point P is “1”, It becomes the combination of (3). In this case, if the target point P is "1", the input 2 in FIG.
The first black pixel and the second black pixel from the right end of the value image are continuous, the new label number is not added, and the second pixel is indicated by the arrow (3) in FIG. As indicated by, the label number 1 is propagated and added. Similarly, FIG.
The label number 1 is propagated and added to the rightmost image of the input binary image except for the lowest pixel.

【0024】ステップS6においてラベルの伝搬が行わ
れた際に、二つの異種ラベルの連結が発生したかを次の
ステップS7でチェックする。たとえば、図4(a)の
入力2値画像をラスタ走査していくとマスクMに画素K
の組み合わせが検出される。この場合、注目点Pへのラ
ベルの伝搬は一意に決定できないため、仮にD点のラベ
ルを伝搬し、ステップS8において、異種ラベルの連結
情報として図4(c)の連結対テーブル1と連結対テー
ブル2にそれぞれDのラベル6とCのラベル5を格納す
る。連結対テーブル1と連結対テーブル2はそれぞれ図
1の連結処理部19を介して接続された連結対1メモリ
23と連結対2メモリ24とに格納される。
It is checked in the next step S7 whether or not two different labels are connected when the label is propagated in step S6. For example, when raster scanning of the input binary image of FIG.
Is detected. In this case, since the propagation of the label to the point of interest P cannot be uniquely determined, the label at the point D is tentatively propagated, and in step S8, the concatenated pair table 1 and the concatenated pair of FIG. The label 6 of D and the label 5 of C are stored in the table 2, respectively. The concatenated pair table 1 and the concatenated pair table 2 are stored in the concatenated pair 1 memory 23 and the concatenated pair 2 memory 24, respectively, which are connected via the concatenation processing unit 19 of FIG.

【0025】図4(a)の画素Lの組み合わせの場合
は、マスクMの左端の座標比較処理が必要である。Lの
組み合わせが発生したらこれを示す信号Lが図7の回路
に供給されこの回路を起動する。L信号発生から2クロ
ック目の立上がりでフリップフロップF/F1の出力が
出力されると、遅延回路30の出力とともにOR回路3
1に送られ、このOR回路31の出力信号で座標メモリ
18の連結画像の左端の座標XLの情報を読み込み、次
に座標比較してLの組み合わせ画素の注目点PのXL座
標が外部座標メモリ18の対応位置のXL座標値よりも
小さければ、次のクロックでフリップフロップF/F2
の出力でNAND回路32から出力をえて座標メモリ1
8を書き換える。
In the case of the combination of the pixels L of FIG. 4A, the coordinate comparison processing of the left end of the mask M is necessary. When a combination of L is generated, a signal L indicating this is supplied to the circuit of FIG. 7 to activate this circuit. When the output of the flip-flop F / F1 is output at the rise of the second clock from the generation of the L signal, the output of the delay circuit 30 and the OR circuit 3
1 and the information of the coordinate XL at the left end of the connected image in the coordinate memory 18 is read by the output signal of the OR circuit 31. Then, the coordinates are compared and the XL coordinate of the attention point P of the combination pixel of L is stored in the external coordinate memory. If it is smaller than the XL coordinate value of the corresponding position of 18, the flip-flop F / F2 at the next clock
Output from the NAND circuit 32 to output the coordinate memory 1
Rewrite 8.

【0026】ステップS2において黒画素でないと判明
した場合はステップS9に進む。例えば、図4(a)の
画素Mの組み合わせの場合は、マスクMの右端の座標比
較処理を行なう。注目点Pは白画素であるが、この場合
はステップS9にて特例白画素として扱い、この特例白
画素に対して次のステップS10にて黒画素のラベルの
伝搬を行なう。その後、ステップS11に進んで、次の
黒画素のラベル番号と共に座標メモリ18のXRの情報
を読み込み、ステップS12にて大小の比較処理を行
い、その結果、入力座標が大きければステップS13に
て図3の(9)の組み合わせの時、座標メモリ18を書
き換える。この場合、座標メモリ18のアドレスにはD
のラベル番号を充てる。
If it is determined in step S2 that the pixel is not a black pixel, the process proceeds to step S9. For example, in the case of the combination of the pixels M of FIG. 4A, the coordinate comparison processing of the right end of the mask M is performed. Although the point of interest P is a white pixel, in this case, it is treated as a special white pixel in step S9, and the label of the black pixel is propagated to this special white pixel in the next step S10. After that, the process proceeds to step S11, the XR information of the coordinate memory 18 is read together with the label number of the next black pixel, and the size comparison process is performed in step S12. As a result, if the input coordinate is large, the figure is displayed in step S13. In the case of the combination (3) of 3, the coordinate memory 18 is rewritten. In this case, the address of the coordinate memory 18 is D
Use the label number of.

【0027】Pが白画素であってもPにラベルの伝搬を
行なう近傍マスクMの組み合わせは、図3の(3),
(4),(11),(12)の場合である。これらは次
に発生するであろう黒画素における右端座標比較のため
である。
Even if P is a white pixel, the combination of the neighboring masks M for propagating the label to P is (3) in FIG.
This is the case of (4), (11), and (12). These are for the right edge coordinate comparison in the black pixel that will occur next.

【0028】前記説明のように近傍マスクMによるラス
タ処理に伴い、図4(b)の1,2,3,4,5,6の
仮ラベルが得られ、ラベル番号付けに同期して仮ラベル
の連結処理とその連結画像の始点・終点座標の処理が図
1のラベル付加回路12で行なわれる。 図1の連結処
理部では、レベル付け部12のラベル情報から連結テー
ブルメモリ20に連結情報を、連結対1メモリ23、連
結対2メモリ24には異種ラベルの連結対情報が格納さ
れている。また図1の制御信号発生部11のアドレス信
号を受けた2次元画像のアドレス発生部16はX,Yの
アドレスを発生する。ラベル付け部12で黒画素または
特例白画素が発生すると、事前に格納された同一ラベル
の座標を外部の座標メモリ18から読み込み、カタログ
作成部17で比較演算しその大小関係に応じて座標メモ
リ18の書き換えを行なう。ここでXLは連結画像の左
端座標、XRは右端座標、YTは上端座標、YBは下端
座標を意味する。
As described above, with the raster processing by the neighborhood mask M, the temporary labels 1, 2, 3, 4, 5, 6 of FIG. 4B are obtained, and the temporary labels are synchronized with the label numbering. 1 and the processing of the start point / end point coordinates of the connected image are performed by the label adding circuit 12 of FIG. In the concatenation processing unit of FIG. 1, concatenation information is stored in the concatenation table memory 20 from the label information of the leveling unit 12, and concatenation pair information of concatenation pair 1 memory 23 and concatenation pair 2 memory 24 is stored. Further, the address generation unit 16 of the two-dimensional image which receives the address signal of the control signal generation unit 11 of FIG. 1 generates X and Y addresses. When a black pixel or a special white pixel is generated in the labeling unit 12, the coordinates of the same label stored in advance are read from the external coordinate memory 18, the catalog creating unit 17 performs a comparison operation, and the coordinate memory 18 is calculated according to the size relation. Is rewritten. Here, XL means the left end coordinate of the connected image, XR means the right end coordinate, YT means the upper end coordinate, and YB means the lower end coordinate.

【0029】図4(b)の連結対情報を図4(c)に示
す。また連結テーブルと座標情報を図4(d)に示す。
XL1はラベル1の左始点、XR1はラベル1の右終
点、YT1はラベル1の上始点、YB1はラベル1の下
終点を意味する。ラベル2、ラベル3、ラベル4、ラベ
ル5、ラベル6の座標情報はそれぞれの番号に順ずる。
たとえばXL2はラベル2の左始点、XR2はラベル2
の右終点となる。
The concatenation pair information of FIG. 4 (b) is shown in FIG. 4 (c). A connection table and coordinate information are shown in FIG.
XL1 means the left start point of label 1, XR1 means the right end point of label 1, YT1 means the upper start point of label 1, and YB1 means the lower end point of label 1. The coordinate information of the label 2, the label 3, the label 4, the label 5, and the label 6 follows the respective numbers.
For example, XL2 is the left start point of label 2 and XR2 is the label 2
Will be the right end point of.

【0030】ここで、外部座標メモリ18の処理構成を
図8に示す。ラスタ走査時はラベル番号データをバッフ
ァ41を介してアドレスデータとしてメモリ18のアド
レス端子に与え、図1の2次元画像アドレス発生部16
からのX,Yアドレスデータを図3の近傍マスクMにお
ける画素の組み合わせに応じて演算処理する。図3の組
み合わせ(17)が発生すると、ラベル付け部12から
新規ラベル信号NNが発生し、この信号NNとクロック
とをナンド回路42に送り、クロックと“0”信号での
ナンド動作の結果を得る。このナンド回路42の出力は
ノア回路44にナンド回路43からのクロックと共に与
え、その出力がバッファ45を介してメメモリ18の書
き込み端子WTおよびトライステートバッファ(TST
BF)46の制御端子に与えられる。この結果、2次元
アドレス発生部16からの座標データがセレクタ47、
トライステートバッファ(TSTBF)46および双方
向性バッファ48を通して外部座標メモリ18に書き込
まれる。
Here, the processing configuration of the external coordinate memory 18 is shown in FIG. At the time of raster scanning, the label number data is given to the address terminal of the memory 18 as address data via the buffer 41, and the two-dimensional image address generator 16 of FIG.
The X and Y address data from the are processed according to the combination of pixels in the neighborhood mask M of FIG. When the combination (17) shown in FIG. 3 occurs, a new label signal NN is generated from the labeling unit 12, the signal NN and the clock are sent to the NAND circuit 42, and the result of the NAND operation with the clock and the "0" signal is displayed. obtain. The output of the NAND circuit 42 is given to the NOR circuit 44 together with the clock from the NAND circuit 43, and its output is passed through the buffer 45 to the write terminal WT of the memory 18 and the tri-state buffer (TST).
BF) 46 control terminal. As a result, the coordinate data from the two-dimensional address generation unit 16 is transferred to the selector 47,
It is written to the external coordinate memory 18 through the tri-state buffer (TSTBF) 46 and the bidirectional buffer 48.

【0031】一方、座標比較処理においては比較対象の
ラベル番号をバッファ41から与えて外部座標メモリ1
8の情報をバッファ48を介して読み出してラッチ(L
T1)50にラッチする。ラッチ(LT1)50にラッ
チされたデータは、セレクタ51によりラスタ走査マス
クMでセレクトされた2次元アドレス発生部16の座標
と比較器(CMP)52で比較し、大小関係に応じた比
較結果をナンド回路43に与え、クロックとのナンド出
力を得て、次のノア回路44を通った書き込み信号を書
き込み端子WTに与えて、外部座標メモリ18の書き換
えを行なう。
On the other hand, in the coordinate comparison process, the label number to be compared is given from the buffer 41 and the external coordinate memory 1
8 information is read via the buffer 48 and latched (L
T1) Latch to 50. The data latched in the latch (LT1) 50 is compared by the comparator (CMP) 52 with the coordinates of the two-dimensional address generation unit 16 selected by the raster scan mask M by the selector 51, and the comparison result according to the magnitude relation is obtained. The NAND circuit 43 is supplied with the NAND output to obtain a clock, and the write signal that has passed through the NOR circuit 44 is supplied to the write terminal WT to rewrite the external coordinate memory 18.

【0032】以上の処理、即ち図6のフレームエンド信
号が図1の制御信号発生部11に送られて、ラスタ走査
処理終了と同時に編集・統合プログラム回路21のプロ
グラムが起動する。
The above process, that is, the frame end signal of FIG. 6 is sent to the control signal generator 11 of FIG. 1, and the program of the editing / integrating program circuit 21 is started at the same time when the raster scanning process is completed.

【0033】以下、図13のフローチャートを参照して
仮ラベルの編集・統合処理を説明する。まず、ステップ
S21にて仮ラベル数が零であるかがチェックされる。
零でない場合はステップS22に進み、連結対データが
メモリに存在するかがチェックされる。
The editing / integrating process of the temporary label will be described below with reference to the flowchart of FIG. First, in step S21, it is checked whether the number of temporary labels is zero.
If it is not zero, the flow advances to step S22 to check whether the concatenated pair data exists in the memory.

【0034】連結対がある場合は、ステップS23に進
んで、連結対1ラベル番地の外部座標の読み込みを行
い、続いてステップS24において連結対2ラベル番地
の外部座標の読み込みを行う。この読み込まれたラベル
番地の大きい値を小ラベル値に連結させる動作を次のス
テップS25にて行い、両者の大小の座標比較をステッ
プS26にて行う。この比較の結果、ステップS27に
て小ラベル番地の外部座標を書き替える。この動作をス
テップS28にて仮ラベル数を1つづマイナスしながら
続けて行い、仮ラベル数が零となるまで続行する。
If there is a concatenated pair, the process proceeds to step S23 to read the external coordinates of the concatenated pair 1 label address, and subsequently, in step S24, read the external coordinates of the concatenated pair 2 label address. The operation of connecting the read large label address to the small label value is performed in the next step S25, and the large and small coordinates of the two are compared in step S26. As a result of this comparison, the external coordinates of the small label address are rewritten in step S27. This operation is continuously performed while decrementing the number of temporary labels by one in step S28, and is continued until the number of temporary labels becomes zero.

【0035】このように、編集・統合プログラムは図4
(c)の連結対1、2の仮ラベル同士の連結情報を用い
て図4(d)の連結テーブルに処理を施すためのもので
ある。その結果、図5(b)のようにラベル1を根にし
た連結情報とラベル4の情報が得られる。これらを編集
・統合して最終的に図5(c)の本ラベルの座標情報が
得られる。図5(c)の座標情報は図5(a)に示す矩
形画像情報として得られる。例えば、ラベル1の矩形画
像の左端座標XL=XL16,右端座標XR=XR1
6、上端座標YT=YT16、下端座標YB=YB16
となる。
Thus, the editing / integrating program is shown in FIG.
This is for performing processing on the concatenation table of FIG. 4D using the concatenation information of the temporary labels of the concatenation pair 1 and 2 of (c). As a result, as shown in FIG. 5B, the connection information rooted at label 1 and the information at label 4 are obtained. By finally editing and integrating these, the coordinate information of this label in FIG. 5C is obtained. The coordinate information of FIG. 5C is obtained as the rectangular image information shown in FIG. For example, the left edge coordinate XL = XL16 and the right edge coordinate XR = XR1 of the rectangular image of label 1
6, upper end coordinate YT = YT16, lower end coordinate YB = YB16
Becomes

【0036】編集・統合処理時は根(例えば図5の例で
のラベル1)のラベル番号の座標をメモリ18から読み
出してバッファ48からラッチ(LT1)50に格納す
る。その他のラベル番号の座標をラッチ(LT2)53
に格納し比較回路52で比較演算の結果、その大小関係
に応じて根のラベルアドレス(例えば1)の座標をラッ
チ(LT2)の内容に書き換える。すなわち、ラッチ5
3の内容をセレクタ47からトライステートバッファ
(TSTBF)46、バッファ48を介してメモリ18
に送る。
At the time of editing / integrating processing, the coordinates of the label number of the root (for example, label 1 in the example of FIG. 5) are read from the memory 18 and stored in the latch (LT1) 50 from the buffer 48. Latch coordinates of other label numbers (LT2) 53
The coordinates of the root label address (for example, 1) are rewritten to the contents of the latch (LT2) according to the magnitude relation as a result of the comparison operation in the comparison circuit 52. That is, the latch 5
3 contents from the selector 47 via the tristate buffer (TSTBF) 46 and the buffer 48 to the memory 18
Send to

【0037】バッファ41,45,48はASIC、F
PGA固有のバッファで遅延時間が大きい。そのためラ
スタ走査時は外部座標メモリ18の読み込みは、図7に
示したように、2画素クロック分用いて行う。編集・統
合処理においても同様の考えを導入しなければならない
が、この処理はクロックの速度に応じて切り替えるよう
にした。図9にその流れ図を示す。クロックの速度が早
く図8のバッファ41,45,48による遅延時間によ
り1ステップでは座標メモリ18の読み込みができない
場合は、図9(a)のように外部CPUで事前にモード
1を設定し、座標メモリ18からラッチ(LT1)5
0、ラッチ(LT2)53への読み込みをそれぞれ2ス
テップ(ST1A,ST1B)、(ST2A,ST2
B)で行なうことで安定した処理ができるようにした。
The buffers 41, 45, 48 are ASIC, F
It is a buffer unique to PGA and has a long delay time. Therefore, during raster scanning, the external coordinate memory 18 is read using two pixel clocks, as shown in FIG. The same idea must be introduced in the editing / integrating process, but this process is switched according to the clock speed. The flow chart is shown in FIG. If the clock speed is high and the coordinate memory 18 cannot be read in one step due to the delay time due to the buffers 41, 45, and 48 in FIG. 8, the external CPU sets the mode 1 in advance as shown in FIG. 9A. Latch (LT1) 5 from coordinate memory 18
0, reading into the latch (LT2) 53 in two steps (ST1A, ST1B), (ST2A, ST2)
By carrying out in B), stable processing can be performed.

【0038】一方、クロックの速度が遅延時間に影響さ
れない場合は、図9(b)のようにモード2を設定し、
ラッチ(LT1)50、ラッチ(LT2)53への読み
込みをそれぞれ1ステップ(ST1、ST2)で処理す
る。
On the other hand, when the clock speed is not affected by the delay time, mode 2 is set as shown in FIG.
Reading into the latch (LT1) 50 and the latch (LT2) 53 is processed in one step (ST1, ST2), respectively.

【0039】編集・統合処理時、即ち仮ラベルが零とな
ると、ステップS21からステップS29に進み、外部
メモリのソート(分類)を行い、次にステップS30に
進む。ここでは、本ラベルの座標演算を行なう際、本ラ
ベルの矩形座標とあらかじめ設定された矩形パラメータ
座標との比較を行ない、その比較結果に応じてフラグを
設定する。図10はその回路の構成例である。
During the editing / integrating process, that is, when the temporary label becomes zero, the process proceeds from step S21 to step S29 to sort (classify) the external memory, and then to step S30. Here, when the coordinate calculation of this label is performed, the rectangular coordinate of this label is compared with the preset rectangular parameter coordinate, and a flag is set according to the comparison result. FIG. 10 shows a configuration example of the circuit.

【0040】XL,XR,YT,YRはそれぞれ外部座
標メモリ18に格納された矩形の左右、上下の座標値で
ある。横方向の矩形長はXRからXLを引き算器SUB
1で引き算することでXLを得る。縦方向の矩形長はY
BかYTを引き算器SUB2で引き算することでYLを
得る。Xmin,Xmax,Ymin,Ymaxは外部
のCPUから事前に与えられたパラメータを格納したレ
ジスタ61、62、63、64のパラメータの内容であ
る。Xmin×Yminが最小矩形枠パラメータを構成
し、Xmax×Ymaxが最大矩形枠パラメータを構成
する。値XLとパラメータXminを比較器(CMP
1)65で比較し、XLとXmaxを比較器(CMP
2)66で比較し、YLとYminを比較器(CMP
3)67で比較し、YLとYmaxを比較器(CMP
4)68で比較する。比較器CMP1,CMP2,CM
P3,CMP4の比較結果は次の組み合わせ回路69に
入力し、各比較結果の状態から所定のフラグを出力す
る。
XL, XR, YT, and YR are the coordinate values of the left, right, top, and bottom of the rectangle stored in the external coordinate memory 18, respectively. Horizontal rectangle length is XR minus XL subtractor SUB
XL is obtained by subtracting by 1. Vertical rectangle length is Y
YL is obtained by subtracting B or YT with the subtractor SUB2. Xmin, Xmax, Ymin, Ymax are the contents of the parameters of the registers 61, 62, 63, 64 which store the parameters given in advance from the external CPU. Xmin × Ymin constitutes the minimum rectangular frame parameter, and Xmax × Ymax constitutes the maximum rectangular frame parameter. The value XL and the parameter Xmin are compared by a comparator (CMP
1) 65 is compared, and XL and Xmax are compared by a comparator (CMP
2) 66 is compared, and YL and Ymin are compared (CMP
3) 67 is compared, and YL and Ymax are compared by a comparator (CMP
4) Compare at 68. Comparators CMP1, CMP2, CM
The comparison result of P3 and CMP4 is input to the next combination circuit 69, and a predetermined flag is output from the state of each comparison result.

【0041】図11(a)−(i)は対象画像の矩形長
とパラメータを図解したものである。斜線の図形は対象
画像の矩形枠を意味する。小さい太枠は最小矩形枠パラ
メータ、大きい太枠は最大矩形枠パラメータを意味す
る。(a),(b),(c),(d),(e),
(f),(g),(h),(i)のような画像の矩形枠
とパラメータとの比較からそれぞれの大きさ、方向の状
態に応じて図12に示したようなフラグを生成し、外部
座標メモリ18に添って格納する。全ラベリング処理終
了後、外部CPUはこのフラグのみを検出することで、
例えば(a)は小さいノイズ、(i)は大きいノイズと
して対象外にしたり、(f)は文字画像として有効と判
定したり、(b),(c)は短いバー、(d),(e)
は細い罫線、(g),(h)は太い罫線らしいと判定を
行なう事ができる。
FIGS. 11 (a)-(i) illustrate the rectangle length and parameters of the target image. The shaded figure means the rectangular frame of the target image. A small thick frame means a minimum rectangular frame parameter, and a large thick frame means a maximum rectangular frame parameter. (A), (b), (c), (d), (e),
By comparing the rectangular frame of the image as shown in (f), (g), (h), and (i) with the parameters, the flags shown in FIG. 12 are generated according to the respective size and direction states. , Are stored along with the external coordinate memory 18. After the completion of all labeling processing, the external CPU detects only this flag,
For example, (a) is excluded as a small noise, (i) is excluded as a large noise, (f) is determined to be valid as a character image, (b) and (c) are short bars, (d) and (e). )
It can be determined that is a thin ruled line, and (g) and (h) are thick ruled lines.

【0042】以上述べたように、この実施例によれば、
2×3などの所定サイズの近傍マスクを用いて入力2値
画像をラスタ走査することで、検出された2値の黒画素
にラベル付けを行ない、且つ同一ラベル内の始点、終点
座標を外部の座標メモリ間で求めるラベリングの画像演
算チップにおいて、注目点が白画素であっても特定の近
傍マスクに限って黒画素のラベルを伝搬することでチッ
プと外部座標メモリ間の遅延時間を吸収することができ
る。
As described above, according to this embodiment,
By raster-scanning the input binary image using a neighborhood mask of a predetermined size such as 2 × 3, the detected binary black pixels are labeled, and the start point and end point coordinates within the same label are externally labeled. Absorption of delay time between the chip and the external coordinate memory by propagating the label of black pixel only in a specific neighborhood mask even if the target point is a white pixel in the image calculation chip for labeling obtained between coordinate memories. You can

【0043】また、仮ラベルから本ラベルへの編集・連
結処理の内部プログラムにおいて、チップのクロック周
波数に応じて外部座標メモリの読み込みステップ数を切
り替えるようにしたので、クロックの速度に関係なく安
定した処理ができる。
Further, in the internal program for editing / linking from the temporary label to this label, the number of reading steps of the external coordinate memory is switched according to the clock frequency of the chip, so that it is stable regardless of the clock speed. It can be processed.

【0044】更に、検出された本ラベル画像の外部座標
メモリから求めた矩形枠の大きさ、方向を、所定のパラ
メータと比較し、フラグ情報としてその座標情報に添っ
て格納することにより、複雑図形をCPUで簡易にまた
効率的に処理できる。
Further, the size and direction of the rectangular frame obtained from the external coordinate memory of the detected main label image are compared with predetermined parameters, and stored as flag information along with the coordinate information to obtain a complicated figure. Can be processed simply and efficiently by the CPU.

【0045】[0045]

【発明の効果】以上前述したように本発明によれば、ラ
ベリングのラスタ走査実時間処理および編集・統合処理
において、画像演算回路のACIC、FPGA化で生じ
るチップの入出力バッファおよびチップと外部メモリ間
の遅延時間を画像データを先読みすることで高速性を確
保することができる。さらに検出された連結画像の矩形
枠をその大きさ、方向でフラグ化することで、複雑図形
をCPUで簡易にまた効率的に処理できる。
As described above, according to the present invention, in the raster scanning real-time processing of the labeling and the editing / integration processing, the input / output buffer of the chip and the chip and the external memory generated by the ACIC of the image processing circuit and the FPGA are realized. High-speed performance can be secured by pre-reading the image data for the delay time between them. Further, by flagging the detected rectangular frame of the connected image according to its size and direction, complicated graphics can be processed easily and efficiently by the CPU.

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

【図1】本発明におけるラベリングハードウエアの全体
概略構成を示すブロック図。
FIG. 1 is a block diagram showing an overall schematic configuration of labeling hardware according to the present invention.

【図2】ラベル付けのハードウエア構成を示すブロック
図。
FIG. 2 is a block diagram showing a hardware configuration for labeling.

【図3】近傍マスクの組み合わせとラベル付けの関係を
示す図。
FIG. 3 is a diagram showing a relationship between a combination of neighboring masks and labeling.

【図4】ラベル付けの図解と仮ラベル情報の内容を示す
図。
FIG. 4 is a diagram showing an illustration of labeling and contents of temporary label information.

【図5】本ラベルの編集と結果情報を示す図。FIG. 5 is a diagram showing editing of this label and result information.

【図6】ラベリングハーアドウエアの入力信号を示すタ
イミングチャート。
FIG. 6 is a timing chart showing an input signal of labeling hardware.

【図7】主走査方向の始点比較処理信号の生成回路を示
したブロック図。
FIG. 7 is a block diagram showing a generation circuit of a start point comparison processing signal in the main scanning direction.

【図8】座標比較のハードウエアを示すブロック図。FIG. 8 is a block diagram showing hardware for coordinate comparison.

【図9】切り替えによる編集・統合プログラムを示すフ
ローチャート。
FIG. 9 is a flowchart showing an editing / integration program by switching.

【図10】フラグ生成のハードウエアを示すブロック
図。
FIG. 10 is a block diagram showing hardware for flag generation.

【図11】フラグの形態を示す図。FIG. 11 is a view showing a form of a flag.

【図12】フラグと図11の形態との関係を示すテーブ
ル。
12 is a table showing the relationship between flags and the forms of FIG.

【図13】ラベリング処理全体のフローチャート。FIG. 13 is a flowchart of the entire labeling process.

【符号の説明】[Explanation of symbols]

11…制御信号発生部、12…ラベル付け部、12a…
制御部、12b…新ラベル番号生成カウンタ、12c…
セレクタ、12d…ラインバッファ、13、14、15
…バス、16…アドレス発生部、17…カタログ作成
部、18…外部座標メモリ、19…連結処理部、20…
連結テーブルメモリ、21…編集・統合プログラムユニ
ット、222…CPUインターフェイス、23…連結対
1メモリ、24…連結対2メモリ、M…近傍マスク、3
0…遅延回路、31…オア回路、32…ナンド回路、F
/F1,F/F2…フリップ・フロップ、41、45、
48…バッファ、42、43、44…論理回路、46…
トライステートバッファ、47、51…セレクタ、5
0、53…ラッチ回路、52…比較回路、61〜64…
レジスタ、65〜68…比較器、69…組み合わせ回
路。
11 ... Control signal generating unit, 12 ... Labeling unit, 12a ...
Control unit, 12b ... New label number generation counter, 12c ...
Selector, 12d ... line buffer, 13, 14, 15
... bus, 16 ... address generating section, 17 ... catalog creating section, 18 ... external coordinate memory, 19 ... connection processing section, 20 ...
Concatenation table memory, 21 ... Editing / integrating program unit, 222 ... CPU interface, 23 ... Concatenation pair 1 memory, 24 ... Concatenation pair 2 memory, M ... Neighborhood mask, 3
0 ... Delay circuit, 31 ... OR circuit, 32 ... NAND circuit, F
/ F1, F / F2 ... Flip-flops, 41, 45,
48 ... Buffer, 42, 43, 44 ... Logic circuit, 46 ...
Tri-state buffer, 47, 51 ... Selector, 5
0, 53 ... Latch circuit, 52 ... Comparison circuit, 61-64 ...
Registers, 65 to 68 ... Comparator, 69 ... Combination circuit.

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 入力2値画像を所定サイズのマスクを用
いてラスタ走査する手段と、 前記マスクの注目点が黒画素の時に所定のラベルを付加
する手段と、 この付加されたラベルを記憶する第1のメモリと、 このラベルの記憶アドレス座標を記憶する座標メモリ
と、 得られた複数のラベルのうち連続する同一ラベル群の始
点、終点のアドレス座標を求める手段と、 得られた同一ラベル群の始点、終点のアドレス座標を記
憶する座標メモリと、 同一ラベルが付加される都度前記座標メモリの内容を更
新する手段と、 前記注目点が白画素でかつ特定のマスク出力のときにこ
の白画素を黒画素と先き読みして近傍ラベルの伝搬を行
う手段と、 伝搬されたラベルに基づいてラベル連結画像の座標処理
を行う手段と、を具備することを特徴とする画像処理装
置。
1. A means for raster-scanning an input binary image using a mask of a predetermined size, a means for adding a predetermined label when a target point of the mask is a black pixel, and the added label is stored. A first memory, a coordinate memory for storing the storage address coordinates of this label, a means for obtaining the address coordinates of the start point and the end point of the same continuous label group among the obtained plurality of labels, and the obtained same label group A coordinate memory for storing the address coordinates of the start point and the end point of, a means for updating the contents of the coordinate memory each time the same label is added, and the white pixel when the target point is a white pixel and a specific mask output An image characterized in that it pre-reads the black pixel as a black pixel and propagates the neighborhood label, and means for performing coordinate processing of the label connected image based on the propagated label. Management apparatus.
【請求項2】 入力2値画像を所定サイズのマスクを用
いてラスタ走査する手段と、 前記マスクの注目点が黒画素の時に所定の仮ラベルを付
加する手段と、 この付加された仮ラベルを記憶する第1のメモリと、 この仮ラベルの記憶アドレス座標を記憶する座標メモリ
と、 得られた複数の仮ラベルのうち連続する同一ラベル群の
始点、終点のアドレス座標を求める手段と、 得られた同一仮ラベル群の始点、終点のアドレス座標を
記憶する座標メモリと、 同一仮ラベルが付加される都度前記座標メモリの内容を
更新する手段と、 前記注目点が白画素でかつ特定のマスク出力のときにこ
の白画素を黒画素と先き読みして近傍ラベルの伝搬を行
う手段と、 伝搬された仮ラベルに基づいて仮ラベル連結画像の座標
処理を行う手段と、 得られた仮ラベル連結画像の座標を用いて本ラベルへの
編集・統合処理を行う手段と、を具備することを特徴と
する画像処理装置。
2. A means for raster-scanning an input binary image using a mask of a predetermined size, a means for adding a predetermined temporary label when a target point of the mask is a black pixel, and the added temporary label. A first memory that stores the coordinates; a coordinate memory that stores the storage address coordinates of the temporary label; a unit that obtains the address coordinates of the start point and the end point of the same continuous label group among the obtained temporary labels; A coordinate memory that stores the address coordinates of the start point and the end point of the same temporary label group, a means that updates the contents of the coordinate memory each time the same temporary label is added, and the target point is a white pixel and a specific mask output In this case, the white pixels are read ahead as black pixels to propagate the neighboring label, the coordinate processing of the temporary label concatenated image based on the propagated temporary label, and the obtained temporary label. And a unit for performing an edit / integration process on the label using the coordinates of the linked image.
【請求項3】 入力2値画像を所定サイズのマスクを用
いてラスタ走査し、マスクの注目点が黒画素の時に所定
のラベルを付加するとともに、前記注目点が白画素でか
つ特定のマスク出力のときにこの白画素を黒画素と先き
読みして近傍ラベルの伝搬を行うことによりラベリング
を行うラベリング回路と、前記ラベリング回路から生成
されたラベルの座標を記憶する外部座標メモリと、前記
ラベリング回路と外部座標メモリとの間に接続されたバ
ッファ回路と、を具備することを特徴とする画像処理装
置。
3. An input binary image is raster-scanned by using a mask of a predetermined size, a predetermined label is added when a target point of the mask is a black pixel, and the target point is a white pixel and a specific mask output. When this white pixel is read as a black pixel in advance, a labeling circuit that performs labeling by propagating a neighborhood label, an external coordinate memory that stores the coordinates of the label generated from the labeling circuit, and the labeling An image processing apparatus, comprising: a buffer circuit connected between the circuit and an external coordinate memory.
JP6225062A 1994-09-20 1994-09-20 Image processor Pending JPH0887597A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6225062A JPH0887597A (en) 1994-09-20 1994-09-20 Image processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6225062A JPH0887597A (en) 1994-09-20 1994-09-20 Image processor

Publications (1)

Publication Number Publication Date
JPH0887597A true JPH0887597A (en) 1996-04-02

Family

ID=16823445

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6225062A Pending JPH0887597A (en) 1994-09-20 1994-09-20 Image processor

Country Status (1)

Country Link
JP (1) JPH0887597A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006048222A (en) * 2004-08-02 2006-02-16 Ricoh Co Ltd Image processor and image processing method
JP2007122594A (en) * 2005-10-31 2007-05-17 Denso Corp Image processor
JP2009020860A (en) * 2007-03-09 2009-01-29 Avago Technologies Ecbu Ip (Singapore) Pte Ltd System and method for identifying and labeling cluster pixels in frame of image data for optical navigation

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006048222A (en) * 2004-08-02 2006-02-16 Ricoh Co Ltd Image processor and image processing method
JP4612352B2 (en) * 2004-08-02 2011-01-12 株式会社リコー Labeling processing apparatus and labeling processing method
JP2007122594A (en) * 2005-10-31 2007-05-17 Denso Corp Image processor
JP2009020860A (en) * 2007-03-09 2009-01-29 Avago Technologies Ecbu Ip (Singapore) Pte Ltd System and method for identifying and labeling cluster pixels in frame of image data for optical navigation
JP4648958B2 (en) * 2007-03-09 2011-03-09 アバゴ・テクノロジーズ・イーシービーユー・アイピー(シンガポール)プライベート・リミテッド System and method for optical navigation for identifying and labeling cluster pixels in image frame data

Similar Documents

Publication Publication Date Title
JP3586991B2 (en) Texture data reading device and rendering device
GB2230634A (en) Optical character recognition
JPH0887597A (en) Image processor
JPS6299870A (en) Picture processor
JPH064679A (en) Image processor
JPH03233689A (en) Outline data drawing device
US5307454A (en) Apparatus for extracting local image from original image
JP2637905B2 (en) Method and system for drawing polygon outline using vertical span
JP2971765B2 (en) Polygon drawing method and polygon drawing device
JP3126462B2 (en) Boundary extraction method and apparatus
JP2634905B2 (en) How to paint shapes
JP3139805B2 (en) Image processing method and apparatus
JP2777189B2 (en) Stereoscopic shadow processing device
JP2610825B2 (en) Graphic processing unit
JPH1131236A (en) Sorting method of polygon data and picture processor using the method
JPH10214352A (en) Method and device for picture formation
JP2712278B2 (en) Wipe pattern generator
JP2519821B2 (en) Image processing device
JP2962613B2 (en) Pattern filling method
JP2773264B2 (en) Image input processing device
JPH0341583A (en) Method and device for painting out
JP2641432B2 (en) Interface device
KR100457064B1 (en) Method for detecting in contour information
JP2536183B2 (en) Image processing method and apparatus
EP0500035A2 (en) Three-dimensional graphic display system

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20040614

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20040622

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20040823

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20040921