JP2980770B2 - Position data approximation method - Google Patents

Position data approximation method

Info

Publication number
JP2980770B2
JP2980770B2 JP4088747A JP8874792A JP2980770B2 JP 2980770 B2 JP2980770 B2 JP 2980770B2 JP 4088747 A JP4088747 A JP 4088747A JP 8874792 A JP8874792 A JP 8874792A JP 2980770 B2 JP2980770 B2 JP 2980770B2
Authority
JP
Japan
Prior art keywords
position data
point
points
section
approximate
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 - Fee Related
Application number
JP4088747A
Other languages
Japanese (ja)
Other versions
JPH05290160A (en
Inventor
森山  浩
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ARUPUSU DENKI KK
Original Assignee
ARUPUSU DENKI KK
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 ARUPUSU DENKI KK filed Critical ARUPUSU DENKI KK
Priority to JP4088747A priority Critical patent/JP2980770B2/en
Publication of JPH05290160A publication Critical patent/JPH05290160A/en
Application granted granted Critical
Publication of JP2980770B2 publication Critical patent/JP2980770B2/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)

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 position data of a point sequence using a function.

【0002】[0002]

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

【0003】この場合、アウトラインフォントと称し、
文字、図形等の輪郭部のみの位置データを読み取り、こ
の輪郭部に囲まれている部分を文字、図形等として再生
することが行われている。
In this case, an outline font is called,
2. Description of the Related Art Position data of only a contour portion such as a character or a figure is read, and a portion surrounded by the contour portion is reproduced as a character or a figure.

【0004】このようなアウトラインフォントを利用し
た図形処理は、文字、図形等の輪郭を点列形状としてと
らえ、これを読み取ったり再生するものであるが、今日
においては原図形の位置データをそのまま用いないで、
これを任意の関数を利用して近似した近似位置データを
用いている。なぜならば、原図形の位置データは、一般
に、変化が大きいためメモリに記憶する場合に大容量を
必要とし、各種のデータ処理に要する時間も長時間必要
となり、再生にも時間がかかってしまう。これを例えば
任意の3次関数等を用いて近似することにより位置デー
タの圧縮を図り、記憶容量の低減化、各種データ処理の
迅速化、再生時間の短縮化を図り、しかも原図形とほぼ
同等の再生図形を再生することができる。
In such graphic processing using an outline font, outlines of characters, figures, and the like are taken as a row of dots, and these are read or reproduced. Not
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 when stored in a memory because the position data is largely changed, and 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. Can be reproduced.

【0005】従来の位置データの近似方法においては、
例えば図3のaに示す原図形「い」の左下端のはね上げ
部分を近似する場合に、図4に示すように、原図形の輪
郭の点を所望の点の数毎に均等に分割して近似区間を形
成し、この区切られた各区間に対して、それぞれ任意の
関数を用いて位置データを近似していた。
In the conventional position data approximation method,
For example, when approximating the flipped-up portion at the lower left corner of the original graphic "i" shown in FIG. 3A, as shown in FIG. 4, the points of the contour of the original graphic are equally divided for each desired number of points. An approximate section is formed, and position data is approximated to each of the divided sections using an arbitrary function.

【0006】[0006]

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

【0007】本発明はこれらの点に鑑みてなされたもの
であり、前述した従来のものにおける問題点を克服し、
隣接する区間の近似位置データを滑らかに接合すること
ができる位置データの近似方法を提供することを目的と
する。
[0007] The present invention has been made in view of these points, and overcomes the above-mentioned problems in the conventional art.
An object of the present invention is to provide a position data approximation method that can smoothly join approximate position data of adjacent sections.

【0008】[0008]

【課題を解決するための手段】前述した目的を達成する
ため本発明の位置データの近似方法は、点列形状の位置
データを区間に区切るとともに、関数を用いて近似させ
る位置データの近似方法において、前記位置データの各
点における余弦の値が予め設定した値以下となる点のう
ち、予め設定したパラメータ値の数以上に連続する点列
形状の位置データを直線区間とし、前記直線区間以外を
曲線区間として2つの近似区間に分割し近似することを
特徴としている。
In order to achieve the above object, a position data approximation method according to the present invention is directed to a position data approximation method for dividing a point sequence shape position data into sections and approximating the position data using a function. , among the points which the value of the put that cosine in each point of the position data is equal to or less than preset value, and the position data of the column-shaped consecutive points less than the number of preset parameter values and a straight section, said straight section Are divided into two approximation sections as curve sections for approximation.

【0009】[0009]

【作用】前述した構成からなる本発明の位置データの近
似方法によれば、区間を区切る場合に、位置データに対
する輪郭の各点における余弦の値が予め設定した値以下
となる点のうち、予め設定したパラメータ値の数以上に
連続する点列形状の位置データを直線区間とし、前記直
線区間以外を曲線区間として2つの近似区間に分割して
区切るようにしているので、これに基づいて近似された
近似位置データは極めて滑らかに接合されるとともに、
原図形の位置データに対して再生される近似位置データ
の精度を所望の内容にすることができる。
SUMMARY OF According to approximation of the position data of the present invention having the structure described above, when delimiting the section of the point at which the cosine value that put on each point of the contour with respect to the position data is less than or equal to a preset value Since the position data in the form of a point sequence that is continuous over the number of parameter values set in advance is defined as a straight section, and other than the straight section is divided into two approximate sections as a curved section, the data is divided based on this. The approximated approximate position data is joined very smoothly,
The accuracy of the approximate position data reproduced with respect to the position data of the original figure can be set to a desired content.

