JPH04205676A - Method for approximating polygonal of point sequence data - Google Patents
Method for approximating polygonal of point sequence dataInfo
- Publication number
- JPH04205676A JPH04205676A JP34065390A JP34065390A JPH04205676A JP H04205676 A JPH04205676 A JP H04205676A JP 34065390 A JP34065390 A JP 34065390A JP 34065390 A JP34065390 A JP 34065390A JP H04205676 A JPH04205676 A JP H04205676A
- Authority
- JP
- Japan
- Prior art keywords
- point
- sequence data
- point sequence
- line segment
- polygonal
- 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.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims description 18
- 239000000284 extract Substances 0.000 claims 1
- 238000010586 diagram Methods 0.000 description 8
- 238000005452 bending Methods 0.000 description 6
- 238000007796 conventional method Methods 0.000 description 4
- 238000000605 extraction Methods 0.000 description 4
- 239000002253 acid Substances 0.000 description 2
- 239000003795 chemical substances by application Substances 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000004904 shortening Methods 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
Landscapes
- Image Processing (AREA)
Abstract
Description
【発明の詳細な説明】
(産業上の利用分野)
本発明は、点列データを一括して記憶することなく、所
定の許容誤差内で、高速に折れ線近似する点列データの
折れ線近似方法に関するものである。DETAILED DESCRIPTION OF THE INVENTION (Industrial Application Field) The present invention relates to a polygonal line approximation method for point sequence data, which performs polygonal line approximation at high speed within a predetermined tolerance without storing the point sequence data all at once. It is something.
(従来の技術)
従来、このような分野の技術としては、特開平1−96
771号公報に記載されるものがあった。(Prior art) Conventionally, as a technology in this field, Japanese Patent Application Laid-Open No. 1-96
There was one described in Publication No. 771.
一般に、物体の2値画像の境界点追跡を行って得られる
境界線の座標点列データや、エツジ画像中のエツジ点追
跡を行って得られるエツジ線の座標点列データから、近
似的な線図形を作成したり、点列データを圧縮しなり、
物体の輪郭やエツジの近似図形からその物体の形状認識
を行おうとする場合、処理の簡単さ等の観点から点列デ
ータの折れ線近似が使用されることが多い。その−例を
第2図に示す。Generally, an approximate line is calculated from the coordinate point sequence data of the boundary line obtained by performing boundary point tracking of a binary image of an object or the coordinate point sequence data of the edge line obtained by performing edge point tracking in an edge image. Create shapes, compress point sequence data,
When attempting to recognize the shape of an object from an approximate figure of its outline or edge, polygonal line approximation of point sequence data is often used from the viewpoint of processing simplicity. An example is shown in FIG.
第2図は、前記文献に記載された従来における点列デー
タの折れ線近似の方法を示す図である。FIG. 2 is a diagram showing the conventional method of polygonal line approximation of point sequence data described in the above-mentioned literature.
この図に示すように、従来の点列データの折れ線近似の
方法は、点列データと近似線分とのずれに関する閾値(
許容誤差)εが指定された場合、XY座標において点列
データをPl、・・・、 Pi 。As shown in this figure, the conventional method for polygonal line approximation of point sequence data requires a threshold (
Tolerance) When ε is specified, the point sequence data is Pl, ..., Pi in the XY coordinates.
・・・、P 、P P 、・・・とすると
、始点Pn−1n’ n+1
1から現在の点P に至る仮の近似線分り。を考える。. . , P , P P , . . . is a tentative approximate line segment from the starting point Pn-1n' n+1 1 to the current point P. think of.
そして、部分点列P1.・・・、P、の各点から線分L
までの最大距離d、を計算し、該最大距離d。が閾値
ε以下ならば、次の点P1+1に移って前記の処理を繰
り返す。また、最大距離d。Then, partial point sequence P1. ..., P, line segment L from each point
Calculate the maximum distance d, to the maximum distance d. If is less than the threshold ε, move to the next point P1+1 and repeat the above process. Also, the maximum distance d.
が閾値εより大きいならば、直前の点P。−1を折れ点
として抽出し、つまり部分点列P 、・・・、Pn−1
の近似線分を点P1から点P、−1に至る線分L と
し、直前の点(折れ点)Pn−1を新たな始点として前
記の処理を繰り返し、点列ブタ−P1、・・・、P 、
・・・の折れ線を近似していた。is greater than the threshold ε, then the previous point P. −1 is extracted as a breaking point, that is, partial point sequence P , ..., Pn-1
The approximate line segment is set as the line segment L from point P1 to point P, -1, and the above process is repeated using the immediately previous point (break point) Pn-1 as a new starting point to create a point sequence pig P1,... , P ,
... was approximated as a polygonal line.
(発明が解決しようとする課題)
しかしながら、従来の折れ線近似の方法では、折れ点P
。−1が見つかるまで、つまり最大距離d、が閾値εよ
りも大きくなるまでは、現在のP。(Problem to be solved by the invention) However, in the conventional method of polygonal line approximation, the polygonal line
. −1 is found, that is, until the maximum distance d, is greater than the threshold ε.
から次の点Pn+1に移るたびに、点P1から点P0,
1までの全ての点に対して、仮の近似線分り、+1まで
の距離全毎回計算し、その最大距離dn+1を求める必
要がある。そのなめ、部分点列P1゜・・・、Pnか長
くなるにつれて、例えばその点列の長さの2乗に比例し
て処理時間が増大し、それを解決することが困難であっ
た。Every time you move from point P1 to point P0,
For all points up to 1, it is necessary to calculate the distances up to +1, which are temporary approximate line segments, every time, and find the maximum distance dn+1. Therefore, as the partial point sequence P1° .
本発明は前記従来技術が持っていた課題として、部分点
列が長くなるにつれて処理時間が増大する点について解
決した点列データの折れ線近似の方法を提供するもので
ある。The present invention provides a method of polygonal line approximation of point sequence data that solves the problem of the prior art, which is that the processing time increases as the partial point sequence becomes longer.
(課題を解決するための手段)
本発明は前記課題を解決するために、点列データの折れ
線近似の方法において、点列データ中の各点の座標デー
タが順次入力される毎に、該入力された現有の点、その
直前の点及び始点の3点のみから漸化式に基づき、該始
点と現在の点を結ぶ仮の近似線分と該始点から現在の点
に至る部分点列データとによって囲まれる領域に等しい
面積で、且つ該仮の近似線分を底辺とする3角形の高さ
を求める。そして、前記3角形の高さを前記仮の近似線
分と部分点列データとのずれを表わす指標として、予め
入力されている閾値と比較する。その結果、前記指標が
前記閾値よりも大きな場合には、前記直前の点を近似線
分の折れ点として抽出すると共に、その直前の点を新た
な始点及び現在の点を新たな直前の点として前記3角形
の高さの算出及び比較処理を前記点列データの終点まで
繰り返すことにより、前記点列データの全体を折れ線近
似するものである。(Means for Solving the Problems) In order to solve the above-mentioned problems, the present invention provides a method for polygonal line approximation of point sequence data. Based on only three points: the existing point, the point immediately before it, and the starting point, a temporary approximate line segment connecting the starting point and the current point and partial point sequence data from the starting point to the current point are generated. Find the height of a triangle that has an area equal to the area surrounded by and has the tentative approximate line segment as its base. Then, the height of the triangle is compared with a threshold value input in advance as an index representing the deviation between the tentative approximate line segment and the partial point sequence data. As a result, if the index is larger than the threshold, the immediately preceding point is extracted as a breaking point of the approximate line segment, and the immediately preceding point is set as a new starting point, and the current point is set as a new immediately preceding point. By repeating the calculation and comparison process of the height of the triangle until the end point of the point sequence data, the entire point sequence data is approximated by a polygonal line.
(作用)
本発明によれば、以上のように点列データの折れ線近似
の方法を構成しなので、第1図(a)の原理図に示すよ
うに、部分点列P 、・・・、Pnのデータと仮の近似
線分り。どのずれを、従来の方法のように、その部分点
列P 、・・・、Pnから線分L への最大距離dnで
表わすのではなく、仮の近似線分L と部分点列P1.
・・・2Pnとで囲まれな部分の面積S。と等面積で、
底辺が線分り、であるような三角形HP1P、の高さh
によってずれを表わす。そして、三角形HP1Pnの高
さI〕を閾値εと比較すれば、折れ点か否かが判定でき
、それによって折れ線近似の処理時間が短縮化される。(Function) According to the present invention, since the method of polygonal line approximation of point sequence data is configured as described above, as shown in the principle diagram of FIG. 1(a), partial point sequences P, ..., Pn data and tentative approximate line segments. Which deviation is not expressed by the maximum distance dn from the partial point sequence P 1 , . . .
...The area S of the part surrounded by 2Pn. With an area equal to
Height h of triangle HP1P whose base is a line segment
The deviation is expressed by . Then, by comparing the height I] of the triangle HP1Pn with the threshold ε, it is possible to determine whether it is a break point or not, thereby shortening the processing time of the broken line approximation.
従って、前記課題を解決できるのである。Therefore, the above problem can be solved.
(実施例)
第1図(a)、(b)は、本発明の実施例を示す点列デ
ータの折れ線近似の方法の原理図であり、この図を参照
しつつ本実施例の原理を説明する。(Example) FIGS. 1(a) and 1(b) are diagrams showing the principle of a method of polygonal line approximation of point sequence data showing an example of the present invention, and the principle of this example will be explained with reference to this figure. do.
第1図(a)、(b)のXY座標において、第1図(a
)に示す部分点列P1.・・・、P、、・・・の折れ線
を近似する場合、第1図(b)に示す3点P1−(Xl
、 Yl) 、 Pn−1= (Xn、 、 Yn−1
)−及びP −(Xo、Y、)によって囲よれる3角
形の面積をΔSoとする。そして面積ΔS の符号を、
点Pn−1が点P1から点Pnに向かうベクトルV、=
(Xn Xl 、Yn Yl )の左手側に
ある場合を正、右手側にある場合を負どする。すると、
3角形の面積ΔSoと、ペクト′しVn とVn−1−
(Xn −1−Xl ’ Yn−1−Yl )
の外積V、、xVnの間には、次式(1)が成り立つ。In the XY coordinates of Fig. 1(a) and (b), Fig. 1(a)
) shown in the partial point sequence P1. ..., P,, ..., the three points P1-(Xl
, Yl), Pn-1= (Xn, , Yn-1
)- and P-(Xo, Y, ) is the area of the triangle surrounded by ΔSo. And the sign of the area ΔS is
Point Pn-1 is a vector V pointing from point P1 to point Pn, =
If it is on the left hand side of (Xn Xl , Yn Yl ), it is positive, and if it is on the right hand side, it is negative. Then,
The area of the triangle ΔSo, the area of the triangle, Vn and Vn-1-
(Xn-1-Xl' Yn-1-Yl)
The following equation (1) holds true between the cross products V, , xVn.
2ΔS、 =V、−I XV、 ・” (1)そ
こで、第1図(a>に示す部分点列P1.・・・。2ΔS, =V, −I XV, ・” (1) Therefore, the partial point sequence P1.
P のデータと仮の近似線分し。とで囲まれる領域の面
積をS とし、その面積Snの符号を、領域が点P1か
ら点P、に向かう線分Lnの左手側にある場合を正、右
手側にある場合を負とすると、次の漸化式が成り立つ。P data and tentative approximate line segment. Let the area of the area surrounded by The following recurrence formula holds.
2S −2So−1+2ΔSn ”2S、−1+Vn−1xV。2S -2So-1+2ΔSn “2S, -1+Vn-1xV.
・・・(2)
いま、線分り、の長さをdとすると、底辺が線分り。で
面積がl501である3角形HP1P2の高さl〕は、
h=21 S、l/dであるから、次の判別式
%式%(3)
が成り立つときに、点Pn−1を折れ点と判定できる。...(2) Now, if the length of the line segment is d, the base is the line segment. The height l of triangle HP1P2 whose area is l501 is
Since h=21 S, l/d, point Pn-1 can be determined to be a breaking point when the following discriminant formula (3) holds true.
従って、本折れ線近似方法による折れ点の判定に必要な
処理は、部分点列P1.・・・、P、の長さに比例する
ものであり、従来の方法に比べ高速に処理が行える。Therefore, the processing necessary for determining a break point using the present broken line approximation method is as follows: partial point sequence P1. ..., P, and can be processed faster than conventional methods.
以上のような原理に基づき、順次送られてくる点列デー
タを折れ線近似し、その折れ点列データを順次出力する
折れ前抽出装置に適用した場合の一例を第3図に示す。FIG. 3 shows an example of the case where the present invention is applied to a pre-fold extraction device that approximates sequentially sent point sequence data to a broken line based on the above principle and sequentially outputs the broken point sequence data.
第3図は、折れ前抽出装置の構成ブロック図である。FIG. 3 is a block diagram of the structure of the fold front extraction device.
この折れ前抽出装置は、装置全体を制御する中央処理装
置(以下、CPUという)等で構成された制御回路1を
有している。制御回路1には、線分ベクトル計算回路2
及び外積和算回路3を介して折れ点判定回路4が接続さ
れている。This fold-edge extracting device has a control circuit 1 composed of a central processing unit (hereinafter referred to as CPU) and the like that controls the entire device. The control circuit 1 includes a line segment vector calculation circuit 2.
A bending point determination circuit 4 is connected via the cross product summation circuit 3.
また、制御回路1には、点列データの始点P1〈または
折れ点)のXY座標を格納する始点レジスタ5と、現在
読み込まれた点P1のXY座標を格納する現在点レジス
タ6と、現在の点Pnの直前に読み込まれた点P。−1
のXY座標を格納する直前点レジスタ7と、始点P1か
ら直前の点P。The control circuit 1 also includes a start point register 5 that stores the XY coordinates of the starting point P1 (or break point) of the point sequence data, a current point register 6 that stores the XY coordinates of the currently read point P1, and a current point register 6 that stores the XY coordinates of the currently read point P1. Point P read immediately before point Pn. -1
The immediately preceding point register 7 stores the XY coordinates of the point P1 immediately before the starting point P1.
1へ向かうベクトルVn−1のXY酸成分格納する直線
分レジスタ8とが、接続されている。さらに、始点P1
から現在の点Pnへ向かうベクトル■。A straight line register 8 that stores the XY acid components of the vector Vn-1 directed toward 1 is connected. Furthermore, starting point P1
A vector ■ heading from to the current point Pn.
のXY酸成分格納する現在線分レジスタつと、折れ線近
似の閾値ε2を格納する閾値レジスタ10と、ベクトル
の外積の和を格納するための外積和レジスタ11とが、
制御回路1に接続されている。A current line segment register for storing the XY acid components of
It is connected to the control circuit 1.
ここで、折れ線近似の誤差ε2と折れ線近似を行うべき
入力点列P1.P2.・・・、P 、・・・、Po
。のデータ(ただし、長さは2以上)は、制御回路1か
ら本装置に読み込まれて折れ線近似が行われ、その結果
として折れ点列(入力点列の部分点列)Pl、・・・、
Poのデータが、該制御回路1から順次出力されていく
ものとする。Here, the error ε2 of the polygonal line approximation and the input point sequence P1 to perform the polygonal line approximation. P2. ..., P, ..., Po. (However, the length is 2 or more) is read from the control circuit 1 to this device and subjected to polygonal line approximation, resulting in a polygonal point sequence (partial point sequence of the input point sequence) Pl, . . .
It is assumed that the data of Po are sequentially output from the control circuit 1.
第4図は、第3図の動作を示すフローチャートであり、
この図を参照しつつ、折れ前抽出装置の動作を説明する
。FIG. 4 is a flowchart showing the operation of FIG. 3,
The operation of the fold-edge extraction device will be described with reference to this figure.
まず、制御回路1は、折れ線近似の閾値ε2と点列デー
タの始点P1を、それぞれ閾値レジスター0と直前点レ
ジスタ7に読み込む(ステップS1)。そして、制御回
路1は、折れ点抽出後の処理(入力点列の始点も折れ点
の1つである)として、直前点レジスタ7の値を折れ点
データとして出力すると同時に(ステップS2)、その
値を始点レジスタ5にコピーし、さらに直前線分レジス
タ8と外積和レジスター2の値を○にする(ステップS
3>。First, the control circuit 1 reads the threshold value ε2 of the polygonal line approximation and the starting point P1 of the point sequence data into the threshold value register 0 and the immediately preceding point register 7, respectively (step S1). Then, as a process after extracting the bending point (the starting point of the input point sequence is also one of the bending points), the control circuit 1 outputs the value of the immediately preceding point register 7 as the bending point data (step S2), and at the same time The value is copied to the starting point register 5, and the values of the immediately preceding line segment register 8 and the outer product sum register 2 are set to ○ (step S
3>.
ステップS3の後、制御回路1は、入力点列デ−タの次
の点P、を現在点レジスタ6に読み込み(ステップS4
)、入力点列データが終了か否かを判定する(ステップ
S5 )。入力点列データが終わりならば、現在点レジ
スタ6の値(入力点列の終点P。)を、折れ点列データ
の終点として出力しくステップ513)、全ての処理を
終了する。After step S3, the control circuit 1 reads the next point P of the input point sequence data into the current point register 6 (step S4
), it is determined whether the input point sequence data is complete (step S5). If the input point string data is finished, the value of the current point register 6 (end point P of the input point string) is output as the end point of the break point string data (step 513), and all processing is completed.
一方、ステップS5において、入力点列が終わってなけ
れば、線分ベクトル計算回路2は、現在点レジスタ6と
始点レジスタ5の値から、始点P1から現在の点P に
向かう線分ベクトルV。を計算して、現在線分レジスタ
9に格納する(ステップS6)。次に、外積和計算回路
3は、現在線分レジスタ9の値(ベクトル■。)と直前
線分レジスタ8の値(ベクトルV。−1)とから、ベク
トルの外積■。−1×Voを計算し、その外債値を外積
和レジスター1の値に加えて、外積和2Soの値を更新
する(ステップS7)。折れ点判定回路4は、現在線分
レジスタ9の値に基づき、始点P1から現在の点P へ
の線分くベクトルV、)の長さの2乗d2を計算しくス
テップS8)、外積和レジスター1の値2S、と閾値レ
ジスター0の値ε2とから、前記(4)式の判定条件を
評価する(ステップS9)。On the other hand, in step S5, if the input point sequence is not completed, the line segment vector calculation circuit 2 calculates a line segment vector V from the starting point P1 to the current point P, based on the values of the current point register 6 and the starting point register 5. is calculated and stored in the current line segment register 9 (step S6). Next, the cross product sum calculation circuit 3 calculates the vector cross product ■ from the value of the current line segment register 9 (vector ■.) and the value of the immediately preceding line segment register 8 (vector V. -1). -1×Vo is calculated, and the foreign debt value is added to the value of the outer product sum register 1 to update the value of the outer product sum 2So (step S7). The bending point determination circuit 4 calculates the square d2 of the length of the line segment vector V, ) from the starting point P1 to the current point P based on the value of the current line segment register 9. The determination condition of the equation (4) is evaluated from the value 2S of 1 and the value ε2 of the threshold register 0 (step S9).
ステップS9において、(4)式の判定条件が成立しな
い場合には、制御回路1は、現在点レジスタ6の値P
と現在線分レジスタ9の値■、とを、それぞれ直前点レ
ジスタ7と直前線分レジスタ8にコピーしくステップ5
10)、ステップS4へ戻る。一方、ステップS9にお
いて、(4)式の条件が成立した場合は、直前点レジス
タ7の値Pn−1を折れ点として出力しくステップ51
1)、さらにその値P。−1を始点レジスタ5にコピー
した後(ステップ512)、ステップS3へ戻る。In step S9, if the determination condition of equation (4) is not satisfied, the control circuit 1 determines the value P of the current point register 6.
In step 5, copy the values of the current line segment register 9 and the current line segment register 9 to the previous point register 7 and the previous line segment register 8, respectively.
10), return to step S4. On the other hand, in step S9, if the condition of equation (4) is satisfied, the value Pn-1 of the immediately preceding point register 7 is output as the breaking point.
1), and its value P. After copying -1 to the starting point register 5 (step 512), the process returns to step S3.
従って、折れ線近似すべき点列P1.P2 、・・・。Therefore, the point sequence P1 to be approximated by a polygonal line. P2,...
Pn、・・・のデータを全て格納しておく必要はなく、
順次1回だけ走査することによって、与えられた閾値以
下の誤差で点列データを折れ線近似し、その折れ点列デ
ータの抽出処理を、少ないステップ数で高速に行うこと
ができる。There is no need to store all the data of Pn,...
By sequentially scanning only once, the point sequence data can be approximated by a broken line with an error less than a given threshold value, and the extraction process of the broken point sequence data can be performed at high speed with a small number of steps.
なお、本発明は、上記実施例に限定されず、例えば第1
図(a)の部分点列P1.・・・、P、、・・・の形状
は、任意の形状に適用できるばかりか、それを適用する
第3図の折れ点抽出装置も、各ブロックを個別回路で構
成する以外に、コンピュータを用いたプログラム制御等
で実行する等、種々の変形が可能である。It should be noted that the present invention is not limited to the above embodiments, and for example, the first embodiment
Partial point sequence P1 in figure (a). . . , P, . Various modifications are possible, such as execution using program control.
(発明の効果)
以上詳細に説明したように、本発明によれば、部分点列
データと仮の近似線分とのずれを、三角形の高さによっ
て表わし、その高さを閾値と比較することによって折れ
点か否かを判定するようにしなので、折れ線近似すべき
点列データを全て記憶しておく必要はなく、順次1回だ
け走査することによって、与えられた閾値以下の誤差で
点列データを折れ線近似し、そ折れ点列データを抽出す
る処理を、少ない処理量で高速に行うことができ(Effects of the Invention) As described above in detail, according to the present invention, the deviation between partial point sequence data and a temporary approximate line segment is represented by the height of a triangle, and the height is compared with a threshold value. Since it is decided whether or not it is a break point by The process of approximating the line to a polygonal line and extracting the polygonal point sequence data can be performed at high speed with a small amount of processing.
第1図(a)、(b)は本発明による折れ線近似の方法
の原理を示す図、第2図は従来の点列データの折れ線近
似の方法を示す図、第3図は本発明の実施例を示す折れ
点抽出装置の構成ブロック図、第4図は第3図の動作を
示すフローチャートである。
■〕・・・三角形の高さ、L ・・・線分、P 、・・
・、Pn1
n 、Pn+1・・・部分点列、S 、ΔS、・・・面
積、■n−1、”n・・・ベタ1〜ル。
出願人 三菱重工業株式会社(はカリ名)代理人弁理士
柿 本 恭 成
会す
門“3
〒
ζ
(:) ’)−。Figures 1 (a) and (b) are diagrams showing the principle of the polygonal line approximation method according to the present invention, Figure 2 is a diagram showing the conventional polygonal line approximation method for point sequence data, and Figure 3 is a diagram showing the implementation of the present invention. FIG. 4 is a block diagram illustrating the configuration of a bending point extracting device showing an example, and FIG. 4 is a flowchart showing the operation of FIG. 3. ■〕... Height of triangle, L... Line segment, P...
・, Pn1 n, Pn+1... Partial point sequence, S, ΔS,... Area, ■n-1, "n... solid 1 ~ Ru. Applicant: Mitsubishi Heavy Industries, Ltd. (Kari name) Agent Patent Attorney Kakimoto Kyo Seikaisumon “3 〒 ζ (:) ')−.
Claims (1)
、該入力された現在の点、その直前の点及び始点の3点
のみから漸化式に基づき、該始点と現在の点を結ぶ仮の
近似線分と該始点から現在の点に至る部分点列データと
によって囲まれる領域に等しい面積で、且つ該仮の近似
線分を底辺とする3角形の高さを求め、 前記3角形の高さを前記仮の近似線分と部分点列データ
とのずれを表す指標として、予め入力されている閾値と
比較し、 前記指標が前記閾値よりも大きな場合には、前記直前の
点を近似線分の折れ点として抽出すると共に、その直前
の点を新たな始点及び現在の点を新たな直前の点として
前記3角形の高さの算出及び比較処理を前記点列データ
の終点まで繰り返すことにより、 前記点列データの全体を折れ線近似することを特徴とす
る点列データの折れ線近似の方法。[Claims] Every time the coordinate data of each point in the point sequence data is inputted sequentially, the coordinate data of each point in the point sequence data is calculated based on a recurrence formula from only the inputted current point, the point immediately before it, and the starting point. The height of a triangle with an area equal to the area surrounded by the tentative approximate line segment connecting the starting point and the current point and the partial point sequence data from the starting point to the current point, and whose base is the tentative approximate line segment. The height of the triangle is compared with a pre-input threshold value as an index representing the deviation between the tentative approximate line segment and the partial point sequence data, and if the index is larger than the threshold value, Extracts the previous point as a breaking point of the approximate line segment, and performs the calculation and comparison process of the height of the triangle using the previous point as a new starting point and the current point as a new previous point. A method for polygonal line approximation of point sequence data, characterized in that the entire point sequence data is approximated by a polygonal line by repeating the process until the end point of the point sequence data.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP34065390A JPH04205676A (en) | 1990-11-30 | 1990-11-30 | Method for approximating polygonal of point sequence data |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP34065390A JPH04205676A (en) | 1990-11-30 | 1990-11-30 | Method for approximating polygonal of point sequence data |
Publications (1)
Publication Number | Publication Date |
---|---|
JPH04205676A true JPH04205676A (en) | 1992-07-27 |
Family
ID=18339034
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP34065390A Pending JPH04205676A (en) | 1990-11-30 | 1990-11-30 | Method for approximating polygonal of point sequence data |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH04205676A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2008052701A (en) * | 2006-07-28 | 2008-03-06 | Sony Corp | Image processing method, image processing device, and program |
JP2010041454A (en) * | 2008-08-06 | 2010-02-18 | Weigang Xu | Image compressing apparatus, image expanding apparatus, image compressing program, and image expanding program |
US9685977B1 (en) | 2016-03-10 | 2017-06-20 | Kabushiki Kaisha Toshiba | Time series data compressing apparatus |
-
1990
- 1990-11-30 JP JP34065390A patent/JPH04205676A/en active Pending
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2008052701A (en) * | 2006-07-28 | 2008-03-06 | Sony Corp | Image processing method, image processing device, and program |
JP2010041454A (en) * | 2008-08-06 | 2010-02-18 | Weigang Xu | Image compressing apparatus, image expanding apparatus, image compressing program, and image expanding program |
US9685977B1 (en) | 2016-03-10 | 2017-06-20 | Kabushiki Kaisha Toshiba | Time series data compressing apparatus |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JPH04205676A (en) | Method for approximating polygonal of point sequence data | |
JP2663857B2 (en) | Approximation curve generator | |
JPS6232584A (en) | Method for extracting contour shape feature | |
JPS60215283A (en) | Polygonal line approximating device | |
JPH02245985A (en) | Straight line approximation system for linear graphic input device | |
JPS603791A (en) | Picking system | |
JP3344791B2 (en) | Line segment extraction method | |
JP2935331B2 (en) | Figure recognition device | |
JPH01295376A (en) | Linear approximation processing system for line pattern | |
JPS61208184A (en) | Compression system for pattern information amount | |
JPS646511B2 (en) | ||
JPH06215076A (en) | Adaptive and hierarchical grid expression generating device for image | |
JP2867650B2 (en) | Symbol candidate area detection method | |
JP3260733B2 (en) | Vector font dictionary | |
JPH0391880A (en) | Processing system for set of small area continuous drawing coordinates | |
JPS61194581A (en) | Method for extraction of on-line character recognition stroke | |
JPH0695644A (en) | System for recognizing straight line of character pattern | |
JP2507413B2 (en) | Pattern data compression method | |
JP2656802B2 (en) | Drawing input device | |
JPS63298575A (en) | Polygonal line approximation processing system for graphic data | |
JP2882327B2 (en) | Line figure matching device | |
JPH04119477A (en) | Curve approximating method | |
CN118049984A (en) | Vehicle guide line generation method, device, equipment, storage medium and vehicle | |
JPS63213087A (en) | Arc extracting system | |
JPS6339093A (en) | Dictionary retrieving system |