[go: up one dir, main page]

JPH05290159A - Method for approximating position data - Google Patents

Method for approximating position data

Info

Publication number
JPH05290159A
JPH05290159A JP4087236A JP8723692A JPH05290159A JP H05290159 A JPH05290159 A JP H05290159A JP 4087236 A JP4087236 A JP 4087236A JP 8723692 A JP8723692 A JP 8723692A JP H05290159 A JPH05290159 A JP H05290159A
Authority
JP
Japan
Prior art keywords
section
approximation
point
value
position data
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
JP4087236A
Other languages
Japanese (ja)
Other versions
JP2980769B2 (en
Inventor
Hiroshi Moriyama
森山  浩
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.)
Alps Alpine Co Ltd
Original Assignee
Alps Electric 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 Alps Electric Co Ltd filed Critical Alps Electric Co Ltd
Priority to JP4087236A priority Critical patent/JP2980769B2/en
Publication of JPH05290159A publication Critical patent/JPH05290159A/en
Application granted granted Critical
Publication of JP2980769B2 publication Critical patent/JP2980769B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Complex Calculations (AREA)
  • Image Processing (AREA)
  • Controls And Circuits For Display Device (AREA)
  • Image Analysis (AREA)

Abstract

PURPOSE:To smoothly connect approximate position data of adjacent sections by dividing an approximation section into a straight approximation section and a curves approximation section by using the values of inner products at respective points of the contour of position data when the approximation section is divided, and further dividing the curves approximation section into a straight approximation section and a curves approximation section according to the value of the curvature. CONSTITUTION:The point on the contour where the value of the inner product is <=-0.99 is regarded as the start point of the straight line and when >=33 points where the values of the inner products are <=-0.99 succeed from the start point of the straight point, the section is extracted as a 1st straight section and the remaining section is extracted as a 1st curves section. Then the point in the 1st curved section where the value of the curvature is <=+ or -0.05 is regarded as the start point of a 2nd straight line and when >=33 points where the values of the curvature are <=+ or -0.05 succeed from the start point of the straight line, this section is extracted as a 2nd straight section. Approximation process is performed with the approximation sections which are thus obtained, so an approximated figure which is obtained has extremely smooth connection states between straight lines and curved lines.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は点列形状の位置データを
関数を用いて近似する位置データの近似方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a position data approximation method for approximating point sequence shape position data using a function.

【0002】[0002]

【従来の技術】一般に、文字、図形等の形状をイメージ
スキャナで読み取り、これを画像データとしてコンピュ
ータ等に取り込み、これをCRT、プリンタ等の出力装
置で再生したり、FD等の記憶媒体に記録したりするこ
とが盛んに行われている。
2. Description of the Related Art Generally, shapes such as characters and figures are read by an image scanner, taken as image data into a computer or the like, reproduced by an output device such as a CRT or a printer, or recorded in a storage medium such as an FD. There are a lot of things to do.

【0003】この場合、アウトラインフォントと称し、
文字、図形等の輪郭部のみの位置データを読み取り、こ
の輪郭部に囲まれている部分を文字、図形等として再生
することが行われている。
In this case, it is called an outline font,
It has been practiced to read the position data of only the outline portion of characters, figures, etc. and reproduce the portion surrounded by the outline portion as characters, figures, etc.

【0004】このようなアウトラインフォントを利用し
た図形処理は、文字、図形等の輪郭を点列形状としてと
らえ、これを読み取ったり再生するものであるが、今日
においては原図形の位置データをそのまま用いないで、
これを任意の関数を利用して近似した近似位置データを
用いている。なぜならば、原図形の位置データは、一般
に、変化が大きいためメモリに記憶する場合に大容量を
必要とし、各種のデータ処理に要する時間も長時間必要
となり、再生にも時間がかかってしまう。これを例えば
任意の3次関数等を用いて近似することにより位置デー
タの圧縮を図り、記憶容量の低減化、各種データ処理の
迅速化、再生時間の短縮化を図り、しかも原図形とほぼ
同等の再生図形を再生することができる。
Graphic processing using such an outline font captures the contours of characters, graphics, etc. as a point sequence shape and reads or reproduces it, but today, the position data of the original graphic is used as it is. Don't
Approximate position data obtained by approximating this using an arbitrary function is used. This is because the position data of the original figure generally requires a large capacity to be stored in the memory because of a large change, a long time is required for various data processing, and a long time is required for reproduction. By approximating this using, for example, an arbitrary cubic function, the position data can be compressed, the storage capacity can be reduced, various data processing can be speeded up, and the reproduction time can be shortened. It is possible to reproduce the reproduced figure of.

