JPH0679350B2 - Line figure processing device - Google Patents

Line figure processing device

Info

Publication number
JPH0679350B2
JPH0679350B2 JP28386885A JP28386885A JPH0679350B2 JP H0679350 B2 JPH0679350 B2 JP H0679350B2 JP 28386885 A JP28386885 A JP 28386885A JP 28386885 A JP28386885 A JP 28386885A JP H0679350 B2 JPH0679350 B2 JP H0679350B2
Authority
JP
Japan
Prior art keywords
line
chain
data
processing unit
core
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP28386885A
Other languages
Japanese (ja)
Other versions
JPS62143192A (en
Inventor
忠雄 若山
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nippon Telegraph and Telephone Corp
Original Assignee
Nippon Telegraph and Telephone 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 Nippon Telegraph and Telephone Corp filed Critical Nippon Telegraph and Telephone Corp
Priority to JP28386885A priority Critical patent/JPH0679350B2/en
Publication of JPS62143192A publication Critical patent/JPS62143192A/en
Publication of JPH0679350B2 publication Critical patent/JPH0679350B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Image Processing (AREA)
  • Character Discrimination (AREA)

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、線図形処理装置、特に、図面等、線図形を主
体とし、かつ該線図形に文字記号等の微細図形が該線図
形の直線部または屈曲点部において接触・交差している
二値画像から、該線図形を精度よく忠実に抽出し、これ
をして地理データベースにおける地形図・住宅図の自動
入力、あるいは図面データベースにおける各種図面の自
動入力等を効率よく行なわしめる線図形処理装置に関す
るものである。
DETAILED DESCRIPTION OF THE INVENTION [Industrial field of application] The present invention relates to a line graphic processing device, and particularly to a line graphic such as a drawing, and a fine graphic such as a character symbol is included in the line graphic. Accurately and faithfully extract the line figure from a binary image that touches / intersects at a straight line portion or a bending point portion, and then use this to automatically input topographic maps / housing maps in a geographic database, or in various drawing databases. The present invention relates to a line figure processing device capable of efficiently performing automatic input of drawings.

〔従来の技術〕[Conventional technology]

従来のこの種の装置を実現する方式としては、 (イ)画像データを画像メモリ上で細線化して得られる
黒画素列を直線近似する方式、 (ロ)線図形を境界線が平行な細長い黒画素領域とみな
し、該境界線対を用いて線図形を追跡・抽出する方式、 (ハ)図形の境界線追跡と境界線に沿った距離情報によ
り境界線の包囲関係と外接長方形を求め、線図形を抽出
する方式、 (ニ)黒画素領域を追跡しながら追跡方向上で直線的に
連続する黒画素領域の長さおよび該追跡方向の直角方向
の黒画素数を求めることにより直線図形を抽出する方
式、 等が発表されている。
The conventional methods for realizing this type of device are (a) a method of linearly approximating a black pixel row obtained by thinning the image data on the image memory, and (b) a slender black line whose boundary lines are parallel to each other. A method of tracing and extracting a line figure using the boundary line pair, which is regarded as a pixel area, and (c) tracing the boundary line of the figure and the distance information along the boundary line to obtain the surrounding relation of the boundary line and the circumscribed rectangle, Method of extracting a graphic, (d) Extracting a linear graphic by determining the length of a black pixel area that is linearly continuous in the tracking direction while tracing the black pixel area and the number of black pixels in the direction perpendicular to the tracking direction. The method to do, etc. have been announced.

この内、(イ)は画像メモリ上で画像データの構成要素
である各図形データに対し、細線化処理を施している
が、このため交点の変化やヒゲの発生によって画質が劣
化し、線幅情報や画情報が欠如するため、線図形と微細
図形との区別がつかなくなり、線図形を原画像に忠実に
抽出するには適していない。
Among these, in (a), the thinning process is applied to each figure data which is a component of the image data on the image memory. Therefore, the image quality is deteriorated due to the change of the intersection and the occurrence of the beard, and the line width is reduced. The lack of information and image information makes it difficult to distinguish between line figures and fine figures, and is not suitable for faithfully extracting line figures from the original image.

これに対して(ロ),(ハ)および(ニ)の各方式は細
線化処理を施さない方式であるが、この中で、(ロ)は
境界線追跡のみに基づいているため、線図形と微細図形
を分離することはできない。したがって、微細図形が線
図形に接触・い交差しているような画像から線図形を抽
出するには適していない。
On the other hand, the methods (b), (c), and (d) are methods that do not perform thinning processing. And a fine figure cannot be separated. Therefore, it is not suitable for extracting a line figure from an image in which a fine figure touches or intersects with a line figure.

(ハ)の方式は距離情報を用いているため、微細図形が
線図形に接触しているような場合には対処できる。しか
し、この場合も微細図形が線図形に交差しているような
場合には対処できない。
Since the method of (C) uses distance information, it can be dealt with when a fine figure is in contact with a line figure. However, also in this case, it is not possible to deal with the case where the fine figure intersects the line figure.

これに対して、(ニ)の方式は図形を表わす黒画素領域
上に直線を当てはめているので、微細図形が線図形に直
接・交差している場合にも対処できるが、ただし、それ
は微細図形が線図形の直線部において、接触・交差して
いる場合のみであって、屈曲点部で接触・交差している
場合には抽出不可能となる。
On the other hand, in the method (d), since a straight line is fitted on the black pixel area representing a figure, it is possible to deal with a case where a fine figure directly intersects with a line figure. Is only in the case of contact / intersection in the straight line part of the line figure, and cannot be extracted in the case of contact / intersection at the bending point part.

さらに、一般の画像データにおいては比較的小さい同じ
一つの図形が例えば図面の種類により線図形として現れ
たり、微細図形として現れたりすることがしばしば生
じ、これに対処するためには図形のもつ意味内容を考慮
した高次の処理が必要となる。しかしながら、上記の各
方式はいずれもそのままではこの問題に対処することは
できない。
Further, in general image data, the same relatively small figure often appears as a line figure or a fine figure depending on the type of drawing. To deal with this, the meaning content of the figure Higher-order processing in consideration of is required. However, none of the above methods can deal with this problem as they are.

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

一般に、与えられた二値画像から線図形を抽出する場合
の条件(以下では抽出処理条件と呼ぶ)として、 (a)原画像に忠実に線図形が抽出できること、 (b)微細図形が線図形の直線部および屈曲点部のどち
らにおいて接触・交差していても抽出処理が可能なこ
と、 (c)原画像から線図形を抽出・分離した後の残された
微細図形はその形状が損なわれないこと、 (d)必要に応じて図形要素がもつ意味内容に基づく高
次の処理に対処できること、 を挙げることができる。上記の方式はこれらの抽出処理
条件を全て満たすようなものでないため、適用領域に自
ずと限界が生ずる。
Generally, as conditions for extracting a line figure from a given binary image (hereinafter referred to as extraction processing conditions), (a) line figure can be faithfully extracted to the original image, and (b) fine figure is a line figure. It is possible to perform extraction processing regardless of whether it touches or intersects with either the straight line part or the bending point part of (3). (C) The shape of the fine pattern remaining after extracting and separating the line pattern from the original image is damaged. There are none, (d) It is possible to deal with higher-level processing based on the meaning content of the graphic element as necessary. Since the above method does not satisfy all of these extraction processing conditions, the application area naturally has a limit.

本発明は、これらの条件を全て満たすことを目的として
いるが、具体的には、与えられた二値画像データの中の
各図形要素を、該図形要素に内接しかつ互いに隣接する
最大の正方形(最大正方形と呼ぶ。また、以下では単に
正方形と呼ぶこともある)の正方形データ列(チェイン
と呼ぶ)と、チェインとチェインを連結しかつ該図形に
内接する最大正方形(コネクタと呼ぶ)とで構成される
構造体として表現することにより、該二値画像データを
一つの図形ファイルとしてファイル化し、これに基づい
て図形のデータ記述を行ない、さらにこのデータ記述上
を直線追跡処理を施すことにより、上記難点を解決する
ことを目的としている。なお、図形のチェインとコネク
タを該図形の心線と総称する。したがって、該図形ファ
イルは図形の心線構造体とみなすことができる。すなわ
ち、該図形ファイルは、原画像データの幾何学的構造を
チェインとコネクタとの連結関係として表現しており、
チェインデータは線図形の各場所での線幅を、あるいは
微細図形の面の情報を正方形の辺の長さ(辺長と呼ぶ)
としてもっており、しかも原画像を完全に再現するた
め、上記(a)〜(d)のそれぞれの抽出処理条件を満
たすような方式を構成するのに容易に対処することがで
きる。
The present invention aims to satisfy all of these conditions. Specifically, each graphic element in a given binary image data is defined as the largest square inscribed in the graphic element and adjacent to each other. It consists of a square data string (called a maximum square. It may also be simply called a square below) (called a chain) and a maximum square (called a connector) that connects chains and inscribes in the figure. By expressing the binary image data as a single graphic file by expressing it as a structured structure, the data description of the graphic is performed based on the file, and the straight line tracing process is performed on the data description. The purpose is to solve the above problems. It should be noted that the chain and connector of the figure are collectively referred to as the core of the figure. Therefore, the graphic file can be regarded as the core structure of the graphic. That is, the graphic file expresses the geometric structure of the original image data as a connection relationship between the chain and the connector,
The chain data is the line width at each position of the line figure, or the information of the surface of the fine figure is the length of the side of the square (called the side length).
In addition, since the original image is completely reproduced, it is possible to easily cope with the configuration of the method that satisfies the extraction processing conditions (a) to (d).

〔実施例〕〔Example〕

第1図に本発明に係わる装置構成の実施例を示す。図面
等の与えられた二値画像データ1は図形ファイル操作部
3により予め図形の心線構造を記述した図形ファイル2
としてファイル化され、以下、線図形抽出に係わる処理
はこの図形ファイルからチェインデータを順次読み出し
ながら処理されていくが、ここでは、先ず、処理の全体
的流れの概要を述べておく。チェインデータ選択・読み
出し部4により図形ファイル操作部3を介して図形ファ
イル2から取り込まれたチェインデータは一旦チェイン
データ蓄積部5に蓄積された後、太さ分割処理部6によ
り1つまたはそれ以上の部分チェインデータに分割さ
れ、その分割点の正方形アドレス(チェインを構成する
各正方形は隣接関係に従って1,2,…の順にアドレスが付
けられている)が正方形アドレス蓄積部7に蓄積され
る。蓄積部7上の分割点正方形アドレスおよびチェイン
データ蓄積部5上のチェインデータで定まる部分チェイ
ン(分割鵜分チェイン)は折れ線近似処理部8により折
れ線近似され、その屈曲点正方形アドレスが7と同じ構
成の正方形アドレス蓄積部12に蓄積される。次いで、該
各分割部分チェインはその屈曲点正方形アドレスおよび
それに係わるコネクタとともに心線構造記述処理部13に
より心線構造記述テーブル14上に記述・登録される。図
形ファイル2上のチェインデータの全てに対してこれら
の一連の処理が終了すると、直線追跡処理部15が起動
し、心線構造記述テーブル14上の心線データを直線追跡
し、テーブル上で直線部分の抽出を行なう。この処理が
終了すると、線図形出力処理部16が起動し、該テーブル
上の直線データを探索し、必要に応じてファックス出力
装置あるいは図形表示装置等へ該直線データを出力す
る。
FIG. 1 shows an embodiment of the device configuration according to the present invention. A given binary image data 1 such as a drawing is a graphic file 2 in which the core line structure of the graphic is described in advance by the graphic file operation unit 3.
The process relating to line figure extraction will be performed while sequentially reading the chain data from this figure file. Here, the outline of the overall flow of the process will be described first. The chain data selected and read by the chain data selection unit 4 from the graphic file 2 via the graphic file operation unit 3 is once stored in the chain data storage unit 5, and then one or more chains are processed by the thickness division processing unit 6. Are divided into partial chain data, and the square address of each division point (each square constituting the chain is addressed in the order of 1, 2, ... In accordance with the adjacency relation) is stored in the square address storage unit 7. A partial chain (divided cormorant chain) determined by the division point square address on the storage unit 7 and the chain data on the chain data storage unit 5 is polygonal-line-approximated by the polygonal-line approximation processing unit 8, and its bending point square address is the same as that of 7. Are stored in the square address storage unit 12 of. Next, each divided part chain is described / registered in the core line structure description table 14 by the core line structure description processing unit 13 together with the bending point square address and the connector related thereto. When this series of processing is completed for all of the chain data in the graphic file 2, the straight line tracking processing unit 15 is activated, and the core line data in the core line structure description table 14 is linearly traced, and the straight line is recorded on the table. Extract parts. Upon completion of this processing, the line figure output processing unit 16 is activated to search for straight line data on the table and output the straight line data to a fax output device, a graphic display device or the like as necessary.

以下、各処理部の機能についてその概要と実現法を説明
していく。
Hereinafter, the outline of the function of each processing unit and the implementation method will be described.

(ア)図形ファイル操作部‐本操作部は、ディジタイズ
された二値図形の心線構造抽出法として提案されたMSM
法(Wakayama,T,“Core−Line Tracing Algortithm Bas
ed on Maximal SquaraMoving,"IEEE Trans.PAMI,Vol.PA
MI−4,No.1(1982))で得られる心線データの表現形式
を用いて、二値画像を一つのファイル(図形ファイル)
としてファイル化し、必要に応じてファイルから図形デ
ーあを検索する。第2図に心線データの抽出例を示す。
第2図ではY軸は下向きに取ってある(以下同様).第
2図中、●は図形に内接する最大正方形(の中心点)を
表わし、その連結は図形の心線を表わす。図形ファイル
のデータ構成を第3図に示す。第3図で(a)は第2図
の心線部分(●は最大正方形)を表わしている。図形の
心線において隣り合う2つの最大正方形は互いにMSM隣
接すると言う。第3図のように心線は、その分岐点の幾
何学的形状によりチェインと呼ばれる互いにMSM隣接し
た最大正方形の順序列(C1,C2等)と、チェインとチェ
インを連結するJ1,J2等の最大正方形(これをコネクタ
と呼ぶ)に分解することができる。図形ファイルでの心
線データは同図(b)に示すようにチェインとコネクタ
との間の連結関係によって線形表現される。この場合、
ファイル内での各チェインおよびコネクタは該ファイル
上でアドレス(チェインアドレス,コネクタアドレス)
が付けられ、これらのデータはそのアドレスを与えるこ
とによって読み出される。なお、本図形ファイル操作部
は、文献「若山、“MSM心線データを用いた図形操
作、”情報学会研資質、CV27−2(1983)」に示す方法
を応用して実現される。
(A) Graphic file operation unit-This operation unit is MSM proposed as a method for extracting the core structure of digitized binary figures.
Law (Wakayama, T, “Core-Line Tracing Algortithm Bas
ed on Maximal Squara Moving, "IEEE Trans.PAMI, Vol.PA
MI-4, No.1 (1982)), using the representation format of the core data, the binary image is a single file (figure file)
As a file, and search the graphic data from the file as needed. FIG. 2 shows an example of core data extraction.
In Fig. 2, the Y-axis is oriented downward (the same applies below). In FIG. 2, a black circle represents (the center point of) the largest square inscribed in the figure, and its connection represents the core line of the figure. The data structure of the graphic file is shown in FIG. In FIG. 3, (a) represents the core line portion (● is the largest square) in FIG. 2. Two largest squares adjacent to each other in the center line of the figure are said to be MSM adjacent to each other. As shown in Fig. 3, the core line is composed of the largest square ordered sequences (C1, C2, etc.) that are MSM adjacent to each other and called J1, J2, etc. that connect the chains by the geometrical shape of the branch points. It can be decomposed into the largest squares (which we call connectors). The core data in the graphic file is linearly represented by the connection relationship between the chain and the connector as shown in FIG. in this case,
Each chain and connector in the file is an address (chain address, connector address) on the file
And these data are read by giving the address. The figure file operation unit is realized by applying the method described in the document “Wakayama,“ Figure operations using MSM core data, ”Institute of Information Science, CV27-2 (1983)”.

(イ)チェインデータ選択・読み出し部−本処理部は上
記(ア)項記載の図形ファイル内のデータをチェインア
ドレスを与えることによりファイルの先頭から順次読み
出していくが、最初は、初期設定信号によりチェインア
ドレスを初期設定し、最初のチェインデータを読み出
す。その後は心線構造記述記憶部13の終了信号を受け取
ることによりチェインアドレスを進め、そのアドレスで
チェインデータを読み出す。読み出されたデータはチェ
インデータ蓄積部5に蓄積される。
(B) Chain data selection / reading unit-This processing unit sequentially reads the data in the graphic file described in (A) above from the beginning of the file by giving the chain address. Initialize the chain address and read the first chain data. After that, the chain address is advanced by receiving the end signal of the core structure description storage unit 13, and the chain data is read at the address. The read data is stored in the chain data storage unit 5.

一般にチェインCは、その定義から、互いにMSM隣接す
る最大正方形Si(i=1,2,…,n)の列 C=〔S1,S2,…,Sn〕 (i) として表現することができる。ここで、nをチェインC
の上さ、iをCにおける正方形Siのアドレス(正方形ア
ドレス)と呼ぶ。また、Cを構成する正方形Siは Si=〔(xi,yi),li〕 (ii) (xi,yi):正方形の左上頂点座標 li:正方形の辺長(=0,1,2…) と記述することができる。このとき、考えられるチェイ
ンの長さの最大値をMとするならば、チェインデータ蓄
積部5はそれぞれがxi,yi,liを蓄積する長さMのFIFO型
のレジスタ5−1,5−2,5−3の3本で構成されることと
なる。
In general, the chain C can be expressed as a column C = [S1, S2, ..., Sn] (i) of maximum squares Si (i = 1, 2, ..., N) adjacent to each other by MSM, by definition. Where n is the chain C
I is called the address of the square Si in C (square address). In addition, the square Si constituting C is Si = [(xi, yi), li] (ii) (xi, yi): coordinates of the upper left corner of the square li: side length of the square (= 0,1,2 ...) Can be described. At this time, assuming that the maximum possible chain length is M, the chain data storage unit 5 stores FIFO-type registers 5-1 and 5-2 of length M for respectively storing xi, yi, and li. , 5-3.

(ウ)太さ分割処理部−本処理部はチェインデータ蓄積
部5に蓄積されているチェインをその太さによって細い
部分と太い部分に分割する。
(C) Thickness division processing unit-This processing unit divides the chain accumulated in the chain data accumulating unit 5 into a thin portion and a thick portion according to its thickness.

いま、チェインC上の正方形アドレスiに対する辺長li
の数列を L(l)=〔l1,l2,…ln〕 (iii) とし、これをチェインCの辺長数列と呼ぶものとする。
辺長数列はCの線幅を与えるものである。このとき、第
4図(a)に示す線図形(1つのチェインCとして表現
されているとする)に対して、横軸に正方形アドレス
を、縦軸に辺長をとり、その辺長数列をプロットすれ
ば、第4図(b)のようになろう。Cを辺長数列により
細い部分と太い部分に分割するならば、その分割点はア
ドレスa3,a4,a5およびa6で示される正方形(の中心)が
妥当である。このようにチェインをその辺長数列によっ
て1つまたはそれ以上のチェインに分割することをチェ
インを太さ分割すると言う。
Now, the side length li for the square address i on the chain C
Let L (l) = [l1, l2, ... ln] (iii) be the sequence of the above and call it the side length sequence of the chain C.
The side length sequence gives the line width of C. At this time, with respect to the line figure shown in FIG. 4 (a) (assumed to be represented as one chain C), the horizontal axis is the square address, the vertical axis is the side length, and the side length sequence is If plotted, it would look like Fig. 4 (b). If C is divided into a thin portion and a thick portion by the side length sequence, the division point is appropriate to be the square (center) of the addresses a3, a4, a5 and a6. Dividing the chain into one or more chains according to the side length sequence is called thickness division of the chain.

したがって、本分割処理部はチェイン蓄積部5内の辺長
数列レジスタ5−3から順次FIFO形式で値を読み出しな
がら、1つ前のデータの値を比較し、下に述べる本処理
部の実施例の方法で分割点が見つかればその正方形アド
レスを出力し、正方形アドレス蓄積部7(FIFO型レジス
タ)に蓄積していくものである。本処理部は処理部4か
らの読み出し終了信号の受信によって起動がかかる。
Therefore, the main division processing unit compares the values of the previous data while sequentially reading the values in the FIFO format from the side length sequence register 5-3 in the chain storage unit 5, and the embodiment of the main processing unit described below. When the division point is found by the method of 1, the square address is output and stored in the square address storage unit 7 (FIFO type register). The present processing unit is activated by receiving the read end signal from the processing unit 4.

本処理部の実施例を第5図に示す。コントローラ6−1
は、辺長数列レジスタ5−3から正方形辺長の値を順次
読み出すためのアドレスレジスタ6−2を初期設定し、
以降は後述の処理回路6−16〜6〜21の終了信号を受信
することにより1づつ増加する。さらにレジスタ6−2
の内容をFIFO型レジスタ5−3に送り、それで指定され
る正方形辺長値をレジスタ6−3に読み出す。同辺長値
は遅延回路6−6の保持する1動作前の辺長値と差分が
取られ、差分レジスタ6−5に出される。同差分値、お
よび遅延回路6−7で保持される1動作前の差分値は判
定回路6−9および6−10によりそれぞれ正・0・負の
値が判定され、それぞれの組合せにより処理回路6−5
〜6−21が起動する。これに係わるレジスタとして6−
11〜6−14が用意されている。レジスタ6−11は辺長数
列レジスタ5−3における辺長値の変化点(アドレス)
をもつレジスタである。レジスタ6−12は同じ値の辺長
が連続した場合の個数を数えるカウンタである。レジス
タ6−13はレジスタ6−12の内容と比較の対象となる定
数を、およびレジスタ6−14は、1動作前の辺長値6−
6と必要に応じて5−3から読み出された辺長軸との差
の絶対値と比較の対象となる定数をそれぞ保持するもの
である。処理回路6−15はレジスタ6−12の内容を1だ
け増加させる。処理回路6−16はレジスタ6−12をリセ
ット(値1に)する。処理回路6−17はレジスタ6−12
と6−13との内容を比較し、前者が大ならばレジスタ6
−2の内容をレジスタ6−11に転送する。しかる後にレ
ジスタ6−12をリセットする。処理回路6−18は、レジ
スタ6−11の内容をアドレスとして読み出したレジスタ
5−3の値を1動作前の辺長値6−6との差の絶対値を
求め、同絶対値がレジスタ6−14内の値以下ならばレジ
スタ6−3の内容をレジスタ6−11に転送する。そうで
ないならば、レジスタ6−12と6−13とを比較し、前者
が大ならばレジスタ6−2の内容から6−12の内容を減
じたものを、後者が大ならばレジスタ6−2の内容を、
太さ分割点正方形アドレスとし、正方形アドレス蓄積部
7に転送する。同様にして処理回路6−19〜6−21はこ
れらのレジスタ間で値の比較や転送を行ない、辺長値の
変化点アドレスは必要に応じて正方形アドレス蓄積部7
に出力される。
An embodiment of this processing unit is shown in FIG. Controller 6-1
Initializes the address register 6-2 for sequentially reading the value of the square side length from the side length sequence register 5-3,
After that, it is incremented by 1 by receiving the end signals of the processing circuits 6-16 to 6-21 described later. Further register 6-2
Is sent to the FIFO type register 5-3, and the square side length value designated by it is read out to the register 6-3. The same side length value is subtracted from the side length value held by the delay circuit 6-6 before one operation, and is output to the difference register 6-5. The same difference value and the difference value before one operation held in the delay circuit 6-7 are determined by the determination circuits 6-9 and 6-10 as positive, 0, and negative values, respectively, and the processing circuit 6 is determined by the combination thereof. -5
~ 6-21 starts up. 6- as a register related to this
11 to 6-14 are prepared. The register 6-11 is a change point (address) of the side length value in the side length sequence register 5-3.
Is a register with. The register 6-12 is a counter that counts the number of consecutive side lengths having the same value. The register 6-13 is a constant to be compared with the contents of the register 6-12, and the register 6-14 is a side length value 6-before one operation.
6 and the absolute value of the difference between the long axis of the side read from 5-3 and the constant to be compared are respectively held as needed. Processing circuit 6-15 increments the contents of register 6-12 by one. The processing circuit 6-16 resets the register 6-12 (to the value 1). The processing circuit 6-17 is a register 6-12.
And 6-13 are compared, and if the former is large, register 6
-2 is transferred to register 6-11. After that, the registers 6-12 are reset. The processing circuit 6-18 obtains the absolute value of the difference between the value of the register 5-3 read with the content of the register 6-11 as an address and the side length value 6-6 before one operation, and the absolute value is the register 6 If it is less than the value in -14, the contents of register 6-3 are transferred to register 6-11. If not, the registers 6-12 and 6-13 are compared, and if the former is large, the value obtained by subtracting the content of 6-12 from the content of the register 6-2 is used. If the latter is large, the register 6-2 is used. The contents of
The thickness division point square address is transferred to the square address storage unit 7. Similarly, the processing circuits 6-19 to 6-21 compare and transfer values among these registers, and the change point address of the side length value is square address accumulating section 7 as necessary.
Is output to.

(エ)折れ線近似処理部−本処理部はチェイン中心線算
出部9と折れ線近似部11をその下位処理部として含む。
太さ分割処理部6により分割された個々の部分チェイン
(以下では単にチェインと呼ぶ)の中心線を中心線算出
部9で算出し、その中心点列を座標点列蓄積部10に蓄積
する。次いで、該中心線データを処理部11で折れ線近似
し、その屈曲点に対応する正方形アドレスを正方形アド
レス蓄積部12に蓄積する。
(D) Polygonal line approximation processing unit-This processing unit includes a chain center line calculation unit 9 and a polylined line approximation unit 11 as its subordinate processing units.
The center line calculation unit 9 calculates the center line of each partial chain (hereinafter, simply referred to as a chain) divided by the thickness division processing unit 6, and stores the center point sequence in the coordinate point sequence storage unit 10. Next, the center line data is approximated to a polygonal line by the processing unit 11, and a square address corresponding to the bending point is stored in the square address storage unit 12.

いま、上記(i)および(ii)の式で表現されるチェイ
ンCに対して、C上の正方形Siの中心点Pi Pi=(xi+li/2,yi+li/2) (iv) の例L(C) L(C)=〔P1,P2,…Pn〕 (v) を考え、これをチェインCの中心線と呼ぶ。また、チェ
インCの中心線(v)に対して、点Qi(i=1,2,…,n−
1)を2点PiとPi+1の中間点とするとき、点列 L′(C)=〔Q1,Q2,…Qm〕 (vi) を曲線L(C)の平滑化曲線と呼ぶ。
Now, with respect to the chain C represented by the above equations (i) and (ii), the center point Pi of the square Si on C Pi Pi = (xi + li / 2, yi + li / 2) (iv) Example L (C ) Consider L (C) = [P1, P2, ... Pn] (v), and call this the center line of the chain C. Further, with respect to the center line (v) of the chain C, points Qi (i = 1, 2, ..., N−
When 1) is an intermediate point between two points Pi and Pi + 1, the point sequence L '(C) = [Q1, Q2, ... Qm] (vi) is called a smoothed curve of the curve L (C).

チェインCの中心線L(C)を平滑化し、それぞれを通
常の手法により折れ線近似し、両端を受めたその屈曲点
の正方形アドレスをa0(=1),a1,…,ak(=n)(k
は近似線分の数)としたとき(第6図)、これをチェイ
ンCの折れ線近似と呼ぶ。第4図(a)の場合、太さ分
割された部分チェインの一つC1は屈曲点アドレスをa0
(=1),a1,a2,a3,a4(=n1)とする折れ線近似として
表現される。
The center line L (C) of the chain C is smoothed, each line is approximated by a polygonal line, and the square address of the bending point that receives both ends is a0 (= 1), a1, ..., ak (= n) (K
Is the number of approximate line segments) (FIG. 6), this is called the line approximation of the chain C. In the case of FIG. 4 (a), one of the thickness-divided partial chains C1 is the bending point address a0.
It is expressed as a polygonal line approximation with (= 1), a1, a2, a3, a4 (= n1).

第7図に折れ線近似処理部の実施例を示す。正方形アド
レス蓄積部7上の隣り合うアドレス対を7から読み出
し、その区間内の正方形データをチェインデータ蓄積部
5より順次読み出し、それぞれの正方形データをxレジ
スタ9−1、yレジスタ9−2、lレジスタ9−3に格
納する。これらのデータからは中心点算出回路により正
方形の中心点が求められ、レジスタ9−5に格納され
る。次いで該中心点データと遅延回路9−6の保持する
1動作前の中心点データは平均化回路9−7により平均
され両者の中間点が座標点列蓄積部10に格納される。5
内の対応する全ての正方形が処理されると、10内の点列
データは折れ線近似回路11により折れ線近似され、その
屈曲点正方形アドレスが正方形アドレス蓄積部12に格納
される。回路11は具体的には、点列の両端点でできる直
線と点列上の他の点との間の距離を用いることにより、
容易に実現できる。
FIG. 7 shows an embodiment of the polygonal line approximation processing unit. Adjacent address pairs on the square address accumulating unit 7 are read from 7, square data in the section are sequentially read from the chain data accumulating unit 5, and each square data is x register 9-1, y register 9-2, l. Store in register 9-3. From these data, the center point of the square is obtained by the center point calculation circuit and stored in the register 9-5. Next, the center point data and the center point data before one operation held by the delay circuit 9-6 are averaged by the averaging circuit 9-7, and the intermediate point between them is stored in the coordinate point sequence accumulating unit 10. 5
When all the corresponding squares in 10 have been processed, the point sequence data in 10 is subjected to polygonal line approximation by the polygonal line approximation circuit 11, and the bending point square address is stored in the square address accumulating unit 12. Specifically, the circuit 11 uses the distance between the straight line formed by the end points of the point sequence and other points on the point sequence,
Easy to implement.

(オ)心線構造記述処理部−本処理部は図形ファイル上
の心線構造データを各心線の連結関係、折れ線近似処理
による屈曲点正方形アドレス,チェインの太さの平均値
等により一つのテーブル(心線構造記述テーブルと呼
ぶ)として表現するものである。
(E) Core line structure description processing unit-This processing unit uses the core line structure data on the graphic file to create one core line structure data based on the connection relationship of each core line, the bending point square address by the broken line approximation process, the average value of the chain thickness, etc. It is expressed as a table (called a core structure description table).

いま、第8図(a)に示す図形を考える。これは図形フ
ァイル2上ではC1,C2,…,C6の6つのチェインJ1およびJ
2の2つのコネクタで構成されている。ここで、個々の
イェインを太さ分割すると例えばチェインC1はC11,C12
およびC13の3つの部分チェインに太さ分割され、その
他はそのままであるが、これらの間の連結関係(心線構
造)を形式的に陽に表現すれば第8図(b)のようにな
る。第8図では便宜上線図形の幅も表現している。この
場合、例えばチェインC13,C2,C3はコネクタJ1を介し
て、また、チェインC11とC12は太さ分割によって、隣接
していると言う。さらに、両者を総称して単にチェイン
が隣接していると言うこともある。心線構造記述テーブ
ルはこれらのチェインやコネクタとその間の関係を一つ
のデータ構造として表現したものである。本記述テーブ
ルは原画像の幾何学的構造を記述したものであり、これ
により複雑な処理が可能となる。
Now, consider the figure shown in FIG. This is 6 chains J1 and J of C1, C2, ..., C6 on the graphic file 2.
It consists of 2 connectors. Here, if the individual chains are divided into thicknesses, for example, the chain C1 becomes C11, C12.
The thickness is divided into three partial chains of C13 and C13, and the others are the same, but if the connection relation (core structure) between them is formally expressed explicitly, it becomes as shown in Fig. 8 (b). . In FIG. 8, the width of the line figure is also represented for convenience. In this case, for example, the chains C13, C2, C3 are said to be adjacent to each other via the connector J1, and the chains C11 and C12 are adjacent to each other by dividing the thickness. Further, the two may be collectively referred to simply as chains being adjacent to each other. The core structure description table represents these chains and connectors and the relationships between them as one data structure. This description table describes the geometric structure of the original image, which allows complicated processing.

第9図は第8図(b)に対する心線構造記述テーブルの
実施例を示したものである。第9図中、14−1はチェイ
ンデータに係わるもの、14−2はコネクタデータに係わ
るものである。14−1において、欄Tはチェインの平均
の太さを、NP TにおよびNP Bはチェインの先頭およ
び末尾において連結するチェインまたはコネクタへのポ
インタを表わしている(チェインを構成する正方形にお
いて、正方形アドレスが最小の正方形が存在するチェイ
ン上の端の部分を該チェインの先頭部、そのもう一方の
端の部分を該チェインの末尾と呼ぶ)。0は連結するも
のがないことを、負値はチェインへの連結を、正値はコ
ネクタへの連結を表わし、0以外の値の絶対値はそれぞ
れに応じたテーブル内のエントリーへの値(ポインタ)
を示している。欄FPは図形ファイル上の各心線要素への
ポインタである。これによってさらに細かい処理が可能
となる。欄TL TおよびTL Bは後述の直線追跡処理部
で書き込まれるリンクデータである。欄SAは折れ線近似
による屈曲点正方形アドレスである。それぞれの欄内の
データは第8図の図形に関する記述例である。
FIG. 9 shows an embodiment of the core structure description table for FIG. 8 (b). In FIG. 9, 14-1 relates to chain data, and 14-2 relates to connector data. In 14-1, column T shows the average thickness of the chain, NP T and NP B represents a pointer to a chain or a connector that connects at the beginning and end of the chain (in the squares forming the chain, the end part on the chain where the square with the smallest square address exists is the beginning part of the chain, The other end is called the end of the chain). 0 indicates that there is nothing to connect, negative value indicates connection to the chain, positive value indicates connection to the connector, and absolute value other than 0 indicates the value (pointer to the entry in the corresponding table). )
Is shown. The column FP is a pointer to each core element on the graphic file. This enables more detailed processing. Column TL T and TL B is link data written by a straight line tracking processing unit described later. Column SA is a bending point square address based on the polygonal line approximation. The data in each column is a description example regarding the graphic in FIG.

