JP2813059B2 - Position data approximation method - Google Patents

Position data approximation method

Info

Publication number
JP2813059B2
JP2813059B2 JP2298389A JP29838990A JP2813059B2 JP 2813059 B2 JP2813059 B2 JP 2813059B2 JP 2298389 A JP2298389 A JP 2298389A JP 29838990 A JP29838990 A JP 29838990A JP 2813059 B2 JP2813059 B2 JP 2813059B2
Authority
JP
Japan
Prior art keywords
boundary point
curve
position data
candidate
straight line
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
JP2298389A
Other languages
Japanese (ja)
Other versions
JPH04170684A (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.)
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 JP2298389A priority Critical patent/JP2813059B2/en
Publication of JPH04170684A publication Critical patent/JPH04170684A/en
Application granted granted Critical
Publication of JP2813059B2 publication Critical patent/JP2813059B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は点列形状の位置データを関数を用いて近似す
る位置データの近似方法に関する。
Description: 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.

〔従来の技術〕[Conventional technology]

一般に、文字、図形等の形状をイメージリーダで読み
取り、これをCRTや用紙等に再生することが盛んに行な
われている。
2. Description of the Related Art In general, reading shapes of characters, figures, and the like with an image reader and reproducing them on a CRT, paper, or the like has been actively performed.

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

このようなアウトラインフォントを利用した図形処理
は、文字、図形等の輪郭を点列形状としてとらえ、これ
を読み取ったり再生するものであるが、今日においては
原図形の位置データをそのまま用いないで、これを任意
の関数を利用して近似した近似位置データを用いてい
る。なぜならば、原図形の位置データは、一般に、変化
が大きいためメモリに記憶する場合に大容量を必要と
し、各種のデータ処理に要する時間も長時間必要とな
り、再生にも時間がかかってしまう。これを例えば任意
の3次関数等を用いて近似することにより位置データの
圧縮を図り、記憶容量の低減化、各種データ処理の迅速
化、再生時間の短縮化を図り、しかも原図形とほぼ同等
の再生図形を再生することができる。
The graphic processing using such an outline font captures the outline of a character, a graphic, or the like as a point sequence and reads or reproduces it.Today, without using the position data of the original graphic as it is, 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 of a large change, 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, the reproduction time can be shortened, and it is almost equivalent to the original figure. Can be reproduced.

従来の近似方法においては、直線と曲線との接続点の
全部を求め、これらの接続点によって区切られた各近似
区間について、それぞれ任意の関数を用いて近似してい
た。
In the conventional approximation method, all connection points between a straight line and a curve are obtained, and each approximation section divided by these connection points is approximated using an arbitrary function.

〔発明が解決しようとする課題〕[Problems to be solved by the invention]

しかしながら、従来においては、関数を用いて近似す
る近似区間を決定する際に、全部の接続点を区間を定め
る点として採用していたために、近似位置データを再生
すると、隣接する近似区間の接続点における接合具合が
理論的に滑らかとならず、著しい場合には鋭く角ばって
しまうという不都合であった。
However, conventionally, when determining an approximate section to be approximated using a function, all connection points are employed as points for determining the section. Therefore, when the approximate position data is reproduced, the connection points of adjacent approximate sections are determined. However, there was a problem that the joining condition in the above was not theoretically smooth, and when it was remarkable, it was sharply angled.

本発明はこれらの点に鑑みてなされたものであり、隣
接する近似区間の近似位置データを滑らかに接合するこ
とができ、しかも原図形の位置データに対する近似精度
を所定値に保持して再生することのできる位置データの
近似方法を提供することを目的とする。
SUMMARY OF THE INVENTION The present invention has been made in view of these points, and makes it possible to smoothly join approximate position data of adjacent approximate sections, and to reproduce the original figure while maintaining the approximate accuracy with respect to the position data of the original figure at a predetermined value. It is an object of the present invention to provide a method of approximating position data that can be performed.

〔課題を解決するための手段〕[Means for solving the problem]