【0005】従来の位置データの近似方法においては、
図6に示すように、原図形の輪郭の点を所望の点の数毎
に均等に分割して近似区間を形成し、この区切られた各
区間に対して、それぞれ任意の関数を用いて位置データ
を近似していた。
In the conventional position data approximation method,
As shown in FIG. 6, the contour points of the original figure are evenly divided for each desired number of points to form an approximate section, and an arbitrary function is used for each of the divided sections. The data were close.

【0006】[0006]

【発明が解決しようとする課題】しかしながら、前述し
た従来の位置データの近似方法においては、関数を用い
て近似する区間を決定する際に、原図形の輪郭の点を所
望の点の数毎に均等に分割することにより行っていたた
めに、区間内に直線部分と曲線部分とが混在しており、
近似させた位置データを再生すると、隣接する区間の接
続点における接合具合が理論的に滑らかとならず、位置
データの再生品質が原図形より極めて劣るという不都合
があった。
However, in the above-mentioned conventional position data approximation method, when determining the section to be approximated by using a function, the contour points of the original figure are set for each desired number of points. Since it was done by dividing it evenly, there are both straight and curved parts in the section,
When the approximated position data is reproduced, the joining condition at the connection points of the adjacent sections is not theoretically smooth, and the reproduction quality of the position data is extremely inferior to the original figure.

【0007】本発明はこれらの点に鑑みてなされたもの
であり、前述した従来のものにおける問題点を克服し、
隣接する区間の近似位置データを滑らかに接合するとと
もに、原図形の位置データに対する近似精度を向上させ
ることのできる位置データの近似方法を提供することを
目的とする。
The present invention has been made in view of these points, and overcomes the above-mentioned problems in the conventional ones.
It is an object of the present invention to provide a position data approximation method capable of smoothly joining the approximate position data of adjacent sections and improving the approximation accuracy of the position data of the original figure.

【0008】[0008]

【課題を解決するための手段】前述した目的を達成する
ため本発明の位置データの近似方法は、点列形状の位置
データを近似区間に区切るとともに、関数を用いて近似
させる位置データの近似方法において、前記位置データ
の各点における内積の値に基づいて点列形状の位置デー
タを直線近似区間と曲線近似区間との2つの近似区間と
して区分した後に、前記曲線近似区間内を当該曲線近似
区間内の各点における曲率の値に基づいてさらに直線近
似区間と曲線近似区間とに区分し、全体として直線近似
区間と曲線近似区間との2つの近似区間に分割して近似
することを特徴としている。
In order to achieve the above-mentioned object, the position data approximation method of the present invention is a method for approximating position data in which a point sequence shape position data is divided into approximation intervals and a function is used for approximation. In the method, after dividing the point sequence shape position data into two approximation sections, a linear approximation section and a curve approximation section, based on the value of the inner product at each point of the position data, the curve approximation section is divided into the curve approximation section. It is characterized in that it is further divided into a linear approximation section and a curve approximation section based on the value of the curvature at each point inside, and is divided into two approximation sections, a linear approximation section and a curve approximation section, for approximation. ..

【0009】[0009]

【作用】前述した構成からなる本発明の位置データの近
似方法によれば、近似区間を区切る場合に、位置データ
に対する輪郭の各点の内積の値を用いて直線近似区間と
曲線近似区間とに区切り、さらに、前記曲線近似区間内
をその曲線近似区間内の各点における曲率の値に基づい
て直線近似区間と曲線近似区間とに区切るようにしてい
るので、このようにして求められた直線近似区間および
曲線近似区間に基づいて近似された近似位置データは極
めて滑らかに接合されるとともに、原図形の位置データ
に対して再生される近似位置データの精度を所望の内容
にすることができる。
According to the position data approximating method of the present invention having the above-described configuration, when dividing the approximating section, the value of the inner product of each point of the contour with respect to the position data is used to form a linear approximating section and a curve approximating section. Further, the curve approximation section is divided into a straight line approximation section and a curve approximation section based on the value of the curvature at each point in the curve approximation section. The approximate position data approximated based on the section and the curve approximation section are joined very smoothly, and the accuracy of the approximate position data reproduced with respect to the position data of the original figure can be made to have a desired content.

