JPH0816782A - Line segment extracting system for binary drawing image - Google Patents

Line segment extracting system for binary drawing image

Info

Publication number
JPH0816782A
JPH0816782A JP17168694A JP17168694A JPH0816782A JP H0816782 A JPH0816782 A JP H0816782A JP 17168694 A JP17168694 A JP 17168694A JP 17168694 A JP17168694 A JP 17168694A JP H0816782 A JPH0816782 A JP H0816782A
Authority
JP
Japan
Prior art keywords
run
run data
point
line segment
trace
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
Application number
JP17168694A
Other languages
Japanese (ja)
Other versions
JP2576413B2 (en
Inventor
Hiroyuki Kami
博行 上
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.)
NEC Corp
Original Assignee
NEC Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NEC Corp filed Critical NEC Corp
Priority to JP17168694A priority Critical patent/JP2576413B2/en
Publication of JPH0816782A publication Critical patent/JPH0816782A/en
Application granted granted Critical
Publication of JP2576413B2 publication Critical patent/JP2576413B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Image Analysis (AREA)

Abstract

PURPOSE:To extract a line segment from a binary drawing image even when the line segment is inclined, bent a little in the middle or interrupted in the middle. CONSTITUTION:A run data extracting means 10 extracts a run data group by longitudinally and laterally scanning a binary drawing image, and an indicated point detecting means 20 detects the positions of a start indicated point and an end indicated point. Corresponding to the inclination between the start indicated point and the end indicated point, a run data selecting means 30 selects either of longitudinal and lateral run data groups, and a start run detecting means 40 detects the run data, of which the run length is shorter than a specified value and the distance from the start indicated point is minimum, from the selected run data group and defines them as a start run. Then, a run trace means 50 traces the run data linked from the start run to the end indicated point up to the position of the end indicated point and defines the linkage of provided run data as the line segment.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は2値図面イメージの線分
抽出方式に関し、特に2値図面イメージを走査して得ら
れるランデータを用いて線分を抽出する2値図面イメー
ジの線分抽出方式に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a method for extracting a line segment of a binary drawing image, and more particularly, to a line segment extraction of a binary drawing image which extracts a line segment using run data obtained by scanning the binary drawing image. About the method.

【0002】[0002]

【従来の技術】ランデータを用い線分を抽出する代表的
な方法として、(1)ラン長の長いランデータを線分候
補とし線分候補の集まりを直線とする方法(特開平1−
196657号公報「文書構造認識方法」参照)、
(2)頻度の多いラン長をもつランデータの中央値から
なる座標値群を求め座標値群を最良に近似する直線を求
める方法(特開平4−76555号公報「レジスターマ
ークの位置検出方法」参照)がある。
2. Description of the Related Art A typical method for extracting a line segment using run data is as follows: (1) A method in which run data having a long run length is set as a line segment candidate and a group of line segment candidates is set as a straight line
196657, “Document Structure Recognition Method”),
(2) A method of obtaining a coordinate value group consisting of median values of run data having a frequent run length and obtaining a straight line that best approximates the coordinate value group (Japanese Unexamined Patent Publication No. H4-76555, "Method of detecting register mark position") See).

【0003】[0003]

【発明が解決しようとする課題】上述した従来技術
(1)の方法は、抽出対象の線分が傾いていると線分候
補がラン長の長いランデータとならないので、線分候補
だけで対象の線分を表すことができないため、抽出でき
る線分に制約があるという問題点がある。
In the method of the prior art (1) described above, if the line segment to be extracted is inclined, the line segment candidate is not run data having a long run length. Since the line segment cannot be represented, there is a problem that the line segment that can be extracted is restricted.

【0004】他方、従来技術(2)の方法は、許容幅の
ある線上に位置するランデータを直線として検出する直
線あてはめ法の一種であり、手書きでは一般的にあり得
る途中で曲がった線は1本の直線にあてはめられないの
で、抽出できる線分に条件が付くという問題点があっ
た。
On the other hand, the method of the prior art (2) is a kind of a straight line fitting method for detecting run data located on a line having an allowable width as a straight line. Since it cannot be applied to one straight line, there is a problem that a condition is attached to a line segment that can be extracted.