【0010】[0010]

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

【0011】図1は本発明に係る位置データの近似方法
を示すフローチャートであり、図2は本発明の位置デー
タの近似方法により輪郭の点を分割した場合を示す図で
あり、図3は近似対象の一例の原図形と本発明方法およ
び従来方法による近似再生図形とを示す図である。
FIG. 1 is a flowchart showing a position data approximation method according to the present invention, FIG. 2 is a diagram showing a case where a contour point is divided by the position data approximation method according to the present invention, and FIG. FIG. 4 is a diagram showing an original graphic as an example of an object and approximate reproduced graphics according to the method of the present invention and the conventional method.

【0012】図1に示すように、位置データの近似方法
が開始されると、ステップST10において、輪郭の各点
における余弦の値を算出する。
[0012] As shown in FIG. 1, the approximation of the position data is started, in step ST10, computes the value of the cosine that put on each point of the contour <br/>.

【0013】つぎに、ステップST11において、余弦の
値が予め設定した値以下、本実施例においては−0.9
9以下の点を探す。この点が直線の始点となる。
Next, in step ST11, the value of the cosine is equal to or less than a preset value, and in this embodiment, -0.9.
Look for points below 9. This point is the starting point of the straight line.

【0014】つぎに、ステップST12において、直線の
始点の次の点(直線の終点)の余弦の値が−0.99以
下かどうかを判断し、ステップST12の判断がYESの
場合には、ステップST13に進行し、直線の終点を延長
(直線の始点の次の次の点)し、ステップST12へ戻
り、ステップST12の判断がNOになるまで、直線の終
点を順次延長させて繰り返す。
Next, in step ST12, it is determined whether or not the value of the cosine of the point following the start point of the straight line (end point of the straight line) is equal to or less than -0.99, and if the determination in step ST12 is YES, the process proceeds to step ST12. Proceeding to ST13, the end point of the straight line is extended (the next point after the start point of the straight line), and the process returns to step ST12. The end point of the straight line is sequentially extended and repeated until the determination in step ST12 becomes NO.

【0015】前記ステップST12の判断がNOの場合に
は、ステップST14に進行する。
[0015] If the judgment in step ST12 is NO, proceeds to Step ST1 4.

【0016】このステップST14において余弦の値が−
0.99以下の点のうち、予め設定したパラメータ値の
数以上、本実施例においては33点以上連続して有るか
どうかを判断し、ステップ14の判断がYESの場合に
は、ステップST15に進行して直線区間として抽出し、
つぎのステップST16へ進行する。
[0016] The value of the cosine Te this step ST1 4 smell -
Of the points 0.99 or less, it is determined whether or not there are consecutively more than the preset number of parameter values, and in this embodiment, more than 33 points. If the determination in step 14 is YES, the process proceeds to step ST15. Proceed and extract as a straight section,
The process proceeds to the next step ST16.

【0017】前記ステップST14の判断がNOの場合に
は、ステップST17に進行して曲線区間として、つぎの
ステップST16へ進行する。
If the determination in step ST14 is NO, the process proceeds to step ST17, and proceeds to the next step ST16 as a curved section.

【0018】つぎに、ステップST16において、輪郭の
すべての点について判定が終了したかどうかを判断し、
ステップST16の判断がNOの場合には、ステップST
11に戻り、ステップST16の判断がYESになるまで繰
り返す。
Next, in step ST16, it is determined whether or not the determination has been completed for all points of the contour.
If the determination in step ST16 is NO, step ST16
Returning to step 11, the process is repeated until the determination in step ST16 becomes YES.

【0019】前記ステップST16の判断がYESの場合
には、つぎのステップST18へ進行し、直線区間以外の
区間を総て曲線区間として抽出し、つぎのステップST
19へ進行し、各区間の開始点の属性、すなわち直線か曲
線かを決定して一連の処理を終了させる。
If the determination in step ST16 is YES, the process proceeds to the next step ST18, where all sections other than the straight section are extracted as curved sections, and the next step ST18 is performed.
The process proceeds to step 19, where the attribute of the start point of each section, that is, whether it is a straight line or a curve, is determined, and a series of processing is completed.

【0020】このように本実施例においては、ステップ
ST11において輪郭の点の余弦の値が−0.99以下の
点を直線の始点とし、この直線の始点から余弦の値が−
0.99以下の点が33点以上連続した場合に直線区間
として抽出し、残りの区間を曲線区間として抽出する。
[0020] Thus, in the present embodiment, the value of the cosine of the points of the contour is the starting point of the straight line the points -0.99 or less in the step ST11, the value of the starting point or et cosine of the straight line -
When 33 or less points that are 0.99 or less continue, they are extracted as straight sections, and the remaining sections are extracted as curved sections.

