JP2615247B2 - Line figure feature extraction method - Google Patents

Line figure feature extraction method

Info

Publication number
JP2615247B2
JP2615247B2 JP2134879A JP13487990A JP2615247B2 JP 2615247 B2 JP2615247 B2 JP 2615247B2 JP 2134879 A JP2134879 A JP 2134879A JP 13487990 A JP13487990 A JP 13487990A JP 2615247 B2 JP2615247 B2 JP 2615247B2
Authority
JP
Japan
Prior art keywords
cross
series
section
line
sectional
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 - Lifetime
Application number
JP2134879A
Other languages
Japanese (ja)
Other versions
JPH0433072A (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.)
Ricoh Co Ltd
Original Assignee
Ricoh Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP2134879A priority Critical patent/JP2615247B2/en
Publication of JPH0433072A publication Critical patent/JPH0433072A/en
Application granted granted Critical
Publication of JP2615247B2 publication Critical patent/JP2615247B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、文字認識装置や図面認識装置、その他の線
図形を扱う装置における線図形の特徴抽出方法に係り、
特に線図形の骨格線等の構造的特徴を求めるのに好適な
特徴抽出方法に関する。
Description: TECHNICAL FIELD The present invention relates to a method for extracting a feature of a line graphic in a character recognition device, a drawing recognition device, and other devices that handle a line graphic.
In particular, the present invention relates to a feature extraction method suitable for obtaining a structural feature such as a skeleton line of a line figure.

〔従来の技術〕[Conventional technology]

線図形の特徴抽出法の一つに、線図形の骨格線等の構
造的特徴を求める方法がある。その従来技術の主なもの
には、以下のような方法がある。
As one of the feature extraction methods of a line figure, there is a method of obtaining a structural feature such as a skeleton line of the line figure. The main methods of the prior art include the following methods.

(1) イメージデータ全体に細線化処理を施し、得ら
れた細線化画像の黒画素を追跡して骨格線を得る方法
(田村;「細線化についての諸考察」、信学技報、PRL7
5-66(1975))。
(1) A method of performing thinning processing on the entire image data and tracing black pixels of the obtained thinned image to obtain a skeleton line (Tamura; "Some Considerations on Thinning", IEICE Technical Report, PRL7
5-66 (1975)).

(2) 線分の境界を追跡して、これをベクトル化した
のち、向かい合うベクトルペアに挟まれた部分に骨格線
を作る方法(岡田;「輪郭追跡による二値図形の細線化
法の検討」、信学技報、IE78-74(1978))。
(2) A method of tracing the boundary of a line segment, vectorizing this, and then creating a skeleton line at a portion sandwiched between facing vector pairs (Okada: "Examination of thinning method of binary figure by contour tracing" , IEICE Technical Report, IE78-74 (1978)).

(3) イメージデータを小メッシュに分割し、小メッ
シュを統合してセルを求め、セル毎にセルパターンを認
識して部分骨格線を求めることで全体の骨格線を得る方
法(鈴木、森;「線図形の特徴抽出方法」、信学技報、
PRU89-105(1990))。
(3) A method of dividing the image data into small meshes, integrating the small meshes to obtain a cell, and recognizing a cell pattern for each cell to obtain a partial skeleton line to obtain an entire skeleton line (Suzuki, Mori; "Method of extracting features of line figures", IEICE Technical Report,
PRU89-105 (1990)).

(4) 全境界点を求めたのち、境界点を追跡しながら
適当な探索範囲を設定し、この範囲で対向する境界点列
を求めて対となる境界点の中央に骨格点を求めることに
より骨格線を得る方法(特開昭59-95680号公報)。
(4) After finding all the boundary points, an appropriate search range is set while tracing the boundary points, a sequence of boundary points is determined in this range, and a skeleton point is obtained at the center of the paired boundary points. A method for obtaining a skeleton line (JP-A-59-95680).

〔発明が解決しようとする課題〕[Problems to be solved by the invention]

(1)の方法は、線図形であればどのような線幅や解
像度で入力されていても必ず骨格線が得られるという利
点がある半面、処理量が多い上、細線化の過程で多くの
情報が失われるとともに歪みやヒゲ等の望ましくない現
象が起こるという欠点を持っている。また、面状の領域
が失われてしまうという欠点もある。
The method (1) has an advantage that a skeletal line can always be obtained regardless of the line width and resolution of a line figure, regardless of the input. However, the method requires a large amount of processing and a large number of lines in the process of thinning. It has the disadvantage that information is lost and undesired phenomena such as distortion and whiskers occur. There is also a disadvantage that the planar area is lost.

(2)の方法は、処理が比較的高速であるという利点
がある半面、ベクトルペアを決定するためのパラメータ
を、線幅や解像度に適応して自動的に設定することは困
難である上、分岐や交差点付近で骨格線が得られず、文
字や図面シンボル等のように短い線分が密集している場
合にも所望の骨格線が得られないという欠点を持ってい
る。また、面状の領域は不明領域となる。
The method (2) has an advantage that processing is relatively fast, but it is difficult to automatically set parameters for determining a vector pair in accordance with a line width and a resolution. There is a disadvantage that a skeleton line cannot be obtained near a branch or an intersection, and a desired skeleton line cannot be obtained even when short line segments such as characters and drawing symbols are dense. The planar area is an unknown area.

(3)の方法は、線幅に適応してメッシュサイズを決
定するため殆どのイメージデータに適用でき、分岐や交
差付近の骨格線をかなり正確に抽出できるが、線幅に比
べて線の間隔が狭い場合にはセルパターンが複雑になる
ために性能の低下が著しく、正しい骨格線が得られない
という欠点を持っている。なお、この方法では面状の領
域の検出は可能である。
The method (3) can be applied to most image data because the mesh size is determined according to the line width, and the skeleton line near the branch or intersection can be extracted quite accurately. In the case where is small, the cell pattern becomes complicated, so that the performance is remarkably reduced, and there is a disadvantage that a correct skeleton line cannot be obtained. In this method, a planar area can be detected.

(4)の方法は、主として図面を対象とし、線幅を仮
定したしきい値を用いたうえで対向する境界点間の距離
のみに着目して骨格線を求める方法であるが、しきい値
はイメージデータに適応して決定されるわけではなく、
線幅が異なる線分の分岐や交差の付近では骨格線が歪む
という欠点を持っている。なお、面状の領域はそれを囲
む境界点列が抽出される。
The method (4) is a method mainly for drawing, using a threshold value assuming a line width, and calculating a skeleton line by focusing only on the distance between opposing boundary points. Is not determined according to the image data,
There is a disadvantage that the skeleton line is distorted near the branch or intersection of line segments having different line widths. In addition, the boundary point sequence surrounding the planar area is extracted.

いずれにしても、従来方法ではあらゆるイメージデー
タを適応して正しい骨格線(特に分岐・交差付近)を得
るということは困難であった。
In any case, it has been difficult with the conventional method to obtain a correct skeleton line (particularly near a branch / crossing) by adapting all image data.

