JP2897541B2 - Closed figure extraction method - Google Patents

Closed figure extraction method

Info

Publication number
JP2897541B2
JP2897541B2 JP22110592A JP22110592A JP2897541B2 JP 2897541 B2 JP2897541 B2 JP 2897541B2 JP 22110592 A JP22110592 A JP 22110592A JP 22110592 A JP22110592 A JP 22110592A JP 2897541 B2 JP2897541 B2 JP 2897541B2
Authority
JP
Japan
Prior art keywords
segment
line
trace
closed
line segment
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
JP22110592A
Other languages
Japanese (ja)
Other versions
JPH0668202A (en
Inventor
一郎 加藤
Original Assignee
日本電気株式会社
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 日本電気株式会社 filed Critical 日本電気株式会社
Priority to JP22110592A priority Critical patent/JP2897541B2/en
Publication of JPH0668202A publication Critical patent/JPH0668202A/en
Application granted granted Critical
Publication of JP2897541B2 publication Critical patent/JP2897541B2/en
Anticipated expiration legal-status Critical
Application status is Expired - Lifetime legal-status Critical

Links

Description

【発明の詳細な説明】 DETAILED DESCRIPTION OF THE INVENTION

【0001】 [0001]

【産業上の利用分野】本発明は閉図形抽出方法に関し、 The present invention relates to an closed figure extraction method,
特にレイアウト系CAE(Computer Aided Engineering) In particular, the layout-based CAE (Computer Aided Engineering)
における、プリント基板や集積回路などのCAD(Compu In, CAD, such as printed circuit boards and integrated circuits (Compu
ter Aided Design) で、面積を持つ導体領域や禁止エリアのパターンメンテンス方法の閉図形抽出方法に関する。 In ter Aided Design), it relates to closed drawing method for extracting patterns maintenance Nsu method conductor region and prohibited area having an area.

【0002】 [0002]

【従来の技術】従来の閉図形抽出方法は、独立に与えられた線分群に対し、それぞれの端点を共有する線分を順次トレースし、分岐点に達した場合は始めに見つけた線分を優先してトレースし、他の分岐線分はトレースは行わない。 Conventional closed figure extraction method, to the line segment group given independently a segment that shares the respective end points sequentially traced, the line segment when it reaches the branch point found at the beginning preferentially traces, the other branch line is not performed trace. 例として図4の様な線分群が与えられた場合、 If such a line segment group 4 is given as an example,
順次トレースして閉図形300を検出する。 Detecting a closed figure 300 are sequentially traced. また、トレースしながらトレース済みの線分にフラグを立て、二度とトレースしない様にする。 In addition, a flag to trace already of a line segment while tracing, never again to as not to trace. この様なシーケンスをフラグの立っていない線分がなくなるまで繰り返す。 Repeated until the line segment that does not stand such a sequence of the flag is eliminated.

【0003】図4において、1回目のトレースが行われなかった線分群301は閉図形を形成しないため、2回目のトレース時においてコの字型の閉じていない線分と見なされ閉図形としてはキャンセルされる。 [0003] In FIG. 4, since the first line group 301 trace is not performed does not form a closed figure, a second closed figures considered segment that is not closed U-shape during trace It is canceled.

【0004】 [0004]

【発明が解決しようとする課題】上述した従来の閉図形抽出方法は、与えられた線分群の中に分岐点が存在した場合、その中の1つのみを有効にしてトレースしていたため、場合によっては検出できない閉図形があった。 Conventional closed figure extraction method described above in which [0004] is, if a branch point in the group given line segment is present, because it was traced to enable only one of them, if the had closed figures which can not be detected. したがって、コンピュータが理解できるように、データ入力者が慎重にデータ入力を行っていた。 Therefore, so that the computer can understand, data input person had done a careful data input. また、閉図形内にもう一つの閉図形が含まれているドーナツ状の閉図形表現として図2の様に変形した凹図形は扱えないという難点があった。 Further, there is a drawback that can not handle the deformed 凹図 shaped as in FIG. 2 as closed figure represented toroidal contain another closed figure in closed figure form.

【0005】 [0005]

【課題を解決するための手段】本発明の閉図形抽出方法は、両端点の座標が与えられた複数の線分に対し任意の線分を抽出しその片側を開始点として記憶する手順と、 Closed figure extraction method of the present invention According to an aspect of extracts any line segment to a plurality of line segments coordinates given of both end points and procedures for storing the one side as a starting point,
もう一方の端点に接続する他の線分を探索する事を繰り返し線分を連鎖的にトレースする手順と、トレース時にトレース済みのフラグを立てていく手順と、端点を共有する線分が複数存在した場合に手前の線分とのなす角度が最も大きくなる線分を選び出す手順と、他の線分をスタックしておく手順と、トレースによって開始点に戻った場合トレースした線分を閉図形を構成する辺として出力する手順と、スタックしておいた線分を開始線分として同様にトレースをする手順と、スタックしておいた線分にトレース済みのフラグが立っているものをキャンセルする手順を備えて構成される。 A step of chain to trace the segment repeat that searches the other segments that connect to the other endpoint, the procedure will make a trace flag data during the trace, line segments plurality of sharing the endpoint the procedure of selecting the most larger line segment angle between front of the line segment when a procedure to be stacked other segments, the closed figure of the line segment traced when returning to the starting point by the trace procedure for canceling the procedure to output as a side constituting the procedure for the trace similarly a segment that has been stacked as a start line, those standing trace done flag is the line segment that has been stuck configured to include a.

【0006】 [0006]

【実施例】次に、本発明の実施例について図面を参照して説明する。 EXAMPLES will be described with reference to the accompanying drawings embodiments of the present invention.

【0007】図1に本発明の閉図形抽出方法の一実施例を示すSPD(Structur Program Diagram)形式のフローチャートである。 [0007] is a flow chart of the SPD (Structur Program Diagram) form showing an embodiment of a closed figure extraction method of the present invention in FIG.

【0008】図1は本発明が提案するアルゴリズムのフローチャートを示し、この図1のアルゴリズムにしたがって、図2以降で具体的に説明する。 [0008] Figure 1 shows a flow chart of an algorithm proposed by the present invention, according to the algorithm of FIG. 1 will be specifically described in FIG 2 later.

【0009】図2の様な線分群が与えられた場合、任意の線分をまず抽出する事になるが、ここでは後に続くトレース処理を反時計方向に進めるため、できるだけ左下の端点を抽出する事とする。 [0009] If such a line segment group 2 is given, it becomes possible to first extract any segment, wherein for advancing a tracing that follows counterclockwise extracts as much as possible the lower left end point the thing. そのために最小のy座標を含む線分をまず求め、さらに水平線とのなす角度が小さい線分を更に選択する。 First find a line segment that contains the smallest y-coordinate in order that further selects the line further smaller angle between a horizontal line. 図2では最小のy座標を含む線分として線分101、線分112、線分102が候補に上がるが、水平線とのなす角度が小さい線分101なのでこれを開始線分として選出する。 Segment 101 as a line segment containing 2 smallest y-coordinate in, the line segment 112, but the segment 102 increases the candidate, elect this because the angle is small segment 101 of the horizontal line as the starting line. 次に開始点を端点1 Then the starting point endpoint 1
に決定し、端点2を共有する線分102を検出する。 Determined to detect a line segment 102 that share end points 2. さらに反対側の端点3を共有する線分を検出するが、これは線分103、線分107、線分108が存在する。 Further detects the line segments that share an end point 3 on the opposite side, which is the line segment 103, segment 107, segment 108 is present. これらの内、線分102とのなす角度が最大のものは、線分103および線分107であるが、さらに長さの短い線分103が採用される。 Of these, those and a line segment 102 is maximum, is a line segment 103 and line segment 107, segment 103 is employed shorter lengths. したがって、トレースとしては端点4を共有する線分を探す事になる。 Therefore, to search for segments that share an end point 4 as a trace. なお、この際線分107と線分108をスタックしておく。 Note that keep the stack this time segment 107 and the line segment 108. このようにしてトレースを続けると線分107に到達するが、端点3にも同様の分岐が存在することから、上記と同様の規則を適用すると線分108がトレース線分として選び出され、かつ線分102と線分103がスタックされる。 While reaching the line 107 is continued tracing this manner, since the presence of similar branches to the end points 3, line segment 108 Applying the same rules as described above singled out as trace line, and segment 102 and the line segment 103 are stacked. この様にして線分110に至り、開始点1に到達して閉図形200が出力される。 Reaches the line segment 110 in this manner, it closed figure 200 is output to reach the starting point 1. また、出力時に閉図形の辺をなす線分にはそれを表現するフラグを立てておく。 Moreover, should a flag to represent it on the line segment forming the sides of the closed figure on output.

【0010】次に、スタックされている線分より再度、 [0010] Then, again from the line segments are stacked,
閉図形の検出を開始するが、線分107と線分108および線分102、線分103はすでに閉図形として検出済みであることが上記のフラグで判明するので、開始線分としての候補からははずされ、スタックが空になった事から処理が終了する。 Although detection is started closed figure, a line segment 107 and the line segment 108 and line segment 102, so that the line segment 103 is already been detected as closed figure is found in the above flag from the candidate as a starting segment is removed, processing from the fact that the stack is empty is completed.

【0011】もう一例として、図3の場合で説明する。 [0011] As another example, described in the case of FIG.
図3の様な図形が入力される局面としては、入力者がまず、線分120、線分121、線分122、線分123 The aspects such figure is input in FIG. 3, the input person First, the line segment 120, segment 121, segment 122, segment 123
で構成される閉図形を作成した後、この図形を大きくするように修正しようと試み線分124、線分125、線分126を追加した状況で起こる。 After creating the composed closed graphic in the line segment 124 attempts modified to increase this figure, line 125, takes place in a situation where you add a line segment 126. この際、線分122 In this case, the line segment 122
を消去しておけば問題はないが、閉図形としての実体は、線分122があろうがなかろうが関係はないので、 There is no problem if erase the entity as a closed figure, since it intends segment 122 Gaaro intends Without relationship or not,
図面としてはそのままにしても、問題はない。 As well as the drawing intact, there is no problem. まず、開始点として端点20が選ばれ、開始線分として線分12 First, the end point 20 is selected as a starting point, a line segment 12 as the starting segment
0が選ばれる。 0 is chosen. トレースを開始して線分121に至るがここで線分124がスタックされ、線分122でトレースが進められる。 While leading to line 121 to start the trace segment 124 is stacked here, tracing proceeds by line segments 122. さらに、線分126がスタックされ、 Further, the line segment 126 are stacked,
線分123にて開始点20に到達するので閉図形201 Closed figure so to reach the starting point 20 at line segment 123 201
が出力される。 There is output.

【0012】次にスタック内の線分124から開始点を端点22としてトレースが開始される。 [0012] Then trace starting point as the end point 22 from the line segment 124 in the stack is started. 線分125、線分126と進み、ここで分岐点である端点23に到達するので、線分123がスタックされ、線分122でトレースが再開される。 Line 125, proceeds segment 126, since here it reaches the end point 23 is a branch point, a line segment 123 is a stack trace is resumed by the line 122. この段階で開始点である端点22に到達するので、2つ目の閉図形202が出力される。 Since reaching the end point 22 is the starting point at this stage, the second closed figure 202 is output.

【0013】さて、残されたスタックには線分123と線分126が存在しているが、すでに出力された閉図形の辺の構成要素としてのフラグが立っているので、開始線分としての候補とはならず処理が終了する。 [0013] Now, the remaining stack are present segment 123 and line segment 126, since already the flag as a component of the output closed figure edge is standing, as a starting segment processing does not become a candidate is completed.

【0014】 [0014]

【発明の効果】以上説明したように、本発明の閉図形抽出方法は、複数の線分が端点を共有する際、その分岐点をスタックしておくことで、閉図形となりうる図形は漏らさず検出することが可能である。 As described above, according to the present invention, it closed drawing extraction method of the present invention, when a plurality of line segments that share an end point, that keep the stack the branch point, a figure can be a closed figure is not leaking it is possible to detect. さらに、分岐における複数の線分から、どれをトレース対象とし、どれをスタックするかを一意的に決定する方法を与える事で、実行時の偶然性を排除することが可能である。 Further, a plurality of line segments in the branch, which was traced, which the By providing a method of determining uniquely whether to stack, it is possible to eliminate the chance of the runtime. また、分岐におけるトレース対象の抽出において、直前の線分との角度が最大であるものという条件と、トレース開始の線分の決定方法とで、極力小刻みに閉図形を出力する様になり、与えられた線分群の情報を漏らさず閉図形にする考慮が可能となる。 Further, in the extraction of traced in the branch, in the condition that those angle with the immediately preceding line is the largest, the method of determining the line segment tracing start, will be as to output as much as possible wiggle closed figure, giving It was considered to be closed figure without leaking information line group is made possible.

【図面の簡単な説明】 BRIEF DESCRIPTION OF THE DRAWINGS

【図1】本発明の閉図形抽出方法の一実施例を示すSP SP showing one embodiment of a closed figure extraction method of the present invention; FIG
D(Structur Program Diagram)形式のフローチャートである。 D (Structur Program Diagram) is a flow chart format.

【図2】本実施例の閉図形抽出方法における動作の一例を示す図である。 2 is a diagram showing an example of the operation of the closed figure extraction method of the present embodiment.

【図3】本実施例の閉図形抽出方法における動作の一例を示す図である。 3 is a diagram showing an example of the operation of the closed figure extraction method of the present embodiment.

【図4】従来の閉図形抽出方法における動作を示す図である。 4 is a diagram showing the operation of a conventional closed figure extraction method.

【符号の説明】 DESCRIPTION OF SYMBOLS

1〜25 端点 101〜126 線分 200〜300 閉図形 301 線分群 1-25 endpoints 101-126 segments 200-300 closed figures 301 polyline

Claims (1)

    (57)【特許請求の範囲】 (57) [the claims]
  1. 【請求項1】両端点の座標が与えられた複数の線分に対し任意の線分を抽出しその片側を開始点として記憶する手順と、もう一方の端点に接続する他の線分を探索する事を繰り返し線分を連鎖的にトレースする手順と、トレース時にトレース済みのフラグを立てていく手順と、端点を共有する線分が複数存在した場合に手前の線分とのなす角度が最も大きくなる線分を選び出す手順と、他の線分をスタックしておく手順と、トレースによって開始点に戻った場合トレースした線分を閉図形を構成する辺として出力する手順と、スタックしておいた線分を開始線分として同様にトレースをする手順と、スタックしておいた線分にトレース済みのフラグが立っているものをキャンセルする手順を備えることを特徴とする閉図形抽出方法。 1. A for a plurality of line segments coordinates given of both end points to extract any segment and procedures for storing the one side as a starting point, it searches the other line segment connecting the other end point a step of chain to trace the segment repeat that you, the procedure will make a trace flag data during the trace, the angle between the front of the line segment when a line segment sharing endpoints there exist a plurality of most a step of picking out larger segments, the procedure to be stacked with other segments, the procedure for outputting the line traced when returning to the starting point by the trace as sides of the closed graphic, stuck procedures and, closed drawing extraction method characterized by comprising the steps of canceling those standing trace done flag is a line which has been stacked for tracing similarly have line segment as a start segment.
JP22110592A 1992-08-20 1992-08-20 Closed figure extraction method Expired - Lifetime JP2897541B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP22110592A JP2897541B2 (en) 1992-08-20 1992-08-20 Closed figure extraction method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP22110592A JP2897541B2 (en) 1992-08-20 1992-08-20 Closed figure extraction method

Publications (2)

Publication Number Publication Date
JPH0668202A JPH0668202A (en) 1994-03-11
JP2897541B2 true JP2897541B2 (en) 1999-05-31

Family

ID=16761569

Family Applications (1)

Application Number Title Priority Date Filing Date
JP22110592A Expired - Lifetime JP2897541B2 (en) 1992-08-20 1992-08-20 Closed figure extraction method

Country Status (1)

Country Link
JP (1) JP2897541B2 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7020657B2 (en) 2001-09-27 2006-03-28 International Business Machines Corporation Scalable hardware scheduler time based calendar search algorithm
US7113517B2 (en) 2001-09-27 2006-09-26 International Business Machines Corporation Configurable hardware scheduler calendar search algorithm
JP2007128173A (en) * 2005-11-01 2007-05-24 Fuji Heavy Ind Ltd Area calculation method using cad

Also Published As

Publication number Publication date
JPH0668202A (en) 1994-03-11

Similar Documents

Publication Publication Date Title
CN100550036C (en) Chinese character handwriting recognition system
US6975335B2 (en) Method of displaying magnified and reduced areas and apparatus thereof
JP2939147B2 (en) Handwriting input display apparatus and method
JP3067980B2 (en) String matching method and apparatus
JP2840133B2 (en) Alignment method of image
US5051911A (en) Apparatus for effecting simulation of a logic circuit and method for producing a semiconductor device using the simulation approach
US5201011A (en) Method and apparatus for image hand markup detection using morphological techniques
US20110258537A1 (en) Gesture based edit mode
JP2822189B2 (en) Character recognition apparatus and method
US7535460B2 (en) Method and apparatus for identifying a graphic shape
US20080212879A1 (en) Method and apparatus for detecting and processing specific pattern from image
EP2172856A2 (en) Image processing apparatus, image processing method and program
JPH11219407A (en) Document image recognizing device and storage medium for document image recognizing program
JPH07182446A (en) Machine operation method
CN100474340C (en) Image processing method and image processing device
JP2001312500A (en) Method for recognizing and indexing document
JP3175322B2 (en) Automatic logic generation method
US7398200B2 (en) Token stream differencing with moved-block detection
JP2002133426A (en) Ruled line extracting device for extracting ruled line from multiple image
JP3220886B2 (en) Document retrieval method and apparatus
JPH09237338A (en) Method and device for quickly smoothing contour
US9633063B2 (en) Methods and apparatus for automated redaction of content in a document
JPH08161421A (en) Device and method for extracting character string area
DE60106779T2 (en) Processes and systems for border presentation per characteristic
US6480987B1 (en) Method and system for estimating capacitive coupling in a hierarchical design

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 19990209

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

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

Free format text: PAYMENT UNTIL: 20080312

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20090312

Year of fee payment: 10

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

Free format text: PAYMENT UNTIL: 20100312

Year of fee payment: 11

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

Free format text: PAYMENT UNTIL: 20100312

Year of fee payment: 11

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

Free format text: PAYMENT UNTIL: 20110312

Year of fee payment: 12

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

Free format text: PAYMENT UNTIL: 20110312

Year of fee payment: 12

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

Free format text: PAYMENT UNTIL: 20120312

Year of fee payment: 13

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

Free format text: PAYMENT UNTIL: 20130312

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: 20130312

Year of fee payment: 14