本発明の位置データの近似方法は、点列形状の位置デ
ータを、前記点列形状を複数の近似区間に区切り、各近
似区間内で関数を用いて近似して近似位置データとし、
直線と曲線とのつながりを滑らかにする位置データの近
似方法において、直線と曲線との接続部となる境界点の
候補を抽出するステップと、抽出された境界点候補に対
し、直線と曲線との挟角が第1の所定値以上の場合は該
当する境界点を境界点候補として残すステップと、直線
と曲線との線分比が第2の所定値以上の場合は該当する
境界点を境界点候補として残すステップと、直線と曲線
との全体形状が凸性を備えた場合に該当する境界点を境
界点候補として残すステップと、残った境界点により区
切られた近似区間をもって近似するステップとを有する
ことを特徴とする。
The position data approximation method of the present invention, the position data of the point sequence shape, the point sequence shape is divided into a plurality of approximation sections, and approximated using a function within each approximation section as approximate position data,
In a position data approximation method for smoothing a connection between a straight line and a curve, a step of extracting a candidate of a boundary point to be a connecting portion between the straight line and the curve, and If the included angle is equal to or greater than a first predetermined value, the corresponding boundary point is left as a candidate for a boundary point. If the line segment ratio between the straight line and the curve is equal to or greater than a second predetermined value, the corresponding boundary point is set as the boundary point. A step of leaving as a candidate, a step of leaving a boundary point corresponding to a case where the entire shape of the straight line and the curve has convexity as a boundary point candidate, and a step of approximating with an approximate section delimited by the remaining boundary point. It is characterized by having.

〔作 用〕(Operation)

本発明によれば、直線と曲線とをつなぐために境界点
によって近似区間を区切る場合に、まず直線と曲線との
接続となる境界点の候補を抽出し、次に抽出された境界
点候補に対し、直線と曲線との挟角が第1の所定値以上
の場合は該当する境界点を境界点候補として残し、次に
直線と曲線との線分比が第2の所定値以上の場合は該当
する境界点を境界点候補として残し、次に直線と曲線と
の全体形状が凸性を備えた場合に該当する境界点を境界
点候補として残し、次に残った境界点により区切られた
近似区間をもって近似するために、直線と曲線とが境界
点において極めて滑らかに接合されることとなる。
According to the present invention, when an approximate section is divided by a boundary point in order to connect a straight line and a curve, first, a candidate for a boundary point which is a connection between the straight line and the curve is extracted, and then, the extracted boundary point candidate is On the other hand, when the included angle between the straight line and the curve is equal to or larger than the first predetermined value, the corresponding boundary point is left as a boundary point candidate, and when the line segment ratio between the straight line and the curve is equal to or larger than the second predetermined value, The relevant boundary point is left as a boundary point candidate, and then, when the overall shape of the straight line and the curve has convexity, the relevant boundary point is left as a boundary point candidate, and then an approximation separated by the remaining boundary points In order to approximate with a section, a straight line and a curve are joined very smoothly at a boundary point.

〔実施例〕〔Example〕

以下、本発明の実施例を第1図から第4図について説
明する。
An embodiment of the present invention will be described below with reference to FIGS.

第1図は本発明の一実施例に基ずく境界点の選択方法
を示すフローチャートであり、以下順に説明する。
FIG. 1 is a flowchart showing a method of selecting a boundary point according to an embodiment of the present invention, which will be described in order.

まず、境界点の選択がスタートすると、ステップST1
において、境界点候補の抽出が行なわれる。この境界点
候補は直線と曲線の接続点の全部が対象とされる。
First, when selection of a boundary point starts, step ST 1
In, a boundary point candidate is extracted. This boundary point candidate covers all connection points between a straight line and a curve.

次に、ステップST2からST4に従って境界点であるか否
かが判定される。
Next, whether or not the boundary points are determined according to ST 4 from Step ST 2.

すなわち、ステップST2においては、境界点候補にお
ける直線と曲線との挟角の大きさが所定値以上であるか
否かが判断され、所定値以上のものが更に次にステップ
ST3の判断へ進行する。このステップST2においては、直
線から曲線への移り変わりの滑らかさを調べ、滑らかで
ないものはステップへ進行して境界点候補より除去さ
れる。第2図により更に説明すると、同図(a)の境界
点候補P1と、同図(b)の境界点候補P2とにおいては、
一方の点P1はひきつづき境界点候補とされ、他方の点P2
は境界点候補から除去される。この場合、直線と曲線と
の挟む角度の内積(cos)を求めて、その値と所定値と
を比較することにより簡単に判断することができる。
That is, in step ST 2, the magnitude of the included angle between the straight line and the curve is determined whether a predetermined value or more at the boundary point candidate, further then step not less than a predetermined value
To proceed to judgment ST 3. In this step ST 2, examine the smoothness of transition from straight to curved, those that are not smooth are removed from the boundary point candidates proceeds to step 6. To further explain with reference to FIG. 2, the boundary point candidate P1 in FIG. 2A and the boundary point candidate P2 in FIG.
One point P1 continues to be a boundary point candidate, and the other point P2
Are removed from the boundary point candidates. In this case, it can be easily determined by obtaining the inner product (cos) of the angle between the straight line and the curve and comparing the obtained value with a predetermined value.