また、得られた特徴のマッチングという観点から考え
ると、より詳細な構造的特徴や、構造的特徴以外の統計
的特徴が必要となる場合(例えば“2"と“Z"の識別や、
イメージデータが低品質であるため十分な骨格線が得ら
れない場合等)があるが、これを局所的かつ容易に抽出
し、かつそれぞれの特徴の対応関係を明らかにすること
は従来方法では非常に困難であった。
In addition, from the viewpoint of matching of the obtained features, when more detailed structural features and statistical features other than the structural features are required (for example, identification of “2” and “Z”,
In some cases, sufficient skeleton lines cannot be obtained due to low quality image data), but it is very difficult to extract these locally and easily and to clarify the correspondence between the features using conventional methods. Was difficult.

従って、本発明の目的は、上記従来方法の欠点を解決
し、任意の線図形イメージデータを対象とし、その構造
的特徴を正確に抽出するとともに、より詳細な構造的特
徴や、構造的特徴との対応関係が明らかな統計的特徴を
局所的かつ容易に抽出できる枠組みをもつ線図形の特徴
抽方法を提供することにある。
Therefore, an object of the present invention is to solve the above-mentioned drawbacks of the conventional method, to accurately extract structural features of arbitrary line graphic image data, and to obtain more detailed structural features and structural features. It is an object of the present invention to provide a feature extraction method for a line figure having a framework that allows local and easy extraction of statistical features whose correspondence is clear.

〔課題を解決するための手段〕[Means for solving the problem]

本発明の線図形の特徴抽出方法は、線図形イメージデ
ータから線分の方向にほぼ直交する断面を抽出する段階
と、前記断面の連なりを求めて断面系列とし、該断面系
列以外の領域を不明領域とする段階と、ノードが前記断
面系列または不明領域のいずれかを表わし、アークがこ
れらの接続関係を表わす断面系列グラフを作成する段階
とからなり、前記断面系列グラフを線図形の特徴とする
ことを骨子とするものである。
The feature extraction method for a line figure according to the present invention includes the steps of extracting a section that is substantially orthogonal to the direction of the line segment from the line figure image data, obtaining a series of the sections and forming a section series, and erasing areas other than the section series. An area, and a node representing either the cross-sectional series or the unknown area, and an arc creating a cross-sectional series graph representing the connection relationship between them. The cross-sectional series graph is characterized by a line figure. That is the main point.

〔作用〕[Action]

原画像データ(線図形イメージデータ)と断面系列グ
ラフの骨格線(芯線)との関係を第3図に示す。このよ
うに、断面系列グラフによる線図形記述は階層構造をも
ち、構造要素である断面は線分の方向にほぼ直交すると
いう性質をもっている。また、上位の構造要素である断
面系列は、この断面をあたかも時系列のように順序付け
たものとなっている(第3図の(イ)の部分)。不明領
域は、この断面系列に含まれない領域であり、線端、屈
曲、分岐、交差の面状の領域がこれに相当する(第3図
の(ロ)の部分)。即ち、断面系列グラフは、線図形
を、単純な線とそうでない部分に明確に分けたシンプル
なものであり、これを基にすると骨格線等の構造的特徴
や大まかな構造的マッチングをとることが容易になる。
FIG. 3 shows the relationship between the original image data (line graphic image data) and the skeleton lines (core lines) of the sectional series graph. As described above, the line graphic description by the cross-sectional series graph has a hierarchical structure, and the cross-section, which is a structural element, has a property of being substantially orthogonal to the direction of the line segment. Further, the cross-sectional series which is a higher-order structural element is obtained by ordering the cross-sections as if they were time-series (part (a) in FIG. 3). The unknown area is an area not included in this cross-sectional series, and corresponds to a planar area of a line end, a bend, a branch, and an intersection (a part (b) in FIG. 3). In other words, the cross-sectional series graph is a simple one that clearly divides a line figure into simple lines and parts that are not. Based on this, structural features such as skeleton lines and rough structural matching are taken. Becomes easier.

〔実施例〕〔Example〕

以下、本発明の一実施例について図面により説明す
る。
Hereinafter, an embodiment of the present invention will be described with reference to the drawings.

第1図は本発明を実現するハードウェア構成の一例を
示す概略ブロック図である。第1図において、1は特徴
抽出処理や認識処理等を実行する中央処理装置(CP
U)、2はCPU1の処理に必要なプログラムを格納するプ
ログラムメモリである。ここでは、CPU1はプログラムメ
モリ2の断面系列グラフ抽出処理プログラム21に基づき
線図形のイメージデータから断面系列グラフを抽出する
処理を実行する。3は原稿や図面をスキャンし、線図形
のイメージデータを入力するイメージスキャナである。
4は入力された線図形イメージデータを格納するパター
ンメモリ、5はCPU1での処理の途中データ、結果データ
等を格納するデータメモリである。
FIG. 1 is a schematic block diagram showing an example of a hardware configuration for realizing the present invention. In FIG. 1, reference numeral 1 denotes a central processing unit (CP) for executing feature extraction processing, recognition processing, and the like.
U) and 2 are program memories for storing programs necessary for the processing of the CPU 1. Here, the CPU 1 executes a process of extracting a sectional sequence graph from the image data of the line figure based on the sectional sequence graph extraction processing program 21 in the program memory 2. Reference numeral 3 denotes an image scanner that scans an original or drawing and inputs image data of a line figure.
Reference numeral 4 denotes a pattern memory for storing the input line graphic image data, and reference numeral 5 denotes a data memory for storing data during the processing in the CPU 1 and result data.

第2図は線図形イメージデータから断面系列グラフを
抽出する処理全体の流れ図である。対象とする線図形イ
メージデータは、2値でも多値でもよい。但し、多値の
場合は、あるしきい値で画素の白/黒を判定しながら処
理を行うこととする。処理内容の説明に先立ち、ここで
用いる用語等について説明する。
FIG. 2 is a flow chart of the whole process of extracting a sectional series graph from line graphic image data. The target line graphic image data may be binary or multi-valued. However, in the case of multi-value, processing is performed while determining white / black of a pixel with a certain threshold value. Prior to the description of the processing content, terms used herein will be described.

前方向・後方向; 左に黒画素を見るように境界点追跡(第3図参照)を
行ったときの追跡方向を境界点の前方向、その反対方向
を後方向と呼ぶことにする。
Forward / Backward: The tracking direction when boundary point tracking (see FIG. 3) is performed so as to see a black pixel to the left is referred to as the forward direction of the boundary point, and the opposite direction is referred to as the backward direction.