(カ)直線追跡処理部−本処理部は、図形ファイル2上
のチェインデータの全てに対して上記一連の処理が終了
すると起動がかけられ、心線構造記述テーブル上で直線
追跡処理を行なう。具体的には、コネクタを介してある
いは太さ分割によって隣接しているチェイン間の隣接点
(コネクタまたは太さ分割点)における直線としての連
続性(直線連続性)を順次検査していくことにより行な
われる。このような追跡処理を以下では直線追跡処理と
呼ぶ。
(F) Straight line tracing processing unit-This processing unit is activated when the above series of processing is completed for all the chain data in the graphic file 2, and performs straight line tracing processing on the core structure description table. Specifically, by sequentially checking the continuity (straight line continuity) as a straight line at an adjacent point (connector or thickness division point) between chains that are adjacent via a connector or by thickness division Done. Hereinafter, such a tracking process will be referred to as a straight line tracking process.

一般に心線構造記述テーブル上でのチェインは1個以上
の線分の連結(折れ線)として表現されている。この場
合、チェイン上での線分はその追跡方向を考慮すればそ
れぞれがベクトル(追跡ベクトル)とみなすことができ
る。したがってデータ構造上を直線追跡するということ
は、それぞれ互いに異なるチェイン上(の端)に存在し
て、かつ、互いに(始点と終点とが)コネクタを介して
または太さ分割によって隣接し合うベクトルの直線とし
ての連続性を調べ、もし両追跡ベクトルが直線を成すな
らば、対応するチェインデータ間に該テーブル上でリン
クを張ることである。なお、チェインCをある方向に追
跡した場合のk番目の折れ線構成ベクトルをV(C,k)
と表記するものとする。
Generally, a chain on the core structure description table is expressed as a connection (polygonal line) of one or more line segments. In this case, each line segment on the chain can be regarded as a vector (tracking vector) in consideration of its tracking direction. Therefore, tracing a straight line on a data structure means that vectors that are on different chains (ends) and that are adjacent to each other (start point and end point) via connectors or by thickness division The continuity as a straight line is checked, and if both tracking vectors form a straight line, a link is established on the table between the corresponding chain data. In addition, when the chain C is traced in a certain direction, the k-th polygonal line constituent vector is V (C, k)
Shall be written.