【0010】[0010]

【実施例】以下、本発明の一実施例を図1から図5につ
いて説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described below with reference to FIGS.

【0011】図1および図2は本発明に係る位置データ
の近似方法を示す連続したフローチャートを示すもので
あり、図3は本発明の位置データの近似方法により輪郭
の点を分割した場合を示す図である。
FIGS. 1 and 2 show a continuous flow chart showing a position data approximation method according to the present invention, and FIG. 3 shows a case where contour points are divided by the position data approximation method according to the present invention. It is a figure.

【0012】図1に示すように、位置データの近似方法
が開始されると、ステップST10において、輪郭の各点
における内積の値を算出する。
As shown in FIG. 1, when the position data approximation method is started, the value of the inner product at each point of the contour is calculated in step ST10.

【0013】つぎに、ステップST11において、内積の
値が−0.99以下の点を探す。この点が直線の始点と
なる。
Next, in step ST11, a point whose inner product value is -0.99 or less is searched for. This point is the starting point of the straight line.

【0014】つぎに、ステップST12において、直線の
始点の次の点(直線の終点)の内積の値が−0.99以
下かどうかを判断し、ステップST12の判断がYESの
場合には、ステップST13に進行し、直線の終点を延長
(直線の始点の次の次の点)し、ステップST12へ戻
り、ステップST12の判断がNOになるまで、直線の終
点を順次延長させて繰り返す。また、前記ステップST
12の判断がNOの場合にはステップ14に進行する。
Next, in step ST12, it is judged whether the value of the inner product of the point next to the start point of the straight line (end point of the straight line) is -0.99 or less, and if the judgment in step ST12 is YES, step The process proceeds to ST13, the end point of the straight line is extended (the point next to the start point of the straight line), the process returns to step ST12, and the end point of the straight line is sequentially extended and repeated until the determination in step ST12 is NO. In addition, the step ST
If the determination in 12 is NO, the process proceeds to step 14.

【0015】このステップ14において内積の値が−0.
99以下の点が連続して33点以上有るかどうかを判断
し、ステップ14の判断がYESの場合には、ステップS
T15aに進行して第1直線区間として抽出し、つぎのス
テップST16へ進行する。また、前記ステップST14の
判断がNO(−0.99以下の内積の値の連続が32点
以下)の場合には、ステップST15bに進行して曲線区
間とし、つぎのステップST16へ進行する。
In step 14, the value of the inner product is -0.
It is determined whether or not the points 99 or less are 33 points or more in succession, and if the determination in step 14 is YES, step S
The process proceeds to T15a, is extracted as the first straight line section, and proceeds to the next step ST16. If the determination in step ST14 is NO (the continuation of the inner product value of -0.99 or less is 32 points or less), the process proceeds to step ST15b to make a curve section, and the process proceeds to the next step ST16.

【0016】つぎに、ステップST16において、輪郭の
すべての点について判定が終了したかどうかを判断し、
ステップST16の判断がNOの場合には、ステップST
11に戻り、ステップST16の判断がYESになるまで繰
り返す。また、前記ステップST16の判断がYESの場
合には、つぎのステップST17へ進行し、前記第1直線
区間を除いた残りの区間(前記曲線区間および内積値が
−0.99以下でない区間)を総て第1曲線区間として
抽出し、輪郭の各点を第1直線区間と第1曲線区間とに
分割し、つぎのステップST18へ進行する。
Next, in step ST16, it is judged whether or not the judgment is completed for all the points of the contour,
If the determination in step ST16 is no, step ST
The process returns to step 11 and is repeated until the determination in step ST16 is YES. When the determination in step ST16 is YES, the process proceeds to the next step ST17, and the remaining sections (the section where the curve section and the inner product value are not less than -0.99) except the first straight section are set. All are extracted as the first curve section, each point of the contour is divided into the first straight line section and the first curve section, and the process proceeds to the next step ST18.

【0017】つぎに、ステップST18において、第1直
線区間かどうかを判断し、YESの場合には、図1の記
号Aが図2に同一記号Aで示す部分へ接続されてステッ
プST27へ進行する。また、前記ステップST18の判断
がNO(第1曲線区間)の場合には、図1の記号Bが図
2に同一記号Bで示す部分へ接続されてステップST19
へ進行する。
Next, in step ST18, it is judged whether or not it is the first straight line section, and if YES, the symbol A in FIG. 1 is connected to the portion indicated by the same symbol A in FIG. 2 and the process proceeds to step ST27. .. If the determination in step ST18 is NO (first curve section), the symbol B in FIG. 1 is connected to the portion indicated by the same symbol B in FIG.
Proceed to.