ステップST3においては、境界点候補を挟んだ直線と
曲線との線分長さの比が所定値以上であるか否かを判断
され、所定値以上のものが更に次のステップの判断へ
進行し、所定値以上でないものはステップへ進行して
境界点候補より除去される。このステップST3において
は、境界点候補を挟んだ直線と曲線との各線分長さが、
一方が他方に対して非常に短い場合には、その点を境界
点として近似区間点として得ても、良好なつなぎ処理効
果を得られないからである。第3図により更に説明する
と、同図(a)と(b)との境界点候補P3,P4を判断す
る場合に、長い線分に対する短い線分の長さの比である
L1/L2並びにL3/L4を求め、所定値kより大きいか否かを
演算する。第3図においては、一方の点P3はひきつづき
境界点候補とされ、他方のP4は境界点候補から除去され
る。
In step ST 3, the ratio of line segment lengths of the lines and curves across the boundary point candidate is determined whether a predetermined value or more, more than the predetermined value to further determine the next step 4 If it does not exceed the predetermined value, it proceeds to step 6 and is removed from the boundary point candidates. In this step ST 3, each line segment lengths of the lines and curves across the boundary point candidates,
This is because if one is very short with respect to the other, even if the point is obtained as an approximate section point as a boundary point, a good connection processing effect cannot be obtained. To further explain with reference to FIG. 3, when judging boundary point candidates P3 and P4 between FIGS. 3A and 3B, it is the ratio of the length of a short line segment to a long line segment.
L1 / L2 and L3 / L4 are obtained, and whether or not L1 / L2 is larger than a predetermined value k is calculated. In FIG. 3, one point P3 continues to be a boundary point candidate, and the other P4 is removed from the boundary point candidates.

ステップにおいては、境界点候補を挟んだ直線と曲
線との全体形状が凸性を備えているか否かが判断され、
凸性を備えているものが更に次のステップへ進行し、
凸性を備えていないものはステップへ進行して境界点
候補より除去される。このステップST5においては、境
界点候補を挟んだ直線と曲線との全体形状が凸性を備え
ている場合が、凸性を備えていない場合に比べて接続状
態が滑らかになるからである。第4図により更に説明す
ると、同図(a)と(b)との境界点候補P5,P7を判断
する場合に、直線から曲線方向に延長した線分1と、境
界点候補P5からP6またはP7からP8の曲線2と、両境界点
候補P5からP6またはP7からP8とを結ぶ線分3との関係
が、線分1と3との間に線分2が位置するような場合に
凸性があると判断する。第4図においては、一方の点P5
はひきつづき境界点候補とされ、他方の点P7は境界点候
補から除去される。
In step 4 , it is determined whether or not the entire shape of the straight line and the curve sandwiching the boundary point candidate has convexity.
Those having convexity proceed to the next step 5 further,
Those having no convexity proceed to step 6 and are removed from the boundary point candidates. In this step ST 5, if is because connection state becomes smooth compared with the case without a convexity that the overall shape of the lines and curves across the boundary point candidate is provided with a convexity. To further explain with reference to FIG. 4, when judging boundary point candidates P5 and P7 between FIGS. 4A and 4B, a line segment 1 extending in a curved direction from a straight line and boundary point candidates P5 to P6 or The relationship between the curve 2 from P7 to P8 and the line segment 3 connecting both boundary point candidates P5 to P6 or P7 to P8 is convex when line segment 2 is located between line segments 1 and 3. It is determined that there is a possibility. In FIG. 4, one point P5
Is continued as a boundary point candidate, and the other point P7 is removed from the boundary point candidate.