延長境界点; 延長境界点の例を第4図に示す。第4図中、丸が境界
点の黒画素、その中の矢印が傾き方向である。注目境界
点pに対する傾き方向ang(p)を微分オペレータによ
り求める。pから、この方向に黒画素を追跡して最初に
現われる境界点qをpに対する延長境界点と呼ぶ(第4
図(a)参照)。ただし、第4図(b)に示すように、
境界点追跡を8連結で行った場合は、境界点に出会わず
に白画素に出会う場合があるが、この場合はこの白画素
に隣接する境界点から適当なものを一つ選ぶものとす
る。また、幅が1画素である線分の境界点は、境界点列
を求める過程で重複して追跡されるため、これらは同じ
座標をもつ異なる境界点として扱い、互いに他の延長境
界点であるとする。以下、境界点pの延長境界点をpair
(p)で表わす。
FIG. 4 shows an example of an extension boundary point. In FIG. 4, a circle is a black pixel at a boundary point, and an arrow therein indicates a tilt direction. An inclination direction ang (p) with respect to the target boundary point p is obtained by a differential operator. From p, the boundary point q that first appears following the black pixel in this direction is referred to as an extension boundary point for p (fourth point).
FIG. (A)). However, as shown in FIG.
When the boundary point tracking is performed by eight connections, a white pixel may be encountered without encountering the boundary point. In this case, one suitable boundary point is selected from the boundary points adjacent to the white pixel. In addition, since the boundary points of a line segment having a width of one pixel are tracked redundantly in the process of obtaining a boundary point sequence, they are treated as different boundary points having the same coordinates, and are mutually extended boundary points. And Hereinafter, the extension boundary point of the boundary point p is referred to as pair
Expressed by (p).

断面; 任意の2つの境界点q,pを結ぶ直線経路において白画
素がほとんど出現しないと見なせるときに、この境界点
ペアとその直線経路とを併せて断面(第3図参照)と呼
び、S(q,p)で表わす。Sの方向は、pの方向に一致
し、qの方向の反対であるとする。一つの境界点は複数
の断面に属することができる。
Section; When it can be considered that a white pixel hardly appears in a straight line path connecting any two boundary points q and p, this boundary point pair and its straight path are collectively called a cross section (see FIG. 3), and S Expressed as (q, p). The direction of S matches the direction of p and is opposite to the direction of q. One boundary point can belong to multiple cross sections.

断面系列; 直観的には、断面を隙間や交差なしに並べた系列であ
ると言える(例えば第3図の(イ)の部分)。厳密に
は、断面系列とは一つ以上の断面の連なりであって、系
列に含まれる全ての隣接断面(これをS(p1,q1),S(p
2,q2)とする)が以下の条件を満たすものとする。
Section series: Intuitively, it can be said that the section is a series in which sections are arranged without any gaps or intersections (for example, the part (a) in FIG. 3). Strictly speaking, a cross-section series is a series of one or more cross-sections, and all adjacent cross-sections included in the series (this is referred to as S (p1, q1), S (p
2, q2)) satisfy the following conditions.

「p1とp2とは同一または隣接する」かつ、 「q1とq2とは同一または隣接する」かつ、 「p1とp2とは同一ではないかまたはq1とq2とは同一で
はない」かつ、 「境界点を除いて、S(p1,q1)とS(p2,q2)とは交
差しない」 前方向に断面をもたない断面をその断面系列のheadと
呼び、後方向に断面をもたない断面をその断面系列のta
ilと呼ぶ。但し、ループの場合は、適当な隣接断面を選
んで、それぞれhead,tailとする。断面系列の方向は、
最初に選んだ断面の方向を単に継承するだけであって必
然性はない。
"P1 and p2 are the same or adjacent" and "q1 and q2 are the same or adjacent" and "p1 and p2 are not the same or q1 and q2 are not the same" and "boundary Except for the point, S (p1, q1) and S (p2, q2) do not intersect. "A section without a section in the forward direction is called the head of the section series, and a section without a section in the backward direction. The section series of TA
Call it il. However, in the case of a loop, an appropriate adjacent cross section is selected, and the head and tail are respectively selected. The direction of the section series is
It simply inherits the direction of the cross section that was initially selected, and is not necessary.

識別番号がnである断面系列をLn,Lnのheadをhead(L
n)、Lnのtailをtail(Ln)とする。
The cross-sectional series whose identification number is n is Ln, and the head of Ln is head (L
n), let tail of Ln be tail (Ln).

一つの断面は高々一つの断面系列に属する。同様に、
一つの境界点は高々一つの断面系列に属する。
One section belongs to at most one section series. Similarly,
One boundary point belongs to at most one section series.

不明領域; 断面系列に属さない境界点と、断面系列のheadまたは
tailで囲まれており、内部に断面系列を含まない領域
(例えば第3図の(ロ)の部分)。
Unknown area; boundary points that do not belong to the cross-sectional series and the head or
A region that is surrounded by the tail and does not include a cross-sectional series inside (for example, the portion (b) in FIG. 3).

以下、第2図に従って断面系列グラフ抽出処理の手順
を説明する。
Hereinafter, the procedure of the sectional sequence graph extraction processing will be described with reference to FIG.

全境界点と全境界点列の抽出(処理1) まず、パターンメモリ4中の線図形イメージデータに
ついて、黒画素を左手に見るように境界点を追跡し、全
ての境界点列PSi(i=0…M)と全ての境界点pij(j
=0…Ni)とを求め、各々の境界点についてその境界延
長点を求める。抽出した全境界点と全境界点列はデータ
メモリ5に格納する。
Extraction of All Boundary Points and All Boundary Point Sequences (Process 1) First, with respect to the line figure image data in the pattern memory 4, the boundary points are tracked so that black pixels are seen to the left, and all the boundary point sequences PSi (i = 0... M) and all boundary points pij (j
= 0... Ni), and for each boundary point, its boundary extension point is determined. The extracted all boundary points and all boundary point sequences are stored in the data memory 5.

初期的な断面抽出(処理2) 抽出した境界点とのその延長境界点の関係に着目し
て、線分の方向に直交するような断面を次のようにして
求める。
Initial Cross Section Extraction (Process 2) A cross section orthogonal to the direction of the line segment is obtained as follows, focusing on the relationship between the extracted boundary point and its extended boundary point.

境界点pij(i=0…M,j=0…Ni)のうち注目境界点
をpとすると、pが以下の1から3の条件のいずれかを
満せば、断面S(p,pair(p))を登録する。登録はデ
ータメモリ5を用いて行う。但し、S(pair(p),p)
が既に登録済みであれば、登録は行わない。
Assuming that the target boundary point among the boundary points pij (i = 0... M, j = 0... Ni) is p, if p satisfies one of the following conditions 1 to 3, the cross section S (p, pair ( p)) is registered. Registration is performed using the data memory 5. Where S (pair (p), p)
If is already registered, do not register.

1.pair(pair(p))=p 2.ang(p)とang(pair(p))がほぼ向かい合う。1.pair (pair (p)) = p 2.ang (p) and ang (pair (p)) almost face each other.

3.pair(pair(p))とpの間の境界点がある個数以下
である。
3. The number of boundary points between pair (pair (p)) and p is less than or equal to a certain number.

以上の処理で、線図形の曲率の小さい部分の断面を求
められる。
Through the above processing, the cross section of the portion of the line graphic having a small curvature can be obtained.