【0005】本発明の目的は、上述の点に鑑み、ランの
幅とつながりとを基にトレースを行って線分を抽出する
ことにより、線分が傾いていたり途中で多少曲がったり
途中で途切れたりしていても線分を抽出できるようにし
た2値図面イメージの線分抽出方式を提供することにあ
る。
In view of the above, an object of the present invention is to extract a line segment by performing tracing based on the width and connection of a run, so that the line segment is inclined, slightly bent in the middle, or interrupted in the middle. An object of the present invention is to provide a line segment extraction method for a binary drawing image, in which a line segment can be extracted even when the image is drawn.

【0006】[0006]

【課題を解決するための手段】本発明の2値図面イメー
ジの線分抽出方式は、2値図面イメージ上で開始指示点
および終了指示点を指示し開始指示点および終了指示点
を結ぶ線分の近くに位置する線分を抽出する2値図面イ
メージの線分抽出方式において、2値図面イメージを縦
方向および横方向で走査してランデータ群を抽出するラ
ンデータ抽出手段と、開始指示点および終了指示点の位
置を検出する指示点検出手段と、この指示点検出手段に
より検出された開始指示点,終了指示点間の傾きに応じ
て前記ランデータ抽出手段により抽出された縦方向およ
び横方向のランデータ群の一方を選択するランデータ選
択手段と、このランデータ選択手段により選択されたラ
ンデータ群からラン長が規定値以下で開始指示点からの
距離が最小のランデータを検出し開始ランとする開始ラ
ン検出手段と、この開始ラン検出手段により検出された
開始ランから終了指示点への方向につながるランデータ
を終了指示点の位置までトレースして得られたランデー
タのつながりを線分とするラントレース手段とを有す
る。
According to the present invention, a line segment extraction method for a binary drawing image designates a start designated point and an end designated point on a binary drawing image and connects the start designated point and the end designated point. Run data extracting means for scanning a binary drawing image in a vertical direction and a horizontal direction to extract a run data group in a line drawing extraction method of a binary drawing image extracting a line segment located near Designated point detecting means for detecting the position of the designated designated point and the end designated point; and the vertical and horizontal directions extracted by the run data extracting means in accordance with the inclination between the designated designated point and the designated designated end point detected by the designated point detecting means. A run data selecting means for selecting one of the run data groups in the direction; and a run having a run length equal to or less than a specified value and a minimum distance from the start instruction point from the run data group selected by the run data selecting means. Data obtained by tracing the run data detected by the start run detecting means and leading to a direction from the start point to the end point to the end point. Run trace means for connecting the run data to line segments.

【0007】[0007]

【実施例】次に、本発明について図面を参照して詳細に
説明する。
The present invention will be described in detail with reference to the drawings.

【0008】図1は、本発明の一実施例に係る2値図面
イメージの線分抽出方式の構成を示すブロック図であ
る。本実施例の2値図面イメージの線分抽出方式は、2
値図面イメージを縦方向および横方向で走査してランデ
ータ群を抽出するランデータ抽出手段10と、開始指示
点および終了指示点の位置を検出する指示点検出手段2
0と、指示点検出手段20により検出された開始指示
点,終了指示点間の傾きに応じてランデータ抽出手段1
0により抽出された縦方向および横方向のランデータ群
の一方を選択するランデータ選択手段30と、ランデー
タ選択手段30により選択されたランデータ群からラン
長が規定値以下で開始指示点からの距離が最小のランデ
ータを検出し開始ランとする開始ラン検出手段40と、
開始ラン検出手段40により検出された開始ランから終
了指示点への方向につながるランデータを終了指示点の
位置までトレースして得られたランデータのつながりを
線分とするラントレース手段50とから構成されてい
る。
FIG. 1 is a block diagram showing the configuration of a line segment extraction method for a binary drawing image according to an embodiment of the present invention. The line drawing extraction method of the binary drawing image of the present embodiment is 2
Run data extracting means 10 for scanning a value drawing image in the vertical and horizontal directions to extract a run data group, and designated point detecting means 2 for detecting the positions of a designated start point and a designated end point.
0 and the run data extraction means 1 according to the slope between the start designated point and the end designated point detected by the designated point detection means 20.
From the run data selecting means 30 for selecting one of the run data groups in the vertical direction and the horizontal direction extracted by 0, and the run length from the run data group selected by the run data selecting means 30 is equal to or less than the specified value from the start instruction point. A start run detecting means 40 for detecting run data having the minimum distance of
From the run trace means 50 which traces the run data connected to the direction from the start run detected by the start run detection means 40 to the designated end point to the position of the designated end point, and defines the connection of the run data obtained as a line segment. It is configured.