【0018】つぎに、図2に示すように、ステップST
19において、前記第1曲線区間の各点における曲率の値
を算出する。
Next, as shown in FIG.
At 19, the value of the curvature at each point of the first curve section is calculated.

【0019】つぎに、ステップST20において、曲率の
値が±0.05以内の点を探す。この点が前記第1曲線
区間内に含まれている抽出しようとしている直線の始点
となる。
Next, in step ST20, a point whose curvature value is within ± 0.05 is searched for. This point becomes the starting point of the straight line to be extracted which is included in the first curve section.

【0020】つぎに、ステップST21において、直線の
始点の次の点(直線の終点)の曲率の値が±0.05以
内かどうかを判断し、ステップST21の判断がYESの
場合には、ステップST22に進行し、直線の終点を延長
(直線の始点の次の次の点)し、ステップST21へ戻
り、ステップST21の判断がNOになるまで、直線の終
点を順次延長させて繰り返す。また、前記ステップST
21の判断がNOの場合にはステップ23に進行する。
Next, in step ST21, it is determined whether the curvature value at the point next to the start point of the straight line (end point of the straight line) is within ± 0.05, and if the determination in step ST21 is YES, step The process proceeds to ST22, the end point of the straight line is extended (the point next to the start point of the straight line), the process returns to step ST21, and the end point of the straight line is sequentially extended and repeated until the determination in step ST21 is NO. In addition, the step ST
If the determination at 21 is NO, the process proceeds to step 23.

【0021】つぎに、ステップ23において曲率の値が±
0.05以内となる点が連続して33点以上有るかどう
かを判断し、ステップ23の判断がYESの場合には、ス
テップST24aに進行して第2直線区間として抽出し、
つぎのステップST25へ進行する。また、前記ステップ
ST23の判断がNO(±0.05以内の曲率の値の連続
が32点以下)の場合には、ステップST24bに進行し
て曲線区間とし、つぎのステップST25へ進行する。
Next, at step 23, the curvature value is ±
It is determined whether there are 33 points or more consecutively within 0.05, and if the determination in step 23 is YES, the process proceeds to step ST24a and is extracted as the second straight line section,
Then, the process proceeds to next step ST25. If the determination in step ST23 is NO (the continuity of curvature values within ± 0.05 is 32 points or less), the process proceeds to step ST24b to make a curved section, and the process proceeds to the next step ST25.

【0022】つぎに、ステップST25において、前記第
1曲線区間のすべての点について判定が終了したかどう
かを判断し、ステップST25の判断がNOの場合には、
ステップST20に戻り、ステップST25の判断がYES
になるまで繰り返す。また、前記ステップST25の判断
がYESの場合には、つぎのステップST26へ進行し、
前記第2直線区間を除いた残りの区間(前記曲線区間お
よび曲率が±0.05を越える区間)を総て第2曲線区
間として抽出し、前記第1曲線区間内のすべての点を第
2直線区間と第2曲線区間とに分割し、つぎのステップ
ST27へ進行する。
Next, in step ST25, it is determined whether or not the determination has been completed for all points in the first curve section. If the determination in step ST25 is NO,
Return to step ST20, and the determination in step ST25 is YES.
Repeat until. If the determination in step ST25 is YES, the process proceeds to next step ST26,
All the remaining sections (the curved section and the section where the curvature exceeds ± 0.05) excluding the second straight section are extracted as the second curved section, and all the points in the first curved section are extracted as the second section. It is divided into a straight section and a second curved section, and the process proceeds to the next step ST27.

【0023】つぎに、ステップST27において、前記第
1直線区間と第2直線区間とによる直線区間および前記
第2曲線区間による曲線区間の各区間の開始点の属性を
決定して終了させる。
Next, in step ST27, the attributes of the start points of the straight line section formed by the first straight line section and the second straight line section and the curved section formed by the second curved line section are determined and the processing is terminated.