いま、第8図において図形を心線構造記述テーブル上で
左から追跡してきてチェインC11に達したとする。この
場合、ベクトルV(C11,4)とベクトルV(C12,1)との
間の直線連続性が次のパラグラフで説明する追跡ベクト
ルの直線連続性の検査法により調べられる。同様にして
ベクトルV(C12,1)とV(C13,1)との間の直線連続性
が調べられる。さらに直線追跡が進んでチェインC13に
達したとする。この場合、コネクタJ1を介してベクトル
V(C13,1)と直線連続するようなベクトルをもつチェ
インをJ1の近傍から選択する。この場合C3が選択され
る。以下このようにして直線追跡が行なわれる。チェイ
ン間の直線連続性の記述は上述のようにチェイン間にリ
ンクを張ることで行なわれるが、その具体的方法を第9
図により説明する。
It is now assumed that the figure is traced from the left on the core structure description table in FIG. 8 and reaches the chain C11. In this case, the linear continuity between the vector V (C11,4) and the vector V (C12,1) is examined by the method of checking the linear continuity of the tracking vector described in the next paragraph. Similarly, the linear continuity between the vectors V (C12,1) and V (C13,1) is examined. It is assumed that the straight line tracking further advances and reaches the chain C13. In this case, a chain having a vector that is linearly continuous with the vector V (C13,1) via the connector J1 is selected from the vicinity of J1. In this case C3 is selected. In the following, straight line tracking is performed in this manner. The description of the linear continuity between chains is made by linking the chains as described above.
It will be described with reference to the drawings.