【0009】図2を参照すると、本実施例の2値図面イ
メージの線分抽出方式の処理は、縦横方向ランデータ群
抽出ステップS101と、開始指示点,終了指示点検出
ステップS102と、ランデータ群選択ステップS10
3と、開始ラン検出ステップS104と、トレースステ
ップS105と、終了座標判定ステップS106とから
なる。
Referring to FIG. 2, a line segment extraction method for a binary drawing image according to the present embodiment includes a vertical and horizontal direction run data group extraction step S101, a start designated point / end designated point detection step S102, a run data Group selection step S10
3, a start run detection step S104, a trace step S105, and an end coordinate determination step S106.

【0010】図3を参照すると、ラントレース手段50
による再開ラン検出の処理は、複数ランデータ取出しス
テップS201と、トレース方向検出ステップS202
と、仮想ラン生成ステップS203と、候補ラン検出ス
テップS204と、ラン数判定ステップS205と、再
開ラン選択ステップS206とからなる。
Referring to FIG. 3, run trace means 50
The restart run detection process is performed by the plural run data extraction step S201 and the trace direction detection step S202.
, A virtual run generation step S203, a candidate run detection step S204, a run number determination step S205, and a restart run selection step S206.

【0011】次に、このように構成された本実施例の2
値図面イメージの線分抽出方式の動作について説明す
る。
Next, the second embodiment of the present invention constructed as described above will be described.
The operation of the line segment extraction method of the value drawing image will be described.

【0012】ランデータ抽出手段10は、背景が
“0”、線要素が“1”の2値で表された2値図面イメ
ージの縦および横の両走査方向でランデータ群を抽出し
記憶する(ステップS101)。ここで、ランデータと
して記憶されるのは、走査方向における連続する“1”
の開始座標値およびラン長である。
The run data extracting means 10 extracts and stores a run data group in both the vertical and horizontal scanning directions of a binary drawing image represented by a binary having a background of "0" and a line element of "1". (Step S101). Here, what is stored as the run data is a continuous “1” in the scanning direction.
Is the start coordinate value and the run length.

【0013】指示点検出手段20は、表示された2値図
面イメージ上で抽出対象線分の開始および終了の位置近
くが指示されると、指示された位置の座標値を開始指示
点および終了指示点として検出し記憶する(ステップS
102)。一般には、操作者がディスプレイ(図示せ
ず)に縮小表示されたイメージを見て、マウスやタブレ
ット等のポインティングデバイス(図示せず)を用いて
位置を指定する。
When a point near the start and end positions of the line segment to be extracted is designated on the displayed binary drawing image, the designated point detecting means 20 converts the coordinate values of the designated position into a start designated point and an end designated. Detected and stored as a point (step S
102). In general, an operator looks at an image reduced and displayed on a display (not shown) and designates a position using a pointing device (not shown) such as a mouse or a tablet.

