JPS62143192A - Linear graphic processor - Google Patents
Linear graphic processorInfo
- Publication number
- JPS62143192A JPS62143192A JP28386885A JP28386885A JPS62143192A JP S62143192 A JPS62143192 A JP S62143192A JP 28386885 A JP28386885 A JP 28386885A JP 28386885 A JP28386885 A JP 28386885A JP S62143192 A JPS62143192 A JP S62143192A
- Authority
- JP
- Japan
- Prior art keywords
- data
- line
- chain
- graphic
- square
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Landscapes
- Image Processing (AREA)
- Character Discrimination (AREA)
Abstract
Description
【発明の詳細な説明】
〔産業上の利用分野〕
本発明は、線図形処理装置、特に、図面等、線図形を主
体とし、かつ該線図形に文字、記号等の微細図形が該線
図形の直線部または屈曲点部において接触・交差してい
る二値画像から、該線図形を精度よく忠実に抽出し、こ
れをして地理データペースにおける地形図・住宅図の自
動入力、あるいは図面デー・タペースにおける各種図面
の自動入力等を効率よく行なわしめる線図形処理装置に
関するものである。[Detailed Description of the Invention] [Industrial Application Field] The present invention relates to a line figure processing device, in particular, a line figure processing device that mainly handles line figures such as drawings, and in which minute figures such as characters and symbols are included in the line figure. Line shapes are accurately and faithfully extracted from binary images that touch or intersect at straight lines or bending points, and this is used to automatically input topographic maps and residential maps in geographic databases, or to input drawing data. - It relates to a line figure processing device that efficiently performs automatic input of various drawings in Tapace.
従来のこの種の装置を実現する方式としては、(イ)画
像データを画像メモリ上で細線化して得られる黒画素列
を直線近似する方式、
(ロ)線図形を境界線が平行な細長い黒画素領域とみな
し、該境界線対を用いて線図形を追跡・抽出する方式、
(ハ)図形の境界線追跡と境界線に沿った距離情報によ
り境界線の包囲関係と外接長方形を求め、線図形を抽出
する方式、
に)黒画素領域を追跡しながら追跡方向上で直線的に連
続する黒画素領域の長さおよび該追跡方向の直角方向の
黒画素数を求めることにより直線図形を抽出する方式、
等が発表されている。Conventional methods for realizing this type of device include (a) a method of linearly approximating a black pixel array obtained by thinning image data on an image memory, and (b) a method of rectilinear approximation of a black pixel row obtained by thinning image data on an image memory, and (b) a method of rectilinear approximation of a black pixel row obtained by thinning image data on an image memory, and (b) a method of linearly approximating a line figure with a long and narrow black pixel row with parallel boundaries. A method of tracing and extracting a line figure using the pair of boundary lines, which is regarded as a pixel area. A method for extracting figures: 2) Extracting a straight line figure by tracking the black pixel area and finding the length of the black pixel area that is linearly continuous in the tracking direction and the number of black pixels in the direction perpendicular to the tracking direction. methods, etc. have been announced.
この内、(イ)は画像メモリ上で画像データの構成要素
である各図形データに対し、細線化処理を施しているが
、このため交点の変化やヒゲの発生によって画質が劣化
し、線幅情報や面情報が欠如するため、線図形と微細図
形との区別がつかなくなシ、線図形全原画像に忠実に抽
出するには適していない。Among these, in (a), line thinning processing is applied to each figure data that is a constituent element of image data in the image memory, but as a result, the image quality deteriorates due to changes in intersection points and the occurrence of whiskers, and the line width Due to the lack of information and surface information, it is difficult to distinguish between line figures and fine figures, and it is not suitable for faithfully extracting line figures from the entire original image.
これに対して(ロ)、(ハ)およびに)の各方式は細線
化処理を施さない方式であるが、この中で、(ロ)は境
界線追跡のみに基づいているため、線図形と微細図形を
分離することはできない。したがって、微細図形が線図
形に接触・交差しているような画像から線図形を抽出す
るには適していない。On the other hand, methods (b), (c), and (b) do not perform line thinning processing, but among these, (b) is based only on boundary line tracing, so it It is not possible to separate minute figures. Therefore, it is not suitable for extracting line figures from images in which fine figures touch or intersect with line figures.
(ハ)の方式は距離情報を用いているため、微細図形が
線図形に接触しているような場合には対処できる。しか
し、この場合も微細図形が線図形に交差しているような
場合には対処できない。Since the method (c) uses distance information, it can deal with cases where a minute figure is in contact with a line figure. However, even in this case, it is not possible to deal with a case where a minute figure intersects a line figure.
これに対して、に)の方式は図形を表わす黒画素領域上
に直線を当てはめているので、g4t1図形が線図形に
接触・交差している場合にも対処できるが、ただし、そ
れは微細図形が線図形の直線部において接触・交差して
いる場合のみであって、屈曲点部で接触・交差している
場合には抽出不可能となる。On the other hand, the method in ) applies a straight line to the black pixel area representing the figure, so it can deal with the case where the g4t1 figure touches or intersects the line figure. Extraction is not possible only when the lines touch or intersect at the straight line parts of the line figures, and when they touch or intersect at the bending points.
さらに、一般の画像データにおいては比較的小さい同じ
一つの図形が例えば図面の種類によシ線図形として現れ
たり、微細図形として現れたシすることがしばしば生じ
、これに対処するためには図形のもつ意味内容を考慮し
た高次の処理が必要となる。しかしながら、上記の各方
式はいずれもそのままではこの問題に対処することはで
きない。Furthermore, in general image data, the same relatively small figure often appears as a line figure or as a fine figure depending on the type of drawing, and to deal with this, it is necessary to High-order processing that takes into account the semantic content of the information is required. However, none of the above methods can deal with this problem as is.
一般に、与えられた二値画像から線図形を抽出する場合
の条件(以下では抽出処理条件と呼ぶ)として、
(a) 原画像に忠実に線図形が抽出できること、(
b) e線図形が線図形の直線部および屈曲点部のど
ちらにおいて接触・交差していても抽出処理が可能なこ
と、
(c)原画像から線図形を抽出・分離した後の残された
微細図形はその形状が損なわれないこと1
(d) 必要に応じて図形要素がもつ意味内容に基づ
く高次の処理に対処できること、
を挙げることができる。上記の方式はこれらの抽出処理
条件を全て満たすようなものでないため、適用領域に自
ずと限界が生ずる。Generally, the conditions for extracting line figures from a given binary image (hereinafter referred to as extraction processing conditions) are: (a) line figures can be extracted faithfully to the original image;
b) Extraction processing is possible even if the e-line figure touches or intersects at either the straight line part or the bending point part of the line figure; (c) The extraction process is possible even if the e-line figure is in contact with or intersects with the straight line part or the bending point part of the line figure; (c) The remaining after the line figure is extracted and separated from the original image (1) The shape of minute figures is not damaged; (d) The ability to handle higher-level processing based on the meaning of graphical elements as necessary. Since the above-mentioned method does not satisfy all of these extraction processing conditions, there is a natural limit to its applicable range.
本発明は、これらの条件を全て満たすことを目的として
いるが、具体的には、与えられた二値画像データの中の
各図形要素を、該図形要素に内接しかつ互いに隣接する
最大の正方形(最大正方形と呼ぶ、また、以下では単に
正方形と呼ぶこともある)の正方形データ列(チェイン
と呼ぶ)と、チェイ/とチェインとを連結しかつ該図形
に内接する最大正方形(コネクタと呼ぶ)とで構成され
る構造体として表現することにより、該二値画像データ
を一つの図形ファイルとしてファイル化し、これに基づ
いて図形のデータ記述を行ない、さらにこのデータ記述
上を直線追跡処理を施すことにより、上記難点を解決す
ることを目的としている。The purpose of the present invention is to satisfy all of these conditions. Specifically, the present invention aims to define each graphical element in given binary image data by the largest square inscribed in the graphical element and adjacent to each other. (referred to as the maximum square, and hereinafter also referred to simply as a square), a square data string (referred to as a chain), and the maximum square that connects the chain and the chain and is inscribed in the figure (referred to as a connector) By expressing the binary image data as a structure consisting of The aim is to solve the above-mentioned difficulties.
なお、図形のチェインとコネクタを該図形の心線と総称
する。したがうて、該図形ファイルは図形の心線講造体
とみなすことができる。すなわち、該図形ファイルは、
原画像データの幾何学的構造をチェインとコネクタとの
連結関係として表現しており、チェインデータは線図形
の各場所での線幅を、あるいは微細図形の面の情報を正
方形の辺の長さく辺長と呼ぶ)としてもっており、しか
も原画像を完全に再現するため、上記(a)〜(d)の
それぞれの抽出処理条件を満たすような方式を構成する
のに容易に対処することができる。Note that the chain and connector of a figure are collectively referred to as the core wire of the figure. Therefore, the graphic file can be regarded as a core structure of the graphic. That is, the graphic file is
The geometric structure of the original image data is expressed as a connection relationship between chains and connectors, and the chain data is expressed as the line width at each location of a line figure, or the surface information of a minute figure as the length of a square side. Moreover, since it completely reproduces the original image, it can easily be used to construct a method that satisfies each of the extraction processing conditions in (a) to (d) above. .
第7図に本発明に係わる装置構成の実施例を示す。図面
等の与えられた二値画像データ/は図形ファイル操作部
3により予め図形の心線構造を記述した図形7フイルコ
としてファイル化され、以下、線図形抽出に係わる処理
はこの図形ファイルからチェインデータを順次読み出し
ながら処理されていくが、ここでは、先ず、処理の全体
的流れの眼要を述べておく。チェインデータ選択・読み
出し部≠により図形ファイル操作部3全介して固形ファ
イルコから取シ込まれたチェインデータは一旦チェイン
データ蓄積部よに蓄積された後、太さ分割処理部6によ
り/−)またはそれ以上の部分チェインデータに分割さ
れ、その分割点の正方形アドレス(チェインを構成する
各正方形は隣接関係に従ってl、2.・・・の順にアド
レスが付けられている)が正方形アドレス蓄積部7に蓄
積される。FIG. 7 shows an embodiment of the device configuration according to the present invention. The given binary image data of a drawing etc. is converted into a file by the figure file operation unit 3 as a figure 7 file that describes the core structure of the figure in advance. are sequentially read out and processed, but here, first, an overview of the overall flow of processing will be described. The chain data imported from the solid file controller via the graphic file operation section 3 by the chain data selection/reading section≠ is once stored in the chain data storage section, and then processed by the thickness division processing section 6/-) or more partial chain data, and the square address of the division point (each square composing the chain is assigned an address in the order of 1, 2, etc. according to the adjacency relationship) is stored in the square address storage unit 7. is accumulated in
蓄積部7上の分割点正方形アドレスおよびチェインデー
タ蓄積部!上のチェインデータで定まる部分チェイン(
分割部分チェイン)は折れ線近似処理部どにより折れ線
近似され、その屈曲点正方形アドレスが7と同じ構成の
正方形アドレス蓄積部/2に蓄積される。次いで、該各
分割部分チェインはその屈曲点正方形アドレスおよびそ
れに係わるコネクタとともに心線構造記述処理部13に
より心線構造記述テーブル/l’上に記述・登録される
。図形フフイルコ上のチェインデータの全てに対してこ
れらの一連の処理が終了すると、直線追跡処理部l!が
起動し、心線構造記述テーブルl≠上の心線データを直
線追跡し、テーブル上で直線部分の抽出を行なう。この
処理が終了すると、線図形出力処理部/6が起動し、核
テーブル上の直線データ全探索し、必要に応じてファッ
クス出力装置あるいは図形表示装置等へ該直線データを
出力する。Dividing point square address on storage unit 7 and chain data storage unit! Partial chain determined by the above chain data (
The divided partial chain) is approximated by a polygonal line by a polygonal line approximation processing unit, and its bending point square address is stored in a square address storage unit /2 having the same configuration as 7. Next, each divided partial chain is described and registered on the fiber structure description table /l' by the fiber structure description processing unit 13 together with its bending point square address and its associated connector. When this series of processing is completed for all the chain data on the graphic file, the straight line tracing processing unit l! is started, the fiber data on the fiber structure description table l≠ is traced in a straight line, and straight line portions are extracted on the table. When this processing is completed, the line figure output processing section/6 is activated, searches all the line data on the core table, and outputs the line data to a facsimile output device, a graphic display device, etc. as necessary.
以下、各処理部の機能についてその概要と実現法を説明
していく。Below, we will explain the outline and implementation method of the functions of each processing unit.
(7)図形ファイル操作部 一本操作部は、ディジタイ
ズされた二値図形の心線構造抽出法として提案されたM
UM法(Wakayama+ T+ ’ Core−L
ine Tracing 人1gorithm
Ba5ed on MaximalSquareM
oving+ ’ IIJB Trans、 PAMI
+ Vol、 PAMI−@、A/(/9’f2))
で得られる心mf−タの表現形式を用いて、二値画像を
一つのファイル(図形ファイル)としてフフイル化し、
必要に応じてファイルから図形データを検索する。第2
図に心線データの抽出例を示す。(7) Figure file operation section The single operation section is based on M
UM method (Wakayama+T+' Core-L
ine Tracing person 1gorithm
Ba5ed on MaximalSquareM
oving+' IIJB Trans, PAMI
+ Vol, PAMI-@, A/(/9'f2))
Using the representation format of the heart mf-ta obtained in , convert the binary image into a single file (graphic file),
Search for graphic data from files as needed. Second
The figure shows an example of core wire data extraction.
第2図ではY軸は下向きに取っである(以下同様)、i
、2′A中、・は図形に内接する最大正方形(の中心点
)を表わし、その連結は図形の心線を表わす。図形ファ
イルのデータ構成を@3図に示す。第3図で(a)は第
2図の心タ一部分(・は最大正方形)を表わしている。In Figure 2, the Y axis points downward (the same applies hereafter), i
, 2'A, . represents (the center point of) the largest square inscribed in the figure, and the connection thereof represents the central line of the figure. The data structure of the graphic file is shown in Figure @3. In FIG. 3, (a) represents a portion of the center of FIG. 2 (* indicates the largest square).
図形の心線において隣り合う2つの最大正方形は互いに
MSM隣接すると言う。第3図のように心線は、その分
岐点の幾何学的形状によりチェインと呼ばれる互いにM
SM隣接した最大正方形の順序列(0/、0.2等)と
、チェインとチェインを連結するJ/、J2等の最大正
方形(これをコネクタと呼ぶ)に分解することができる
0図形ファイルでの心線データは同図(b)に示すよう
にチェインとコネクタとの間の連結関係によって線形表
現される。この場合、ファイル内での各チェインおよび
コネクタは該ファイル上でアドレス(チェインアドレス
、コネクタアドレス)が付けられ、これらのデータはそ
のアドレスを与えることによって読み出される。なお、
本図形ファイル操作部は1文献[着出、”MSM心線デ
ータを用いた図形操作、′ 情処学会研資、0V27−
.2(/り13)Jに示す方法を応用して実現される。Two largest squares that are adjacent to each other in the center line of a figure are said to be MSM adjacent to each other. As shown in Figure 3, the core wires are mutually M
SM is a 0 shape file that can be decomposed into an ordered sequence of adjacent maximum squares (0/, 0.2, etc.) and maximum squares such as J/, J2 that connect chains (this is called a connector). The core wire data is linearly expressed by the connection relationship between the chain and the connector, as shown in FIG. 3(b). In this case, each chain and connector within a file is given an address (chain address, connector address) on the file, and these data are read by giving that address. In addition,
This figure file operation section is based on the following reference: ``Graphic operation using MSM fiber data,'' Information Processing Society Research Fund, 0V27-
.. This is realized by applying the method shown in 2(/ri13)J.
(イ) チェインデータ選択・読み出し部 −本処理部
は上記(7)項記載の図形ファイル内のデータをチェイ
ンアドレスを与えることによりファイルの先頭から1′
、A次読み出していくが、最初は、初期設定信号により
チェインアドレスを初期設定し、最初のチェインデータ
をトヱみ出す。その後は心線構造記述処理部/3・つ)
多丁信号を受は取ることによりチェインアドレスを進め
、そのアドレスでチェインデータを読み出す。読み出さ
れたデータはチェインデータ蓄積部jに蓄積される。(b) Chain data selection/reading unit - This processing unit reads the data in the graphic file described in item (7) above 1' from the beginning of the file by giving a chain address.
, A-order reading is performed. First, the chain address is initialized by the initial setting signal, and the first chain data is read out. After that, the core structure description processing section/3)
The chain address is advanced by receiving and receiving the multi-copy signal, and the chain data is read at that address. The read data is stored in chain data storage section j.
一般1・こチェインOは、その定義から、互いにM S
M隣接する最大正方形Si (i=/、 2.・・・
。General 1. From its definition, this chain O is mutually M S
M adjacent largest squares Si (i=/, 2....
.
口)の列
0=CS/、 Sj、 ・=、 Sn ] (
1)として表現することができる、1ここで、nをチェ
イン0の長さ、i f Oにおける正方形S1のアドレ
ス(正方形アドレス)と呼ぶ。また、0を構成する正方
形Siは
Si=[(xi、 yi)、 At 〕(if)(xi
、yi):正方形の左上頂点座標ti:正方形の辺長(
=0.へコ・・・)と記述することができる。このとき
、考えられるチェインの長さの最大値をMとするならば
、チェインデータ蓄積部まはそれぞれがxi+ yL
tiを蓄積する長さMのFIFO型のレジヌタj−/、
ターλ・j−3の3本で構成されることとなる。column 0=CS/, Sj, ・=, Sn ] (
1) where n is the length of chain 0 and is called the address of square S1 in i f O (square address). In addition, the square Si that constitutes 0 is Si = [(xi, yi), At ] (if) (xi
, yi): Coordinates of the upper left vertex of the square ti: Side length of the square (
=0. It can be written as ``heko...''. At this time, if the maximum possible chain length is M, each chain data storage section or each chain is xi + yL.
a FIFO type register j-/ of length M that accumulates ti;
It is composed of three pieces: λ·j−3.
(つ)太さ分割処理部 −本処理部はチェインデータ蓄
積部jに蓄積されているチェインをその太さによって細
い部分と太い部分に分割する。(1) Thickness division processing section - This processing section divides the chain stored in the chain data storage section j into a thin part and a thick part according to its thickness.
いま、チェインC上の正方形アドレス1に対する辺長1
4の数列を
L(4= CL/ 、 ti、・・・、ム〕01i)と
し、これをチェインCの辺長数列と呼ぶものとする。辺
長数列はOの線幅を与えるものである。このとき、第4
図(a)に示す線図形〔1つのチェインCとして表現さ
れているとする〕に対して、横軸に正方形アドレスを、
縦軸に辺長をと9、その辺長数列をプロットすれば、第
≠図(b)のようになろう。0を辺長数列により細い部
分と太い部分に分割するならば、その分割点はアドレス
aj+ a4’+ ajおよびa6で示される正方形(
の中心)が妥当である このようにチェインをその辺長
数列によって1つまたはそれ以上のチェインに分割する
ことをチェインを太さ分割すると言う。Now, side length 1 for square address 1 on chain C
Let the sequence of 4 be L (4=CL/ , ti, . . . , Mu]01i), and this will be called the side length sequence of chain C. The side length sequence gives the line width of O. At this time, the fourth
For the line diagram shown in figure (a) [assumed to be expressed as one chain C], the horizontal axis represents a square address,
If we plot the side length on the vertical axis and the sequence of side lengths, we will get something like Figure ≠ (b). If 0 is divided into a thin part and a thick part by the side length sequence, the dividing point is the square (
The center of ) is valid. Dividing a chain into one or more chains according to the sequence of side lengths in this way is called dividing the chain by thickness.
したがって、本分割処理部はチェイン蓄積部j内の辺長
数列レジスタj−3から順次PIFO形式で値を読み出
しながら、1つ前のデータと値を比較し、下に述べる本
処理部の実施例の方法で分割点が見つかればその正方形
アドレスを出力し、正方形アドレス蓄積部7(FIFO
型レジスし〕に蓄積していくものである。本処理部は処
理部弘からの読み出し終了信号の受信によって起動がか
かる。Therefore, this division processing section sequentially reads values from the side length sequence register j-3 in the chain storage section j in PIFO format, and compares the values with the previous data. If a dividing point is found using the method described above, the square address is output and the square address storage unit 7 (FIFO
It is something that accumulates in the mold register. This processing section is activated upon reception of a read end signal from the processing section Hiroshi.
本処理部の実施例を第5図に示す。コントローラ6−/
は、辺長数列レジスタj−3から正方形辺長の値を順次
読み出すためのアドレスレジスタ6−2を初期設定し、
以降は後述の処理回路6−7乙〜6−コlの終了信号を
受信することにより/づつ増加する。さらにレジスタ6
−2の内容’1FIF’o型レジスタター3に送り、そ
れで指定される正方形辺長値をレジスタ6−3に読み出
す。四辺要領は遅延回路g−+の保持するl動作前の辺
長値と差分が取られ、差分レジスタ乙−夕に出される。An embodiment of this processing section is shown in FIG. Controller 6-/
initializes the address register 6-2 for sequentially reading out the square side length values from the side length sequence register j-3,
Thereafter, the number increases by one by one by receiving end signals from processing circuits 6-7B to 6-C1, which will be described later. Furthermore, register 6
-2's content '1FIF' is sent to the o-type register 3, and the square side length value specified thereby is read out to the register 6-3. The difference between the four-side length and the side length value before the l operation held by the delay circuit g-+ is taken and outputted to the difference register O-Y.
同差分値、および遅延回路乙−7で保持されるl動作前
の差分値は判定回路を一タおよびt−ioによりそれぞ
れ正・O・負の値が判定され、それぞれの組合せにより
処理回路6−/j−A−λ/が起動する。これに係わる
レジスタとしてt−1t−t−t≠が用意されている。The same difference value and the difference value before the l operation held in the delay circuit Otsu-7 are determined as positive, O, and negative values by the determination circuit and t-io, respectively, and the processing circuit 6 -/j-A-λ/ starts. As a register related to this, t-1t-tt≠ is prepared.
レジスタt−//は辺長数列レジスタター3における辺
長値の変化点(アドレス)をもつレジスタである。レジ
スタ6−12は同じ値の辺長が連続した場合の個数を数
えるカウンタである。レジスタ6−13はレジスタ6−
12の内容と比較の対象となる定数を、およびレジスタ
6−/≠は、l動作前の辺長値乙−6と必要に応じてJ
′−3から読み出された辺長値との差の絶対値と比較の
対象となる定数をそれぞれ保持するものである。処理回
路A −/!はレジスタ6−12の内容をlだけ増加さ
せる、処理回路6−76はレジスタ6−/λをリセット
(値/に)する。処理回路6−17はレジスタ6−72
と6−13との内容を比較し、前者が犬ならばレジスタ
乙−2の内容をレジスタ6−l/に転送する。The register t-// is a register having a change point (address) of the side length value in the side length sequence register 3. The register 6-12 is a counter that counts the number of consecutive side lengths having the same value. Register 6-13 is register 6-
The contents of 12 and the constant to be compared, and register 6-/≠ are the side length value O-6 before l operation and J as necessary.
The absolute value of the difference with the side length value read from '-3 and the constant to be compared are held respectively. Processing circuit A -/! increases the contents of register 6-12 by l, processing circuit 6-76 resets register 6-/λ to the value /. Processing circuit 6-17 is register 6-72
and 6-13, and if the former is a dog, the contents of register B-2 are transferred to register 6-l/.
しかる後にレジスタ乙−/!ヲリセントする。After that, register O-/! Worisent.
処J+(!回路&−/♂は、レジスタ乙−// の内容
全アドレスとして読み吊したレジスタr−3の値とl動
作前の辺長値乙−6との差の絶対値を求め、同絶対値が
レジスタA−/≠内の値以下ならばレジスタ!、−3の
内容をレジスタ6− //に転送する。そうでないなら
ば、レジスタ6−12と6−13とを比較し、前者が犬
ならばレジスタ乙−2の内容から6−72の内容を減じ
たものを、後者が犬ならばレジスタ6−2の内容を、太
さ分割点正方形アドレスとし、正方形アドレス蓄積部7
に転送する。同様にして処理回路乙−/り〜z−−/は
これらのレジスタ間で値の比較や転送を行ない、辺長値
の変化点アドレスは必要に応じて正方形アドレス蓄積部
7に出力される。The circuit J+(!Circuit &-/♂ calculates the absolute value of the difference between the value of the register r-3 read as the entire address of the contents of the register O-// and the side length value O-6 before l operation, If the same absolute value is less than or equal to the value in register A-/≠, transfer the contents of register !,-3 to register 6-//.If not, compare registers 6-12 and 6-13, If the former is a dog, the contents of register O-2 minus the contents of 6-72 are set as the thickness division point square address, and if the latter is a dog, the contents of register 6-2 are set as the thickness division point square address, and the square address storage section 7
Transfer to. Similarly, the processing circuits O-/RI-Z--/ compare and transfer values between these registers, and the change point address of the side length value is output to the square address storage section 7 as required.
に)折れ線近似処理部 −本処理部はチェイン中心ff
IA算出部りと折れ線近似部//全その下位処理部とし
て含む。太さ分割処理部乙により分割された個々の部分
チェイン(以下では単にチェインと呼ぶ)の中心線を中
心線算出部りで算出し、その中心点列を座標点列でl積
部lOに蓄積する1次いで、核中心心データを処〕ノ1
1部//で折れ線近似し、その屈曲点に対応する正方形
アドレスを正方斤5アドレス堤績部/−に蓄積する。) Broken line approximation processing section - This processing section is the chain center ff
It includes the IA calculation section and the polygonal line approximation section as its lower processing sections. The center line calculation unit calculates the center line of each partial chain (hereinafter referred to simply as a chain) divided by the thickness division processing unit B, and stores the center point sequence in the product unit IO as a coordinate point sequence. 1 Next, process the core center data] No. 1
A polygonal line approximation is performed using 1 section //, and the square address corresponding to the bending point is stored in a square 5 address section /-.
いま、上記(+)および(11)の式で表記されるチェ
イン0に対して、C上の正方形Siの中心点Pi
1’i = (xi +ti/2 、 yi + l
i/、り IIV)の列L (0)
L(0)= C)’/、 Pコ、 ・・、 Pn )
Mを考え、これをチェインCの中心線と呼ぶ。Now, for chain 0 expressed by the above equations (+) and (11), the center point of square Si on C Pi 1'i = (xi +ti/2, yi + l
i/, ri IIV) column L (0) L(0) = C)'/, Pco, ..., Pn)
Consider M and call this the center line of chain C.
また、チェインCの中心線(v)に対して、点Qi(i
=/、コ、・・・、n−l)をコ点PiとPi十/の中
間点とするとき、点列
L’(0)= CQ/、 C2,−、Qm〕&0を曲線
L(0)の平滑化曲線と呼ぶ。Also, with respect to the center line (v) of chain C, point Qi (i
=/, ko, ..., n-l) is the midpoint between the points Pi and Pi 0/, then the point sequence L'(0) = CQ/, C2, -, Qm]&0 is the curve L( 0) is called the smoothed curve.
チェイン0の中心線L(0)を平滑化し、それを通常の
手法、こより近れ線近似し、両端を含めたその屈曲点の
正方形アドレスtaO(=/)。Smooth the center line L(0) of chain 0, approximate it to a closer line using the usual method, and obtain the square address taO(=/) of the bending point including both ends.
a/+ −+ ak (=n ) (kは近似線分の数
)としたときくwJl、図)、これをチェインCの折れ
線近似と呼ぶ。第7図(a)の場合、太さ分割された部
分チェインの一つClは屈曲点アドレスf ao(=/
L a/+ aj+ aJ+ a≠(=n/)とする折
れ線近似として表現される。When a/+ −+ ak (=n) (k is the number of approximate line segments) wJl (see Figure), this is called the polygonal line approximation of chain C. In the case of FIG. 7(a), one of the partial chains divided into thicknesses, Cl, has a bending point address f ao (=/
It is expressed as a polygonal line approximation where L a/+ aj+ aJ+ a≠(=n/).
第7図に折れ線近似処理部の実施例を示す。FIG. 7 shows an embodiment of the polygonal line approximation processing section.
正方形アドレス蓄積部7上の隣り合うアドレス対を7か
ら読み出し、その区間内の正方形データをチェインデー
タ蓄積部!より順次読み出し、それぞれの正方形データ
fxレジスタター/% yレジスタター2、tレジス
タター3に格納する。これらのデータからは中心点算出
回路により正方形の中心点が求められ、レジスタター!
に格納される。次いで該中心点データと遅延回路ター2
の保持する/動作前の中心点データは平均化回路ターフ
により平均されて両者の中間点が座標点列蓄積部10に
格納される。!、内の対応する全ての正方形が処理され
ると 10内の点列データは折れ線近似回路//によシ
折れ線近似され、その屈曲点正方形アドレスが正方形ア
ドレス蓄積部/2に格納される。回路//は具体的には
・点列の両端点でできる直線と点列上の他の点との間の
距離を用いることにより、容易に実現できる・
(イ)心線構造記述処理部 一本処理部は図形ファイル
上の心線構造データを各心線の連結関係、折れ線近似処
理による屈曲点正方形アドレス、チェインの太さの平均
値等により一つのテーブル(心線構造記述テーブルと呼
ぶ)として表現するものである。Adjacent address pairs on the square address storage section 7 are read out from 7, and the square data within that section is stored in the chain data storage section! The square data is sequentially read out and stored in the respective square data fx register/% y register 2 and t register 3. From these data, the center point calculation circuit calculates the center point of the square, and registers!
is stored in Next, the center point data and the delay circuit 2
The center point data held/before operation is averaged by an averaging circuit turf, and the intermediate point between the two is stored in the coordinate point string storage section 10. ! When all the corresponding squares in , are processed, the point sequence data in 10 is approximated by a polygonal line by the polygonal line approximation circuit //, and the square address of the bending point is stored in the square address storage section /2. Specifically, the circuit // can be easily realized by using the distance between the straight line formed at both end points of the point sequence and other points on the point sequence. (a) Core wire structure description processing unit 1 This processing unit converts the fiber structure data on the figure file into a table (called a fiber structure description table) based on the connection relationship of each fiber, the square address of the bending point by the polygonal line approximation process, the average value of the chain thickness, etc. It is expressed as.
いま、第に図(a)に示す図形を考える。これは図形フ
ァイル2上ではO/、02.−自 Clの6つのチェイ
ンとJ/およびJ、2の一つのコネクタで構成されてい
る。ここで、個々のチェインを太さ分割すると例えばチ
ェインC/ばCl/、O/、2およびC13の3つの部
分チェインに太さ分割され、その他はそのま才であるが
、これらの間の連結関係(心線構造)を形式的に陽に表
現すれば第r図(b)のようになる。第r図では便宜上
線図形の幅も表現している。この場合、例えばチェイン
C/3゜02、OJはコネクタJ/を介して、また、チ
ェインC/lと0/2は太さ分割によって、隣接してい
ると言う。さらに、両者を総称して単にチェインが隣接
していると言うこともある。心線構造記述テーブルはこ
れらのチェインやコネクタとその間の関係を一つのデー
タ構造として表現したものである。本記述テーブルは原
画像の幾何学的柵造1記述したものであり、これにより
複雑な処理が可能となる。Now, consider the figure shown in Figure (a). This is O/, 02. on graphic file 2. - Consists of six chains of own Cl and one connector of J/ and J,2. Here, when dividing each chain by thickness, it is divided into three partial chains, for example, chain C/Cl/, O/, 2, and C13, and the others remain as they are, but the connections between these chains are If the relationship (core structure) is expressed formally and explicitly, it will be as shown in Figure R (b). In Fig. r, the width of the line figure is also expressed for convenience. In this case, for example, chains C/3°02 and OJ are said to be adjacent to each other via connector J/, and chains C/1 and 0/2 are adjacent to each other due to thickness division. Furthermore, both may be collectively referred to simply as having adjacent chains. The fiber structure description table expresses these chains, connectors, and the relationships between them as one data structure. This description table describes the geometric fence structure of the original image, which enables complex processing.
第り図は第r図(b)に対する心線構造記述テーブルの
実施例を示しだものである。第9図中、14L−iはチ
ェインデータに係わるもの、/!、t−jはコネクタデ
ータに係わるものである。/4t−/において、欄Tは
チェインの平均の太さを、NP−TおよびNP−Bはチ
ェインの先頭および末尾((おいて連結するチェインま
タハコネクタへのポインタを表わしている(チェインを
構成する正方形において、正方形アドレスが最小の正方
形が存在するチェイン上の端の部分を該チェインの先頭
部、そのもう一方の端の部分を該チェインの末尾と呼ぶ
)。0は連結するものがないことを、負値はチェインへ
の連結を、正値はコネクタへの連結を表わし、O以外の
値の絶対値はそれぞれに応じたテーブル内のエンドIJ
−への値(ボイ/り)を示している。欄FPは図形ファ
イル上の各心線要素へのポインタである。Figure 3 shows an example of the fiber structure description table for Figure R (b). In FIG. 9, 14L-i is related to chain data, /! , tj are related to connector data. In /4t-/, column T indicates the average thickness of the chain, and NP-T and NP-B indicate the beginning and end of the chain ((()) and indicate pointers to the chains or connectors to be connected at (For the squares that have the smallest square address, the end of the chain where the square with the smallest square address exists is called the beginning of the chain, and the other end is called the end of the chain.) 0 means there is nothing to connect. , a negative value indicates a connection to a chain, a positive value indicates a connection to a connector, and the absolute value of a value other than O indicates the end IJ in the corresponding table.
It shows the value (boi/ri) to -. The column FP is a pointer to each core element on the graphic file.
これによってさらに細かい処理が可能となる。This allows for more detailed processing.
欄TL−TおよびTL−Bは後述の直線追跡処理部で書
き込まれるリンクデータである。欄SAは折れ線近似に
よる屈曲点正方形アドレスである。それぞれの欄内のデ
ータはg、r図の図形に関する記述例である。Columns TL-T and TL-B are link data written in a straight line tracing processing section, which will be described later. Column SA is a bending point square address based on polygonal line approximation. The data in each column is an example of description regarding the figures of diagrams g and r.
(へ))直線追跡処理部 一本処理部は、図形ファイル
λ上のチェインデータの全てに対して上記一連の処理が
終了すると起動がかけられ・心線梠造記述テーブル上で
直線追跡処理を行なう。具体的には、コネクタを介しで
あるいは太さ分割によって隣接しているチェイン間の隣
接点(コネクタまたは太さ分割点)における直線として
の連続性(直線連続性)を順次検査していくことにより
行なわれる。このような追跡処理を以下では直線追跡処
理と呼ぶ。(f)) Straight line tracing processing unit The one processing unit is activated when the above series of processing is completed for all the chain data on the figure file λ, and performs straight line tracing processing on the core line description table. Let's do it. Specifically, by sequentially inspecting the continuity of straight lines (linear continuity) at adjacent points (connectors or thickness division points) between adjacent chains via connectors or by thickness division. It is done. Hereinafter, such tracking processing will be referred to as straight-line tracking processing.
一般に心線構造記述テーブル上でのチェインは7個以上
の線分の連結(折れ線)として表現されている。この場
合、チェイン上での線分はその追跡方向を考慮すればそ
れぞれがベクトル(追跡ベクトル)とみなすことができ
る。したがってデータ何造上を直線追跡するということ
は、それぞれが互いに異なるチェイン上(の端)に存在
して、かつ、互いに(始点と終点とが)コネクタを介し
てまたは太さ分割によって隣接し合うベクトルの直線と
しての連続性を、調べ、もし両追跡ベクトルが直線を成
すならば、対応するチェインデータ間に該テーブル上で
リンクを張ることである。なお、チェインolある方向
に追跡した場合のに番目の折れ線構成ベクトル2 v
< c。Generally, a chain on a fiber structure description table is expressed as a connection (broken line) of seven or more line segments. In this case, each line segment on the chain can be regarded as a vector (tracking vector) if its tracking direction is considered. Therefore, tracing a straight line over a data structure means that each chain exists on (the ends of) a different chain, and the start and end points are adjacent to each other via a connector or by thickness division. The continuity of the vector as a straight line is checked, and if both tracking vectors form a straight line, a link is created between the corresponding chain data on the table. In addition, when the chain ol is traced in a certain direction, the th polygonal line configuration vector 2 v
<c.
k)と表記するものとする。It shall be written as k).
いま、第g図において図形を心線構造記述テーブル上で
左から追跡してきてチェイン0//に達したとする。こ
の場合、ベクトルV(0//、lとベクトルV (01
2,/)との間の直線連続性が次のバラグラフで説明す
る追跡ベクトルの直線連続性の検査法によシ調べられる
。同様にしてベクトルV (012,/)とV(0/J
、/)との間の直線連続性が調べられる。さらに直線追
跡が進んでチェインO13に達したとする。この場合
コネクタJ/を介してベクトルVCO/3./)と直線
連続するようなベクトルをもつチェインをJlの近傍か
ら選択する。この場合C3が選択される。以下このよう
にして直線追跡が行なわれる。チェイン間の直線連続性
の記述は上述のようにチェイン間にリンクを張ることで
行なわれるが、その具体的方法を第り図により説明する
。Now, suppose that in Fig. g, the figure is traced from the left on the fiber structure description table and reaches chain 0//. In this case, vector V (0//, l and vector V (01
2, /) is checked by the method of testing the linear continuity of the tracking vector, which will be explained in the next paragraph. Similarly, vectors V (012,/) and V(0/J
, /) is examined. Assume that the straight line tracing progresses further and reaches chain O13. in this case
Vector VCO/3. via connector J/. /) is selected from the vicinity of Jl. In this case, C3 is selected. Straight line tracking is then performed in this manner. Linear continuity between chains is described by creating links between chains as described above, and a specific method will be explained with reference to FIG.
第り図のテーブル1tA−i上の欄TI、 T および
TLBこれに係わるものであり、TL−Tはチェイ/の
先頭部でのリンク情報を・TL B はチェインの末
尾でのリンク情報を表わすのに用いられる。チェインC
Iとチェイン02との間に直線連続性が存在するならば
、CIのTL−’I’またはTI、−Bの欄(どちらの
欄かはチェインの直線連続性の成り立つ部分(先頭・末
尾)による)Kは、その直線連続性が太さ分割点上で成
り立つならば/の値を、コネクタを介して成り立つなら
ばそのコネクタの欄NBR内でのチェインC2の番号を
記入する。なお、各コネクタに対して、その上1t2本
の追跡ベクトルが通過する場合はその交点が計算され、
萬性(コネクタ通過点)として登録される。Columns TI, T and TLB on table 1tA-i in Figure 1 are related to this, where TL-T represents the link information at the beginning of the chain, and TL B represents the link information at the end of the chain. used for. Chain C
If linear continuity exists between I and chain 02, CI's TL-'I' or TI,-B column (which column is the part where linear continuity of the chain exists (start/end) For K, enter the value of / if the straight line continuity holds on the thickness dividing point, and enter the number of chain C2 in the column NBR of the connector if it holds through the connector. In addition, for each connector, if 1t2 tracking vectors pass through, the intersection point is calculated,
Registered as Manshu (connector passing point).
次に、追跡ベクトルの直線連続性の検査法について述べ
る。直線追跡においては先ず追跡開始のためのベクトル
が初期設定される。Next, a method for testing linear continuity of tracking vectors will be described. In straight line tracking, first a vector for starting tracking is initialized.
このベクトル(直線追跡ベクトル)は本節で述べる直線
連続性の検査の進行に従ってその先頭が順次直線の追跡
方向に伸びていく。いま、ある時点における直線追跡ベ
クトルV’(V = Pt Ph
とする( Pt、 Ph kそれぞれ追跡ベクトルの末
尾、先頭と呼ぶ)。この場合、次に追跡すべきベクトル
としてベクトルV′
v’ = pt’ ph’
全考えたとき、一つのベクトルがほぼ一直線に並び、か
つ、v′ヲ表わす部分チェインC′が追跡開始チェイン
0に比べて太くないならば、この直線追跡ベクトル■は
成長してv = pt ph’
となる(第10図(a))。次にC′が太い場合を考え
る。この場合、C′が長いときは直線追跡はこれで修了
するが、第1O図(b)のように短いときは追跡ベクト
ル■はこのままにしておき、さらにその先のチェイン(
ベクトル)の追跡に移る。ここでその先の追跡ベクトル
V′
v′= 円’ I’h’
が存在して、しかも例えば第1O図(l〕)のように細
いならば、直線追跡ベクトルVは成長して
v = pt ph’
となる。また、第1O図(C)のように次に隣接するチ
ェイン(ベクトル)が存在しなければ、直線追跡ベクト
ルVは成長して
V=)’to。The head of this vector (straight line tracing vector) gradually extends in the straight line tracing direction as the straight line continuity test described in this section progresses. Now, the straight line tracing vector V' (V = Pt Ph at a certain point in time (Pt, Ph k are called the tail and the beginning of the tracing vector, respectively). In this case, the next vector to be traced is the vector V'v' = pt 'ph' Considering everything, if one vector is aligned almost in a straight line, and the partial chain C' representing v' is not thicker than the tracing start chain 0, then this straight line tracing vector ■ grows and becomes v = pt ph' (Figure 10(a)).Next, consider the case where C' is thick.In this case, if C' is long, straight line tracing is completed, but as shown in Figure 1O(b). When the tracking vector is short like
vector). Here, if there is a tracing vector V'v' = circle 'I'h' ahead of it, and if it is thin as shown in Figure 1O (l), then the straight line tracing vector V grows and becomes v = pt. ph'. Moreover, as shown in FIG. 1O (C), if there is no next adjacent chain (vector), the straight line tracing vector V grows and V=)'to.
となる。ここに、Poは点Ph’からベクトルVに下ろ
した垂線の足である。becomes. Here, Po is the foot of the perpendicular line drawn from point Ph' to vector V.
(至)線図形出力処理部 一本処理部は心線構造記述テ
ーブル/≠上に記述されたチェインおよび該チェインと
直線連続するチェインを一つの線図形(折れ線近似を表
わす座標点列として表現されている)として取シだし、
このようにして取υだされる線図形を統合して外部記憶
装!あるいはファックス出力装置・図形表示装置等に出
力するものであり、本処理部の起動は直線追跡処理部の
終了信号によりかけられる。(To) Line figure output processing unit This processing unit outputs the chain described above and the chain linearly continuous with the chain described above in the fiber structure description table/≠, and expresses it as a line figure (a sequence of coordinate points representing a polygonal line approximation). It is taken as a
Integrate the line figures extracted in this way into an external memory! Alternatively, it is outputted to a facsimile output device, a graphic display device, etc., and this processing section is activated by the end signal of the linear tracing processing section.
以上説明したように、本発明によれば、従来の技術では
全て′(i7sたすことのできなかった前述の諸条件(
二値画像から線図形を抽出する場合の条件)、すなわち
(a) 原画像に忠実に線図形が抽出できること、(
b) 微細図形が線図形の直線部および屈曲点部のど
ちらにおいて接触・交差していても抽出処理が可能なこ
と、
(c)原画像から線図形全抽出・分離した後の残された
微細図形はその形状が損なわれないこと・
(d) 必要に応じて図形要素がもつ意味内容に基づ
く高次の処理に対処できること、
を全て満たすことが可能となる。As explained above, according to the present invention, all the above conditions (
Conditions for extracting line figures from binary images), namely (a) line figures can be extracted faithfully to the original image;
b) Extraction processing is possible even if fine figures touch or intersect at either the straight line part or the bending point part of the line figure; (c) The fineness remaining after all line figures are extracted and separated from the original image. It becomes possible to satisfy all of the following requirements: (d) the shape of the figure is not impaired; and (d) the ability to handle higher-order processing based on the semantic content of the figure element as necessary.
第11図は本装置により二値画像から線図形の抽出処理
を行なった例であって、同図(a)は原画像、(b)は
直線抽出の処理結果である。第11図から分かるように
、文字 記号等が線図形に屈曲点部分で接触・交差して
いる場合でも直線が忠実に抽出されているのが分かる。FIG. 11 shows an example in which line figures are extracted from a binary image using this apparatus, in which (a) is the original image and (b) is the result of the straight line extraction process. As can be seen from Figure 11, straight lines are extracted faithfully even when characters, symbols, etc. touch or intersect line shapes at bending points.
なお、これらの線分の連結関係は全て心線構造記述テー
ブルに記述されているので、必要ならばより上位のデー
タ処理部を構成し、これに該心線イ4造記述テーブルを
接続することも可能となるNote that the connection relationships of these line segments are all described in the fiber structure description table, so if necessary, configure a higher-level data processing unit and connect the fiber structure description table to it. is also possible
第1図は本発明の一実施例(装置構成図)を示している
。
第2図は心線抽出例を示している。
第3図は図形ファイル構成の概念図であり、(a)は最
大正方形の連結関係によるグルーピング、(1))は心
線データの線形化表現である9
第V図はチェインの太さによる分割を説明しており 、
(a)は線図形の例(1つのチェインとして表現される
とする) 、 (b)はチェイン(、)の辺長数列のグ
ラフ表示を示している。
第5図は太さ分割処理部の実施例を示している。
第6図はチェインの折れ線近似の説明図である。
第7因は折れ線近似処理部の実施例を示しているO
第2図は線図形の構造表現の説明図であり、(a)は図
形の例、(b)は図形(a)の心線構造表現の概念図で
ある。
第り図は心線構造記述テーブルの実施例(第2図(b)
に対応させた場合)である。
第1O図は追跡ベクトルの直線連続性の検査法の説明図
である。
第11図は本装置による線図形抽出処理の例であり、(
a)は原画像+7L+!9−2千怜H−284→を(b
)は直線の抽出処理結果を示している。
l・・・図面等(二値画像データ)、2・・・図形ファ
イル、3・・・図形ファイル撮部、弘・・・チェインデ
ータ選択・読み出し部、!・・・チェインデータ蓄積部
、!−/・・・座標点列データ(X座標)全格納するF
IFO型レジスタ、j−2・・座標点列データ(X座標
)を格納するFIFO型レジスタ、j−3・・・正方形
辺長数列データを格納するFII”0型レジスタ、6・
・・太さ分割処理部、A−/・・・コントローラ。
乙−!・・・アドレスカウンタ、6−3・・・辺長値レ
ジスタ、6−弘・・・加算器、6−よ・・・差分レジス
タ、t−6・・・遅延回路、6−7・・・差分レジスタ
、2−タ・・・判定回路、t−io・・・判定回路、6
〜/l・・・変化点レジスタ、6−12・・・同値数カ
ウンタ、6−13・・・定叡値レジスタ、6−l≠・・
・定数値レジスタ、A−/!−1.−21・・・処理回
路、7・・・正方形アドレス蓄積部、?・・・折れ線近
似処理部、?・・・チェイン中心#7算出部、ター/、
?−,2,9−3・・・X+ y+tTh格納するレジ
スタ、ター≠・・中心点算出回路、ターj・・・座標点
格納レジスタ、デー6・・・遅延回路、ターフ・・・中
間点算出回路、10−座標点列蓄積部、//・・・折れ
線近似部、/2・・・正方形アドレス蓄積部、/3・・
・心線構造記述処理部、l≠・・・心線構造記述テーブ
ル、is・・・直線追跡処理部、/l、・・・線図形出
力処理部。FIG. 1 shows an embodiment (device configuration diagram) of the present invention. FIG. 2 shows an example of core wire extraction. Figure 3 is a conceptual diagram of the configuration of the figure file, where (a) is grouping based on the connection relationship of the largest squares, and (1)) is a linearized representation of core wire data.9 Figure V is division based on the thickness of the chain. It explains,
(a) shows an example of a line figure (assumed to be expressed as one chain), and (b) shows a graphical representation of the side length sequence of the chain (,). FIG. 5 shows an embodiment of the thickness division processing section. FIG. 6 is an explanatory diagram of chain polygonal line approximation. The seventh factor shows an example of the polygonal line approximation processing unit. FIG. It is a conceptual diagram of structural representation. Figure 2 shows an example of a core structure description table (Figure 2(b)
). FIG. 1O is an explanatory diagram of a method for testing linear continuity of tracking vectors. FIG. 11 shows an example of line figure extraction processing by this device.
a) is the original image +7L+! 9-2 Senrei H-284 → (b
) shows the straight line extraction processing results. l...Drawings, etc. (binary image data), 2...Graphic file, 3...Graphic file photography department, Hiroshi...Chain data selection/reading unit,! ...Chain data storage department! -/...F to store all coordinate point sequence data (X coordinate)
IFO type register, j-2... FIFO type register that stores coordinate point sequence data (X coordinate), j-3... FII"0 type register that stores square side length number sequence data, 6.
... Thickness division processing section, A-/... Controller. Otsu-! ... Address counter, 6-3... Side length value register, 6-Hiro... Adder, 6-Yo... Difference register, t-6... Delay circuit, 6-7... Difference register, 2-ter...judgment circuit, t-io...judgment circuit, 6
~/l... Change point register, 6-12... Equivalent number counter, 6-13... Constant value register, 6-l≠...
・Constant value register, A-/! -1. -21...Processing circuit, 7...Square address storage unit, ? ...Polygonal line approximation processing section? ...Chain center #7 calculation section, ter/,
? -, 2, 9-3...X+ y+tTh storage register, ter≠...center point calculation circuit, terj...coordinate point storage register, data 6...delay circuit, turf...intermediate point calculation Circuit, 10-coordinate point sequence storage section, //... polygonal line approximation section, /2... square address storage section, /3...
- Cord structure description processing section, l≠... Cord structure description table, is... Straight line tracing processing section, /l,... Line figure output processing section.
Claims (4)
成される二値画像データ中から該線図形を追跡・抽出し
、折れ線近似する線図形処理装置において、 (a)該二値画像に含まれる各図形要素の心線データ(
該図形要素に内接する最大の正方 形(最大正方形と呼ぶ)の列(チェインと 呼ぶ)と、チェインとチェインとを連結し かつ図形に内接する最大正方形(コネクタ と呼ぶ)、およびそれらの間の連結関係を 表現する構造体(心線構造と呼ぶ)に関す るデータ)を記述することにより、該二値 画像を予め一つの図形ファイルとしてファ イル化し、該図形ファイルから心線データ を必要に応じて読み出す図形ファイル操作 部と、 (b)該図形ファイル操作部を介して図形ファイルから
チェインデータを選択し、読み出 すチェインデータ選択・読み出し部と、 (c)該選択・読み出し部によって取り込まれたチェイ
ンデータを、該チェインデータを 構成している正方形の辺長データに基づい て、太さ毎に部分データに分割する太さ分 割処理部と、 (d)該太さ分割処理部により分割された該チェインの
各部分のデータ(部分チェインデ ータと呼ぶ)を折れ線近似する折れ線近似 処理部と、 (e)該太さ分割処理部で得られる各部分チェインデー
タに係わる心線構造を、該折れ線 近似処理部で得られるデータに基づいて、 テーブル(心線構造記述テーブルと呼ぶ) として記述する心線構造記述処理部と、 (f)該心線構造記述処理部により記述される心線構造
記述テーブル上のチェインデータ を該テーブル上のポインタを辿ることによ り追跡し、該チェインデータと隣接するチ ェインデータが一本の直線として連続する (直線連続すると言う)かどうかを判定し、直線連続す
る場合には該二つのチェインデ ータ間に該テーブル上でリンクを張る直線 追跡処理部と、 (g)該直線追跡処理部により直線追跡された該心線構
造記述テーブルから、該テーブル 上でリンクを張られたチェインデータは直 線として連続することを利用して、線図形 データを折れ線近似を表わす点列として出 力する線図形出力処理部、 とから構成されることを特徴とする線図形処理装置。(1) In a line figure processing device that tracks and extracts line figures from binary image data consisting of line figures and characters/symbols (referred to as minute figures) and approximates them to polygonal lines, (a) the binary image Core wire data of each graphic element included in (
A row (called a chain) of the largest squares inscribed in the graphic element (called the largest square), a largest square that connects the chains and is inscribed in the figure (called the connector), and the connection between them. The binary image is created in advance as a single graphic file by writing data related to a structure (called a core structure) that expresses the relationship, and the core data is read from the graphic file as necessary. a file operation section; (b) a chain data selection/readout section that selects and reads chain data from a graphic file via the graphic file operation section; (c) chain data taken in by the selection/readout section; a thickness division processing unit that divides the chain data into partial data for each thickness based on side length data of the squares forming the chain data; (e) a polygonal line approximation processing unit that approximates partial data (referred to as partial chain data) as a polygonal line; (f) a fiber structure description processing unit that describes the data as a table (referred to as a fiber structure description table) based on the data stored in the fiber structure description table; and (f) chain data on the fiber structure description table that is described by the fiber structure description processing unit. is tracked by following the pointer on the table, and it is determined whether the chain data and the adjacent chain data are continuous as a straight line (referred to as linear continuity), and if they are continuous in a straight line, the two (g) a linear tracing processing unit that creates links between chain data on the table; and (g) chain data linked on the table from the fiber structure description table linearly traced by the linear tracing processing unit; A line figure processing device comprising: a line figure output processing section that outputs line figure data as a sequence of points representing a polygonal line approximation by utilizing continuity as a straight line.
データを、該チェインを構成する各正方形の辺長のデー
タ列により、太い部分と細い部分へ分割することを特徴
とする特許請求の範囲第1項記載の線図形処理装置。(2) In the thickness division processing unit, the chain data of each graphic element is divided into a thick part and a thin part according to a data string of the side length of each square forming the chain. The line figure processing device according to item 1.
ンの中心線を該チェインを構成する各正方形の中心点の
データ列として算出し、該データ列(座標点列)を線分
の連結として近似することにより、該チェインデータを
折れ線近似することを特徴とする特許請求の範囲第1項
記載の線図形処理装置。(3) In the polygonal line approximation processing unit, the center line of the chain of each graphic element is calculated as a data string of the center point of each square that makes up the chain, and the data string (coordinate point string) is approximated as a connection of line segments. 2. The line graphic processing apparatus according to claim 1, wherein the chain data is approximated by a polygonal line.
ブル上の二つのチェインデータが直線連続するかどうか
の判定をチェインの太さ情報を用いて行うことを特徴と
する特許請求の範囲第1項記載の線図形処理装置。(4) In the straight line tracing processing section, it is determined whether or not the two chain data on the fiber structure description table are continuous in a straight line, using chain thickness information. The line figure processing device described in Section 1.
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 true JPS62143192A (en) | 1987-06-26 |
| JPH0679350B2 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) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH0416564U (en) * | 1990-06-01 | 1992-02-12 |
-
1985
- 1985-12-17 JP JP28386885A patent/JPH0679350B2/en not_active Expired - Fee Related
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH0416564U (en) * | 1990-06-01 | 1992-02-12 |
Also Published As
| Publication number | Publication date |
|---|---|
| JPH0679350B2 (en) | 1994-10-05 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN114638866B (en) | A point cloud registration method and system based on local feature learning | |
| KR930003126B1 (en) | Method and system for determining the connection state of straight line short vectors displaying shapes in curve matching | |
| CN113936114A (en) | BIM model component class-level lightweight method and system | |
| CN109035407B (en) | Direction-based parameter curved surface triangularization method, device, equipment and storage medium | |
| CN112700462B (en) | Image segmentation method, device, electronic device and storage medium | |
| CN109584327B (en) | Face aging simulation method, device and equipment | |
| CN112258539A (en) | Water system data processing method, device, electronic equipment and readable storage medium | |
| CN114494943A (en) | Novel video target detection and evaluation method, device, product and storage medium | |
| JP2701003B2 (en) | Solid model synthesizing apparatus and solid model synthesizing method | |
| JPH02278480A (en) | Method for separating linear part and curved line part in shape expressed by linear short vector train | |
| JPH01134672A (en) | Divided image processing system | |
| CN112348935B (en) | Wire frame rendering method, terminal device and computer-readable storage medium | |
| CN111553921B (en) | A Real-Time Semantic Segmentation Method Based on Channel Information Sharing Residual Module | |
| JPH0679350B2 (en) | Line figure processing device | |
| CN112419178A (en) | Broken hole repairing method, terminal device and computer readable storage medium | |
| JP2800544B2 (en) | Image data centering processing method | |
| JP2501832B2 (en) | Extraction method of color mark area | |
| JPH04141789A (en) | Device and method for highly accurate vector approximation | |
| JP3657725B2 (en) | Line figure image processing method | |
| CN117391939A (en) | A model upsampling method and surface defect identification method for small target detection | |
| CN112164092A (en) | A method and system for determining generalized Markov dense optical flow | |
| Dori | Syrnbolic Representation of Dimensioniiig in Engineering Drawings | |
| CN121861674A (en) | Visual language model preprocessing method and related equipment | |
| JP2868533B2 (en) | Drawing reading device | |
| JPH0463435B2 (en) |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| LAPS | Cancellation because of no payment of annual fees |