[go: up one dir, main page]

JPH04170684A - Method for approximating positional data - Google Patents

Method for approximating positional data

Info

Publication number
JPH04170684A
JPH04170684A JP2298389A JP29838990A JPH04170684A JP H04170684 A JPH04170684 A JP H04170684A JP 2298389 A JP2298389 A JP 2298389A JP 29838990 A JP29838990 A JP 29838990A JP H04170684 A JPH04170684 A JP H04170684A
Authority
JP
Japan
Prior art keywords
boundary point
position data
straight line
curve
prescribed value
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
JP2298389A
Other languages
Japanese (ja)
Other versions
JP2813059B2 (en
Inventor
Hiroshi Moriyama
浩 森山
Junichi Asahina
朝比奈 純一
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

Landscapes

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

Abstract

PURPOSE:To smooth a connection state between a straight line and a curve by adopting only a boundary point candidate for setting up the approximation accuracy of approximate position data to a certain positional data to a prescribed value as a boundary point when a dot shape has a boundary point on which a straight line is connected to a curve. CONSTITUTION:All of connection points between a straight line and a curve are adopted as boundary point candidates, and whether the value of a narrow angle be tween the curve and the straight line on the boundary point candidates is a prescribed value or not is decided and an element P2 more than the prescribed value is removed from the boundary point candidates. Whether the ratio of length of segments between the curve and straight line on the boundary point candidates is a prescribed value or not is decided and an element P4 more than the prescribed value is removed from the boundary point candidates. Furthermore, whether the whole shape formed by the straight line and the curve through the boundary candidate is a projected shape or not is decided, and a point P7 having no projected shape is removed from the boundary point candidates. Consequently, approximate position data in adjacent approxi mate sections can be smoothly joined, and while holding the approximate accuracy of an original graphic to the position data at a prescribed value, the original graphic can be reproduced.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は点列形状の位置データを関数を用いて近似する
位置データの近似方法に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a position data approximation method for approximating position data in the form of a point sequence using a function.

〔従来の技術〕[Conventional technology]

一般に、文字、図形等の形状をイメージリーダで読み取
り、これをCRTや用紙等に再生することが盛んに行な
われている。
In general, it is common practice to read the shapes of characters, figures, etc. with an image reader and reproduce them on CRTs, paper, and the like.

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

このようなアウトラインフォントを利用した図形処理は
、文字、図形等の輪郭を点列形状としてとらえ、これを
読み取ったり再生するものであるが、今日においては原
図形の位置データをそのまま用いないで、これを任意の
関数を利用して近似した近似位置データを用いている。
Graphic processing using such outline fonts captures the contours of characters, graphics, etc. as a series of dots and reads and reproduces them. Approximate position data obtained by approximating this using an arbitrary function is used.

なぜならば、原図形の位置データは、一般に、変化が大
きいためメモリに記憶する場合に大容量を必要とし、各
種のデータ処理に要する時間も長時間必要となり、再生
にも時間がかかってしまう。これを例えば任意の3次関
数等を用いて近似することにより位置データの圧縮を図
り、記憶容量の低減化、各種デ−タ処理の迅速化、再生
時間の短縮化を図り、しかも原図形とほぼ同等の再生図
形を再生することができる。
This is because the position data of the original figure generally changes significantly, so it requires a large capacity to be stored in a memory, requires a long time for various data processing, and takes time to reproduce. For example, by approximating this using an arbitrary cubic function, etc., the position data can be compressed, reducing storage capacity, speeding up various data processing, and shortening playback time. Almost equivalent reproduction figures can be reproduced.

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

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

しかしながら、従来においては、関数を用いて近似する
近似区間を決定する際に、全部の接続点を区間を定める
点として採用していたために、近似位置データを再生す
ると、隣接する近似区間の接続点における接合具合が理
論的に滑らかとならず、著しい場合には鋭く角ぼってし
まうという不都合があった。
However, in the past, when determining the approximate interval to be approximated using a function, all connection points were used as points to define the interval, so when the approximate position data is played back, the connection points of adjacent approximate intervals are The problem is that the joint is not theoretically smooth, and in extreme cases it becomes sharply rounded.

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

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

本発明の位置データの近似方法は、点列形状の位置デー
タを、前記点列形状を複数の近似区間に区切り、各近似
区間内で関数を用いて近似して近似位置データとする位
置データの近似方法において、前記点列形状が直線と曲
線とが接続されている境界点を有する場合には、前記位
置データに対する近似位置データの近似精度を所定値に
する前記境界点により区切られた近似区間をもって近似
することを特徴とする。
The position data approximation method of the present invention divides the point sequence shape into a plurality of approximation intervals, and approximates the position data using a function within each approximation interval to obtain approximate position data. In the approximation method, when the point sequence shape has a boundary point where a straight line and a curved line are connected, an approximation interval separated by the boundary point that makes the approximation accuracy of the approximate position data to the position data a predetermined value. It is characterized by approximating by .

〔作 用〕[For production]

本発明によれば、境界点によって近似区間を区切る場合
に、位置データに対する近似位置データの近似精度を所
定値にする境界点により区切るようにしているので、こ
れに基ずいて近似された近似位置データは、境界点にお
いて極めて滑らかに接合されることとなる。
According to the present invention, when an approximate interval is divided by a boundary point, it is divided by a boundary point that makes the approximation accuracy of the approximate position data to a predetermined value to the position data, so the approximate position approximated based on this is The data will be joined very smoothly at the boundary points.

〔実施例〕〔Example〕

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

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

まず、境界点の選択がスタートすると、ステップST、
におい手、境界点候補の抽出が行なわれる。この境界点
候補は直線と曲線の接続点の全部が対象とされる。
First, when the selection of boundary points starts, step ST,
Smell hand and boundary point candidates are extracted. These boundary point candidates include all connecting points between straight lines and curved lines.

次に、ステップST2からST4に従って境界点である
か否かが判定される。
Next, it is determined whether it is a boundary point according to steps ST2 to ST4.

すなわち、ステップST2においては、境界点候補にお
ける直線と曲線との挟角の大きさが所定値以上であるか
否かが判断され、所定値以上のものが更に次にステップ
S T 3の判断へ進行する。
That is, in step ST2, it is determined whether the included angle between the straight line and the curved line in the boundary point candidate is greater than or equal to a predetermined value, and if it is greater than or equal to the predetermined value, the process proceeds to step ST3. proceed.

このステップST2においては、直線から曲線への移り
変わりの滑らかさを調べ、滑らかでないものはステップ
6へ進行して境界点候補より除去される。第2図により
更に説明すると、同図(a)の境界点候補P1と、同図
(b)の境界点候補P2とにおいては、一方の点P1は
ひきつづき境界点候補とされ、他方の点P2は境界点候
補から除去される。この場合、直線と曲線との挟む角度
の内積(COS)を求めて、その値と所定値とを比較す
ることにより簡単に判断することができる。
In this step ST2, the smoothness of the transition from a straight line to a curved line is checked, and if the transition is not smooth, the process proceeds to step 6 and is removed from the boundary point candidates. To further explain with reference to FIG. 2, between the boundary point candidate P1 in FIG. 2(a) and the boundary point candidate P2 in FIG. are removed from the boundary point candidates. In this case, this can be easily determined by finding the inner product (COS) of the angle between the straight line and the curve and comparing that value with a predetermined value.

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

ステップ4においては、境界点候補を挟んだ直線と曲線
との全体形状が凸性を備えているか否かが判断され、凸
性を備えているものが更に次のステップ5へ進行し、凸
性を備えていないものはステップ6へ進行して境界点候
補より除去される。
In step 4, it is determined whether the overall shape of the straight line and curved line sandwiching the boundary point candidate has convexity, and if it has convexity, the process proceeds to the next step 5. Those that do not have a boundary point proceed to step 6 and are removed from the boundary point candidates.

このステップST5においては、境界点候補を挟んだ直
線と曲線との全体形状が凸性を備えている場合が、凸性
を備えていない場合に比べて接続状態が滑らかとなるか
らである。第4図により更に説明すると、同図(a)と
(b)との境界点候補P5.P7を判断する場合に、直
線から曲線方向に延長した線分1と、境界点候補P5か
らP6またはP7からP8の曲線2と、両境界点候補P
5からP6またはP7からP8とを結ぶ線分3との関係
が、線分1と3との間に線分2が位置するような場合に
凸性があると判断する。第4図においては、一方の点P
5はひきつづき境界点候補とされ、他方の点P7は境界
点候補から除去される。
This is because, in step ST5, when the overall shape of the straight line and curved line sandwiching the boundary point candidate has a convexity, the connection state becomes smoother than when the overall shape has no convexity. To further explain with reference to FIG. 4, boundary point candidate P5. When determining P7, line segment 1 extending from the straight line in the curve direction, boundary point candidates P5 to P6 or curve 2 from P7 to P8, and both boundary point candidates P
If the relationship with line segment 3 connecting line segment 5 to P6 or P7 to P8 is such that line segment 2 is located between line segments 1 and 3, it is determined that there is convexity. In Figure 4, one point P
5 continues to be a boundary point candidate, and the other point P7 is removed from the boundary point candidates.

その後テップST−に進行して、ステップ4において境
界点候補と判断された点を境界点としてメモリーする。
Thereafter, the process proceeds to step ST-, and the points determined as boundary point candidates in step 4 are stored as boundary points.

その後チップST7に進行して、全部の境界点候補に対
する判断が終了したか否かが判断される。
Thereafter, the process proceeds to chip ST7, where it is determined whether or not determinations for all boundary point candidates have been completed.

終了していない場合には、ステップ2からの判断が繰返
され、終了している場合には、境界点の抽出を終了する
If it has not been completed, the determination from step 2 is repeated, and if it has been completed, the boundary point extraction is ended.

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

また、本発明によって求められた境界点に、位置データ
より求められる変曲点並びに極値点のうち近似精度を良
くするものを加えて近似区間を設定して、近似位置デー
タ求めて再生すると第5図のようになり、第6図に示し
た単に直線と曲線との接続点だけをもって区切った近似
区間により求めた従来方法による再生図形と比較すると
、その近似精度が格段に優れていることがわかる。
Furthermore, if an approximate interval is set by adding to the boundary points obtained by the present invention, inflection points and extreme points obtained from the position data that improve the approximation accuracy, and the approximate position data is obtained and reproduced, the As shown in Figure 5, the approximation accuracy is much better than that shown in Figure 6, which is obtained by the conventional method using approximation sections separated only by connecting points between straight lines and curves. Recognize.

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

〔発明の効果〕〔Effect of the invention〕

本発明の位置データの近似方法はこのように構成され作
用するものであるから、隣接する近似区間の近似位置デ
ータを滑らかに接合することができ、しかも原図形の位
置データに対する近似精度を所定値に保持して再生する
ことができる等の効果を奏する。
Since the position data approximation method of the present invention is configured and operates as described above, it is possible to smoothly join the approximate position data of adjacent approximation sections, and also to maintain the approximation accuracy with respect to the position data of the original figure to a predetermined value. It has the advantage that it can be held and played back.

【図面の簡単な説明】 第1図は本発明の位置データの近似方法により近似する
場合を示すフローチャート、第2図(a)、(b)は挟
角の大きさの判断の説明図、第3図(a)、(b)は線
分比の大きさの判断の説明図、第4図(a)、(b)は
凸性の判断の説明図、第5図は本発明方法により近似し
た再生図、第6図は従来方法により近似したデータの再
生線図である。 出願人代理人  中  尾  俊  輔第1図 第2図 (a)(b) 第3図 (a)        (b) 第4図 第5図 第6図
[BRIEF DESCRIPTION OF THE DRAWINGS] FIG. 1 is a flowchart showing the case of approximation by the position data approximation method of the present invention, FIGS. Figures 3 (a) and (b) are diagrams for explaining the determination of the size of line segment ratios, Figures 4 (a) and (b) are diagrams for explaining the determination of convexity, and Figure 5 is an illustration of the method approximated by the method of the present invention. FIG. 6 is a reproduction diagram of data approximated by the conventional method. Applicant's agent Shunsuke Nakao Figure 1 Figure 2 (a) (b) Figure 3 (a) (b) Figure 4 Figure 5 Figure 6

Claims (1)

【特許請求の範囲】[Claims] 点列形状の位置データを、前記点列形状を複数の近似区
間に区切り、各近似区間内で関数を用いて近似して近似
位置データとする位置データの近似方法において、前記
点列形状が直線と曲線とが接続されている境界点を有す
る場合には、前記位置データに対する近似位置データの
近似精度を所定値にする前記境界点により区切られた近
似区間をもって近似することを特徴とする位置データの
近似方法。
In a method for approximating position data in which the point sequence shape is divided into a plurality of approximation intervals and approximated using a function within each approximation interval to obtain approximate position data, the point sequence shape is a straight line. and a curve, the position data is characterized in that when the position data has a boundary point where the approximate position data is connected to the position data, the position data is approximated using an approximation interval separated by the boundary point that makes the approximation accuracy of the approximate position data to a predetermined value. approximation method.
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 true JPH04170684A (en) 1992-06-18
JP2813059B2 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
JP2010003142A (en) * 2008-06-20 2010-01-07 Konica Minolta Business Technologies Inc Outlining method and image compressing method using the method, outlining device and outlining program

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4086060B2 (en) 2005-08-17 2008-05-14 トヨタ自動車株式会社 Point sequence approximation method and point sequence approximation apparatus

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63257072A (en) * 1987-04-14 1988-10-24 Fujitsu Ltd Pattern data compression method
JPS63303473A (en) * 1987-06-03 1988-12-12 Fujitsu Ltd Pattern data compression method using curve approximation
JPH01184586A (en) * 1988-01-19 1989-07-24 Fujitsu Ltd System for compressing pattern data by curve approximation

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63257072A (en) * 1987-04-14 1988-10-24 Fujitsu Ltd Pattern data compression method
JPS63303473A (en) * 1987-06-03 1988-12-12 Fujitsu Ltd Pattern data compression method using curve approximation
JPH01184586A (en) * 1988-01-19 1989-07-24 Fujitsu Ltd System for compressing pattern data by curve approximation

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010003142A (en) * 2008-06-20 2010-01-07 Konica Minolta Business Technologies Inc Outlining method and image compressing method using the method, outlining device and outlining program

Also Published As

Publication number Publication date
JP2813059B2 (en) 1998-10-22

Similar Documents

Publication Publication Date Title
US5119439A (en) Method of and apparatus for extracting image contour data
CN101996414B (en) Method and device for rendering concave polygon
US5936637A (en) Image processing system having outline font data input
JPH04170684A (en) Method for approximating positional data
JP2717013B2 (en) Position data approximation method
JPH0646408B2 (en) Split image processing method
JP2980769B2 (en) Position data approximation method
JP3624013B2 (en) Image processing method and apparatus
JP2980770B2 (en) Position data approximation method
JPH07121734A (en) Character image editing device
JPH0686222A (en) Still picture reproducing device
JP3801792B2 (en) 3D-shaped cutting device, cutting method, and storage medium storing cutting processing program
JPS6081683A (en) Dot pattern enlargement/reduction method
JPH06100906B2 (en) Character processing method
US5995674A (en) Image processing apparatus with shape-correction of a contour-specified figure
JP2755145B2 (en) Division point setting method
JP3721763B2 (en) How to create a 3D model
JP3536894B2 (en) Graphic processing unit
JP2618468B2 (en) Document processing device
JP3657725B2 (en) Line figure image processing method
JPH04338879A (en) Portrait generating device
JPH06303507A (en) Moving picture generating device
JPH09114925A (en) Optical character reader
JP2954434B2 (en) Image processing method and apparatus
JPH05282440A (en) Approximating method for position data

Legal Events

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