【0024】すなわち、本実施例においては、ステップ
ST11において輪郭の点の内積の値が−0.99以下の
点を直線の始点とし、この直線の始点から内積の値が−
0.99以下の点が33点以上連続した場合に第1直線
区間として抽出し、残りの区間を第1曲線区間として抽
出する。そして、ステップST20において、前記第1曲
線区間内の点を曲率の値が±0.05以内の点を第2の
直線の始点とし、この直線の始点から曲率の値が±0.
05以内の点が33点以上連続した場合に第2直線区間
として抽出し、残りの区間を第2曲線区間として抽出す
ることになる。
That is, in the present embodiment, in step ST11, the point whose inner product value of the contour points is -0.99 or less is set as the starting point of the straight line, and the inner product value from the starting point of this straight line is-.
When 33 or more points of 0.99 or less are consecutive, the first straight line section is extracted, and the remaining section is extracted as the first curve section. Then, in step ST20, a point within the first curve section has a curvature value within ± 0.05 as the starting point of the second straight line, and the curvature value from the starting point of this straight line is ± 0.
When the points within 05 are continuous for 33 points or more, it is extracted as the second straight line section, and the remaining section is extracted as the second curve section.

【0025】なお、本実施例においては、−0.99以
下の内積の値が33点以上連続した場合と、±0.05
以内の曲率の値が33点以上連続した場合とを直線区間
としたが、内積の値、曲率の値および連続点の数は設計
コンセプトにより決定すれば良く、特に、本実施例に限
定されるものではない。
In the present embodiment, when the inner product value of -0.99 or less is continuous for 33 points or more, ± 0.05.
The case where the curvature values within 33 points or more are continuous is defined as a straight line section, but the value of the inner product, the value of curvature and the number of continuous points may be determined by the design concept, and are particularly limited to the present embodiment. Not a thing.

【0026】このように、輪郭の点を第1直線区間と第
2直線区間とによる直線区間および前記第2曲線区間に
よる曲線区間とに区分した後は、従来と同様に各区間に
対して所定の関数を持って近似させて近似位置データと
する。
In this way, after the contour points are divided into the straight line section consisting of the first straight line section and the second straight line section and the curved section consisting of the second curved section, the contour points are predetermined as in the conventional case. The approximate position data is obtained by approximating with the function of.

【0027】つぎに、輪郭の各点における内積の値の算
出方法について詳示する。
Next, the method of calculating the value of the inner product at each point of the contour will be described in detail.

【0028】一般に、二値データの形状はひとつまたは
複数の整列化点列の閉ループにより保持できる。そし
て、 輪郭にある点列P1 ,P2 ,…,Pn はそれぞれ
座標(X1 ,Y1 ),(X2 ,Y2 )…(Xn ,Yn )
に対応しているとすると、ある点Pi (Xi ,Yi )
(n =1,2,…,n )の点における内積の値は、任意
の数k 例えば正整数等で定まる二点Pi-k (Xi-k ,Y
i-k ),Pi+k (Xi+k ,Yi+k )を求め、これら3個
の点Pi ,Pi-k ,Pi+k により形成される2つのベク
トルPi-k Pi ,Pi Pi+k を用いて次の式1より求め
ることができる。
In general, the shape of binary data can be held by a closed loop of one or more aligned point sequences. Then, the point sequences P1, P2, ..., Pn on the contour have coordinates (X1, Y1), (X2, Y2), ... (Xn, Yn), respectively.
Corresponding to, a certain point Pi (Xi, Yi)
The value of the inner product at the point of (n = 1, 2, ..., N) is an arbitrary number k, for example, two points Pi-k (Xi-k, Y
ik), Pi + k (Xi + k, Yi + k) and using two vectors Pi-k Pi, Pi Pi + k formed by these three points Pi, Pi-k, Pi + k Can be obtained from the following equation 1.

【0029】 なお、任意の数k の値は設計コンセプトにより決定すれ
ば良く、特に、本実施例に限定されるものではない。
[0029] The value of the arbitrary number k may be determined according to the design concept and is not particularly limited to this embodiment.

【0030】更に、第1曲線区間における曲率の値の算
出方法について詳示する。
Further, the method of calculating the curvature value in the first curve section will be described in detail.

【0031】一般に、y=f(x)により表される曲線
上の点(x,y)における曲率Rは次の式2より求める
ことができる。
In general, the curvature R at the point (x, y) on the curve represented by y = f (x) can be obtained from the following equation 2.