第9図のテーブル14−1上の欄TL TおよびTL Bこれ
に係わるものであり、TL Tはチェインの先頭部でのリ
ンク情報を、TL Bはチェインの末尾でのリンク情報を
表わすのに用いられる。チェインC1とチェインC2との間
に直線連続性が存在するならば、C1のTL TまたはTL
Bの欄(どちらの欄からチェインの直線連続性の成り立
つ部分(先頭・末尾)による)には、その直線連続性が
太さ分割点上で成り立つならば1の値を、コネクタを介
して成り立つならばそのコネクタの欄NBR内でのチェイ
ンC2の番号を記入する。なお、各コネクタに対して、そ
の上を2本の追跡ベクトルが通過する場合はその交点が
計算され、属性(コネクタ通過点)として登録される。
Column TL on table 14-1 in FIG. 9 T and TL B Related to this, TL T is the link information at the beginning of the chain, TL B is used to represent the link information at the end of the chain. If there is a linear continuity between chain C1 and chain C2, TL of C1 T or TL
In column B (depending on which column the linear continuity of the chain holds (beginning / end)), if the linear continuity holds on the thickness dividing point, a value of 1 is established via the connector. If so, enter the number of chain C2 in the NBR column for that connector. When two tracking vectors pass on each connector, the intersection is calculated and registered as an attribute (connector passing point).