【0014】次に、ランデータ選択手段30は、指示点
検出手段20に記憶された開始指示点および終了指示点
の座標値差の比により開始指示点,終了指示点間の傾き
を求め、傾きに応じて縦方向および横方向のランデータ
群の一方を選択する(ステップS103)。横方向(水
平方向)を0度とした傾きが45度未満であれば縦方向
の走査で抽出されたランデータ群を、そうでなければ横
方向の走査で抽出されたランデータ群を選択する。
Next, the run data selection means 30 calculates the inclination between the start instruction point and the end instruction point based on the ratio of the difference between the coordinate values of the start instruction point and the end instruction point stored in the instruction point detection means 20. , One of the vertical and horizontal run data groups is selected (step S103). If the inclination of the horizontal direction (horizontal direction) is 0 degrees is less than 45 degrees, the run data group extracted by the vertical scan is selected. Otherwise, the run data group extracted by the horizontal scan is selected. .

【0015】続いて、開始ラン検出手段40は、ランデ
ータ選択手段30により選ばれたランデータ群から、指
示点検出手段20に記憶された開始指示点の座標値に最
も近い位置にありラン長が規定値以下のランデータを求
め開始ランとして記憶する(ステップS104)。ここ
で、ラン検出幅である規定値は、抽出対象の線幅と傾き
とにより決まる値で、縦方向の走査で抽出されたランデ
ータ群に対しては横方向を0度とした開始指示点,終了
指示点間の傾きの増加により増加する。また、横方向の
走査で抽出されたランデータ群に対しては、横方向を0
度とした開始指示点,終了指示点間の傾きが90度から
の減少により増加する。ランデータの位置は、ランの開
始座標値と終了座標値(=開始座標値+ラン長−1)と
の中間座標値とすることで、開始指示点の座標値との距
離値を求める。
Subsequently, the start run detecting means 40 is located at a position closest to the coordinate value of the start designated point stored in the designated point detecting means 20 from the run data group selected by the run data selecting means 30 and has a run length. Is obtained and stored as a start run (step S104). Here, the specified value, which is the run detection width, is a value determined by the line width and the inclination of the extraction target. For the run data group extracted by the vertical scanning, the start instruction point where the horizontal direction is 0 degree , Due to an increase in the slope between the end instruction points. For the run data group extracted by the horizontal scanning, the horizontal direction is set to 0.
The inclination between the start instruction point and the end instruction point in degrees increases by decreasing from 90 degrees. The position of the run data is set to an intermediate coordinate value between the start coordinate value and the end coordinate value (= start coordinate value + run length-1) of the run, thereby obtaining the distance value from the coordinate value of the start instruction point.

【0016】ラントレース手段50は、開始ラン検出手
段40により検出された開始ランから終了指示点の方向
につながりを検査しながらランのトレース(ステップS
105)を終了指示点の座標位置まで行う(ステップS
106)。
The run trace means 50 traces the run while checking the connection from the start run detected by the start run detection means 40 to the direction of the designated end point (step S).
105) is performed up to the coordinate position of the end instruction point (step S
106).

【0017】ランのつながりは、ラン長およびランの座
標値の比較により調べる。例えば、図4(a)および
(b)に示すような横方向に走査して得られたランiお
よびランkがあるとする。走査列jにあるランiは、次
の条件aを満たし条件bを満たさないときに走査列(j
+1)にあるランkにつながっているとしてランのトレ
ースを行う。
The connection of the runs is checked by comparing the run length and the coordinate values of the runs. For example, it is assumed that there are runs i and k obtained by scanning in the horizontal direction as shown in FIGS. The run i in the scan line j satisfies the following condition a and does not satisfy the condition b.
Trace the run as if it were connected to run k at +1).

【0018】 条件a: Xe j+1,k −Xs j+1,k <T(規定値) 条件b: Xs j+1,k >Xe j,i または Xe j+1,k
<Xs j,i ただし、Xs j,i は走査列jにあるランiの開始X座標
値、Xe j,i は走査列jにあるランiの終了X座標値、
s j+1,k は走査列(j+1)にあるランkの開始X座
標値、Xe j+1,k は走査列(j+1)にあるランkの終
了X座標値をそれぞれ表す。
[0018] conditions a: X e j + 1, k -X s j + 1, k <T ( specified value) Condition b: X s j + 1, k> X e j, i or X e j + 1, k
<X s j, i where X s j, i is the start X coordinate of run i in scan row j, X e j, i is the end X coordinate of run i in scan row j,
X s j + 1, k represents the start X coordinate value of run k in scan row (j + 1), and X e j + 1, k represents the end X coordinate value of run k in scan row (j + 1).