【0032】 しかし、点列は45度毎の離散的な方向を取るため、式
2の微分値を左右の隣接点だけで近似計算しても良い結
果が得られない。そこで平均化の概念を用いて、近傍の
k個の点列についての平均的に考えることとした。い
ま、曲率を求めようとする点(xi ,yi )の左右に隣
接するk個の平均を考えたときの微分値を次のように算
出する。
[0032] However, since the point sequence takes a discrete direction for every 45 degrees, a good result cannot be obtained even if the differential value of Expression 2 is approximated only by the left and right adjacent points. Therefore, using the concept of averaging, it was decided to consider an average of k neighboring point sequences. Now, a differential value is calculated as follows when an average of k points adjacent to the left and right of the point (xi, yi) whose curvature is to be obtained is considered.

【0033】 そして、本発明者は種々の検討を行った結果として、曲
率を用いた区間分割には、少なくとも曲率の値、内積の
値、ヘッセの距離の3つのパラメータを利用することが
望ましく、例えば、曲線区間の各点における曲率を、図
3に示すように、曲率を求める対象点から左右に各16
ドット(点)と、対象点を挟んで16ドットの3つの範
囲より曲率を求め、前述したように曲率の値が±0.0
5以内を示す点を検出し、512メッシュの場合には、
区間長が32ドット以上で、各点の内積の値が−0.9
9より小さく、ヘッセの距離が1.4142を越えない
時に第2直線(斜線)区間として抽出するようにしたも
のである。第2直線区間を判断するにあたり、ヘッセの
距離を用いることにより、対象点における区間の中心線
からの膨らみを規制することができ、第2直線区間とし
ての直線性の精度を所望値に保持することが容易にでき
る。
[0033] As a result of various studies, the present inventor preferably uses at least three parameters of curvature value, inner product value, and Hesse distance for segmentation using curvature. As shown in FIG. 3, the curvature at each point of the section is 16 degrees to the left and right from the target point for which the curvature is calculated.
The curvature is calculated from three ranges of 16 dots across the dot (point) and the target point, and the curvature value is ± 0.0 as described above.
Detect points that are within 5 and if 512 mesh,
The section length is 32 dots or more, and the inner product value of each point is -0.9
It is smaller than 9 and is extracted as the second straight line (diagonal line) section when the Hesse distance does not exceed 1.4142. By using the Hessian distance in determining the second straight line section, the bulge from the center line of the section at the target point can be regulated, and the accuracy of the linearity as the second straight line section is held at a desired value. Can be done easily.

【0034】なお、曲率を求める対象点からのドットの
数、曲率の値、内積の値、ヘッセの距離等の値は設計コ
ンセプトにより決定すれば良く、特に、本実施例に限定
されるものではない。
The number of dots from the target point for which the curvature is to be calculated, the value of the curvature, the value of the inner product, the value of the Hessian distance, etc. may be determined by the design concept, and is not particularly limited to this embodiment. Absent.

【0035】このように本実施例によれば、輪郭の点の
内積の値を算出し、この内積の値のうち所定値より小さ
い点を用いて先ず第1直線区間と第1曲線区間とに区切
り、つぎに曲率を用いて前記第1曲線区間内を第2直線
区間と第2曲線区間とに区切り、全体として第1直線区
間と第2直線区間とからなる直線区間および第2曲線区
間からなる曲線区間との区切るものである。そして、こ
のようにして得られた近似区間をもって近似するように
しているので、再生された近似図形は直線と曲線との接
続状態が極めて滑らかなものとなるとともに、各近似区
間内の近似精度を向上させることができる。
As described above, according to the present embodiment, the value of the inner product of the points of the contour is calculated, and the point smaller than the predetermined value among the values of the inner product is first used to determine the first straight line section and the first curved section. Then, the first curved section is divided into a second straight section and a second curved section by using a curvature, and then a straight section and a second curved section which are composed of the first straight section and the second straight section as a whole. It is to be separated from the curved section. Further, since the approximation is performed by using the approximation section obtained in this way, the reconstructed approximate figure has a very smooth connection between the straight line and the curve, and the approximation accuracy in each approximation section is improved. Can be improved.

【0036】図5は本発明方法による具体例を示すもの
であり、同図aの原図形を本発明方法に基づいて近似再
生した同図bの図形の方が、従来方法に基づいて近似再
生した同図cの図形に比較して、極めて再生精度に優れ
ていることが判る。
FIG. 5 shows a specific example according to the method of the present invention. The original figure of FIG. 5A is reproduced approximately by the method of the present invention, and the figure of FIG. It can be seen that the reproduction accuracy is extremely superior to the figure shown in FIG.