次に、追跡ベクトルの直線連続性の検査法について述べ
る。直線追跡においては先ず追跡開始のためのベクトル
が初期設定される。このベクトル(直線追跡ベクトル)
は本節で述べる直線連続性の検査の進行に従ってその先
頭が順次直線の追跡方向に伸びていく。いま、ある時点
における直線追跡ベクトルVを とする(Pt,Phをそれぞれ追跡ベクトルの末尾,先頭と
呼ぶ)。この場合、次に追跡すべきベクトルとしてベク
トルV′ を考えたとき、2つのベクトルがほぼ一直線に並び、か
つ、V′を表わす部分チェインC′が追跡開始チェイン
Cに比べて太くないならば、この直線追跡ベクトルVは
成長して となる(第10図(a))。次にC′が太い場合を考え
る。この場合、C′が長いときは直線追跡はこれで終了
するが、第10図(b)のように短いときは追跡ベクトル
Vはこのままにしておき、さらにその先のチェイン(ベ
クトル)の追跡に移る。ここでその先の追跡ベクトル
V″ が存在して、しかも例えば第10図(b)のように細いな
らば、直線追跡ベクトルVは成長して となる。また、第10図(c)のように次に隣接するチェ
イン(ベクトル)が存在しなければ、直線追跡ベクトル
Vは成長して となる。ここに、Poは点Ph′からベクトルVに下ろした
垂線の足である。
Next, a method for checking the linear continuity of the tracking vector will be described. In straight line tracking, a vector for starting tracking is initially set. This vector (straight line tracking vector)
As the line continuity check described in this section progresses, the head of the line continuously extends in the line tracing direction. Now, the straight line tracking vector V at a certain point (Pt and Ph are called the end and the beginning of the tracking vector, respectively). In this case, the vector V'as the next vector to be tracked. , If the two vectors are almost aligned and the partial chain C'representing V'is not thicker than the tracking start chain C, the straight line tracking vector V grows. (Fig. 10 (a)). Next, consider the case where C'is thick. In this case, when C'is long, the straight line tracking is finished, but when it is short as shown in FIG. 10 (b), the tracking vector V is left as it is, and the chain (vector) is further tracked. Move. Here the tracking vector V ″ Exists, and is thin as shown in FIG. 10 (b), the straight line tracing vector V grows. Becomes If there is no next adjacent chain (vector) as shown in FIG. 10 (c), the line tracing vector V grows. Becomes Here, Po is the foot of the perpendicular line drawn from the point Ph 'to the vector V.

