JPH02285476A - Data generating method for free curve - Google Patents

Data generating method for free curve

Info

Publication number
JPH02285476A
JPH02285476A JP1106868A JP10686889A JPH02285476A JP H02285476 A JPH02285476 A JP H02285476A JP 1106868 A JP1106868 A JP 1106868A JP 10686889 A JP10686889 A JP 10686889A JP H02285476 A JPH02285476 A JP H02285476A
Authority
JP
Japan
Prior art keywords
point
input
data
coordinate values
area
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
JP1106868A
Other languages
Japanese (ja)
Other versions
JP2594831B2 (en
Inventor
Hideki Naka
秀樹 中
Akira Itooka
糸岡 晃
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.)
Dainippon Screen Manufacturing Co Ltd
Original Assignee
Dainippon Screen Manufacturing 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 Dainippon Screen Manufacturing Co Ltd filed Critical Dainippon Screen Manufacturing Co Ltd
Priority to JP10686889A priority Critical patent/JP2594831B2/en
Publication of JPH02285476A publication Critical patent/JPH02285476A/en
Application granted granted Critical
Publication of JP2594831B2 publication Critical patent/JP2594831B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Image Generation (AREA)
  • Controls And Circuits For Display Device (AREA)
  • Processing Or Creating Images (AREA)

Abstract

PURPOSE:To compress the data quantity for reproducing faithfully an original curve by setting a tapered sequential decision area which can avoid effectively a data input and executing the data input. CONSTITUTION:A cursor 5 is put at one point on an outline 4C, and by setting its point as a start point P1, tracing of the outline 4C is advanced. When a coordinate value inputted newly is outside of an area whose area is a1, around the point P1, its point is set as P2. A sequential decision area D is set, based on vectors P1, P2 as a reference, symmetrical with regard to a half line L passing through the point P2 by setting the point P1 as an origin, and an area surrounded by a superior arc D1 obtained by cutting a circular arc of a prescribed radius a2 around the point P2 at about + or -45 deg. against the half straight line L, a hyperbola D2 which is connected smoothly at an end point of the superior arc D1 and asymptotic to the half straight line L, and a segment whose length becomes (h) in the direction being orthogonal to the half straight line L. Subsequently, when a point P3 inputted newly is outside of the sequential decision area D, the vectors P2, P3 are set as a new reference. In such a way, since the tapered area is set in the direction running along the half straight line L, it will suffice that the data quantity is small.

Description

【発明の詳細な説明】 (産業上の利用分野) この発明は、図形の輪郭等、任意の曲線をペンやカーソ
ルなどの入力機器でYレース(なぞり)、曲線をディノ
タルの座標点列で表現する自由曲線のデータ生成方法に
関する。
[Detailed Description of the Invention] (Industrial Application Field) This invention allows arbitrary curves, such as the outline of a figure, to be traced using an input device such as a pen or cursor, and the curve is expressed as a sequence of coordinate points of Dinotal. This paper relates to a data generation method for free curves.

(従来の技術) 製版工程で用いられる切抜きマスク作成装置を例にとる
。切抜きマスクは、所望の図形領域のみを透明とし、そ
れ以外の部分を不透明としたフィルムであり、これを用
いて2つの画像を写真的に合成するために用いられる。
(Prior Art) Let us take as an example a cutout mask creation device used in a plate-making process. A cutout mask is a film in which only a desired graphic area is transparent and the other parts are opaque, and is used to photographically combine two images.

切抜きマスクの作成は、現在では電子的に行なわれてお
り、透明とすべ外因形領域をディジタイザ上で入力し、
入力データを出力装置に渡してビール・フィルムをカッ
トしマスクができあがる。
Creation of the cutout mask is now done electronically, by inputting transparent and smooth extrinsic regions on a digitizer.
The input data is passed to the output device, the beer film is cut, and the mask is completed.