【0037】なお、上述した実施例においては、第1直
線区間を第2直線区間と第2曲線区間とに分割する際
に、各点の曲率の値を用いてその分割を行うようにして
いるが、各点の曲率の値を求めた後、更に隣接する点曲
率の絶対値の差分をとり、この差分の値を用いて第2直
線区間と第2曲線区間との分割を行うことにより、曲率
が図4に示すように±に振れるのを低減させることがで
き、近似精度をより一層向上させることができる。
In the above embodiment, when the first straight line section is divided into the second straight line section and the second curve section, the division is performed by using the curvature value of each point. However, after obtaining the value of the curvature of each point, the difference between the absolute values of the adjacent point curvatures is taken, and the value of this difference is used to divide the second straight line section and the second curved section, It is possible to reduce the fluctuation of the curvature in ± as shown in FIG. 4, and it is possible to further improve the approximation accuracy.

【0038】すなわち、図2におけるステップST19の
後に「曲線区間の全ての点において隣接する点との曲率
の絶対値の差分をとる」ステップを追加して、その後ス
テップST20およびステップST21における曲率の値
を、この差分の値に置き換えて処理を行うようにすれば
よい。そして、このステップST20およびステップST
21において判断の基準となる差分の値としては、例えば
±0.000002という値を用い、この値以内の点を
探すように処理を行うとよい。
That is, after the step ST19 in FIG. 2, a step of "taking the difference in absolute value of curvature between adjacent points at all points in the curve section" is added, and then the value of curvature in steps ST20 and ST21. May be replaced with the value of this difference to perform the processing. Then, this step ST20 and step ST
For example, a value of ± 0.000002 is used as the value of the difference that serves as a criterion for determination in 21, and processing may be performed so as to search for points within this value.

【0039】このように、曲率の値を求めた後に、更に
隣接する点との曲率の絶対値の差分を求めて、この差分
の値を用いることにより、曲率が±に振れることを低減
させることができ、近似精度をより一層向上させること
ができる。
As described above, after the curvature value is calculated, the difference between the absolute values of the curvatures of adjacent points is calculated and the difference value is used to reduce the fluctuation of the curvature to ±. Therefore, the approximation accuracy can be further improved.

【0040】なお、本発明は、前記実施例に限定される
ものではなく、必要に応じて変更することができる。
The present invention is not limited to the above embodiment, but can be modified as necessary.

【0041】[0041]

【発明の効果】以上説明したように本発明の位置データ
の近似方法によれば、再生された近似図形は隣接する近
似区間の接続状態が極めて滑らかなものとなるととも
に、各近似区間内の近似精度を向上させるという極めて
優れた効果を奏する。
As described above, according to the position data approximating method of the present invention, the reproduced approximate figure has a very smooth connection state between the adjacent approximating sections, and the approximation in each approximating section is made. It has an extremely excellent effect of improving accuracy.

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

【図1】本発明の位置データの近似方法を示すフローチ
ャート
FIG. 1 is a flowchart showing a method of approximating position data according to the present invention.

【図2】本発明の位置データの近似方法を示すフローチ
ャート
FIG. 2 is a flowchart showing a method for approximating position data according to the present invention.

【図3】曲率を求める範囲を説明する説明図FIG. 3 is an explanatory diagram illustrating a range for obtaining a curvature.

【図4】曲率の±の振れを説明する説明図FIG. 4 is an explanatory diagram for explaining ± deflection of curvature.

【図5】aは近似再生の対象となる原図形、bは本発明
方法による近似再生図形、cは従来方法による近似再生
図形
5A is an original figure to be an approximate reproduction target, b is an approximate reproduction figure by the method of the present invention, and c is an approximate reproduction figure by a conventional method.