(キ)線図形出力処理部−本処理部は心線構造記述テー
ブル14上に記述されたチェインおよび該チェインと直線
連続するチェインを一つの線図形(折れ線近似を表わす
座標点列として表現されている)として取りだし、この
ようにして取りだされる線図形を統合して外部記憶装置
あるいはファックス出力装置・図形表示装置等に出力す
るものであり、本処理部の起動は直線追跡処理部の終了
信号によりかけられる。
(G) Line figure output processing section-This processing section represents a chain described on the core structure description table 14 and a chain linearly continuous with the chain as one line figure (a coordinate point sequence representing a polygonal line approximation). The line drawing extracted in this way is integrated and output to an external storage device, a fax output device, a graphic display device, or the like. Called by a signal.

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

以上説明したように、本発明によれば、従来の技術では
全てを満たすことのできなかった前述の諸条件(二値画
像から線図形を抽出する場合の条件)、すなわち (a)原画像に忠実に線図形が抽出できること、 (b)微細図形が線図形の直線部および屈曲点部のどち
らかにおいて接触・交差していても抽出処理が可能なこ
と、 (c)原画像から線図形を抽出・分離した後の残された
微細図形はその形状が損なわれないこと、 (d)必要に応じて図形要素をもつ意味内容に基づく高
次の処理に対処できること、 を全て満たすことが可能となる。
As described above, according to the present invention, the above-described various conditions (conditions for extracting a line figure from a binary image) that cannot be satisfied by the conventional technique, that is, (a) The line figure can be faithfully extracted, (b) the extraction process can be performed even if the fine figure is in contact with or intersects with either the straight line portion or the bending point portion of the line figure, (c) the line figure can be extracted from the original image. It is possible to satisfy all that the shape of the remaining fine figure after extraction / separation is not impaired, and (d) it is possible to deal with higher-level processing based on the semantic content having a figure element if necessary. Become.