この場合、透明とすべき図形領域は、ディジタイブのテ
ーブル上でオペレータがペンまたはカーソルを原画の図
形領域の輪郭をなぞることによりデータ化される。すな
わち、輪郭線(曲線な(1し直線)を複数の輪郭点で近
υ、し、輪郭点の座標データを逐次にメモリに蓄積する
In this case, the graphical area to be made transparent is converted into data by the operator tracing the outline of the graphical area of the original drawing with a pen or cursor on the digitive table. That is, a contour line (a curved line (one line)) is approximated by a plurality of contour points, and the coordinate data of the contour points are sequentially stored in a memory.

ところで、一般に、図形の輪郭などを点列で表現する場
合に、輪郭を忠実に再現するためには点を短い間隔で多
くとればとるほどよいが、しかしデータ量が膨大になる
問題があり、逆に、比較的粗い間隔で点をとるとデータ
量は少なく済む反面、そのトレースした原曲線が忠実に
は再現されないといった問題が生じる。そこで、従来よ
り、再現の忠実度とデータ量との相反する問題を解決す
べ(努力がなされているが、一つの解決策として、所定
の忠実度を確保したうえでデータ量を圧縮するという試
みがあり、特開昭59−49071号公報に開示された
[図形輪郭データ圧縮方法」はその−例である。
By the way, in general, when expressing the outline of a figure as a sequence of points, it is better to take more points at short intervals in order to faithfully reproduce the outline, but there is a problem that the amount of data becomes enormous. Conversely, if points are taken at relatively coarse intervals, the amount of data can be reduced, but the problem arises that the traced original curve cannot be faithfully reproduced. Efforts have been made to solve the conflicting problem between reproduction fidelity and data volume, but one solution is to compress the data volume while maintaining a certain level of fidelity. An example of this is the figure contour data compression method disclosed in Japanese Patent Application Laid-Open No. 59-49071.

この従来例を第5図によって具体的に説明すると、点P
n−xと点Pnは座標データが既に入力され、点P n
et、点Pn◆2は入力の候補点(輪郭線に沿ったサン
プリング点)であり、点Pnと点Pn++を結ぷ仮想#
1分の長さをrffiJとし、該線分がその前位線分と
なす角度を「θ」として、両者の積値「r・θ」を求め
、これを、予め設定した定数fkJと比較して「r・θ
≧k」であれば、点Pn÷1の座標値を必要情報である
と判定し、逆に「l・θ<kJの場合は、不要情報と判
定しデータ入力を行わない。そして1、αPn+1の座
標値が不要情報であると判定された場合には、引き続き
、次位のサンプリング点Pn+2と、もどの点P++に
ついて同様の処理を行うものである。
To specifically explain this conventional example with reference to FIG. 5, the point P
Coordinate data has already been input for n-x and point Pn, and point P n
et, point Pn◆2 is an input candidate point (sampling point along the contour line), and is a virtual # connecting point Pn and point Pn++.
Let the length of 1 minute be rffiJ, and the angle that this line segment makes with its preceding line segment be ``θ'', find the product value ``r・θ'' of both, and compare this with a preset constant fkJ. 'r・θ
≧k, the coordinate value of point Pn÷1 is determined to be necessary information, and conversely, if l・θ<kJ, it is determined to be unnecessary information and no data input is performed.And 1, αPn+1 If it is determined that the coordinate value is unnecessary information, the same process is subsequently performed for the next sampling point Pn+2 and any other point P++.

(従来の技術の問題点) ところが、従来の技術においては、基本的に、曲線の再
現忠実度に対するデータ量の問題にのみ主眼が置かれ、
この発明が対象とするようなオペレータが人手で曲線を
なぞるという背景についでは今一つ考慮されていないの
が現状である。即ち、オペレータによっては、曲線をす
ばやくなぞる者もあれば、曲線を単調にゆっくり忠実に
なぞる者もある。
(Problems with the conventional technology) However, in the conventional technology, the main focus is basically only on the problem of the amount of data with respect to the fidelity of curve reproduction.
At present, little consideration has been given to the background in which an operator manually traces a curve, which is the object of this invention. That is, some operators trace the curve quickly, while others trace the curve monotonously, slowly, and faithfully.

曲線をすばやくなぞる場合、確かに作業効率はよ(、ま
た手ぶれも少なくなる利点はあるが、長い距離を単調に
なぞるのは可能ではなく、どうしてもペンなりカーソル
なりを間欠的に動かすこととなり、第6図(a)に示さ
れるように、カーソルの移動停止点でバックラッシュ的
な戻り部(B I L(B 2 L・・・を生じる。ま
た、速く動かすために、曲線からトレース軌跡が大きく
離反してしまう確率も高い。
When tracing a curve quickly, it is certainly more efficient (and has the advantage of reducing camera shake, but it is not possible to trace a long distance monotonously, and the pen or cursor must be moved intermittently, making it difficult to As shown in Figure 6 (a), a backlash-like return portion (B I L (B 2 L...) occurs at the point where the cursor stops moving. Also, in order to move quickly, the trace locus is There is also a high probability that they will leave.

バックラッシュ的な戻り部(B 1 )、(B 2 )
、・・・を生ヒた場合、第5図に示した従来例によれば
、lが短くθが極端に大きくなって(第6図(b)参照
)、「r・θ≧k」を充足してしまい、点Pn+xが必
要と判断され、有効データとして入力されてしまう可能
性が極めて大きい。さらに1.αpH+1がデータ入力
されれば、曲線に沿う次の点pH+2に向かう途中のサ
ンプリング点Pxもθが太き(なるため有効データとし
て入力されてしまう可能性がある。
Backlash-like return part (B 1 ), (B 2 )
, ..., according to the conventional example shown in Fig. 5, l is short and θ becomes extremely large (see Fig. 6 (b)), and "r・θ≧k" is satisfied. There is an extremely high possibility that the point Pn+x will be determined to be necessary and input as valid data. Furthermore 1. If αpH+1 is input as data, there is a possibility that the sampling point Px on the way to the next point pH+2 along the curve will also be inputted as valid data because θ will be thick.

このような、バックラッシュに起因して座標値がデータ
入力されてしまえば、再現される曲線には、局部的に第
6図(、)のようなギザが現れ忠実度に問題を生じる。
If coordinate values are input as data due to such backlash, the reproduced curve will have local jagged edges as shown in FIG. 6 (,), causing a problem in fidelity.

他方、曲線をゆっくりなぞる場合、確かに曲線からトレ
ース軌跡が離反してしまうということは少ないが、作業
効率は低く、しかも悪いことに手ぶれの影響が大きな問
題として現れてくる。即ち、オペレータは曲線を眼で追
いなから緊張した手を動かし、かつその緊張した手にフ
ィードバックをかけなから動かし進めてトレースする訳
だから、第6図(ciに示されるように、ミクロにみれ
ば原曲#!(0)を中央に左右にジグザグと曲線をトレ
ースしてゆくことになる。このジグザグ軌跡(Z)をデ
ータ入力して再現した場合、必ずしも原曲線に忠実で滑
らかな曲線が得られるとは言えない。
On the other hand, when tracing a curve slowly, although it is true that the trace locus rarely deviates from the curve, the work efficiency is low, and worse still, the influence of camera shake becomes a major problem. In other words, the operator moves his nervous hand rather than following the curve with his eyes, and moves and traces the nervous hand without applying feedback. This means tracing a curve in a zigzag pattern left and right with the original song #! I can't say that I can get it.

この発明は、データ圧縮とともに、オペレータの手揉作
に基づく上記の問題を改善することを課題とする。
An object of the present invention is to improve the above-mentioned problems caused by manual manipulation by an operator as well as data compression.

(課題を達成するための手段) この発明に係る自由曲線のデータ生成方法は、座標値を
与える平面上で自由曲線を入力機器を用いて人手でなぞ
り自由曲線に沿ってサンプリング点の座標値を逐次に自
動的にメモリにデータ入力する方法において、データ入
力した第1の点とこのfpJlの点の次にデータ入力し
たtpJ2の点に対し、前記第2の点を中心に所定半径
の優弧を規定するとともに、前記第1の点から前記第2
の点を通る半直線を規定して、前記優弧と、この優弧の
端点から前記半直線に漸近する直線または曲線とによっ
て囲まれる逐次判定領域を設定し、サンプリング点がこ
の逐次判定領域内に属するかどうかを判定し、属する場
合にはデータ入力を行なわず、属さない場合には、その
サンプリング点の座標値をデータ入力し、データ入力し
たこのサンプリング点を新たな第2の点として上記工程
を反復してデータ入力を行なうことを基本的な特徴とし
ている。
(Means for Achieving the Object) A free curve data generation method according to the present invention involves manually tracing a free curve using an input device on a plane giving coordinate values, and calculating coordinate values of sampling points along the free curve. In a method of sequentially automatically inputting data into a memory, a superior arc of a predetermined radius centered on the second point is created between the first point where data is input and the point tpJ2 where data is input next to this fpJl point. from the first point to the second point.
A half-line passing through the point is defined, and a sequential judgment area is defined by the above-mentioned arc and a straight line or curve that asymptotically approaches the half-line from the end point of the above-mentioned arc, and the sampling point is within this sequential judgment area. If it belongs, do not input data; if it does not belong, input the coordinate values of the sampling point, and use the input sampling point as the new second point. The basic feature is that data is input by repeating the process.

(実施例) 第1図は実施例のブロック説明図である。(Example) FIG. 1 is a block diagram of an embodiment.

(1)は所定の周期で座標値(x+y)を出力するディ
ジタイザで、切抜きマスク等を作成するための原11(
2)を載置するテーブル(3)と図形(4)の輪郭(4
C)をなぞるカーソル(5)を備えている。
(1) is a digitizer that outputs coordinate values (x+y) at a predetermined period, and is used to create a cutting mask etc.
2) is placed on the table (3) and the outline (4) of the figure (4).
It is equipped with a cursor (5) for tracing C).

(6)は座標値(x、y)が入力される処理装置で、マ
イクロコンピュータを含み、演算・判定部(7)と制御
部(8)と座標値を順次に蓄積するメモリ(9)を備え
る。制御部(8)は、ディジタイザ(1)にサンプリン
グパルスを供給し、演算・判定部(7)はサンプリング
周期ごとに入力される座標値(x+y)を元に所定の演
算処理を行うとともに、入力された座標値が一定の条件
を充足するか否かを判定し、判定結果によりその座標値
をメモリ(9)に転送するか否かを決める。
(6) is a processing device into which the coordinate values (x, y) are input, and includes a microcomputer, an arithmetic/judgment section (7), a control section (8), and a memory (9) that sequentially stores the coordinate values. Be prepared. The control unit (8) supplies sampling pulses to the digitizer (1), and the calculation/judgment unit (7) performs predetermined calculation processing based on the coordinate values (x+y) input at each sampling period. It is determined whether or not the determined coordinate values satisfy certain conditions, and based on the determination result, it is determined whether or not to transfer the coordinate values to the memory (9).

ディジタイザ(1)は、具体的には、最小分解能が25
μ伯であり、サンプリング周期は30醜Sに設定されて
いる。演算・判定部(7)は座標値データをもとに所定
のプログラムにより処理をおこなう。
Specifically, the digitizer (1) has a minimum resolution of 25
The sampling period is set to 30S. The calculation/judgment unit (7) performs processing according to a predetermined program based on the coordinate value data.

このプログラムの70−の概要を第2図に示す。An outline of this program 70- is shown in FIG.

ステップ(Sl)〜(84’)からなる初期設定のステ
ップ群(IL)と、ステップ(S5)〜(SIO)かる
There is an initial setting step group (IL) consisting of steps (Sl) to (84') and steps (S5) to (SIO).

まず、ステップ(Sl)では、座標入力器すなわちカー
ソル(5)を能動化して、処理装置(6)が座標値(x
、y)を受は入れられる状態にする。次のステップ(S
2)では、カーソル(5)を輪郭(4C)上の1点に置
き、その点を開始点(第1の点)P+とじて、例えばカ
ーソル(5)のキーを操作して座標値を設定する。輪郭
(4C)のトレースが進められる。
First, in step (Sl), the coordinate input device, that is, the cursor (5) is activated, and the processing device (6) inputs the coordinate value (x
, y) is placed in a state where it can be accepted. Next step (S
In 2), place the cursor (5) at one point on the outline (4C), set that point as the starting point (first point) P+, and set the coordinate values by operating the keys of the cursor (5), for example. do. The tracing of the contour (4C) proceeds.

ステップ(S3)では、サンプリング周期30tes毎
に新たな座標値が入力される。ステップ(S4)では、
入力された座標値が、点P1を中心に半径がa、の領域
の内にあるか外にあるかを判定する。
In step (S3), new coordinate values are input every sampling period of 30tes. In step (S4),
It is determined whether the input coordinate values are within or outside a region with a radius a centered on point P1.

内にあれば、ステップ(S3)に戻り、次に入力された
座標値に対し同様の判定処理を繰り返し行う。
If it is within the range, the process returns to step (S3) and the same determination process is repeated for the next input coordinate value.

尚、本例ではa、を250μmとしている。In this example, a is set to 250 μm.

ステップ(S4)において、「外」にあると判定すると
、第3図(a)に示すように、その点をP2として次の
ステップ(S 4 ’)でこの点の座標値をメモリに記
憶する。この時点で、メモリ(9)には、点P、と点P
2の(x=y)座標値が記憶されている。
In step (S4), if it is determined that the point is "outside", the coordinate value of this point is stored in the memory in the next step (S4'), with that point as P2, as shown in FIG. . At this point, the memory (9) contains points P and P.
2 (x=y) coordinate values are stored.

ステップ(S5)では、この点P1と点P2とによって
、第3図(b)に示されるような、逐次判定領域(D)
を設定する。逐次判定領域(D)は、P IP 2を基
準に設定され、点P1を基点に点P2を通る半直線(L
)に関して対称で、点P2を中心とする所定半径a2の
円弧を半面#1l(L)に対してほぼ±45°で切った
優弧(Dl)と、この優弧(Dl)の端点で滑らかに接
続し牛血!i(L”)に漸近する双曲#X(D 2 )
と、半直線(L)に直交する方向で長さがhとなる線分
とで囲まれる領域である。
In step (S5), the point P1 and the point P2 form a sequential determination area (D) as shown in FIG. 3(b).
Set. The sequential determination area (D) is set based on P IP 2, and is a half straight line (L
) and is symmetrical with respect to point P2 and has a predetermined radius a2 cut at approximately ±45° with respect to half surface #1l (L). Connected to cow blood! Hyperbolic #X(D 2 ) asymptotic to i(L”)
, and a line segment having a length h in the direction orthogonal to the half-line (L).

具体的には、本実施例の逐次判定領域(D)は、a2が
第3図(a)のalと同様250μm、先端幅11は5
0〜100μ鵜で全長は約IIo11である。なお、第
3図(b)に−点鎖線で示すように、P 1P 2方向
の全長を良くして先端幅をhより小さいh゛に設定する
と、データ量を大幅に縮減することができる。
Specifically, in the sequential determination area (D) of this example, a2 is 250 μm, similar to al in FIG. 3(a), and the tip width 11 is 5.
The total length is 0 to 100μ and the total length is about IIo11. Note that, as shown by the dashed line in FIG. 3(b), if the total length in the two directions of P 1P is increased and the tip width is set to h, which is smaller than h, the amount of data can be significantly reduced.

また、後述のように、半径a2の円弧の内側に入る点は
データ入力されないので、この円弧で囲まれる領域は、
オペレータの微小な手ぶれやその他のノイズを有効に吸
収する。
In addition, as will be described later, data is not input for points that fall inside the arc of radius a2, so the area surrounded by this arc is
Effectively absorbs minute operator shakes and other noise.

さて、ステップ(S5)で逐次判定領域(D)が設定さ
れると、ステップ(S6)に進み、ここで新たな座標値
を入力する。次のステップ(S7)では、この入力され
た点が逐次判定領域(D)の内にあるか外にあるかを判
定する。内にあれば、この点の座標はメモリに入力され
ず、ステップ(S6)に戻り、次のサンプリングによる
点の座標値を入力する。
Now, when the sequential determination area (D) is set in step (S5), the process proceeds to step (S6), where new coordinate values are input. In the next step (S7), it is sequentially determined whether the input point is within or outside the determination area (D). If it is within the range, the coordinates of this point are not input into the memory, and the process returns to step (S6), where the coordinate values of the point obtained by the next sampling are input.

ステップ(S7)で、入力された点の座標値が逐次判定
領域(D)の「外」であると判定されると、その点P、
は次のステップ(S8)において、座標値がメモリに入
力されると同時に、P2P、を新たな基準として設定す
る。
In step (S7), if it is determined that the coordinate values of the input point are "outside" the sequential determination area (D), the point P,
In the next step (S8), at the same time as the coordinate values are input into the memory, P2P is set as a new reference.

える座標変換処理を行い、次のステップ(S1O)に進
む、ステップ(810)では、曲線(輪郭)のトレース
が終了したかどうかを判定し、終了していれば、このプ
ログラムを終了させ、終了していなければ、を繰り返し
行う。なお、ステップ(SIO)の終了判定は、カーソ
ル(5)に備える入カキ−の捏作により発信されるエン
ド信号を検出することにより打つている。
In step (810), it is determined whether tracing of the curve (contour) has been completed, and if it has been completed, this program is terminated and the process is terminated. If not, repeat. Note that the end of the step (SIO) is determined by detecting an end signal transmitted by forging an input key provided at the cursor (5).

第3図(b)に示す逐次判定領域(D)かられかるよう
に、牛血acL)に沿う方向には先細りに設定している
ので、トレースしている曲線の直線部分はデータ入力の
頻度は小さく、曲率の極めて大きい部分のみ最大で25
0ハの間隔でデータ入力されるにすぎない。したがって
、メモリ(9)に蓄積されるデータ量は、比較的に少な
くて済む。
As can be seen from the sequential determination area (D) shown in Figure 3(b), the setting is tapered in the direction along the bovine blood acL), so the straight line part of the traced curve is the frequency of data input. is small, with a maximum of 25 only in areas with extremely large curvature.
Data is only input at intervals of 0. Therefore, the amount of data stored in the memory (9) can be relatively small.

領域(D)に属するか否かを判定する点に関して、上記
の実施例では、30a+s毎のサンプリング時点で入力
される点の座標値そのもので行っているが、これを、複
数個の点の座標値の平均をとって行うようにしてもよい
。例えば、30m5毎に入力される点の座標を順次7個
記憶しておき、8個目を入力した時点で、この8個分の
座標値の平均値を求め、この平均値で与えられる点が領
域(D)に属するかどうかを判定する。9個目が入力さ
れると、先の7個の最も古いデータを捨て、8個目のデ
ータとともに新たに8点分の平均を求める、移動平均処
理を行う。この移動平均処理を行なうと、オペレータに
よる細かな手ぶれによるジグザグのトレース軌跡の左右
のノブザブ成分が相殺され、入力されたデータ上では原
曲線上を忠実にトレースしていることになり、曲線再現
の忠実度が向上するとともに、直線近似のなめらかさも
増す。なお、この処理は、第2図のステップ(S 3 
)、(S 6 )で行うと有効であり、またカーソルで
の指定に替えてステップ(S2)において行うようにし
てもよい。
Regarding the determination of whether or not it belongs to the area (D), in the above embodiment, the coordinate values of the points inputted at every 30a+s sampling time are used, but this is done using the coordinates of multiple points. This may be done by taking the average of the values. For example, if you sequentially memorize 7 coordinates of points that are input every 30 m5, and when the 8th coordinate is input, calculate the average value of these 8 coordinate values, and then calculate the point given by this average value. Determine whether it belongs to area (D). When the ninth data is input, moving average processing is performed in which the oldest seven data are discarded and the average of eight new data points is calculated together with the eighth data. When this moving average processing is performed, the left and right knob-zab components of the zigzag trace trajectory caused by small camera shakes by the operator are canceled out, and the input data means that the original curve is faithfully traced, which improves the curve reproduction. As the fidelity improves, the smoothness of the linear approximation also increases. Note that this process is performed in step S3 in FIG.
), (S 6 ) is effective, and may be performed in step (S2) instead of specifying with a cursor.

又、上記の実施例では、逐次判定領域(D)の外に出た
点の座標値をメモリに記憶するようにしているが、この
座標値に処理を加えて、処理された座標データを記憶さ
せるようにしてもよい。例えば、第3図(b)の点P、
において、点P、の座標値のうち、半直線(L)と直交
する方向の成分に1より小さい係数aまたとえば0.9
とか0.8を乗じてデータとする。定性的にみると、点
P3を半直線(L)と直交する方向と平行に半直線(L
)に近づける処理である。この処理を行えば、行なわな
い場合と比べ原曲線に一致する度合が大きく増すことを
確認している。この理由としては、サンプリングにより
座標値を取り込んでいることから、逐次判定領域(D)
の内側でその周縁部に前位の点が位置していたとき、次
のサンプリングでは、この判定領域(D)から大きく離
れる可能性があり、これを係数aを乗じて判定領域(D
)の外縁に近付けてやることで、サンプリングによる不
都合もしくはトレースを進める方向に交差する方向の手
ぶれの影響またはノイKを有効に吸収できるものと考え
ている。
Furthermore, in the above embodiment, the coordinate values of points that have gone out of the determination area (D) are stored in the memory one after another, but it is also possible to perform processing on these coordinate values and store the processed coordinate data. You may also do so. For example, point P in FIG. 3(b),
In, among the coordinate values of point P, a coefficient a smaller than 1 is applied to the component in the direction orthogonal to the half line (L), for example, 0.9.
Multiply by 0.8 to obtain data. Qualitatively, point P3 is connected to a half-line (L) parallel to a direction orthogonal to the half-line (L).
). It has been confirmed that if this process is performed, the degree of matching with the original curve is greatly increased compared to the case where it is not performed. The reason for this is that the coordinate values are taken in by sampling, so the judgment area (D)
When the previous point is located on the periphery inside the , there is a possibility that it will be far away from this judgment area (D) in the next sampling, and this will be multiplied by the coefficient a to make the judgment area (D
) is considered to be able to effectively absorb the inconvenience caused by sampling, the influence of camera shake in a direction intersecting the direction in which the trace is advanced, or noise K.

上記実施例では、逐次判定領域(D)は第3図(b)に
示されるものとしたが、第4図に破線で示されるものに
変形してもよい。円弧に替えて、多角形(M)とする、
双曲線に替えて直線(S)とする。もしくは、この直線
(S)をW、長して手直M(L)と交わる直#i(S’
)とする。これらの組み合わせを適用するようにしても
よい。
In the above embodiment, the sequential determination area (D) is shown in FIG. 3(b), but may be modified to be shown in broken lines in FIG. Instead of a circular arc, use a polygon (M),
A straight line (S) is used instead of a hyperbola. Alternatively, lengthen this straight line (S) by W to intersect the straight line M(L) with straight line #i(S'
). A combination of these may also be applied.

(発明の効果) 以上のように、この発明によれば、データ入力を有効に
回避できる先細の逐次判定領域を設定してデータ入力を
行っているので、原曲線を忠実に再現するためのデータ
量を圧縮できるとともに、既入力点を中心に円形状の領
域を設定してデータ入力を回避しているので、オペレー
タの手揉作に基づく不都合なデータ入力を抑止でき、原
曲縁再現の忠実度を向上させることができる。
(Effects of the Invention) As described above, according to the present invention, data input is performed by setting a tapered sequential judgment area that can effectively avoid data input. In addition to compressing the amount of data, data input is avoided by setting a circular area around the already input point, which prevents inconvenient data input based on manual input by the operator, and faithfully reproduces the edge of the original piece. It is possible to improve the degree of

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

第1図はこの発明の実施例のブロック説明図、第2図は
データ入力の70−チャート、tj43図(a)、(b
)は実施例の処理の図解図、第4図は逐次判定領域の変
形例を示す図、第5図は従来技術の原理説明図、 第6図(a)=(b)、(c)は従来例の欠点の説明図
である。 1・・・ディ7タイザ、4C・・・輪郭、5・・・カー
ソル、7・・・演算・判定部、9・・・メモリ、D・・
・逐次判定領域、S7・・・入力点が逐次判定領域に属
するが否かを判定するステップ。
Fig. 1 is a block explanatory diagram of an embodiment of the present invention, Fig. 2 is a data input 70-chart, and tj43 figures (a) and (b).
) is an illustrative diagram of the processing of the embodiment, FIG. 4 is a diagram showing a modification of the sequential judgment area, FIG. 5 is a diagram explaining the principle of the prior art, and FIG. 6 (a) = (b), (c) is FIG. 2 is an explanatory diagram of the drawbacks of the conventional example. DESCRIPTION OF SYMBOLS 1... Di7izer, 4C... Contour, 5... Cursor, 7... Calculation/judgment section, 9... Memory, D...
- Sequential determination area, S7...Step of determining whether the input point belongs to the sequential determination area.

Claims (4)

【特許請求の範囲】[Claims] (1)座標値を与える平面上で自由曲線を入力機器を用
いて人手でなぞり自由曲線に沿ってサンプリング点の座
標値を逐次に自動的にメモリにデータ入力する方法にお
いて、 データ入力した第1の点とこの第1の点の次にデータ入
力した第2の点に対し、前記第2の点を中心に所定半径
の優弧を規定するとともに、前記第1の点から前記第2
の点を通る半直線を規定して、前記優弧と、この優弧の
端点から前記半直線に漸近する直線または曲線とによっ
て囲まれる逐次判定領域を設定し、 サンプリング点がこの逐次判定領域内に属するかどうか
を判定し、 属する場合にはデータ入力を行なわず、 属さない場合には、そのサンプリング点の座標値をデー
タ入力し、 データ入力したこのサンプリング点を新たな第2の点と
して上記工程を反復してデータ入力を行なうことを特徴
とする自由曲線のデータ生成方法。
(1) In a method in which a free curve is manually traced using an input device on a plane giving coordinate values, and the coordinate values of sampling points are sequentially and automatically input into memory along the free curve, the first and a second point whose data is input next to the first point, define a superior arc of a predetermined radius centered on the second point, and from the first point to the second point.
A half-line passing through the point is defined, and a sequential judgment area is defined by the above-mentioned arc and a straight line or curve that asymptotically approaches the half-line from the end point of the above-mentioned arc, and the sampling point is within this sequential judgment area. Determine whether it belongs to the point, and if it does, do not input data; if it does not, input the coordinate values of that sampling point, and use the inputted sampling point as the new second point as described above. A free curve data generation method characterized by inputting data by repeating processes.
(2)データ入力した新たな第2の点に引き続くサンプ
リング点の少なくとも1つは、常に、前記所定半径の円
弧内にあるようにサンプリング周期を設定した、請求項
(1)記載の自由曲線のデータ生成方法。
(2) The free curve according to claim (1), wherein the sampling period is set such that at least one of the sampling points subsequent to the new second data-input point is always within an arc of the predetermined radius. Data generation method.
(3)前記逐次判定領域内に属するかどうかを判定され
る点は、複数のサンプリング点の座標値の平均値で与え
られる仮想のサンプリング点である、請求項(1)また
は(2)記載の自由曲線のデータ生成方法。
(3) The point according to claim (1) or (2), wherein the point to be determined whether or not it belongs to the sequential determination area is a virtual sampling point given by an average value of coordinate values of a plurality of sampling points. Free curve data generation method.
(4)前記逐次判定領域に属さないと判定されたサンプ
リング点の座標値に対し、前記半直線と直交する方向の
座標成分に対して1より小さい所定の係数を乗じた値を
与え、これをもってデータ入力すべき座標値とした、請
求項(1)ないし(3)のいずれかに記載の自由曲線の
データ生成方法。
(4) For the coordinate values of the sampling points determined not to belong to the sequential determination area, give a value obtained by multiplying the coordinate component in the direction perpendicular to the half line by a predetermined coefficient smaller than 1, and use this value. The free curve data generation method according to any one of claims (1) to (3), wherein the coordinate values to be input are used as coordinate values.
JP10686889A 1989-04-26 1989-04-26 Free Curve Data Generation Method Expired - Lifetime JP2594831B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP10686889A JP2594831B2 (en) 1989-04-26 1989-04-26 Free Curve Data Generation Method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP10686889A JP2594831B2 (en) 1989-04-26 1989-04-26 Free Curve Data Generation Method

Publications (2)

Publication Number Publication Date
JPH02285476A true JPH02285476A (en) 1990-11-22
JP2594831B2 JP2594831B2 (en) 1997-03-26

Family

ID=14444523

Family Applications (1)

Application Number Title Priority Date Filing Date
JP10686889A Expired - Lifetime JP2594831B2 (en) 1989-04-26 1989-04-26 Free Curve Data Generation Method

Country Status (1)

Country Link
JP (1) JP2594831B2 (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS609890U (en) * 1983-06-29 1985-01-23 川崎重工業株式会社 A hook that prevents the wire from falling off.
JPS6414629A (en) * 1987-07-08 1989-01-18 Hitachi Seiko Kk Coordinate reader

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS609890U (en) * 1983-06-29 1985-01-23 川崎重工業株式会社 A hook that prevents the wire from falling off.
JPS6414629A (en) * 1987-07-08 1989-01-18 Hitachi Seiko Kk Coordinate reader

Also Published As

Publication number Publication date
JP2594831B2 (en) 1997-03-26

Similar Documents

Publication Publication Date Title
JPH0458378A (en) Method for dividing and developing bezier curve
JPH0373883B2 (en)
JPH09190551A (en) 3D shape drawing method
JPH02285476A (en) Data generating method for free curve
JP2000057184A (en) How to create a 3D shape model
JPH0786935B2 (en) Contour data compression method
JPH05297923A (en) Tool path data creating device
JPH07121219A (en) Numerical control information generating method
JP3305395B2 (en) Figure division device
JPS6321950B2 (en)
JP2661554B2 (en) Correction method of plate material processing figure data
JP2767865B2 (en) Automatic blur surface data creation device
JP4747632B2 (en) 3D CAD modeling method, program and apparatus for mixing feature-based parametric modeling and direct modeling
JPH07295621A (en) Tool path setting method for CAM system for curved surface processing
JPS6125190B2 (en)
JPH0863619A (en) Part automatic generation device and generation method
JP2701307B2 (en) Method for generating a rough tool path for area machining
JPH03134775A (en) Shape division system
JPH02166572A (en) Vector character data processing method
JPH07114369A (en) Character and graphite data processor
JPH10124545A (en) Fillet editing method for graphic
JPH04100096A (en) Displaying system
JPH1118005A (en) Image effect processing system and computer
JPH05346814A (en) Three-dimensional machining method
JPS6249505A (en) Automatic programming system for numerical control