【0021】このように、余弦を用いて輪郭点を区分し
た例を図2に示す。この図2は、従来と同様に図3のa
に示す原図形に対して本発明を適用したものである。
FIG. 2 shows an example in which the contour points are divided using the cosine . This FIG. 2 is similar to the related art in FIG.
The present invention is applied to the original graphic shown in FIG.

【0022】なお、本実施例においては、−0.99以
の余弦の値が33点以上連続した場合に直線区間とし
たが、余弦の値および連続点の数は設計コンセプトによ
り決定すれば良く、特に、本実施例に限定されるもので
はない。
In this embodiment, when a cosine value of -0.99 or less continues for 33 points or more, a straight section is defined. However , the cosine value and the number of continuous points may be determined by a design concept. In particular, the present invention is not limited to this embodiment.

【0023】前述したように輪郭の点を直線区間と曲線
区間とに区分した後は、従来と同様に各区間に対して所
定の関数を持って近似させて近似位置データとする。
After the contour points are divided into straight sections and curved sections as described above, each section is approximated with a predetermined function in the same manner as in the prior art to obtain approximate position data.

【0024】つぎに、輪郭の各点における余弦の値の算
出方法について詳示する。
Next, shown in detail the method for calculating the cosine values that put on each point of the contour.

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

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

【0027】このように本実施例によれば、輪郭の点
余弦の値を算出し、この余弦の値のうち所定値より小さ
い点を用いて直線区間と曲線区間とに区切られた近似区
間をもって近似するようにしているので、再生された近
似図形は直線と曲線との接続状態が極めて滑らかなもの
となるとともに、各近似区間内の近似精度を向上させる
ことができる。
As described above, according to the present embodiment, the point of the contour
Calculates the value of cosine, since so as to approximate with approximation interval delimited on the straight section and a curved section with respect less than a predetermined value among the cosine of this value, the reproduced approximate figure is a straight line The connection between the curve and the curve becomes extremely smooth, and the approximation accuracy in each approximation section can be improved.

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

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

【0030】[0030]

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

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

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

【図2】本発明の位置データの近似方法により輪郭の点
を分割した場合を示す図
FIG. 2 is a diagram showing a case where a contour point is divided by the position data approximation method of the present invention.

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

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

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 点列形状の位置データを区間に区切ると
ともに、関数を用いて近似させる位置データの近似方法
において、 前記位置データの各点における余弦の値が予め設定した
値以下となる点のうち、予め設定したパラメータ値の数
以上に連続する点列形状の位置データを直線区間とし、
前記直線区間以外を曲線区間として2つの近似区間に分
割し近似することを特徴とする位置データの近似方法。
With 1. A point separates the position data of a column shape to the section, the approximation method of position data to be approximated using a function, the value of the put that cosine in each point of the position data is less than or equal to a preset value Of the points, the position data in the form of a point sequence that is continuous over the number of preset parameter values is defined as a straight section,
A method for approximating position data, comprising dividing a portion other than the straight line section into a curved section into two approximate sections and performing approximation.
JP4088747A 1992-04-09 1992-04-09 Position data approximation method Expired - Fee Related JP2980770B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4088747A JP2980770B2 (en) 1992-04-09 1992-04-09 Position data approximation method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4088747A JP2980770B2 (en) 1992-04-09 1992-04-09 Position data approximation method

Publications (2)

Publication Number Publication Date
JPH05290160A JPH05290160A (en) 1993-11-05
JP2980770B2 true JP2980770B2 (en) 1999-11-22

Family

ID=13951505

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4088747A Expired - Fee Related JP2980770B2 (en) 1992-04-09 1992-04-09 Position data approximation method

Country Status (1)

Country Link
JP (1) JP2980770B2 (en)

Also Published As

Publication number Publication date
JPH05290160A (en) 1993-11-05

Similar Documents

Publication Publication Date Title
US5115479A (en) Image data processing method for compressing an image by approximating curves using a polynomial
US4674058A (en) Method and apparatus for flexigon representation of a two dimensional figure
EP0549351B1 (en) Image processing method and apparatus
GB2147474A (en) Method of processing character or pictorial image data
JP2980770B2 (en) Position data approximation method
US5936637A (en) Image processing system having outline font data input
JP2980769B2 (en) Position data approximation method
US5563627A (en) High-quality character generator
JPH0125072B2 (en)
JPH06100906B2 (en) Character processing method
JPH04170684A (en) Method for approximating positional data
JPH0452475B2 (en)
JPH0134423B2 (en)
JP2806679B2 (en) Character generator
JP2717013B2 (en) Position data approximation method
JPS6081683A (en) Expanding and contracting method of dot pattern
JP3120542B2 (en) Character symbol generator
KR900002811B1 (en) Method for compressing character or pictorial image data
JP3061542B2 (en) Outline figure transformation device
JPH04141789A (en) Device and method for highly accurate vector approximation
JP3162918B2 (en) Image processing apparatus and method
JP2521756B2 (en) Pattern data generator
JPH07191657A (en) Character generation device
JPH08329280A (en) Image composition device
KR900003876B1 (en) Method for compressing character or pictorial image data

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