第11図は本装置により二値画像から線図形の抽出処理を
行なった例であって、同図(a)は原画像、(b)は直
線抽出の処理結果である。第11図から分かるように、文
字・記号等が線図形に屈曲点部分で接触・交差している
場合でも直線が忠実に抽出されているのが分かる。な
お、これらの線分の連結関係は全て心線構造記述テーブ
ルに記述されているので、必要ならばより上位のデータ
処理部を構成し、これに該心線構造記述テーブルを接続
することも可能となる。
FIG. 11 shows an example in which line graphics are extracted from a binary image by the present apparatus. FIG. 11 (a) shows the original image and FIG. 11 (b) shows the result of straight line extraction. As can be seen from FIG. 11, straight lines are faithfully extracted even when characters / symbols, etc., contact and intersect the line figure at the bending points. Since the connection relationships of these line segments are all described in the core structure description table, it is possible to configure a higher-level data processing unit and connect the core structure description table to this if necessary. Becomes

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

第1図は本発明の一実施例(装置構成図)を示してい
る。 第2図は心線抽出例を示している。 第3図は図形ファイル構成の概念図であり、(a)は最
大正方形の連結関係によるグルーピング、(b)は心線
データの線形化表現である。 第4図はチェインの太さによる分割を説明しており、
(a)は線図形の例(1つのチェインとして表現される
とする)、(b)はチェイン(a)の辺長数列のグラフ
表示を示している。 第5図は太さ分割処理部の実施例を示している。 第6図はチェインの折れ線近似の説明図である。 第7図は折れ線近似処理部の実施例を示している。 第8図は線図形の構造表現の説明図であり、(a)は図
形の例、(b)は図形(a)の心線構造表現の概念図で
ある。 第9図は心線構造記述テーブルの実施例(第8図(b)
に対応させた場合)である。 第10図は追跡ベクトルの直線連続性の検査法の説明図で
ある。 第11図は本装置による線図形抽出処理の例であり、
(a)は原画像を(b)は直線の抽出処理結果を示して
いる。 1……図面等(二値画像データ)、2……図形ファイ
ル、3……図形ファイル操部、4……チェインデータ選
択・読み出し部、5……チェインデータ蓄積部、5−1
……座標点列データ(x座標)を格納するFIFO型レジス
タ、5−2……座標点列データ(y座標)を格納するFI
FO型レジスタ、5−3……正方形辺長数列データを格納
するFIFO型レジスタ、6……太さ分割処理部、6−1…
…コントローラ、6−2……アドレスカウンタ、6−3
……辺長値レジスタ、6−4……加算器、6−5……差
分レジスタ、6−6……遅延回路、6−7……差分レジ
スタ、6−9……判定回路、6−10……判定回路、6−
11……変化点レジスタ、6−12……同値数カウンタ、6
−13……定数値レジスタ、6−14……定数値レジスタ、
6−15〜6−21……処理回路、7……正方形アドレス蓄
積部、8……折れ線近似処理部、9……チェイン中心線
算出部、9−1,9−2,9−3……x,y,lを格納するレジス
タ、9−4……中心点算出回路、9−5……座標点格納
レジスタ、9−6……遅延回路、9−7……中間点算出
回路、10……座標点列蓄積部、11……折れ線近似部、12
……正方形アドレス蓄積部、13……心線構造記述処理
部、14……心線構造記述テーブル、15……直線追跡処理
部、16……線図形出力処理部。
FIG. 1 shows an embodiment (apparatus configuration diagram) of the present invention. FIG. 2 shows an example of core line extraction. FIG. 3 is a conceptual diagram of the configuration of a graphic file. (A) is a grouping based on the connection relation of the largest squares, and (b) is a linearized representation of core data. FIG. 4 explains the division by the thickness of the chain,
(A) shows an example of a line figure (it is expressed as one chain), and (b) shows a graph display of the side length sequence of the chain (a). FIG. 5 shows an embodiment of the thickness division processing section. FIG. 6 is an explanatory diagram of the broken line approximation of the chain. FIG. 7 shows an embodiment of the polygonal line approximation processing unit. FIG. 8 is an explanatory diagram of a structural representation of a line figure, (a) is an example of the figure, and (b) is a conceptual diagram of the core line structure representation of the figure (a). FIG. 9 shows an example of a core structure description table (FIG. 8 (b)).
It corresponds to)). FIG. 10 is an explanatory diagram of a method for inspecting the linear continuity of tracking vectors. FIG. 11 is an example of line figure extraction processing by this device,
(A) shows an original image and (b) shows a straight line extraction processing result. 1 ... Drawings (binary image data), 2 ... Graphic file, 3 ... Graphic file operation unit, 4 ... Chain data selection / reading unit, 5 ... Chain data storage unit, 5-1
...... FIFO type register that stores coordinate point sequence data (x coordinate), 5-2 FI that stores coordinate point sequence data (y coordinate)
FO type register, 5-3 ... FIFO type register for storing square side length sequence data, 6 ... Thickness division processing unit, 6-1 ...
… Controller, 6-2 …… Address counter, 6-3
... edge length value register, 6-4 ... adder, 6-5 ... difference register, 6-6 ... delay circuit, 6-7 ... difference register, 6-9 ... judgment circuit, 6-10 ... Judgment circuit, 6-
11 …… Change point register, 6-12 …… Equivalent number counter, 6
-13 ... Constant value register, 6-14 ... Constant value register,
6-15 to 6-21 ... Processing circuit, 7 ... Square address storage unit, 8 ... Broken line approximation processing unit, 9 ... Chain center line calculation unit, 9-1, 9-2, 9-3. Registers for storing x, y, l, 9-4 ... Center point calculation circuit, 9-5 ... Coordinate point storage register, 9-6 ... Delay circuit, 9-7 ... Intermediate point calculation circuit, 10 ... … Coordinate point sequence accumulation part, 11 …… Polygonal line approximation part, 12
…… Square address storage unit, 13 …… Core line structure description processing unit, 14 …… Core line structure description table, 15 …… Line tracing processing unit, 16 …… Line figure output processing unit.

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】線図形および文字・記号(微細図形と呼
ぶ)で構成される二値画像データ中から該線図形を追跡
・抽出し、折れ線近似する線図形処理装置において、 (a)該二値画像に含まれる各図形要素の心線データ
(該図形要素に内接する最大の正方形(最大正方形と呼
ぶ)の列(チェインと呼ぶ)と、チェインとチェインと
を連結しかつ図形に内接する最大正方形(コネクタと呼
ぶ)、およびそれらの間の連結関係を表現する構造体
(心線構造と呼ぶ)に関するデータ)を記述することに
より、該二値画像を予め一つの図形ファイルとしてファ
イル化し、該図形ファイルから心線データを必要に応じ
て読み出す図形ファイル操作部と、 (b)該図形ファイル操作部を介して図形ファイルから
チェインデータを選択し、読み出すチェインデータ選択
・読み出し部と、 (c)該選択・読み出し部によって取り込まれたチェイ
ンデータを、該チェインデータを構成している正方形の
辺長データに基づいて、太さ毎に部分データに分割する
太さ分割処理部と、 (d)該太さ分割処理部により分割された該チェインの
各部分のデータ(部分チェインデータと呼ぶ)を折れ線
近似する折れ線近似処理部と、 (e)該太さ分割処理部で得られる各部分チェインデー
タに係わる心線構造を、該折れ線近似処理部で得られる
データに基づいて、テーブル(心線構造記述テーブルと
呼ぶ)として記述する心線構造記述処理部と、 (f)該心線構造記述処理部により記述される心線構造
記述テーブル上のチェインデータを該テーブル上のボイ
ンタを辿ることにより追跡し、該チェインデータと隣接
するチェインデータが一本の直線として連続する(直線
連続すると言う)かどうかを判定し、直線連続する場合
には該二つのチェインデータ間に該テーブル上でリンク
を張る直線追跡処理部と、 (g)該直線追跡処理部により直線追跡された該心線構
造記述テーブルから、該テーブル上でリンクを張られた
チェインデータは直線として連続することを利用して、
線図形データを折れ線近似を表わす点列として出力する
線図形出力処理部、 とから構成されることを特徴とする線図形処理装置。
1. A line figure processing apparatus which traces and extracts the line figure from binary image data composed of line figures and characters / symbols (referred to as fine figures) to approximate a polygonal line. The core data of each graphic element included in the value image (the column of the largest square (called the maximum square) inscribed in the graphic element (called a chain) and the maximum connecting the chain to the chain and inscribed in the graphic) By describing squares (referred to as connectors) and structures (referred to as core structure) that represent the connection between them, the binary image is filed in advance as a single graphic file, and A graphic file operation unit for reading core data from the graphic file as necessary, and (b) a chain for selecting and reading chain data from the graphic file via the graphic file operation unit. A data selection / reading unit, and (c) the chain data fetched by the selection / reading unit is divided into partial data for each thickness based on the side length data of the squares forming the chain data. A thickness division processing unit; (d) a polygonal line approximation processing unit that approximates the data (referred to as partial chain data) of each part of the chain divided by the thickness division processing unit to a polygonal line; and (e) the thickness A core line structure description processing unit that describes the core line structure related to each partial chain data obtained by the division processing unit as a table (called a core line structure description table) based on the data obtained by the polygonal line approximation processing unit. (F) The chain data on the core structure description table described by the core structure description processing unit is traced by tracing the pointer on the table, and is adjacent to the chain data. Whether the chain data is continuous as one straight line (which is called a straight line), and if the straight chain is continuous, a straight line tracking processing unit that links the two chain data on the table; g) Utilizing that the chain data linked on the table is continuous as a straight line from the core structure description table traced by the straight line processing unit,
A line figure output processing unit that outputs line figure data as a sequence of points representing a polygonal line approximation, and a line figure processing apparatus.
【請求項2】太さ分割処理部において、各図形要素のチ
ェインデータを、該チェインを構成する各正方形の辺長
のデータ列により、太い部分と細い部分へ分割すること
を特徴とする特許請求の範囲第1項記載の線図形処理装
置。
2. The thickness division processing unit divides the chain data of each graphic element into a thick portion and a thin portion by a data string of the side length of each square forming the chain. The line figure processing device according to the first section.
【請求項3】折れ線近似処理部において、各図形要素の
チェインの中心線を該チェインを構成する各正方形の中
心点のデータ列として算出し、該データ列(座標点列)
を線分の連結として近似することにより、該チェインデ
ータを折れ線近似することを特徴とする特許請求の範囲
第1項記載の線図形処理装置。
3. A polygonal line approximation processing unit calculates a center line of a chain of each graphic element as a data string of center points of squares forming the chain, and the data string (coordinate point string).
The line figure processing apparatus according to claim 1, wherein the chain data is approximated to a broken line by approximating as a line segment connection.
【請求項4】直線追跡処理部において、上記心線構造記
述テーブル上の二つのチェインデータが直線連続するか
どうかの判定をチェインの太さ情報を用いて行うことを
特徴とする特許請求の範囲第1項記載の線図形処理装
置。
4. The straight line tracking processing unit determines whether or not two chain data on the core structure description table are continuous in a straight line by using chain thickness information. The line graphic processing device according to item 1.
JP28386885A 1985-12-17 1985-12-17 Line figure processing device Expired - Fee Related JPH0679350B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP28386885A JPH0679350B2 (en) 1985-12-17 1985-12-17 Line figure processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP28386885A JPH0679350B2 (en) 1985-12-17 1985-12-17 Line figure processing device