【0019】例えば、図4(a)のランiおよびランk
は条件aを満たし条件bを満たさないのでつながってい
ると判断され、図4(b)のランiおよびランkは条件
aを満たすものの、条件bも満たしているので(Xe
j+1,k <Xs j,i )、つながっていないと判断される。
For example, run i and run k in FIG.
Is determined has led does not satisfy the condition b satisfies the condition a, but satisfy the run i and run k condition a of FIG. 4 (b), since also meet condition b (X e
j + 1, k <X s j, it), is determined not to be connected.

【0020】横方向(X方向)で走査して抽出されたラ
ンデータ群に対するトレースの場合、トレースの終了座
標位置は終了指示点のY座標値である。一方、縦方向
(Y方向)で走査して抽出されたランデータ群に対する
トレースの場合、トレースの終了座標位置は終了指示点
のX座標値である。
In the case of a trace for a run data group extracted by scanning in the horizontal direction (X direction), the end coordinate position of the trace is the Y coordinate value of the end instruction point. On the other hand, in the case of a trace for a run data group extracted by scanning in the vertical direction (Y direction), the end coordinate position of the trace is the X coordinate value of the end instruction point.

【0021】ラントレース手段50は、つながるランが
なくてトレースを継続できなくなった際には、以下のよ
うな処理を行い、トレースを継続する。
When the trace cannot be continued because there is no connected run, the run trace means 50 performs the following processing to continue the trace.

【0022】まず、ラントレース手段50は、継続でき
なくなった直前の複数のランデータを読み出し(ステッ
プS201)、各ランデータの開始座標値および終了座
標値より中心座標値を求め、複数の中心座標値の差の比
をトレース方向値として求める(ステップS202)。
このトレース方向値は、同一方向にトレースが続くとし
た場合の座標の変分値に相当する。
First, the run trace means 50 reads a plurality of run data immediately before the run data cannot be continued (step S201), obtains a center coordinate value from a start coordinate value and an end coordinate value of each run data, and obtains a plurality of center coordinates. The ratio of the difference between the values is obtained as a trace direction value (step S202).
This trace direction value corresponds to a variation value of the coordinates when the trace continues in the same direction.

【0023】次に、ラントレース手段50は、中断した
ランの座標値にトレース方向値を加算し、得られた開始
座標値および終了座標値をとる図5に例示するような仮
想ランを生成し(ステップS203)、生成した仮想ラ
ンにつながるランデータを再開ランとしてトレースを続
ける(ステップS204)。仮想ランに複数のランがつ
ながっている場合には(ステップS205で複数)、ラ
ントレース手段50は、各ランを候補ランとしてトレー
スを継続し、候補ランから延びたランの中心座標値が開
始指示点と終了指示点とをむすぶ線分に最も近いランを
再開ランとして選び(ステップS206)、トレースを
続ける。
Next, the run trace means 50 adds a trace direction value to the coordinate value of the interrupted run, and generates a virtual run as shown in FIG. 5 which takes the obtained start coordinate value and end coordinate value. (Step S203), tracing is continued with the run data connected to the generated virtual run as a restart run (Step S204). When a plurality of runs are connected to the virtual run (a plurality of runs in step S205), the run trace unit 50 continues tracing with each run as a candidate run, and the center coordinate value of the run extending from the candidate run is instructed to start. The run closest to the line segment connecting the point and the end instruction point is selected as the restart run (step S206), and tracing is continued.

【0024】例えば、図6に示すように、候補ランaお
よびbから延びたランの中心座標値を(Xra,Yr
a)および(Xrb,Yrb)、指定点検出手段20に
記憶された開始指示点座標値および終了指示点座標値を
(Xs,Ys)および(Xe,Ye)とすると、中心座
標値から開始指示点および終了指示点をむすぶ線分まで
の距離値LaおよびLbは、次の式で得られる。
For example, as shown in FIG. 6, the center coordinate values of runs extending from candidate runs a and b are represented by (Xra, Yr
a) and (Xrb, Yrb), assuming that the coordinate values of the start designated point and the end designated point stored in the designated point detecting means 20 are (Xs, Ys) and (Xe, Ye), a start instruction is made from the center coordinate value. The distance values La and Lb to the line connecting the point and the end instruction point are obtained by the following equations.