さらに、曲率の大きな部分での断面を求めるために、
上記1〜3のいずれかを満たすpに関し、pから追跡方
向(及び逆方向)に追跡をするときの注目境界点をp′
とすると、pair(p′)とpair(p)が同一である限り
p′の追跡を続け、S(p′,pair(p))を登録す
る。このときも、S(pair(p),p′)が既に登録され
ていれば登録は行わない。この処理は、ちょうどpair
(p′)を中心として円を描くかのように断面を求める
処理であると言える。
Furthermore, in order to obtain a cross section at a portion with a large curvature,
Regarding p that satisfies any of the above 1 to 3, the target boundary point when tracking in the tracking direction (and the reverse direction) from p is p ′
Then, as long as pair (p ') and pair (p) are the same, tracking of p' is continued, and S (p ', pair (p)) is registered. At this time, if S (pair (p), p ') has already been registered, registration is not performed. This process is just a pair
This can be said to be a process of obtaining a cross section as if a circle is drawn with (p ') as the center.

断面系列の抽出(処理3) 断面が初期的に求められたならば、これらを前後に関
係付けして断面系列を求める。ここでの処理を簡単に説
明すると、「未処理の断面を取り出して、これに隣接す
る未処理の断面の中から適当なものを選んで前後に関係
付ける、という処理を隣接断面が存在しなくなるまで行
う。」という処理の繰返しにより、全ての断面系列を抽
出するものであると言える。断面が未処理かどうかは、
断面に属する境界点のラベル(これは、断面系列の識別
番号を表す)によって判断する。
Extraction of Cross Section Series (Process 3) When cross sections are initially determined, a cross section series is obtained by associating them before and after. The processing here is briefly described as follows. "The processing of extracting an unprocessed cross section, selecting an appropriate one from the unprocessed cross sections adjacent thereto, and relating them to the front and rear, and the adjacent cross section does not exist It can be said that all cross-sectional series are extracted by repeating the processing of “Perform until”. Whether a section is untreated
The determination is made based on the label of the boundary point belonging to the cross section (this represents the identification number of the cross section series).

処理の詳細は以下の通りである。なお、記号を次のよ
うに定める。
The details of the processing are as follows. The symbols are defined as follows.

LBL(p) ;境界点pのラベル。断面系列の識別番号
を表わす。
LBL (p): label of boundary point p. Indicates the identification number of the section series.

c ;断面系列の識別吉号を表わすカウンタ。c: a counter indicating a cross-section series identification symbol.

CNG( ) ;断面の方向の反転するオペレータ。即ち
CNG(S(q,p))=S(q,p) SS ;説明のため便宜的に用いる変数であり、
断面を表わす。
CNG (): Operator whose cross section direction is reversed. That is
CNG (S (q, p)) = S (q, p) SS; a variable used for convenience of explanation;
Represents a cross section.

STEP1:「初期設定」 LBL(pij)←−1(i=0…M,j=0…Ni)c←−1 STEP2: 断面を1つ取り出す(取り出せなければ終了)。取り
出した断面をS(q,p)とすると、LBL(p)≧0または
LBL(q)≧0であれば、既に調べられたと見なして、S
TEP2へ行き、そうでなければSTEP3へ行く。
STEP1: “Initial setting” LBL (pij) ← −1 (i = 0... M, j = 0... Ni) c ← −1 STEP2: Take out one cross section (end if not taken out). Assuming that the extracted cross section is S (q, p), LBL (p) ≧ 0 or
If LBL (q) ≧ 0, it is considered that the search has already been performed, and S
Go to TEP2, otherwise go to STEP3.

STEP3: cをインクリメントする。STEP3: increment c.

識別番号がcである断面系列Lcを登録する。 The section series Lc having the identification number c is registered.

SSpq←S(p,q)、LBL(p)←c、LBL(q)←cと
する。
SSpq ← S (p, q), LBL (p) ← c, LBL (q) ← c.

STEP3−1:「前方向への処理」 p′をpの次の境界点、q′をqの前の境界点とする
(第5図(a)参照)。LBL(p′)≧0かつLBL
(q′)≧0であれば、head(Lc)←SSpqとしてSTEP3
−2へ行く。そうでなければ、SSp′q′,SSp′q,SSp
q′を次のように求める。
STEP3-1: "Processing in the forward direction" Let p 'be the boundary point next to p and q' be the boundary point before q (see FIG. 5 (a)). LBL (p ') ≧ 0 and LBL
If (q ') ≥ 0, head (Lc) ← SSpq as STEP3
Go to -2. Otherwise, SSp′q ′, SSp′q, SSp
q ′ is obtained as follows.

SSp′q′ ←S(p′,q′) :S(q′,p′)が存在し、 LBL(p′)<0かつLBL(q′)<0 ←CNG(S(q′,p′)):S(q′,p′)が存在し、 LBL(p′)<0かつLBL(q′)<0 ←NULL :上記以外のとき SSp′q ←S(p′,q) :S(p′,q)が存在し、 LBL(p′)<0 ←CNG(S(q,p′)) :S(q,p′)が存在し、 LBL(p′)<0 ←NULL :上記以外のとき SSpq′ ←S(p,q′) :S(p,q′)が存在し、 LBL(q′)<0 ←CNG(S(q′,p) :S(q′,p)が存在し、 LBL(q′)<0 ←NULL :上記以外のとき SSp′q′,SSp′q,SSpq′を求めたのち、次の場合分け
(a)から(e)に従う。
SSp′q ′ ← S (p ′, q ′): S (q ′, p ′) exists, and LBL (p ′) <0 and LBL (q ′) <0 ← CNG (S (q ′, p ')): S (q', p ') exists, LBL (p') <0 and LBL (q ') <0 ← NULL: In other cases, SSp′q ← S (p ′, q): S (p ', q) exists, LBL (p') <0 ← CNG (S (q, p ')): S (q, p') exists, and LBL (p ') <0 ← NULL : Other than the above: SSpq ′ ← S (p, q ′): S (p, q ′) exists, and LBL (q ′) <0 ← CNG (S (q ′, p): S (q ′, pBL exists, and LBL (q ') <0 ← NULL: In cases other than the above, after SSp'q', SSp'q, and SSpq 'are obtained, the following cases (a) to (e) are followed.

(a) SSp′q′≠NULL(第5図(b)参照) SSpqとSSp′q′を前後に関係付ける。(A) SSp'q '≠ NULL (see FIG. 5 (b)) SSpq and SSp'q' are related to each other.

p←p′、q←q′、SSpq←SSp′q′とする。 Let p ← p ′, q ← q ′, SSpq ← SSp′q ′.

(b) SSp′q′=NULLかつSSp′q≠NULLかつSSp′
q≠NULL(第5図(b)参照) S(p′,q′)を登録してSSpqと前後に関係付ける。
(B) SSp'q '= NULL and SSp'q ≠ NULL and SSp'
q ≠ NULL (see FIG. 5 (b)) S (p ′, q ′) is registered and related to SSpq.

p←p′、q←q′、SSpq←S(p′,q′)とする。 Let p ← p ′, q ← q ′, SSpq ← S (p ′, q ′).

(c) SSp′q′=NULLかつSSpq′≠NULLかつSSp′q
=NULL(第5図(c)参照) SSpqとSSpq′を前後に関係付ける。
(C) SSp'q '= NULL and SSpq' ≠ NULL and SSp'q
= NULL (see FIG. 5 (c)) SSpq and SSpq 'are related to each other.

q←q′、SSpq←SSpq′とする。 Let q ← q ′, SSpq ← SSpq ′.

(d) SSp′q′=NULLかつSSpq′=NULLかつSSp′q
≠NULL(第5図(d)参照) SSpqとSSpq′を前後に関係付ける。
(D) SSp'q '= NULL and SSpq' = NULL and SSp'q
≠ NULL (See FIG. 5 (d)) SSpq and SSpq ′ are related to each other.

p←p′、SSpq←SSp′qとする。 Let p ← p ′ and SSpq ← SSp′q.

(e) SSp′q′=NULLかつSSpq′=NULLかつSSp′q
=NULL(第5図(e)参照) head(Lc)←SSpqとしてSTEP3−2へ行く。
(E) SSp'q '= NULL and SSpq' = NULL and SSp'q
= NULL (See FIG. 5 (e)) Head (Lc) ← SSpq and go to STEP3-2.

LBL(p)←c,LBL(q)←cとして、STEP3−1へ戻
る。
Return to STEP 3-1 by setting LBL (p) ← c and LBL (q) ← c.

STEP3−2:「後方向への処理」 STEP3−1と同様であるので省略する。なお、系列付
けができなくなった時点で、tail(Lc)←SSpqとして、
STEP2へ戻り次の断面系列を求める。
STEP 3-2: “Processing in the backward direction” The description is omitted because it is the same as in STEP 3-1. At the time when the series can no longer be assigned, tail (Lc) ← SSpq,
Return to STEP2 to obtain the next section series.

以上の処理で、対象とする線図形について全ての断面
系列が初期的に求められる。STEP2において、どの未処
理断面を最初に選択するかにより、処理結果に多少の違
いが現れうるが、処理2での条件1〜3が十分厳しけれ
ば、大きな違いとはならない。
Through the above processing, all the cross-sectional series are initially obtained for the target line figure. In STEP 2, a slight difference may appear in the processing result depending on which unprocessed cross section is selected first. However, if the conditions 1 to 3 in the processing 2 are sufficiently strict, there is no significant difference.

不要な断面系列の削除(処理4) 処理2で得られた断面系列には、第6図に示すように
互いに交差する組が存在する可能性がある。そのため、
こうした組を求めて、一方を削除する必要がある。断面
系列は、断面を隙間なく並べたものであることを利用す
ると、その交差を判定する場合に、系列に含まれる全て
の断面の交差可能性を調べる必要はなく、一つの断面を
選ぶだけでよい。
Deletion of Unnecessary Section Series (Process 4) In the section series obtained in Process 2, there is a possibility that sets intersecting each other exist as shown in FIG. for that reason,
In search of such a pair, one needs to be deleted. By using the fact that the cross-section series is a series of cross-sections without gaps, when determining the intersection, there is no need to check the possibility of intersection of all the cross-sections included in the series, just select one cross-section Good.

得られた断面系列の間で互いに交差するものがあるか
どうかを調べ、交差がある場合には、幅(断面に属する
境界点間の距離の平均)が大きい方の断面系列につい
て、そこに含まれる境界点のラベルをクリア(−1にセ
ット)したのち、断面系列を登録から削除する。
It is checked whether there is any crossing between the obtained cross-sectional series. If there is a crossing, the cross-sectional series with the larger width (average of the distance between boundary points belonging to the cross-section) is included in that. After the label of the boundary point to be cleared is cleared (set to -1), the section series is deleted from the registration.

なお、断面系列の幅に対して十分な断面数をもたない
断面系列も、この時点で削除してもよい。
It should be noted that a section series that does not have a sufficient number of sections for the width of the section series may be deleted at this time.

断面系列の延長・統合(処理5) ノイズの影響が大きい場合には、第7図(a)に示す
ように、断面系列が十分に線端に達しなかったり、一つ
の線分が複数の断面系列に分かれることがある。そのた
め、第7図(b)のように、断面系列を延長すること
や、断面系列の間に断面を作ったうえで、複数の断面系
列を統合して一つの断面系列にすることが必要となる。
Extension / integration of cross-section series (Process 5) When the influence of noise is large, as shown in FIG. 7 (a), the cross-section series does not reach the end of the line sufficiently, or one line segment has a plurality of cross-sections. May be divided into affiliates. Therefore, as shown in FIG. 7 (b), it is necessary to extend the cross-sectional series or to form a cross-section between the cross-sectional series and then integrate a plurality of cross-sectional series into one cross-sectional series. Become.

まず、統合処理について述べる。断面系列を一つずつ
取り出し、前後方向それぞれについて以下の処理を行
う。ここで、取り出した断面系列をLnとする。
First, the integration process will be described. The section series is taken out one by one, and the following processing is performed in each of the front and rear directions. Here, the extracted cross-sectional series is defined as Ln.

(i) 断面系列間の断面作成処理(前方向) 既にhead(Ln)が処理済みであれば何もしない。処理
済みでなければ、head(Ln)を処理済みであるとする。
そして、 S(p,q)←head(Ln) pp←pから前方向に境界点を追跡し、ラベルが−1で
ない最初の境界点 qq←qから後方向に境界点を追跡し、ラベルが−1で
ない最初の境界点 を求める。ここで、pp=qであれば、後述する断面系列
の延長処理を行う。一方、LBL(pp)≠LBL(qq)であれ
ば分岐か交差であるので、このような場合は何もしな
い。
(I) Cross-section creation processing between cross-section series (forward) Nothing is performed if head (Ln) has already been processed. If not processed, it is assumed that head (Ln) has been processed.
Then, the boundary point is traced forward from S (p, q) ← head (Ln) pp ← p, the boundary point is traced backward from the first boundary point qq ← q whose label is not −1, and the label is traced. Find the first boundary point that is not -1. Here, if pp = q, a cross-sectional series extension process described later is performed. On the other hand, if LBL (pp) ≠ LBL (qq), there is a branch or an intersection, so nothing is done in such a case.

次に、LBL(pp)をn′とする。そして、head(L
n′)=S(qq,pp)(またはtail(Ln′)=S(pp,q
q))であれば、これを処理済みであるとし、head(L
n)とhead(Ln′)(またはtail(Ln′))を統合でき
る可能性があるとして、先のSTEP3−1と類似する方法
で断面系列の間に断面を作っていく。
Next, let LBL (pp) be n '. And head (L
n ′) = S (qq, pp) (or tail (Ln ′) = S (pp, q
q)), it is assumed that this has been processed, and head (L
Since there is a possibility that n) and head (Ln ′) (or tail (Ln ′)) can be integrated, a cross section is created between the cross-sectional series in a manner similar to STEP 3-1.

STEP3−1では断面が存在しているかどうかで系列付
けを行ったが、ここでは、断面はないことが判っている
ので、SSp′q′,SSpq′,SSp′qを一時的に作成した上
で、ある評価関数を最小にする断面を採用する。
In STEP3-1, the sequence was determined based on whether or not a cross section exists. However, since it is known that there is no cross section, SSp'q ', SSpq', and SSp'q were temporarily created. Then, a cross section that minimizes a certain evaluation function is adopted.

評価関数は、断面に含まれている2つの境界点の傾き
方向に向き合う程小さく、その距離が短い程小さくなる
ようにすればよい。最も小さな評価値があるしきい値を
越えれていれば、統合は行わないものとする。
The evaluation function may be made smaller as it faces the inclination direction of two boundary points included in the cross section, and becomes smaller as its distance becomes shorter. If the smallest evaluation value exceeds a certain threshold, integration is not performed.

(ii) 断面系列の統合(前方向) 断面系列の間が埋められた後、必要ならば一方の断面
系列の方向を反転したうえで、断面系列を統合する。
(Ii) Integration of cross-section series (forward direction) After the space between cross-section series is filled, if necessary, the direction of one cross-section series is reversed, and then the cross-section series is integrated.

後方向の断面系列間の断面作成処理及び断面系列の統
合は上記前方向の処理と同様であるため省略する。
The cross-section creation processing and the integration of the cross-section series between the cross-section series in the rear direction are the same as the processing in the front direction, and a description thereof will be omitted.

次に、断面系列の延長処理は、上述の断面作成処理と
同様の処理を、断面系列が線端に十分近づくまで行えば
よい。
Next, the processing for extending the cross-section series may be performed in the same manner as the above-described cross-section creation processing until the cross-section series is sufficiently close to the line end.

不明領域の抽出と断面系列との参照付け(処理6) 断面系列にならなった部分を求め、これを不明領域と
する処理を行う。
Extraction of unknown region and reference to cross-sectional series (process 6) A part that has become a cross-sectional sequence is determined, and a process of setting this as an unknown region is performed.

境界点列PSi(i=0…M)のうちで断面系列が存在
しないものがあれば、これを一つの不明領域であるとす
る。
If there is no cross-sectional series in the boundary point sequence PSi (i = 0... M), this is regarded as one unknown region.

断面系列が存在する場合は以下のようにする。あらか
じめ前記断面系列の延長・統合処理(処理5)の段階
で、統合されなかった断面系列間について、pとpp、q
とqqが互いに参照可能にされるものとする。これらの境
界点(すなわち、断面系列のheaまたはtailに属する境
界点)がループを構成する部分を検出してこれを不明領
域とするとともに、不明領域に接続する断面系列がhead
で接続するかtailで接続するかを明らかにして、断面系
列と不明領域からなるグラフ構造を求める。
If there is a cross-sectional series, proceed as follows. P, pp, q between the cross-section series that have not been integrated in advance in the section series extension / integration processing (processing 5)
And qq can be referred to each other. These boundary points (that is, boundary points belonging to the section series “hea” or “tail”) detect a part forming a loop and make it an unknown area, and the section series connected to the unknown area is a head section.
It is clarified whether the connection is made by the connection or the tail, and the graph structure consisting of the section series and the unknown region is obtained.

以上の処理1から処理6により、線図形イメージデー
タについて、ノードが断面系列または不明領域を表わ
し、アークがこれらの接続関係を表わすグラフ構造(断
面系列グラフ)を抽出することができる(第3図参
照)。
By the above processing 1 to processing 6, a graph structure (cross-section sequence graph) can be extracted from the line graphic image data in which the nodes represent the cross-section series or the unknown area, and the arcs represent the connection relation between them (FIG. 3). reference).

断面系列グラフの修正(処理7) これまでの処理で得られた断面系列には、第8図
(a)に示すように交差の内部を横切る断面系列や、小
さな突起や孔の影響でできる不要な断面系列が含まれる
場合がある。こうした場合は、第8図(a)のようにこ
れらを除去して断面系列グラフを修正する必要がある。
Correction of cross-section series graph (Process 7) The cross-section series obtained by the above-mentioned processes is unnecessary as shown in FIG. 8 (a) because of the cross-section series crossing the inside of the intersection and the influence of small projections and holes. In some cases. In such a case, it is necessary to remove these as shown in FIG. 8 (a) to correct the sectional sequence graph.

まず、全ての不明領域について、それを代表する点
(即ち、接続している断面系列から骨格線を抽出した場
合に、これらを滑らかにつなぎうるような点)を次のよ
うにして求める。
First, with respect to all the unknown regions, the representative points thereof (that is, points which can be smoothly connected when skeleton lines are extracted from the connected sectional series) are obtained as follows.

不明領域に隣接する断面系列の数をKとする。Kが1
以下であれば、代表点はなしとする。Kが2以上のと
き、着目している不明領域に接続する断面系列をLk(k
=k1…kk)とする。
Let K be the number of section series adjacent to the unknown area. K is 1
If it is below, there is no representative point. When K is 2 or more, the sectional series connected to the unknown region of interest is represented by Lk (k
= K 1 ... k k ).

不明領域内(境界点を含む)の黒画素について次式に
定義される評価値Fを求める。
An evaluation value F defined by the following equation is obtained for black pixels in the unknown area (including the boundary points).

F=min(cos(θk))(k=k1…kk) θk;ベクトルVkとベクトルWkのなす角度 Vk;断面系列Lkの着目している不明領域付近での進行方
向を表わすベクトル(不明領域側を向く) Wk;head(Lk)(tailが不明領域に接続していれば、tai
l(Lk))の中央を始点、着目する黒画素を終点とする
ベクトル 評価値Fは、着目している黒画素が全ての断面系列の
延長上にあるとき最大となるので、Fを最大にする黒画
素を求め、これを不明領域を代表する点とする(第9図
参照)。
F = min (cos (θk)) (k = k 1 ... K k ) θk; angle Vk between vector Vk and vector Wk; vector representing the traveling direction near the unknown area of interest of cross-sectional series Lk (unknown Wk; head (Lk) (If tail is connected to unknown area, tai
l (Lk)), the vector evaluation value F having the starting point at the center and the ending point at the black pixel of interest is maximum when the black pixel of interest is on an extension of all cross-sectional series, so that F is maximized. A black pixel to be obtained is determined, and this is set as a point representing the unknown area (see FIG. 9).

次に、全ての断面系列Li(i=1…N)について、Li
の長さlen(Li)とLiの幅wid(Li)を len(Li)=(Liに含まれる断面数) +(head(Li)の中央からheadに隣接する 不明領域の代表点までの距離) +(tail(Li)の中央からtailに隣接する 不明領域の代表点までの距離) wid(Li)=(Liに含まれる断面の2つの境界点 間の距離の平均) により求めて、len(Li)がwid(Li)に対して十分な
長さをもたない場合には、Liは線分ではないと見做し、
断面系列グラフから断面系列Liを表すノードを除去す
る。
Next, for all sectional series Li (i = 1... N), Li
The length len (Li) and the width wid (Li) of Li are: len (Li) = (number of cross-sections included in Li) + (distance from the center of head (Li) to the representative point of the unknown area adjacent to head ) + (Distance from the center of tail (Li) to the representative point of the unknown area adjacent to tail) wid (Li) = (average distance between two boundary points of the cross section included in Li) If (Li) is not long enough for wid (Li), it is assumed that Li is not a line segment,
The node representing the section series Li is removed from the section series graph.

以上の1〜7の処理で断面系列グラフが完成する。こ
こでは、この断面系列グラフに基づき骨格線グラフ(芯
線)を求める処理について簡単に説明する。
The cross-section series graph is completed by the above processes 1 to 7. Here, a process of obtaining a skeleton line graph (core line) based on the sectional series graph will be briefly described.

断面系列グラフでは、その作業過程から明らかなよう
に、断面系列を表わすノード同士が隣接することはな
く、同様に不明領域を表わすノード同士が隣接すること
はない(第3図参照)。
In the sectional sequence graph, as is apparent from the work process, the nodes representing the sectional sequence are not adjacent to each other, and similarly, the nodes representing the unknown regions are not adjacent to each other (see FIG. 3).

断面系列については、head、tailに加えていくつかの
断面を選び、その中央の座標をもつ骨格点を作って接続
することにより、容易に骨格線が得られる。
For a series of cross sections, a skeleton line can be easily obtained by selecting some cross sections in addition to the head and tail, and forming and connecting skeleton points having the coordinates of the center.

一方、不明領域については、既に処理6で代表点が求
められているため、接続数(これをKとする)に従って
以下の処理を行うことで、骨格線を得ることができる。
On the other hand, since the representative point has already been obtained in process 6 for the unknown region, a skeleton line can be obtained by performing the following process according to the number of connections (this is K).

(a) K=0のとき 面領域を表すと見做す。処理対象や目的によって異な
るが、基本的には、面積が十分小さな場合には骨格点を
一つ作成し、そうでなければ面領域のままとする。
(A) When K = 0 It is considered to represent a surface area. Although it depends on the processing object and purpose, basically, if the area is sufficiently small, one skeleton point is created, otherwise, the surface area is left as it is.

(b) K=1のとき 線端を表すと見做せるので、何もしない。(B) When K = 1 Since nothing can be considered as representing a line end, nothing is done.

(c) K>1のとき 屈曲の激しいもの、分岐、交差のいずれかを表わすと
見做せる。不明領域の代表点の座標をもつ骨格点を作成
し、隣接する断面系列Lk(k=k1…kk)の端(不明領域
側)の骨格点とそれぞれつなぐ。
(C) When K> 1 It can be considered to represent any one of severely bent, branched, and crossed. A skeleton point having the coordinates of the representative point of the unknown region is created, and connected to the skeleton point at the end (unknown region side) of the adjacent cross-sectional series Lk (k = k 1 ... K k ).

このようにして、断面系列グラフから骨格線グラフを
求めることができるが、断面を選ぶ間隔を変えること
で、骨格線グラフの粗さを容易に変更できる。
In this manner, the skeleton line graph can be obtained from the cross-sectional series graph, but the roughness of the skeleton line graph can be easily changed by changing the interval for selecting the cross section.

以上に説明した骨格線抽出処理は、画像を矩形等で分
割する場合に比べて不明領域が非常に小さくなり、しか
も不明領域近傍での線分の方向が断面系列から正確に判
るため、線幅によらずに屈曲・分岐・交差付近でも正し
い骨格線を得ることができる。
In the skeletal line extraction processing described above, the unknown area is much smaller than when the image is divided into rectangles or the like, and the direction of the line segment near the unknown area can be accurately determined from the sectional series. A correct skeleton line can be obtained even in the vicinity of a bend / branch / intersection regardless of the above.

また、ここでは具体的方法については言及しないが、
統計的特徴(境界点の傾き方向の統計等)を局所的(任
意の断面系列内の任意の断面間)に求めることも容易で
ある。
Also, we will not mention specific methods here,
It is also easy to obtain statistical features (statistics of the inclination direction of the boundary point, etc.) locally (between arbitrary cross sections in an arbitrary cross section series).

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

以上の説明から明らかな如く、本発明によれば次のよ
うな効果が得られる。
As apparent from the above description, the present invention has the following effects.

(1) 断面系列グラフを抽出することにより、この断
面系列グラフで大まかな構造マッチングをとることや、
骨格線グラフの粗さを局所的に変更することや、統計的
特徴を求めることが容易に行えるため、認識処理の効率
化と認識率の向上に寄与する。また、断面系列グラフに
は再現性があるために、線図形の認識のみならず、編
集、伝送、蓄積・検索といった用途に利用することが可
能である。
(1) By extracting a cross-sectional sequence graph, rough structure matching can be performed with this cross-sectional sequence graph,
Since the roughness of the skeletal line graph can be locally changed and statistical characteristics can be easily obtained, it contributes to the efficiency of the recognition processing and the improvement of the recognition rate. Further, since the cross-sectional series graph has reproducibility, it can be used not only for recognizing line figures but also for applications such as editing, transmission, storage / retrieval.

(2) 線分の方向にほぼ直交するように断面が作られ
るため、線幅によらない特徴抽出が可能となる。
(2) Since the cross section is formed so as to be substantially perpendicular to the direction of the line segment, it is possible to extract features independent of the line width.

(3) 断面と線分の直交性があまり失われることな
く、しかも前後関係に矛盾が起きないような系列として
順序付けられるために、骨格線グラフを容易に抽出する
ことが可能となる。
(3) Since the orthogonality of the cross section and the line segment is not so much lost, and the sequences are ordered as such that there is no inconsistency in the context, the skeleton graph can be easily extracted.

(4) 分断されている断面系列を統合することによ
り、不要な不明領域が現われないため処理の効率化に寄
与すると同時に、ノイズの影響を低減させることができ
るため認識率の向上に寄与する。
(4) By integrating the divided cross-sectional series, unnecessary unknown regions do not appear, which contributes to processing efficiency, and at the same time, reduces the influence of noise, thereby contributing to an improvement in recognition rate.

(5) 断面系列を線端に近づくまで延長することによ
り、線端付近でも正しい骨格線グラフを求めることがで
きるため認識率の向上に寄与する。
(5) By extending the cross-sectional series until it approaches the line end, a correct skeleton line graph can be obtained even near the line end, which contributes to an improvement in recognition rate.

(6) 画像を矩形等で分割する場合に比べて、不明領
域が非常に小さくなり、しかも不明領域近傍の線分の方
向が断面系列から正確に判るため、線幅によらずに分岐
や交差の付近でも正確な骨格線グラフを得ることがで
き、認識率の向上に寄与する。
(6) Compared to the case where the image is divided into rectangles or the like, the unknown area is extremely small, and the direction of the line segment near the unknown area can be accurately determined from the sectional series. , An accurate skeleton line graph can be obtained, which contributes to an improvement in the recognition rate.

(7) 断面系列グラフの修正処理により、交差の内部
にできる短い断面系列や、小さな孔領域を囲む短い断面
系列が削除されるため、断面系列グラフは正しく求ま
り、従って骨格線グラフも正しく求められるので認識率
の向上に寄与する。
(7) The cross-sectional sequence graph is corrected, so that a short cross-sectional sequence formed inside an intersection and a short cross-sectional sequence surrounding a small hole region are deleted. Therefore, a cross-sectional sequence graph is correctly obtained, and thus a skeleton line graph is also correctly obtained. This contributes to the improvement of the recognition rate.

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

第1図は本発明を実施するハードウェア構成の一例を示
すブロック図、第2図は本発明による断面系列グラフ抽
出処理の流れ図、第3図は原画像データと断面系列グラ
フと骨格線の関係を示す図、第4図は延長境界点の説明
図、第5図は断面系列抽出処理の説明図、第6図は断面
系列の交差の例を示す図、第7図は断面系列の延長・統
合の例を示す図、第8図は断面系列グラフの修正の例を
示す図、第9図は不明領域を代表する点の求め方を示す
図である。 1……中央処理装置、2……プログラムメモリ、21……
断面系列グラフ抽出処プログラム、3……イメージスキ
ャナ、4……パターンメモリ、5……データメモリ。
FIG. 1 is a block diagram showing an example of a hardware configuration for implementing the present invention, FIG. 2 is a flowchart of a sectional sequence graph extraction process according to the present invention, and FIG. 3 is a relationship between original image data, a sectional sequence graph, and a skeleton line. 4, FIG. 4 is an explanatory view of the extension boundary point, FIG. 5 is an explanatory view of the cross-section series extraction processing, FIG. 6 is a view showing an example of intersection of the cross-section series, and FIG. FIG. 8 is a diagram showing an example of integration, FIG. 8 is a diagram showing an example of correction of a sectional sequence graph, and FIG. 9 is a diagram showing how to find a point representing an unknown area. 1 central processing unit, 2 program memory, 21
Section sequence graph extraction processing program, 3 ... image scanner, 4 ... pattern memory, 5 ... data memory.

Claims (5)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】線図形イメージデータから線分の方向にほ
ぼ直交する断面を抽出する段階と、前記断面の連なりを
求めて断面系列とし、該断面系列以外の領域を不明領域
とする段階と、ノードが前記断面系列または不明領域の
いずれかを表わし、アークがこれらの接続関係を表わす
断面系列グラフを作成する段階とからなり、前記断面系
列グラフを線図形の特徴とする線図形の特徴抽出方法。
1. A step of extracting a cross section substantially orthogonal to the direction of a line segment from line graphic image data, a step of obtaining a series of the cross sections to form a cross section series, and setting an area other than the cross section series to an unknown area. A node representing either the cross-sectional series or the unknown region, and an arc generating a cross-sectional series graph representing a connection relationship between them, and a method for extracting a line figure feature using the cross-sectional series graph as a feature of the line figure .
【請求項2】断面系列に、互いに交差する組が存在する
場合には、幅の大きい方の断面系列を削除することを特
徴とする請求項(1)記載の線図面の特徴抽出方法。
2. The method according to claim 1, wherein, when a set of cross sections exists in the cross-sectional series, the cross-sectional series having a larger width is deleted.
【請求項3】二つの断面系列の間に、評価関数を定めて
断面の生成処理を繰り返して、該二つの断面系列を一つ
の断面系列に統合することを特徴とする請求項(1)記
載の線図形の特徴抽出方法。
3. The method according to claim 1, wherein an evaluation function is determined between the two cross-sectional series and cross-section generation processing is repeated to integrate the two cross-sectional series into one cross-sectional series. Extraction method of line figure.
【請求項4】断面系列の端が線端に相当する場合に、評
価関数を定めて線端に十分に近づくまで断面の生成処理
を繰り返して、断面を延長することを特徴とする請求項
(1)記載の線図形の特徴抽出方法。
4. The method according to claim 1, wherein when the end of the series of sections corresponds to a line end, an evaluation function is determined and the processing for generating a cross section is repeated until the end is sufficiently close to the line end to extend the cross section. 1) A method for extracting features of a line figure described.
【請求項5】作成した断面系列グラフについて、全ての
不明領域を対象に、その領域を代表する点を定めた後、
各断面系列の長さとして、当該断面系列に含まれる断面
数に該断面系列の端から隣接する不明領域の代表点まで
の距離を加えたものを求め、該値が当該断面系列の幅に
対して十分大きくない場合に、当該断面系列に相当する
ノードを断面系列グラフから除去することを特徴とする
請求項(1),(2),(3),(4)記載の線図形の
特徴抽出方法。
5. After defining a point representative of all unknown regions in the created cross-sectional series graph,
As the length of each cross-section series, the sum of the number of cross-sections included in the cross-section series and the distance from the end of the cross-section series to the representative point of the adjacent unknown area is obtained. And extracting a node corresponding to the section sequence from the section sequence graph if the size is not sufficiently large. Method.
JP2134879A 1990-05-24 1990-05-24 Line figure feature extraction method Expired - Lifetime JP2615247B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2134879A JP2615247B2 (en) 1990-05-24 1990-05-24 Line figure feature extraction method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2134879A JP2615247B2 (en) 1990-05-24 1990-05-24 Line figure feature extraction method

Publications (2)

Publication Number Publication Date
JPH0433072A JPH0433072A (en) 1992-02-04
JP2615247B2 true JP2615247B2 (en) 1997-05-28

Family

ID=15138636

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2134879A Expired - Lifetime JP2615247B2 (en) 1990-05-24 1990-05-24 Line figure feature extraction method

Country Status (1)

Country Link
JP (1) JP2615247B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2873883B2 (en) * 1991-02-26 1999-03-24 日立ソフトウエアエンジニアリング株式会社 Line width detection method for line images
JPH0512442A (en) * 1991-07-02 1993-01-22 Hitachi Software Eng Co Ltd Line image tracking method

Also Published As

Publication number Publication date
JPH0433072A (en) 1992-02-04

Similar Documents

Publication Publication Date Title
US7113617B2 (en) Method of computing sub-pixel Euclidean distance maps
CN111598796B (en) Image processing method and device, electronic equipment and storage medium
EP3252713A1 (en) Apparatus and method for performing 3d estimation based on locally determined 3d information hypotheses
Chaudhuri et al. A novel approach to computation of the shape of a dot pattern and extraction of its perceptual border
Amin et al. Hand printed Arabic character recognition system
Arcelli et al. Skeletons of planar patterns
JP2615247B2 (en) Line figure feature extraction method
JP3217475B2 (en) Line figure feature extraction method
Sun et al. Multiple paths extraction in images using a constrained expanded trellis
JP3564371B2 (en) Figure editing apparatus and method
CN110838130B (en) Fast fuzzy distance transformation method
CN115841496A (en) Contour extraction method and device for SEM image, computer equipment and storage medium
JP2011210160A (en) Image processing method, image processor, program and program storage medium
Tabbone et al. Recognition of symbols in grey level line-drawings from an adaptation of the radon transform
Chang et al. Skeletonization of binary digital patterns using a fast Euclidean distance transformation
Borgefors et al. Discrete skeletons from distance transforms in 2D and 3D
Ahmadi et al. Image seam-carving by controlling positional distribution of seams
EP1538547B1 (en) Method and device for extracting skeletal data from image data
JP3521049B2 (en) Curve generating device and curve generating method
Pavlidis et al. Advanced Segmentation Techniques
CN108109150B (en) Image segmentation method and terminal
CN110675338B (en) Automatic vector data correction method based on multiple images
Marqués Acosta Multiresolution image segmentation based on camporend random fields: Application to image coding
Wang et al. Quasi-Dense Matching Algorithm for Close-Range Image Combined With Feature Line Constraint
Zhang et al. A segment-based dense stereo matching algorithm

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090311

Year of fee payment: 12

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100311

Year of fee payment: 13

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110311

Year of fee payment: 14

EXPY Cancellation because of completion of term
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110311

Year of fee payment: 14