Publications (2)

Publication Number Publication Date
JPS62143192A JPS62143192A (en) 1987-06-26
JPH0679350B2 true JPH0679350B2 (en) 1994-10-05

Family

ID=17671210

Family Applications (1)

Application Number Title Priority Date Filing Date
JP28386885A Expired - Fee Related JPH0679350B2 (en) 1985-12-17 1985-12-17 Line figure processing device

Country Status (1)

Country Link
JP (1) JPH0679350B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2529115Y2 (en) * 1990-06-01 1997-03-19 株式会社シマノ Swing rod

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
情報処理学会第29回(昭和59年後期)全国大会講演論文集1M−1,PP.1035〜1036(昭59−9)
情報処理学会第30回(昭和60年前期)全国大会講演論文集2M−5,PP.1155〜1156(昭60−3)
電子通信学会研究会資料PRL85−56,PP.105〜112(昭60−12−19)

Also Published As

Publication number Publication date
JPS62143192A (en) 1987-06-26

Similar Documents

Publication Publication Date Title
Nakagawa et al. A note on polygonal and elliptical approximation of mechanical parts
JP2640673B2 (en) Pattern recognition device
JP2823882B2 (en) Line image vectorization method
KR910001525B1 (en) Method of curve approximation
JPH0679350B2 (en) Line figure processing device
JPH04141783A (en) Device and method for preparing electron beam graphic data
JP2701003B2 (en) Solid model synthesizing apparatus and solid model synthesizing method
JPH01134672A (en) Divided image processing system
JP2897541B2 (en) Closed figure extraction method
JP2683026B2 (en) Line figure vectorization device
JPS603073A (en) Pattern extraction system
JP2633523B2 (en) Handwriting input device
JP2734107B2 (en) Image data centering processing method
JP2559359B2 (en) Image structure storage method and image registration apparatus
JP2501832B2 (en) Extraction method of color mark area
JP2587812B2 (en) Figure extraction method
JPH0658689B2 (en) Line figure separation device
JPH0719292B2 (en) Image feature point detection method
JPH05233798A (en) Image processing method
JPH0447867B2 (en)
JPH03269689A (en) Document reading device
JPH0420221B2 (en)
JP3426005B2 (en) Line figure input device
JPH035630B2 (en)
JP2867650B2 (en) Symbol candidate area detection method

Legal Events

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