【0025】La=|(Ye−Ys)・Xra−(Xe
−Xs)・Yra+(Xe・Ys−Xs・Ye)|/L
La = | (Ye-Ys) .Xra- (Xe
−Xs) · Yra + (Xe · Ys−Xs · Ye) | / L

【0026】Lb=|(Ye−Ys)・Xrb−(Xe
−Xs)・Yrb+(Xe・Ys−Xs・Ye)|/L
Lb = | (Ye-Ys) .Xrb- (Xe
−Xs) · Yrb + (Xe · Ys−Xs · Ye) | / L

【0027】ここで、L=((Xe−Xs)2 +(Ye
−Ys)2 1/2
Here, L = ((Xe-Xs) 2 + (Ye
−Ys) 2 ) 1/2

【0028】La<Lbのときは候補ランaを、La>
Lbのときは候補ランbを再開ランに選ぶ。図6の例で
は、候補ランaが再開ランとして選ばれる。
When La <Lb, candidate run a is replaced by La>
In the case of Lb, the candidate run b is selected as the restart run. In the example of FIG. 6, the candidate run a is selected as the restart run.

【0029】ラントレース手段50は、終了指示点の位
置までトレースして得られたランを線分の要素とし、こ
れらランのつながりを線分として出力する。
The run trace means 50 outputs the runs obtained by tracing to the position of the designated end point as line segment elements, and outputs the connection of these runs as line segments.

【0030】なお、抽出された線分を構成するランの開
始座標値,終了座標値間を背景値“0”で描画すると、
2値図面イメージより線分を削除することもできる。
When the start coordinate value and the end coordinate value of the run constituting the extracted line segment are drawn with the background value “0”,
Line segments can also be deleted from the binary drawing image.

【0031】[0031]

【発明の効果】以上説明したように本発明は、ランデー
タ抽出手段,指示点検出手段,ランデータ選択手段,開
始ラン検出手段およびラントレース手段を設け、ランの
ラン長(幅)およびつながりをもとにトレースを行って
開始指示点,終了指示点間の線分を抽出するようにした
ことにより、線分が傾いていたり、線分の途中が多少曲
がっていたり、線分の途中が途切れていたりしても線分
を確実に抽出することができるという効果がある。した
がって、線分の傾き,曲がり,途切れ等が発生するおそ
れの多い手書き2値図面イメージからの線分の抽出には
特に有効である。
As described above, the present invention is provided with the run data extracting means, the pointing point detecting means, the run data selecting means, the starting run detecting means and the run tracing means, and determines the run length (width) and connection of the runs. By tracing the original and extracting the line segment between the start point and the end point, the line segment is inclined, the line segment is slightly bent, or the line segment is interrupted. Even if there is, there is an effect that the line segment can be reliably extracted. Therefore, it is particularly effective for extracting a line segment from a handwritten binary drawing image in which inclination, bending, interruption, and the like of the line segment are likely to occur.

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

【図1】本発明の一実施例に係る2値図面イメージの線
分抽出方式の構成を示すブロック図である。
FIG. 1 is a block diagram illustrating a configuration of a line segment extraction method for a binary drawing image according to an embodiment of the present invention.

【図2】本実施例の2値図面イメージの線分抽出方式の
処理を示す流れ図である。
FIG. 2 is a flowchart showing a process of a line segment extraction method for a binary drawing image according to the embodiment;

【図3】図1中のラントレース手段の再開ラン検出処理
を示す流れ図である。
FIG. 3 is a flowchart showing a restart run detection process of the run trace unit in FIG. 1;

【図4】図1中のラントレース手段により検出されるラ
ンのつながりを説明するための図であり、(a)はラン
がつながっている場合を、(b)はランがつながってい
ない場合を例示する。
4A and 4B are diagrams for explaining the connection of runs detected by the run tracing unit in FIG. 1, wherein FIG. 4A shows a case where runs are connected, and FIG. 4B shows a case where runs are not connected; For example.

【図5】図1中のラントレース手段により生成される仮
想ランを説明するための図である。
FIG. 5 is a diagram for explaining a virtual run generated by a run trace unit in FIG. 1;

【図6】図1中のラントレース手段において開始指定
点,終了指定点間をむすぶ線分と候補ランとの関係より
再開ランを選択する場合を説明するための図である。
FIG. 6 is a diagram for explaining a case in which a rerunning run is selected based on a relationship between a line segment connecting a designated start point and a designated end point and a candidate run in the run trace means in FIG. 1;

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

10 ランデータ抽出手段 20 指示点検出手段 30 ランデータ選択手段 40 開始ラン検出手段 50 ラントレース手段 DESCRIPTION OF SYMBOLS 10 Run data extraction means 20 Designated point detection means 30 Run data selection means 40 Start run detection means 50 Run trace means

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】 2値図面イメージ上で開始指示点および
終了指示点を指示し開始指示点および終了指示点を結ぶ
線分の近くに位置する線分を抽出する2値図面イメージ
の線分抽出方式において、 2値図面イメージを縦方向および横方向で走査してラン
データ群を抽出するランデータ抽出手段と、 開始指示点および終了指示点の位置を検出する指示点検
出手段と、 この指示点検出手段により検出された開始指示点,終了
指示点間の傾きに応じて前記ランデータ抽出手段により
抽出された縦方向および横方向のランデータ群の一方を
選択するランデータ選択手段と、 このランデータ選択手段により選択されたランデータ群
からラン長が規定値以下で開始指示点からの距離が最小
のランデータを検出し開始ランとする開始ラン検出手段
と、 この開始ラン検出手段により検出された開始ランから終
了指示点への方向につながるランデータを終了指示点の
位置までトレースして得られたランデータのつながりを
線分とするラントレース手段とを有することを特徴とす
る2値図面イメージの線分抽出方式。
1. A line segment extraction of a binary drawing image for instructing a start designating point and an end designating point on a binary drawing image and extracting a line segment located near a line segment connecting the start designating point and the end designating point. In the method, a run data extracting means for scanning a binary drawing image in a vertical direction and a horizontal direction to extract a run data group, a pointing point detecting means for detecting the positions of a start designated point and an end designated point, and this designated inspection Run data selecting means for selecting one of the run data groups in the vertical direction and the horizontal direction extracted by the run data extracting means according to the inclination between the start designated point and the end designated point detected by the output means, and the run data selecting means. Start run detection means for detecting run data having a run length of a specified value or less and a minimum distance from the start instruction point from the run data group selected by the data selection means; And a run trace means for making a line segment the connection of the run data obtained by tracing the run data connected from the start run detected in the direction from the run detection means to the end designated point to the position of the end designated point. Characteristic binary line drawing image line segment extraction method.
【請求項2】 前記ランデータ選択手段が、横方向を0
度とした傾きが45度未満であれば縦方向の走査で抽出
されたランデータ群を選択し、45度以上であれば横方
向の走査で抽出されたランデータ群を選択する請求項1
記載の2値図面イメージの線分抽出方式。
2. The method according to claim 1, wherein the run data selection unit sets the horizontal direction to 0.
A run data group extracted by vertical scanning is selected if the inclination is less than 45 degrees, and a run data group extracted by horizontal scanning is selected if the inclination is 45 degrees or more.
The line segment extraction method of the described binary drawing image.
【請求項3】 前記ラントレース手段が、ラントレース
でつながるランデータがなくトレースが中断となった場
合に、直前の複数のランデータからトレース方向を求
め、中断したランデータの座標とトレース方向とより仮
想ランを生成し、生成した仮想ランにつながるランデー
タを再開ランデータとしてトレースを続ける請求項1記
載の2値図面イメージの線分抽出方式。
3. The run trace means obtains a trace direction from a plurality of run data immediately before when there is no run data connected by the run trace and the trace is interrupted, and the coordinates of the interrupted run data and the trace direction are obtained. The line segment extraction method for a binary drawing image according to claim 1, wherein a virtual run is further generated, and the trace is continued using the run data connected to the generated virtual run as restart run data.
【請求項4】 前記ラントレース手段が、仮想ランに複
数のランデータがつながっている場合に開始指示点から
終了指示点を結ぶ線分に最も近いランデータを再開ラン
データとする請求項3記載の2値図面イメージの線分抽
出方式。
4. The run trace means sets the run data closest to the line segment connecting the start designating point and the end designating point as the restart run data when a plurality of run data are connected to the virtual run. A method for extracting line segments from a binary drawing image.
JP17168694A 1994-06-30 1994-06-30 Line segment extraction method for binary drawing images Expired - Fee Related JP2576413B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP17168694A JP2576413B2 (en) 1994-06-30 1994-06-30 Line segment extraction method for binary drawing images

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP17168694A JP2576413B2 (en) 1994-06-30 1994-06-30 Line segment extraction method for binary drawing images

Publications (2)

Publication Number Publication Date
JPH0816782A true JPH0816782A (en) 1996-01-19
JP2576413B2 JP2576413B2 (en) 1997-01-29

Family

ID=15927818

Family Applications (1)

Application Number Title Priority Date Filing Date
JP17168694A Expired - Fee Related JP2576413B2 (en) 1994-06-30 1994-06-30 Line segment extraction method for binary drawing images

Country Status (1)

Country Link
JP (1) JP2576413B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102486828A (en) * 2010-12-06 2012-06-06 富士施乐株式会社 Image processing apparatus, and image processing method
US8620090B2 (en) 2010-10-26 2013-12-31 Fuji Xerox Co., Ltd. Line determination apparatus, line determination method, and computer-readable medium

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8620090B2 (en) 2010-10-26 2013-12-31 Fuji Xerox Co., Ltd. Line determination apparatus, line determination method, and computer-readable medium
CN102486828A (en) * 2010-12-06 2012-06-06 富士施乐株式会社 Image processing apparatus, and image processing method
US8611669B2 (en) 2010-12-06 2013-12-17 Fuji Xerox Co., Ltd. Image processing apparatus, image processing method and computer-readable medium

Also Published As

Publication number Publication date
JP2576413B2 (en) 1997-01-29

Similar Documents

Publication Publication Date Title
Kaneko Line structure extraction from line-drawing images
JP2576413B2 (en) Line segment extraction method for binary drawing images
JP3571128B2 (en) Method and apparatus for recognizing dimensions of drawings
US20220254169A1 (en) Road surface inspection apparatus, road surface inspection method, and program
JP4833749B2 (en) Pipe length measurement system
JP2878194B2 (en) Partial erasure and partial detection method of image data
JP3177138B2 (en) Extraction method of drawing closed area
JP2954778B2 (en) Method for connecting line figure branch point of image input device
JP2007295210A (en) Image processing apparatus, image processing method, image processing program, and recording medium recording the program
JPH10228519A (en) Musical score automatic recognition device
JPH07182459A (en) Table structure extracting device
JP4810995B2 (en) Image processing apparatus, method, and program
JP3628536B2 (en) Binary image converter
JP2579356B2 (en) Document reading device
JP4785158B2 (en) Image data tilt correction method and image input apparatus
JPH10312460A (en) Image processing method and high precision image processor
JPS63208990A (en) Character pattern segmenting device
JPH05205104A (en) System for coupling blurred character
JP3145265B2 (en) Character recognition device
JP2007034972A (en) Apparatus and method for detecting ruled line, and program
JP2563163B2 (en) Figure instruction method
JP2968028B2 (en) Figure input processing method
JPS6279580A (en) Picture processor
JPS62189592A (en) Line graphic edge point detecting system
JPH05114048A (en) Method and device for recognizing character

Legal Events

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