その後ステップST5に進行して、ステップにおいて
境界点候補と判断された点を境界点としてメモリーす
る。
Then proceeds to step ST 5, memorize the point it is determined that the boundary point candidate as a boundary point in step 4.

その後テップST7に進行して、全部の境界点候補に対
する判断が終了したか否かが判断される。終了していな
い場合には、ステップからの判断が繰返され、終了し
ている場合には、境界点の抽出を終了する。
Then the program proceeds to step ST 7, whether the determination with respect to all the boundary point candidate been finished is determined. If not completed, the determination from step 2 is repeated, and if completed, the extraction of the boundary point ends.

このように本実施例によれば、点列形状が直線と曲線
とが接続されている境界点を有する場合には、位置デー
タに対する近似位置データの近似精度を所定値にする境
界点候補のみを境界点として採用し、それらの境界点に
より区切られた近似区間をもって近似するようにしてい
るので、再生された近似図形は直線と曲線との接続状態
が極めて滑らかなものとなる。
As described above, according to the present embodiment, when the point sequence shape has a boundary point where a straight line and a curve are connected, only boundary point candidates that make the approximation accuracy of the approximate position data to the position data a predetermined value are used. Adopted as boundary points and approximated by approximation sections delimited by those boundary points, the reproduced approximate figure has a very smooth connection between straight lines and curves.

また、本発明によって求められた境界点に、位置デー
タより求められる変曲点並びに極値点のうち近似精度を
良くするものを加えて近似区間を設定して、近似位置デ
ータ求めて再生すると第5図のようになり、第6図に示
した単に直線と曲線との接続点だけをもって区切った近
似区間により求めた従来方法による再生図形と比較する
と、その近似精度が格段に優れていることがわかる。
Further, the boundary point obtained by the present invention is added to the inflection point and the extreme value point obtained from the position data to improve the approximation accuracy, and an approximate section is set. As shown in FIG. 5, when compared with the reproduced figure obtained by the conventional method, which is obtained by the approximate section demarcated only by the connection point between the straight line and the curve shown in FIG. 6, the approximation accuracy is remarkably superior. Recognize.

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

〔発明の効果〕〔The invention's effect〕

本発明の位置データの近似方法はこのように構成され
作用するものであるから、隣接する近似区間の近似位置
データを滑らかに接合することができ、しかも原図形の
位置データに対する近似精度を所定値に保持して再生す
ることができる等の効果を奏する。
Since the position data approximation method of the present invention is constructed and operated in this way, it is possible to smoothly join the approximate position data of adjacent approximation sections, and to set the approximation accuracy for the position data of the original figure to a predetermined value. Thus, it is possible to obtain the effect of being able to hold and reproduce the image.

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

第1図は本発明の位置データの近似方法により近似する
場合を示すフローチャート、第2図(a),(b)は挟
角の大きさの判断の説明図、第3図(a),(b)は線
分比の大きさの判断の説明図、第4図(a),(b)は
凸性の判断の説明図、第5図は本発明方法により近似し
た再生図、第6図は従来方法により近似したデータの再
生線図である。
FIG. 1 is a flowchart showing a case of approximation by the position data approximation method of the present invention, FIGS. 2 (a) and 2 (b) are explanatory diagrams of the determination of the included angle, and FIGS. FIG. 4 (b) is an explanatory diagram for judging the magnitude of the line segment ratio, FIGS. 4 (a) and 4 (b) are explanatory diagrams for judging convexity, FIG. 5 is a reproduction diagram approximated by the method of the present invention, FIG. FIG. 3 is a reproduction diagram of data approximated by a conventional method.