【図6】従来の方法により輪郭の点を分割した場合を示
す図
FIG. 6 is a diagram showing a case where contour points are divided by a conventional method.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 点列形状の位置データを近似区間に区切
るとともに、関数を用いて近似させる位置データの近似
方法において、前記位置データの各点における内積の値
に基づいて点列形状の位置データを直線近似区間と曲線
近似区間との2つの近似区間として区分した後に、前記
曲線近似区間内を当該曲線近似区間内の各点における曲
率の値に基づいてさらに直線近似区間と曲線近似区間と
に区分し、全体として直線近似区間と曲線近似区間との
2つの近似区間に分割して近似することを特徴とする位
置データの近似方法。
1. A method for approximating position data in which point position shape position data is divided into approximation intervals and is approximated using a function, based on the value of the inner product at each point of the position data, the point sequence shape position data Is divided into two approximation sections, a linear approximation section and a curve approximation section, and then the inside of the curve approximation section is further divided into a linear approximation section and a curve approximation section based on the value of the curvature at each point in the curve approximation section. A method for approximating position data, which is characterized by dividing into two and approximating as a whole into a linear approximation section and a curve approximation section.
JP4087236A 1992-04-08 1992-04-08 Position data approximation method Expired - Fee Related JP2980769B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4087236A JP2980769B2 (en) 1992-04-08 1992-04-08 Position data approximation method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4087236A JP2980769B2 (en) 1992-04-08 1992-04-08 Position data approximation method

Publications (2)

Publication Number Publication Date
JPH05290159A true JPH05290159A (en) 1993-11-05
JP2980769B2 JP2980769B2 (en) 1999-11-22

Family

ID=13909202

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4087236A Expired - Fee Related JP2980769B2 (en) 1992-04-08 1992-04-08 Position data approximation method

Country Status (1)

Country Link
JP (1) JP2980769B2 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005270480A (en) * 2004-03-26 2005-10-06 Sumitomo Rubber Ind Ltd Golf swing measuring system
JP2005270534A (en) * 2004-03-26 2005-10-06 Sumitomo Rubber Ind Ltd Golf swing measuring method
JP2009296150A (en) * 2008-06-03 2009-12-17 Konica Minolta Business Technologies Inc Image processor, image conversion method and computer program
JP2009302758A (en) * 2008-06-11 2009-12-24 Konica Minolta Business Technologies Inc Image processing device, image conversion method, and computer program

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005270480A (en) * 2004-03-26 2005-10-06 Sumitomo Rubber Ind Ltd Golf swing measuring system
JP2005270534A (en) * 2004-03-26 2005-10-06 Sumitomo Rubber Ind Ltd Golf swing measuring method
JP2009296150A (en) * 2008-06-03 2009-12-17 Konica Minolta Business Technologies Inc Image processor, image conversion method and computer program
US8699809B2 (en) 2008-06-03 2014-04-15 Konica Minolta Business Technologies, Inc. Image processing apparatus, image conversion method, and recording medium
JP2009302758A (en) * 2008-06-11 2009-12-24 Konica Minolta Business Technologies Inc Image processing device, image conversion method, and computer program
US8670623B2 (en) 2008-06-11 2014-03-11 Konica Minolta Business Technologies, Inc. Image processing apparatus, image conversion method, and computer-readable storage medium for computer program based on calculated degree of complexity

Also Published As

Publication number Publication date
JP2980769B2 (en) 1999-11-22

Similar Documents

Publication Publication Date Title
US4674058A (en) Method and apparatus for flexigon representation of a two dimensional figure
US5115479A (en) Image data processing method for compressing an image by approximating curves using a polynomial
KR100209455B1 (en) Character generation method and device
US6556711B2 (en) Image processing apparatus and method
CN101452444B (en) A Method for Rapid Editing and Typesetting of Handwritten Information
US6201542B1 (en) Three-dimensional polygon display apparatus using progressive polygon data
JPH05290159A (en) Method for approximating position data
US5388166A (en) Image drawing apparatus
US20110242616A1 (en) Image processing apparatus, image processing method, and computer-readable medium
JPH05290160A (en) Method for approximating position data
US5841906A (en) Graphic form recognition apparatus
JPH08194716A (en) Picture processing method and its device
JPH07334648A (en) Method and device for processing image
JP2646476B2 (en) Logo / Illustration data input / output device and input / output method
JP3624013B2 (en) Image processing method and apparatus
JP2813059B2 (en) Position data approximation method
JPH06175638A (en) Character generation method and apparatus
JPH0461558A (en) Picture processing method
JP2954434B2 (en) Image processing method and apparatus
JPH06282658A (en) Method and device for generating curved line data
JPH11120366A (en) Segment contiguity relation determining method
JP2755299B2 (en) Image processing method
JPH08186706A (en) Image processor and method therefor
JPH05257450A (en) Character generation device
JP2717013B2 (en) Position data approximation method

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

LAPS Cancellation because of no payment of annual fees