[go: up one dir, main page]

JPH05290160A - Method for approximating position data - Google Patents

Method for approximating position data

Info

Publication number
JPH05290160A
JPH05290160A JP4088747A JP8874792A JPH05290160A JP H05290160 A JPH05290160 A JP H05290160A JP 4088747 A JP4088747 A JP 4088747A JP 8874792 A JP8874792 A JP 8874792A JP H05290160 A JPH05290160 A JP H05290160A
Authority
JP
Japan
Prior art keywords
position data
section
point
points
inner product
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
JP4088747A
Other languages
Japanese (ja)
Other versions
JP2980770B2 (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 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

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

Abstract

PURPOSE:To smoothly connect approximation position data of adjacent sections by performing approximation processing by dividing position data of a dot array shape into two straight and curved sections according to the values of the inner products at respective points of the position data. CONSTITUTION:When the approximation position of the position data is started, the inner product values at the respective points on the contour are calculated. A point where the inner product value is <=-0.99 is searched for. This point is the start point of a straight line. Then it is judged whether or not the inner product value at a point following the start point of the straight line is <=-0.99. When so, it is judged whether or not >=33 points where the inner product values are <=-0.99. When so, the section is extracted as the straight section. The section other than the extracted straight section is all extracted as the curved section. Then the points on the contour are classified by the straight section and curved section and then the respective sections are approximated with a specific function to generate approximation position data.

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.

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

【0006】[0006]

【発明が解決しようとする課題】しかしながら、前述し
た従来の位置データの近似方法においては、関数を用い
て近似する区間を決定する際に、原図形の輪郭の点を所
望の点の数毎に均等に分割することにより行っていたた
めに、区間内に直線部分と曲線部分とが混在しており、
近似させた位置データを再生すると、図3のcの近似再
生図形に示すように、隣接する区間の接続点における接
合具合が理論的に滑らかとならず、位置データの再生品
質が原図形より極めて劣るという不都合があった。
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, as shown in the approximate reproduction figure of FIG. 3C, the joint condition 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 an inconvenience of being inferior.

【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.

【0008】[0008]

【課題を解決するための手段】前述した目的を達成する
ため本発明の位置データの近似方法は、点列形状の位置
データを区間に区切るとともに、関数を用いて近似させ
る位置データの近似方法において、前記位置データの各
点における内積の値に基づいて点列形状の位置データを
直線区間と曲線区間との2つの区間に分割して近似する
ことを特徴としている。
In order to achieve the above-mentioned object, the position data approximation method according to the present invention is a method for approximating position data in the form of a point sequence, which divides the position data into a section and uses a function to approximate the position data. The position data having a point sequence shape is divided into two sections, a straight section and a curved section, and approximated based on the value of the inner product at each point of the position data.

【0009】[0009]

【作用】前述した構成からなる本発明の位置データの近
似方法によれば、区間を区切る場合に、位置データに対
する輪郭の各点の内積の値を用いて直線区間と曲線区間
とに区切るようにしているので、これに基づいて近似さ
れた近似位置データは極めて滑らかに接合されるととも
に、原図形の位置データに対して再生される近似位置デ
ータの精度を所望の内容にすることができる。
According to the position data approximating method of the present invention having the above-described structure, when a section is divided, it is divided into a straight section and a curved section by using the inner product value of each point of the contour with respect to the position data. Therefore, the approximate position data approximated based on this is 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から図3につ
いて説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described below with reference to FIGS.

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

【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になるまで、直線の終
点を順次延長させて繰り返す。
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 (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.

【0015】前記ステップST12の判断がNOの場合に
は、ステップ14に進行する。
If the determination in step ST12 is NO, the process proceeds to step 14.

【0016】このステップ14において内積の値が−0.
99以下の点が連続して33点以上有るかどうかを判断
し、ステップ14の判断がYESの場合には、ステップS
T15に進行して直線区間として抽出し、つぎのステップ
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 T15 and is extracted as a straight line section, and then 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 to make a curved section, and the process proceeds to step ST16.

【0018】つぎに、ステップST16において、輪郭の
すべての点について判定が終了したかどうかを判断し、
ステップST16の判断がNOの場合には、ステップST
11に戻り、ステップST16の判断がYESになるまで繰
り返す。
Next, in step ST16, it is judged whether or not the judgment is completed for all 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.

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

【0020】このように本実施例においては、ステップ
ST11において輪郭の点の内積の値が−0.99以下の
点を直線の始点とし、この直線の始点から内積の値が−
0.99以下の点が33点以上連続した場合に直線区間
として抽出し、残りの区間を曲線区間として抽出する。
As described above, in this embodiment, the point whose inner product of contour points is -0.99 or less is set as the start point of the straight line in step ST11, and the value of the inner product is-
When 33 points or more in succession of 0.99 or less are extracted as a straight line section, the remaining section is extracted as a curve section.

【0021】このように、内積を用いて輪郭点を区分し
た例を図2に示す。この図2は、従来と同様に図3のa
に示す原図形に対して本発明を適用したものである。
FIG. 2 shows an example of dividing the contour points by using the inner product as described above. This FIG. 2 is the same as FIG.
The present invention is applied to the original figure shown in FIG.

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

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

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

【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-k Pi ,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. If the point sequences P1, P2, ..., Pn on the contour respectively correspond to the coordinates (X1, Y1), (X2, Y2) ... (Xn, Yn), then a certain point Pi (Xi, Yi). (N
= 1,2, ..., n), the value of the inner product can be any number
k Two points Pi-k (Xi-k, Yi-k) determined by a positive integer
), 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 It can be obtained from the following equation 1.

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

【0027】このように本実施例によれば、輪郭の点の
内積の値を算出し、この内積の値のうち所定値より小さ
い点を用いて直線区間と曲線区間とに区切られた近似区
間をもって近似するようにしているので、再生された近
似図形は直線と曲線との接続状態が極めて滑らかなもの
となるとともに、各近似区間内の近似精度を向上させる
ことができる。
As described above, according to this embodiment, the value of the inner product of the points of the contour is calculated, and the point which is smaller than a predetermined value among the values of the inner product is used to approximate the straight section and the curved section. Since the reproduced approximated figure has an extremely smooth connection between the straight line and the curved line, the approximated accuracy in each approximated section can be improved.

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

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

【0030】[0030]

【発明の効果】以上説明したように本発明の位置データ
の近似方法によれば、再生された近似図形は隣接する近
似区間の接続状態が極めて滑らかなものとなるととも
に、各近似区間内の近似精度を向上させるという極めて
優れた効果を奏する。
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 adjacent approximating sections, and the approximation within 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 diagram showing a case where contour points are divided by the position data approximation method of the present invention.

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

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

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 点列形状の位置データを区間に区切ると
ともに、関数を用いて近似させる位置データの近似方法
において、前記位置データの各点における内積の値に基
づいて点列形状の位置データを直線区間と曲線区間との
2つの近似区間に分割し近似することを特徴とする位置
データの近似方法。
1. A method for approximating position data in which point position shape position data is divided into intervals and is approximated using a function, the point sequence shape position data is calculated based on an inner product value at each point of the position data. A method for approximating position data, characterized by dividing and approximating into two approximation sections, a straight section and a curved section.
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 true JPH05290160A (en) 1993-11-05
JP2980770B2 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
JP2980770B2 (en) 1999-11-22

Similar Documents

Publication Publication Date Title
JP2844639B2 (en) Character pattern signal generator
JPH05290160A (en) Method for approximating position data
JPH11167634A (en) Image area dividing method, image area dividing device, recording medium storing image area dividing program, image retrieving method, image retrieving device and recording medium storing image retrieval program.
US5134572A (en) Partitioned image processing system for an image processing device
JP2980769B2 (en) Position data approximation method
JP3774494B2 (en) Data storage device
JP3624013B2 (en) Image processing method and apparatus
JPH06100906B2 (en) Character processing method
JP2813059B2 (en) Position data approximation method
JP2806679B2 (en) Character generator
US20020012469A1 (en) Picture image processing method, processing apparatus and recording medium
JP2717013B2 (en) Position data approximation method
JPH0134423B2 (en)
JPH08329280A (en) Image synthesizer
JP2954434B2 (en) Image processing method and apparatus
JP2001256508A (en) Method and device for animation generation, and computer readable recording medium recorded with program of animation generation method executable on computer
JPH04141789A (en) Device and method for highly accurate vector approximation
JPH06303507A (en) Moving picture generating device
JPH07203178A (en) Image data processing method
JPH06243247A (en) Shape describing device
JPH0227486A (en) Image scaling device
JPH10143676A (en) Picture processor and method for processing the same and recording medium
JPH11120366A (en) Segment contiguity relation determining method
JPS6152780A (en) Image data processing method
JPH05250479A (en) Curve interpolator

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