───────────────────────────────────────────────────── フロントページの続き (58)調査した分野(Int.Cl.6,DB名) G06T 5/00 G09G 5/24 620──────────────────────────────────────────────────続 き Continued on the front page (58) Field surveyed (Int.Cl. 6 , DB name) G06T 5/00 G09G 5/24 620

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】点列形状の位置データを、前記点列形状を
複数の近似区間に区切り、各近似区間内で関数を用いて
近似して近似位置データとし、直線と曲線とのつながり
を滑らかにする位置データの近似方法において、直線と
曲線との接続部となる境界点の候補を抽出するステップ
と、抽出された境界点候補に対し、直線と曲線との挟角
が第1の所定値以上の場合は該当する境界点を境界点候
補として残すステップと、直線と曲線との線分比が第2
の所定値以上の場合は該当する境界点を境界点候補とし
て残すステップと、直線と曲線との全体形状が凸性を備
えた場合に該当する境界点を境界点候補として残すステ
ップと、残った境界点により区切られた近似区間をもっ
て近似するステップとを有することを特徴とする位置デ
ータの近似方法。
1. The position data of a point sequence shape is divided into a plurality of approximation sections of the point sequence shape, and approximated by using a function in each approximation section to obtain approximate position data, and a connection between a straight line and a curve is smoothed. Extracting a candidate of a boundary point to be a connecting portion between a straight line and a curve, wherein an angle between the straight line and the curve is set to a first predetermined value with respect to the extracted boundary point candidate. In the above case, the step of leaving the corresponding boundary point as a boundary point candidate, and the line segment ratio between a straight line and a curve
A step of leaving the corresponding boundary point as a candidate for a boundary point if the predetermined value is equal to or more than a step of leaving the corresponding boundary point as a candidate for a boundary point when the entire shape of the straight line and the curve has convexity. Approximating with an approximation section delimited by a boundary point.
JP2298389A 1990-11-05 1990-11-05 Position data approximation method Expired - Fee Related JP2813059B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2298389A JP2813059B2 (en) 1990-11-05 1990-11-05 Position data approximation method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2298389A JP2813059B2 (en) 1990-11-05 1990-11-05 Position data approximation method

Publications (2)

Publication Number Publication Date
JPH04170684A JPH04170684A (en) 1992-06-18
JP2813059B2 true JP2813059B2 (en) 1998-10-22

Family

ID=17859072

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2298389A Expired - Fee Related JP2813059B2 (en) 1990-11-05 1990-11-05 Position data approximation method

Country Status (1)

Country Link
JP (1) JP2813059B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1755014A2 (en) 2005-08-17 2007-02-21 Toyota Jidosha Kabushiki Kaisha Point-sequence approximation method and apparatus

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4770880B2 (en) * 2008-06-20 2011-09-14 コニカミノルタビジネステクノロジーズ株式会社 Outline conversion method, image compression method using the same, outline conversion apparatus, image compression apparatus, outline conversion program, and image compression program

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2507413B2 (en) * 1987-04-14 1996-06-12 富士通株式会社 Pattern data compression method
JP2527187B2 (en) * 1987-06-03 1996-08-21 富士通株式会社 Compression method of pattern data by curve approximation
JPH01184586A (en) * 1988-01-19 1989-07-24 Fujitsu Ltd System for compressing pattern data by curve approximation

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1755014A2 (en) 2005-08-17 2007-02-21 Toyota Jidosha Kabushiki Kaisha Point-sequence approximation method and apparatus
US7778740B2 (en) 2005-08-17 2010-08-17 Toyota Jidosha Kabushiki Kaisha Point-sequence approximation method and apparatus

Also Published As

Publication number Publication date
JPH04170684A (en) 1992-06-18

Similar Documents

Publication Publication Date Title
US5165103A (en) Image data processing method for selective partial image storage
JPS63145577A (en) Pattern data generating method
JP2813059B2 (en) Position data approximation method
US5315671A (en) Image processing method and apparatus
US5936637A (en) Image processing system having outline font data input
US5134572A (en) Partitioned image processing system for an image processing device
JP2717013B2 (en) Position data approximation method
JP2980769B2 (en) Position data approximation method
JP2755145B2 (en) Division point setting method
JP3093906B2 (en) Image processing apparatus and method
JP3734605B2 (en) End point detection method and cutting apparatus for core drawing of line figure
JP2000235637A (en) Image processing system and image processing method
JP4309987B2 (en) Raster data editing method and apparatus
JP2653998B2 (en) Optical data recording card
JP2737279B2 (en) Load module relative address comparison method
JP2507344B2 (en) Data registration method and data retrieval method in image file system
JPS59128662A (en) Raster vector converter
JPH05290160A (en) Method for approximating position data
JPS6331830B2 (en)
JP2838556B2 (en) Image processing device
JP2969751B2 (en) Character recognition processing method
JP4253077B2 (en) Raster data editing device
JPH05282440A (en) Approximating method for position data
JPH07282230A (en) Method for connecting map drawing data
JPH08167027A (en) Free curve recognition processing method

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees