JPS5929908B2 - Broken line approximation device for accumulated point sequence data - Google Patents
Broken line approximation device for accumulated point sequence dataInfo
- Publication number
- JPS5929908B2 JPS5929908B2 JP10539075A JP10539075A JPS5929908B2 JP S5929908 B2 JPS5929908 B2 JP S5929908B2 JP 10539075 A JP10539075 A JP 10539075A JP 10539075 A JP10539075 A JP 10539075A JP S5929908 B2 JPS5929908 B2 JP S5929908B2
- Authority
- JP
- Japan
- Prior art keywords
- point
- output
- line
- storage device
- signal
- 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
Links
- 238000000034 method Methods 0.000 description 22
- 230000010365 information processing Effects 0.000 description 5
- 238000010586 diagram Methods 0.000 description 4
- 239000000470 constituent Substances 0.000 description 3
- 230000001154 acute effect Effects 0.000 description 1
- 230000003111 delayed effect Effects 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 238000002360 preparation method Methods 0.000 description 1
- 230000004044 response Effects 0.000 description 1
- 238000005070 sampling Methods 0.000 description 1
- 238000007493 shaping process Methods 0.000 description 1
Landscapes
- Image Processing (AREA)
Description
【発明の詳細な説明】
この発明は、離散的な点の座標列として与えられる軌跡
を近似する折線図形を得るような蓄積された点列データ
の折線近似装置に関する。DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a polygonal line approximation device for accumulated point sequence data that obtains a polygonal line figure that approximates a locus given as a coordinate sequence of discrete points.
点は2次元、3次元、さらに拡張して任意の自然数nに
対してn次元の点が考えられ、それぞれ2個、3個、n
個の座標成分を与えることによつて、1点を指定するこ
とができる。Points can be two-dimensional, three-dimensional, and further expanded to include n-dimensional points for any natural number n, 2, 3, and n, respectively.
One point can be specified by providing coordinate components.
この発明は任意の次元数の点列データに対して適用し得
るものではあるが、説明を簡潔にし理解を容易ならしむ
るため、以下2次元の点列データに限定して説明を行な
う。2次元点列データ(以下単に点列データと呼、Eの
例としては、たとえばデータ・タブレット上に線図形を
描く際に得られる点列がある。Although this invention can be applied to point sequence data of any number of dimensions, in order to simplify the explanation and facilitate understanding, the following description will be limited to two-dimensional point sequence data. Two-dimensional point sequence data (hereinafter simply referred to as point sequence data; an example of E is a point sequence obtained when drawing a line figure on a data tablet, for example).
このような点列を計算機等の情報処理装置に入力して処
理しようとする際に、点列データのままで扱おうとする
と、莫大な数の点列データを記憶しなければならなくな
り、計算機等の記憶容量も多く必要となるので不経済で
ある。そこで、一般的には曲線であるところのこれらの
点列データが表わしている線図形を、いくつかの折線で
近似し、得られた折線の両端点の座標のみを新たに記憶
することによつて、原始点列データの代用をすることが
行なわれる。このような方法によれば、折線の個数を増
すことにより、原始図形に対しての近似度を必要に応じ
て高めることができる。従来、このような点列データの
折線近似の処理は、計算機のソフトウェアによつて行な
われていた。When inputting such a point sequence to an information processing device such as a computer and processing it, if you try to treat it as point sequence data, you will have to store a huge amount of point sequence data, and the computer etc. It is uneconomical because it requires a large storage capacity. Therefore, by approximating the line figure represented by these point sequence data, which is generally a curve, with several broken lines, and newly storing only the coordinates of both end points of the obtained broken lines. Then, the original point sequence data is substituted. According to such a method, by increasing the number of broken lines, the degree of approximation to the original figure can be increased as necessary. Conventionally, such polygonal line approximation processing of point sequence data has been performed by computer software.
しかし、処理の点数が多く、しかも手書き線図形のよう
に実時間で処理を行なわねばならぬような場合には、計
算機はこの近似処理を最高の優先度で行なわわはならず
、しかもこの処理のために多くの時間を占有するので、
計算機の処理能力を他の処理に振向けることができず、
従つて高価な計算機の使用効率を低下させるという問題
があつた。さらに、従来用いられていた折線近似方法は
、たとえば、点列データが入力されるにつれて、相隣る
点を結ぶ微小線分の方向を計算し、この微小線分の方向
が予じめ定められたたとえば円周を8等分してできる扇
形領域の1つの内に収つている限りは同一の折線を構成
する点であるものと見做すが、その扇形領域からはずれ
ると次の折線に移つたと見做すという方法によつて近似
を行なうものであつた。However, when the number of processing points is large and the processing must be performed in real time, such as when processing handwritten line drawings, the computer should not give this approximation processing the highest priority; Because it occupies a lot of time for
Unable to allocate computer processing power to other processes,
Therefore, there was a problem in that the usage efficiency of expensive computers was reduced. Furthermore, in the conventional broken line approximation method, for example, as point sequence data is input, the direction of a minute line segment connecting adjacent points is calculated, and the direction of this minute line segment is determined in advance. For example, as long as a point falls within one of the fan-shaped regions created by dividing the circumference into eight equal parts, it is considered to be a point that forms the same polygonal line, but if it deviates from that fan-shaped region, it moves to the next polygonal line. The approximation was made by considering the
しかし、この従来の近似方法では、原始図形が主に直線
で構成される場合に、特に鋭角に変化する尖点付近で、
鋭角変化を消してしまうような不必要な短い線分が出現
することがしばしばあり、この傾向は特に、線図形の大
きさに対し点列データの間隔が粗い時に甚しくなり、正
確な折線図形が得難いという問題もあつた。この発明の
目的は、蓄積された点列データに対し線図形の変化が著
しい部分に対しては比較的短い線分を多数当てはめて高
い近似精度を得、しかも鋭角に変化する尖点付近におい
ても余分な線分が現われないような新しい近似方法に基
いて、近似処理を高速に行なうことのできる蓄積された
点列データの折線近似装置を提供することにある。However, with this conventional approximation method, when the primitive figure is mainly composed of straight lines, especially near the cusp where the angle changes sharply,
Unnecessarily short line segments that erase acute angle changes often appear, and this tendency becomes especially severe when the spacing of point sequence data is coarse relative to the size of the line shape, making it difficult to create accurate polygonal line shapes. There was also the problem that it was difficult to obtain. The purpose of this invention is to obtain high approximation accuracy by applying a large number of relatively short line segments to parts of accumulated point sequence data where the line shape changes significantly, and to obtain high approximation accuracy even near cusps that change sharply. It is an object of the present invention to provide a broken line approximation device for accumulated point sequence data that can perform approximation processing at high speed based on a new approximation method in which no extra line segments appear.
この発明による蓄積された点列データの折線近似装置を
用いれば、線図形を表わす点列データを折線図形で近似
するような利用法において、折線近似の処理を計算機に
負わせることなく、従つて計算機の処理能力を他のさら
に複雑な処理に振向けることができ、情報処理システム
の総合利用効率を高めることもできる。次にこの発明に
ついて図面を参照して説明する。By using the broken line approximation device for accumulated point sequence data according to the present invention, in a usage where point sequence data representing a line figure is approximated by a broken line figure, the process of the broken line approximation can be performed without burdening the computer with the process. It is possible to allocate the processing power of the computer to other more complex processing, and it is also possible to improve the overall utilization efficiency of the information processing system. Next, the present invention will be explained with reference to the drawings.
第1図を参照すると、この発明の「蓄積された点列デー
タの折線近似装置」の折線近似法の方法を説明するため
の例が示されている。ここで、点列データのうち折線近
似しようとするひとまとまりの部分を点系列と呼ぶこと
にする。たとえば、データ・タブレツト上で一筆で描か
れる図形部分は1つの点系列である。一つの点系列を2
つの系列に分割したものも、それぞれ点系列になり得る
。第1a図は、数字[2」を表わす充分細かなサンプリ
ングの点列データを表示したものであり、Sと名づけら
れた1つの点系列である。点系列Sの始点Ps,Peを
結ぶ直線をL1とする。直線L1をAx+By+c=0
と表わす時、直線L1と点系列S上の任意の1点(x′
,y′)との距離dは、で表わされる。Referring to FIG. 1, there is shown an example for explaining the broken line approximation method of the "broken line approximation device for accumulated point sequence data" of the present invention. Here, a part of the point sequence data to be approximated by a broken line is called a point sequence. For example, a graphic drawn with a single stroke on a data tablet is a series of points. one point series to 2
Even when divided into two series, each can become a point series. FIG. 1a displays point sequence data of sufficiently fine sampling representing the number [2], one point sequence named S. Let L1 be a straight line connecting the starting points Ps and Pe of the point series S. When expressing the straight line L1 as Ax+By+c=0, if the straight line L1 and any one point on the point series S (x'
, y') is expressed as .
今、点系列S上の点のうち、この距離dが最大となる点
を求め、この点をP1とする。Now, among the points on the point series S, find the point where this distance d is maximum, and set this point as P1.
次に、第1a図のごとく求められた点P1によつて、第
1b図、第1c図のごとく、点系列S=(Ps,Pe)
を2つの点系列S,=(Ps,Pl)とS2=(Pl,
Pe)とに分割する。次に第1b図のごとく、点系列S
,に対して、第1a図で点系列Sに対して行なつたのと
同様な処理を行なう。すなわち、S,の始点Ps、終点
P1を結ぶ直線L2に対し、点系列S,上の点でL2と
の距離が最大となる点P2を求め、点系列S,をさらに
2つの点系列に分割する。点系列の分割をくり返し、距
離Di(1=1,2,・・・・・・)が予じめ定められ
た値Dより小さくなるまでこの処理をくりかえす。第1
c図に示した点系列に対しても同様な処理をくりかえす
。この結果、最終的に得られた多数の点系列の始点、終
点のみを残せば、これが求める折線近似の各線分の端点
となり、たとえば第1d図のような折線図形が得られる
。Next, by using the point P1 obtained as shown in Fig. 1a, as shown in Figs. 1b and 1c, the point series S = (Ps, Pe)
are two point sequences S, = (Ps, Pl) and S2 = (Pl,
Pe). Next, as shown in Figure 1b, the point series S
, the same processing as that for the point sequence S in FIG. 1a is performed. That is, with respect to the straight line L2 connecting the starting point Ps and the ending point P1 of S, find the point P2 that has the maximum distance from L2 on the point series S, and further divide the point series S into two point series. do. This process is repeated by repeating the division of the point series until the distance Di (1=1, 2, . . . ) becomes smaller than a predetermined value D. 1st
The same process is repeated for the point series shown in figure c. As a result, if only the starting point and ending point of the large number of points finally obtained are left, these become the end points of each line segment of the sought polygonal line approximation, and a polygonal line figure as shown in FIG. 1d, for example, can be obtained.
第2図を参照すると、この発明による1つの実施例がプ
ロツクで示されている。Referring to FIG. 2, one embodiment according to the invention is illustrated in block form.
記憶装置10はたとえば 1語20ビツト、512語の
容量の磁心記憶装置であり、入力線11から加えられる
点列データを蓄える。入力データが、たとえばペンで文
字を描く際にデータ・タブレツトから得られる座標デー
タ列であるとすると、ペンで描く一区切りの線図形すな
わちストロークの点列情報が順次蓄えられ、始点がO番
地、次の点座標が1番地、以下番地が順次増加するよう
な記憶場所に蓄えられる。データ・タブレツトについて
は、たとえば、特許公報 昭4,3−7649に記載さ
れているものが使用できる。記憶装置10中に、近似す
べき一連の点列データが蓄積されると、信号線14から
、開始信号が制御装置50に加えられ、近似処理が開始
される。The storage device 10 is, for example, a magnetic core storage device with a capacity of 20 bits per word and 512 words, and stores point sequence data applied from the input line 11. For example, if the input data is a string of coordinate data obtained from a data tablet when drawing a character with a pen, the point sequence information of a line figure drawn with the pen, that is, a stroke, is stored sequentially, with the starting point at address O, the next point, and so on. The coordinates of the point are stored in a memory location starting from address 1 and increasing sequentially. As for the data tablet, for example, the one described in Patent Publication No. 4,3-7649 can be used. When a series of point sequence data to be approximated is stored in the storage device 10, a start signal is applied to the control device 50 from the signal line 14, and the approximation process is started.
開始信号14としては、前記データ・タブレツトのペン
信号を利用し、ペンが画面につけられていたゞ下2状態
から画面から離された時のゞ上2への変化分を利用でき
る。近似処理が開始されると制御装置50は1つの点系
列を指定するための番地情報を信号線51から記憶装置
10に送出する。この番地情報に従つて記憶装置10は
、指定された点の座標を信号線12に出力する。これと
共に、タイミング信号の集合である制御信号53が最遠
点判定装置20に加えられる。最遠点判定装置20は、
制御信号53の系列に従つて信号線12から点情報をと
り込む。記憶装置10から最遠点判定装置20に送られ
る座標は、点系列の両端点およびそのあと順次送トられ
る点系列の構成点である。As the start signal 14, the pen signal of the data tablet can be used, and the change from the lower 2 state when the pen is attached to the screen to the upper 2 state when the pen is removed from the screen can be used. When the approximation process is started, the control device 50 sends address information for specifying one point series to the storage device 10 from the signal line 51. According to this address information, the storage device 10 outputs the coordinates of the designated point to the signal line 12. At the same time, a control signal 53, which is a set of timing signals, is applied to the farthest point determining device 20. The farthest point determination device 20 is
Point information is taken in from the signal line 12 according to the series of control signals 53. The coordinates sent from the storage device 10 to the farthest point determination device 20 are both end points of the point series and the constituent points of the point series that are sent sequentially thereafter.
その各々の構成点に対し、点系列の両端点で定まる直線
と、各構成点との距離が最遠点判定装置20中で計算さ
れると共に、その最大距離(実際にはそれと等価なDが
求められる。装置構成簡略化のため、最大距離の代りに
最大距離の2乗が、予じめ定められた値D2より大きけ
れば、最遠点判定装置20は第1図で説明したように、
はじめの点系列を2つの点系列に分割し、その一方の点
系列の両端点を保存しておき、他の点系列について前と
同じ処理をくり返す。もし、最大距離の2乗がD2より
小さければ、もはやこの点系列を分割する必要はないの
で、信号線21から制御装置50へ信号を送り、制御装
置50中に読出されている点系列の1つの端点の番地情
報を、信号線54を経て折点記憶装置90に記憶させる
。折点記憶装置90は、記憶装置10と同様な磁心記憶
装置が使用でき、その容量は1語9ビツト、64語程度
のものでよい。制御装置50は、まだ処理すべき点系列
情報が存在するかどうかを調べ、もし点系列があれば近
似処理をくり返すし、もし、なければ信号線54から最
終点を折点記憶装置90に送つて記憶せしめると共に、
信号線52に近似処理紙了信号を出力する。近似処理終
了信号52が出力されると、折点記憶装置90中には、
記憶装置10の番地情報の形で、記憶装置10に与えら
れた点系列を近似する折線の端点が蓄えられる。For each constituent point, the distance between the straight line determined by both end points of the point series and each constituent point is calculated in the farthest point determining device 20, and the maximum distance (actually equivalent to D) is calculated in the farthest point determination device 20. To simplify the device configuration, if the square of the maximum distance instead of the maximum distance is greater than the predetermined value D2, the farthest point determination device 20 will perform the following as explained in FIG.
Divide the initial point series into two point series, save both end points of one point series, and repeat the same process as before for the other point series. If the square of the maximum distance is smaller than D2, it is no longer necessary to divide this point series, so a signal is sent from the signal line 21 to the control device 50, and one of the point series read out into the control device 50 is divided. The address information of the two end points is stored in the corner storage device 90 via the signal line 54. As the corner storage device 90, a magnetic core storage device similar to the storage device 10 can be used, and its capacity may be about 64 words with 9 bits per word. The control device 50 checks whether there is still point series information to be processed, and if there is a point series, it repeats the approximation process, and if not, it stores the final point from the signal line 54 into the break point storage device 90. I will send it to you so that you can remember it,
An approximation processing paper completion signal is output to the signal line 52. When the approximation processing end signal 52 is output, the following information is stored in the corner storage device 90.
In the form of address information in the storage device 10, end points of broken lines that approximate the point series given to the storage device 10 are stored.
この折点情報が、本発明による折線近似装置の出力情報
であり、他の情報処理装置によつて読み出されて利用さ
れ得る。利用する情報処理装置側に適当な記憶装置があ
れば、折点記憶装置90は省いてもよい。第3図を参照
すると、第2図にプロツクで示した最遠点判定装置20
の詳細な構成が示してある。This breaking point information is output information of the broken line approximation device according to the present invention, and can be read and used by another information processing device. If the information processing device used has a suitable storage device, the corner storage device 90 may be omitted. Referring to FIG. 3, the farthest point determining device 20 shown in FIG.
The detailed configuration of is shown.
最遠点判定装置20の動作順序とタイミングとを制御す
るために、線531〜539から、それぞれタイミング
信号t1〜T,が加えられる。Pi=(Xi,yi),
Pj=(Xj,yj)なる両端点を持つ1つの点系列に
対する近似処理の制御のために、Tl,t2,t3がこ
の順序に各1回加えられ、そのあとT4〜T7がこの順
序に複数回、すなわちこの点系列を構成する点の個数に
等しい回数だけ、くりかえして加えられる。最後にT8
,t,がこの順序に1回ずつ加えられて終了する。タイ
ミング信号T,が加わると、入力線122から並列に加
わつている点Pj(7)X座標、y座標を表わす、それ
ぞれ10ビツトの信号がラツチ22とラツチ23とにそ
れぞれ記憶される。次にタイミング信号T2が線532
から加えられると、同様にしてラツチ24とラツチ25
とに、線121から加わつているXi,yiがそれぞれ
記憶される。ところでPi=(Xi,yi),Pj−(
Xj,yj)を通る直線の方程式は、(y−Yi)(X
j−Xi)一(x−Xi・)(Yj−Yi)=0である
。In order to control the operating order and timing of the farthest point determining device 20, timing signals t1-T, are applied from lines 531-539, respectively. Pi=(Xi, yi),
To control the approximation process for one point series with both endpoints Pj = (Xj, yj), Tl, t2, and t3 are each added once in this order, and then T4 to T7 are added multiple times in this order. times, that is, a number of times equal to the number of points making up this point sequence. Finally T8
, t, are added once to this order and the process ends. When timing signal T is applied, 10-bit signals representing the X and Y coordinates of point Pj (7) applied in parallel from input line 122 are stored in latch 22 and latch 23, respectively. Next, timing signal T2 is applied to line 532.
latches 24 and 25 in the same way.
In addition, Xi and yi added from line 121 are stored respectively. By the way, Pi=(Xi, yi), Pj-(
The equation of the straight line passing through Xj,yj) is (y-Yi)(X
j−Xi)−(x−Xi·)(Yj−Yi)=0.
これを整理すると(Yi−Yj)x+(Xj−Xi)y
+(Xiyj−Xiyi)=0である。Rearranging this, (Yi-Yj)x+(Xj-Xi)y
+(Xiyj−Xiyi)=0.
a=Yi−Yj,b=Xj−Xi,c=Xiyj−Xj
yiとおけば、先の直線の方程式は、Ax+By+c=
0であり、この直線と点P(X,y)との距離dはとな
る。a=Yi-Yj, b=Xj-Xi, c=Xiyj-Xj
If we set yi, the equation of the straight line is Ax+By+c=
0, and the distance d between this straight line and point P(X, y) is.
最遠点判定装置20中では、これらの計算が順次行なわ
れて行くことを以下説明する。It will be explained below that these calculations are sequentially performed in the farthest point determination device 20.
タイミング信号T3が、線533に加わると、減算器2
6の出力260にb=XJ−Xiが、減算器27の出力
270にa=Yi−Yjが、乗算器28の出力280に
XiyJが、乗算器29の出力290にXjyjが、そ
れぞれ得られ、それぞれ出力情報が変化するまでは保持
される。When timing signal T3 is applied to line 533, subtracter 2
6, b=XJ-Xi is obtained at the output 260 of the subtracter 27, a=Yi-Yj is obtained from the output 270 of the subtracter 27, XiyJ is obtained from the output 280 of the multiplier 28, and Xjyj is obtained from the output 290 of the multiplier 29. Each output information is held until it changes.
タイミング信号T4が、線534に加わると、乗算器3
0の出力300にByが、乗算器31の出力310にA
xが、乗算器32の出力320にB2が、乗算器33の
出力330にA2が、減算器34の出力340にc=X
iyj−Xjyiがそれぞれ得られる。When timing signal T4 is applied to line 534, multiplier 3
By is output to the output 300 of 0, and A is output to the output 310 of the multiplier 31.
x, B2 to the output 320 of the multiplier 32, A2 to the output 330 of the multiplier 33, and c=X to the output 340 of the subtracter 34.
iyj−Xjyi are obtained, respectively.
タイミング信号T5が線535に加わると、絶対値型加
算器35の出力350に)Ax+By+cl=lが、加
算器36の出力360にA2+B2が各各出力される。When the timing signal T5 is applied to the line 535, the output 350 of the absolute value adder 35 outputs Ax+By+cl=1, and the output 360 of the adder 36 outputs A2+B2.
l出力350は、予じめタイミング信号T,で初期値0
にセツトきれている最大レジスタ37と、比較減算器3
8とに加えられている。The l output 350 is set to an initial value of 0 in advance by the timing signal T.
The maximum register 37 that can be set to
It has been added to 8.
比較減算器38の他の入力は、最大レジスタ37の出力
370であつて、タイミング信号T6が線536から加
わる時比較が行なわれる。出力370の値をLMと表わ
すと、LM<2の時比較減算器38の出力380がゞ1
″になり、そうでない時、出力380は′0″になる。
従つて、タイミング信号T,が線537から加わる時、
比較減算器38の出力380が′1″、すなわちLM<
lの時に限つてANDゲート39の出力211に最大点
セツトパルスが生じ、最大レジスタ37をストローブし
て、線350からの入力!の値を最大レジスタ37に蓄
えさせる。ANDゲート39の出力最大点セツトパルス
211は制御信号21のうちの1信号として制御装置5
0にも送出される。タイミング信号T4〜T,の列が、
くり返されるにつれ、A,b,cの3つの定数を固定し
て、点系列中の新たな(X,y)に対して、このような
2の最大値を求める過程が繰返される。A2+B2の値
は一定であるから、直線Ax+By+c=0と各点Pと
の距離dの最大値を求める代りに、2の最大値を求める
方法を用いている。点系列の全ての点に対してこの計算
を終ると、タイミング信号T8が線538から加わり、
乗算器40の出力400にLM2の値が出力され、他方
乗算器41からは、定数器42に予じめ設定されている
定数D2と出力360から加わる(A2+B2)の積D
2(A2+B2)が出力線410に出力される。The other input to compare subtracter 38 is the output 370 of max register 37, which is compared when timing signal T6 is applied from line 536. When the value of the output 370 is expressed as LM, when LM<2, the output 380 of the comparison subtracter 38 is 1.
'', otherwise the output 380 will be ``0''.
Therefore, when timing signal T, is applied from line 537,
The output 380 of the comparison subtractor 38 is '1'', that is, LM<
A maximum point set pulse occurs at the output 211 of AND gate 39 only when 1, strobing the maximum register 37 and inputting the input from line 350! The value of is stored in the maximum register 37. The output maximum point set pulse 211 of the AND gate 39 is sent to the control device 5 as one of the control signals 21.
Also sent to 0. The sequence of timing signals T4 to T is
As the process is repeated, the process of determining the maximum value of 2 is repeated for a new (X, y) in the point series by fixing the three constants A, b, and c. Since the value of A2+B2 is constant, instead of finding the maximum value of the distance d between the straight line Ax+By+c=0 and each point P, a method of finding the maximum value of 2 is used. After completing this calculation for all points in the point series, timing signal T8 is applied from line 538,
The value of LM2 is output to the output 400 of the multiplier 40, and the multiplier 41 outputs the product D of the constant D2 preset in the constant unit 42 and (A2+B2) added from the output 360.
2(A2+B2) is output to output line 410.
定数器42は、実際にはD2の数値を表わすべく、複数
本の信号線に′O″または′1″のある組を与えるよう
結線したものである。タイミング信号T,が線539か
ら加わると、比較減算器43の2つの入力が比較され、
MM2≦D2(A2+B2)の時に限り、比較減算器4
3の距離判定出力212にゞ11信号が出力され、そう
でない時ゞ0″信号が出力される。The constant device 42 is actually a plurality of signal lines connected to give a certain set of 'O' or '1' in order to represent the numerical value of D2. When a timing signal T, is applied from line 539, the two inputs of compare-subtractor 43 are compared;
Only when MM2≦D2 (A2+B2), comparison subtractor 4
The ゜11 signal is output to the distance determination output 212 of No. 3, and when this is not the case, the ゜0'' signal is output.
この条件はLM/A2+B2≦D、すなわち与えられた
点系列の両端点を結ぶ直線と点系列の各点との距離の最
大値DMに対しDM≦Dとなることと等価でノある。This condition is equivalent to LM/A2+B2≦D, that is, DM≦D for the maximum distance DM between a straight line connecting both end points of a given point series and each point in the point series.
第4図を参照すると、第2図にプロツクで示した制御装
置50の詳細な構成と、記憶装置10と折点記憶装置9
0とが示されている。Referring to FIG. 4, the detailed configuration of the control device 50 shown in FIG.
0 is shown.
制御回路50の出力するタイミング信号t1〜T,の系
列は、線14から与え,られる開始信号をきつかけとし
て発生される。開始信号として用いられるデータ・タブ
レツトのペン信号がゞ下2からゞ上2に変化すると、ま
ず、単安定マルチバイブレータ55によつてパルス信号
が作られ、0Rゲート59を通り、遅延回路551を経
て出力線531にタイミング信号t1が出力される。t
1信号遅延回路552,553によつてさらに遅延し、
出力線532,533にそれぞれタイミング信号T2,
t3が出力される。T3信号はフリツプフロツプ(以下
FFと略す)57をりセツトする。The series of timing signals t1 to T output by the control circuit 50 are generated using the start signal applied from the line 14 as a trigger. When the pen signal of the data tablet used as a start signal changes from 2 down to 2 up, a pulse signal is first generated by the monostable multivibrator 55, passes through the 0R gate 59, and passes through the delay circuit 551. Timing signal t1 is output to output line 531. t
1 signal delay circuits 552 and 553,
Timing signals T2 and T2 are applied to output lines 532 and 533, respectively.
t3 is output. The T3 signal resets a flip-flop (hereinafter abbreviated as FF) 57.
この時FF57の出力線571には′1″、572には
′0″がそれぞれ出力される。他方T3信号は0Rゲー
ト561を通つて遅延回路554に加わり、出力線53
4にタイミング信号T4を出力させる。T4信号は、遅
延回路555,556,557によつて順次遅延し、出
力線535,536,537にそれぞれタイミング信号
T5,t6,t7を出力する。T7信号は遅延回路55
8を経て信条567となりANDゲート565および他
のANDゲート562の入力となる。,FF5・7がり
セツト状態にあれば、ANDゲート565が開くので、
信号567はANDゲート565、0Rゲート561を
経て、再び遅延回路554に加わる。At this time, ``1'' is output to the output line 571 of the FF 57, and ``0'' is output to the output line 572, respectively. On the other hand, the T3 signal passes through the 0R gate 561, enters the delay circuit 554, and connects to the output line 53.
4 to output the timing signal T4. The T4 signal is sequentially delayed by delay circuits 555, 556, and 557, and outputs timing signals T5, t6, and t7 to output lines 535, 536, and 537, respectively. The T7 signal is sent to the delay circuit 55
8, it becomes a belief 567 and becomes an input to an AND gate 565 and another AND gate 562. , if FF5 and FF7 are in the set state, the AND gate 565 opens, so
Signal 567 passes through AND gate 565 and 0R gate 561, and is again applied to delay circuit 554.
このループによつて、FF57がりセツト状態にある限
り、タイミング信号T4〜T7がくり返し発生されるこ
とになる。FF57が信号線580からの信号によつて
セツトされると出力線571が′02になると共に出力
線572が′1″になる。Due to this loop, the timing signals T4 to T7 are repeatedly generated as long as the FF 57 is in the reset state. When the FF 57 is set by the signal from the signal line 580, the output line 571 becomes '02' and the output line 572 becomes '1'.
この状態では遅延回路558の出力567はANDゲー
ト562を経て出力線538にタイミング信号T8とし
て出力されさらに遅延回路559,563,564を順
次通つて、それぞれ信号線539,569,5C6にタ
イミング信号T,,tlO,tl,として出力される。
遅延回路551〜559,563,564はそれぞれ1
μsの遅延時間と波形整形の機能を有しており、単安定
マルチバイブレータの組合せによつて実現されている。
開始信号14が加わる時点では、先に第2図を参照して
説明したごとく、記憶装置10中には一連の点系列の座
標が順番に記憶されており、スタツク制御回路61によ
つて、スタツク60は空状態に゛りセツトされる。In this state, the output 567 of the delay circuit 558 is outputted as a timing signal T8 to the output line 538 via the AND gate 562, and then sequentially passes through delay circuits 559, 563, and 564, and is sent as the timing signal T8 to the signal lines 539, 569, and 5C6, respectively. ,,tlO,tl,.
Delay circuits 551 to 559, 563, and 564 each have 1
It has μs delay time and waveform shaping functions, and is realized by a combination of monostable multivibrators.
At the time when the start signal 14 is applied, as explained earlier with reference to FIG. 60 is reset to the empty state.
スタツク60は、たとえば1語8ビツト、64語の容量
を持ち、書込み指令が加えられるに従つて入力情報を順
次記憶して行くが、読出し指令に対しては最もあとに書
込んだ情報1語が読出されると共に、読出された情報は
記憶が消えてしまうような記憶装置である。ただし、読
出し指令を加えなくても、次に読出される情報は、外部
から検知できる。読出し指令を加えた結果最早スタツク
中に読出すべき情報がなくなつた時には空状態の表示が
出力される。このようなスタツクは、シフトレジスタを
用いて、あるいは磁心記憶装置を用いるなどして、容易
に構成することができる。開始信号14がスタツク制御
回路61に加わると、記憶装置10中に蓄えられている
点系列の始点、終点の番地情報が、この順番にスタツク
60に書込まれる。The stack 60 has a capacity of, for example, 64 words with 8 bits per word, and stores input information sequentially as write commands are added, but in response to read commands, it stores the last written word of information. It is a storage device in which the memory of the read information disappears as soon as the information is read out. However, even without adding a read command, the information to be read next can be detected from the outside. When there is no more information to be read in the stack as a result of adding a read command, an empty status indication is output. Such a stack can be easily constructed using shift registers or magnetic core storage. When the start signal 14 is applied to the stack control circuit 61, the address information of the start point and end point of the point series stored in the storage device 10 is written into the stack 60 in this order.
タイミング信号t1はスタツク制御向路61に読出し指
令として加えられ、スタツク60から信号線601に゜
1語が読み出される。Timing signal t1 is applied to stack control path 61 as a read command, and the 1 word is read from stack 60 onto signal line 601.
この語は、これから評価しようとする点系列の最終点の
番地情報であり、Ajと記号づける。最初の状態ではA
jはストロークの終点の番地そのものである。この読出
し指令の実行後、スタツク60で外部から検出できる次
の読出しの候補は、評価しようとする点系列の始点の番
地であり、Aiと記号づけられる。スタツク60から信
号線601に読み出された番地情報AJは、番地カウン
タ64と終点レジスタ63に、それぞれタイミング信号
T,でセツトされる。タイミング信号t1は記憶装置1
0にも加えられており、t1によつてストローブされて
、番地カウンタ64の出力640に現われている番地A
jの座標情報Pj=(Xj,yj)が並列に記憶装置1
0の出力線122に現われる。次にタイミング信号T2
が記憶装置10に加わり、信号線601によつて指定さ
れる番地Aiの1語、すなわち座標情報Pi=(Xi,
yi)を出力線121に読み出す。タイミング信号T4
が記憶装置10に加わると、信号線640を経て番地カ
ウンタ64から指定される番地の情報が読み出され、出
力線123に現われる。This word is the address information of the final point of the point series to be evaluated, and is designated as Aj. In the initial state A
j is the address itself of the end point of the stroke. After execution of this readout command, the next readout candidate externally detectable in the stack 60 is the address of the starting point of the point sequence to be evaluated, and is labeled Ai. The address information AJ read out from the stack 60 onto the signal line 601 is set in the address counter 64 and the end point register 63 by the timing signal T, respectively. Timing signal t1 is stored in storage device 1
0 and is strobed by t1 and appears at the output 640 of the address counter 64.
The coordinate information Pj = (Xj, yj) of j is stored in parallel in the storage device 1.
0 output line 122. Next, the timing signal T2
is added to the storage device 10, and one word of the address Ai specified by the signal line 601, that is, the coordinate information Pi=(Xi,
yi) is read out to the output line 121. timing signal T4
When added to the storage device 10, the information at the specified address is read out from the address counter 64 via the signal line 640 and appears on the output line 123.
出力線122,121,123に読み出される座標情報
は、それぞれ先に第3図を参照して説明した(Xj,y
j),(Xi,yi),(X,y)として利用される。
番地カウンタ64の初期値はAjであつたが、T7信号
が遅延して作られるパルス信号567が加わると、その
内容が1減じられる。The coordinate information read out to the output lines 122, 121, and 123 was explained earlier with reference to FIG. 3 (Xj, y
j), (Xi, yi), (X, y).
The initial value of the address counter 64 was Aj, but when the pulse signal 567 generated by delaying the T7 signal is added, the content is subtracted by 1.
このようにして、タイミング信号T4からT7の列がく
り返される時、記憶装置10から、タイミング信号T4
で情報が読み出されるたびごとに、そのあとのタイミン
グ信号T7によつて、番地カウンタ64の内容が1ずつ
減じられることになり、目的とする点系列の終点から始
めて順次若い番地に入つている座標情報が読み出されて
、最遠点判定装置20に加えられることになる。番地カ
ウンタ64の内容は、信号線640を経て比較回路58
の1つの入力となる。In this way, when the sequence of timing signals T4 to T7 is repeated, the timing signal T4 is
Each time information is read out, the content of the address counter 64 is decremented by 1 by the subsequent timing signal T7, and the coordinates in the address counter 64 are decremented by 1 starting from the end point of the target point series. The information will be read and added to the farthest point determining device 20. The contents of the address counter 64 are transferred to the comparator circuit 58 via a signal line 640.
This is one input.
比較回路58の他の入力はスタツク60の出力601で
あり、比較回路58の2つの入力が一致した時信号線5
80にゞ1″信号が出力される。信号線580の信号が
SO″からS1″に変化するとFF57がセツトされる
。スタツク60の出力601には、目下処理中の点系列
の始点の番地が現われているから、結局番地カウンタ6
4の内容は、点系列の終点の番地から1つずつ減つて、
点系列の始点の番地に至るまで変化する。タイミング信
号T4からT7の1つの周期中に、先に第3図を参照し
て説明した最大点セツトパルス211が出力されると、
最遠点番地レジスタ62がストローブされて、番地カウ
ンタ64の出力情報640を蓄積する。The other input of the comparison circuit 58 is the output 601 of the stack 60, and when the two inputs of the comparison circuit 58 match, the signal line 5
A 1" signal is output to the stack 80. When the signal on the signal line 580 changes from SO" to S1", the FF 57 is set. The output 601 of the stack 60 contains the address of the starting point of the point series currently being processed. Since it is appearing, the address counter 6
The contents of 4 are subtracted by one from the end point address of the point series,
It changes up to the address of the starting point of the point series. When the maximum point set pulse 211 described above with reference to FIG. 3 is output during one period of the timing signals T4 to T7,
Farthest point address register 62 is strobed to accumulate output information 640 of address counter 64.
最遠点番地レジスタ62は最大点セツトパルス211が
加えられるたびに更新され、結局、目的とする点系列中
の最遠点の番地情報を蓄えることになる。FF57がセ
ツトされて、タイミング信号T8,t,,tlO,tl
lが発生する段階での動作は、先に第3図を参照して説
明した距離判定出力212がゞ1″であるかゞO″であ
るかによつて異なる。The farthest point address register 62 is updated every time the maximum point set pulse 211 is applied, and eventually stores the address information of the farthest point in the target point series. FF57 is set and the timing signal T8,t,,tlO,tl
The operation at the stage when 1 is generated differs depending on whether the distance determination output 212 described above with reference to FIG. 3 is 1'' or 0''.
まず、距離判定出力212がS1″の場合には、LM2
≦D2(A2+B2)であつたから、今調べ終つた点系
列は最早分割する必要はない。しかもこの点系列は処理
済みとして以後調べる必要はなく、この点系列の終点の
みを折点記憶装置90に記録すれはよい。従つて、折点
記憶装置90は、距離判定出力212が′1″の時に、
タイミング信号TlOが加わつたら終点レジスタ63の
出力情報630を記憶すると共に、次の入力に備えて、
内部に保持している書込番地を1番地分進めておく。距
離判定出力212がゞ02の場合には、LM2〉D2(
A2+B2)であつたから、今調べ終つた点系列をさら
に分割する必要がある。First, when the distance determination output 212 is S1'', LM2
Since ≦D2 (A2+B2), there is no need to divide the point series that has just been examined. Furthermore, this point series has been processed and there is no need to check it later, and it is sufficient to record only the end point of this point series in the break point storage device 90. Therefore, when the distance determination output 212 is '1'', the corner point storage device 90 stores
When the timing signal TlO is applied, the output information 630 of the end point register 63 is stored, and in preparation for the next input,
The internally held write address is advanced by one address. When the distance judgment output 212 is 02, LM2>D2(
A2+B2), it is necessary to further divide the point series that has just been investigated.
分割によつてできた2つの点系列は、それぞれさらに調
べる必要があるので、点系列の端点の順序関係を保つた
まま、スタツク60に書込んでおく。このために、スタ
ツク制御回路61は、距離判定出力212がゞ0Iの時
に、タイミング信号TlOが加わつたら、最遠点番地レ
ジスタ62の内容をスタツク60に書込み、そのあとタ
イミング信号Tllが加わつたら、終点レジスタ63の
内容をスタツク60に書込む。従つてスタツク60中に
は、最も早く読み出される情報として、今調べた点系列
の終点、次にこの点系列を分割する最遠点、さらに前が
らスタツク60中にあつたこの点系列の始点の順番に、
それぞれ番地情報の形で蓄えられることになる。タイミ
ング信号T,lはANDゲート595の1つの入力とな
る。Since the two point series created by the division need to be further investigated, they are written into the stack 60 while maintaining the order of the end points of the point series. For this purpose, when the distance judgment output 212 is 0I and the timing signal TlO is applied, the stack control circuit 61 writes the contents of the farthest point address register 62 to the stack 60, and then when the timing signal Tll is applied. If so, the contents of the end point register 63 are written to the stack 60. Therefore, the information that is read out the earliest in the stack 60 is the end point of the point series just examined, the farthest point at which this point series is divided, and the starting point of this point series that was previously in the stack 60. In order,
Each address will be stored in the form of address information. Timing signal T,l becomes one input of AND gate 595.
スタツク60が空状態でない時信号線602に′0″が
出力されており、インバータ65によつて反転されてA
NDゲート595に加わつている。従つてこの時タイミ
ング信号T,lはANDゲート595を通り、0Rゲー
ト59を経て遅延回路551の入力となり、これまで説
明してきた動作過程が再び開始される。タイミング信号
T,,が現・われる時点では、スタツク60中には少な
くとも1語は記憶されているが、1本のストロークの最
後の点系列の処理を終つた状態では、スタツク60中に
最早、1語しか格能されていない。この1語は、ストロ
ークの始点の番地情報である。この状態で次にタイミン
グ信号t1が発生されると、前と同様にスタツク制御回
路61への読出し指令として作用し、スタツク60から
最後の1語を読み出すので、信号線602に空状態を示
す″′1″信号が出力される。When the stack 60 is not empty, '0' is output on the signal line 602, which is inverted by the inverter 65 and becomes A.
It is added to ND gate 595. Therefore, at this time, the timing signals T and l pass through the AND gate 595, pass through the 0R gate 59, and become inputs to the delay circuit 551, and the operation process described above is restarted. At the time when the timing signal T, , appears, at least one word is stored in the stack 60, but when the last point sequence of one stroke has been processed, there is no longer one word in the stack 60. Only one word is graded. This one word is the address information of the starting point of the stroke. When the next timing signal t1 is generated in this state, it acts as a read command to the stack control circuit 61 as before and reads the last word from the stack 60, indicating an empty state on the signal line 602. A '1'' signal is output.
空信号602はANDゲート66を開き、タイミング信
号t1が出力52として現われる。信号52が加わると
、折点記憶装置90は、スタツク60の出力601の情
報、すなわちストロークの始点の番地を書込む。これに
よつて折点記憶装置90中には、与えられたストローク
に対し、第1図を用いて説明した折線近似の端点列が、
それぞれ記憶装置10中の対応点の番地の形で蓄えられ
た。信号52は、近似処理終了信号として外部の情報処
理装置で利用される。Empty signal 602 opens AND gate 66 and timing signal t1 appears as output 52. When the signal 52 is applied, the corner memory 90 writes the information at the output 601 of the stack 60, that is, the address of the starting point of the stroke. As a result, in the break point storage device 90, for a given stroke, the end point sequence of the break line approximation explained using FIG.
Each is stored in the form of an address of a corresponding point in the storage device 10. The signal 52 is used by an external information processing device as an approximation processing end signal.
この実施例では、独立した折点記憶装置90を設けたが
、出力される折点情報を、記憶装置中中に記録すること
によつて兼用し、省略することは容易にできる。In this embodiment, an independent break point storage device 90 is provided, but it can easily be omitted by recording the output break point information in the storage device.
また、本発明の装置の一部または全部をフアームウエア
によつて実現することも、本明細書で詳細に説明した動
作過程を参照すれば、容易になし得る。Moreover, part or all of the apparatus of the present invention can be easily realized by firmware by referring to the operation process described in detail in this specification.
第1図は折線近似の方法を説明するための図であり、入
力図形aと結果の折線図形dとを含む。
第2図はこの発明による1つの実施例を示すプロツク図
であり、記憶装置10、最遠点判定装置20、制御装置
50、折点記憶装置90より成る。第3図は第2図の最
遠点判定装置20の詳細な構成を示す図であり、減算器
26,27,34,乗算器28,29,30,31,3
2,33,40,41,最大レジスタ37を含んでいる
。第4図は第2図中主として制御装置50の詳細な構成
を示す図であり、遅延回路551〜559,563,5
64、スタツク60、スタツク制御回路61、最遠点番
地レジスタ62、終点レジスタ63、番地カウンタ64
、記憶装置10、折点記憶装置90を含んでいる。FIG. 1 is a diagram for explaining the method of line approximation, and includes an input figure a and a resultant line figure d. FIG. 2 is a block diagram showing one embodiment according to the present invention, which includes a storage device 10, a farthest point determination device 20, a control device 50, and a corner point storage device 90. FIG. 3 is a diagram showing a detailed configuration of the farthest point determination device 20 in FIG.
2, 33, 40, 41, and a maximum register 37. FIG. 4 is a diagram mainly showing the detailed configuration of the control device 50 in FIG.
64, stack 60, stack control circuit 61, farthest point address register 62, end point register 63, address counter 64
, a storage device 10, and a corner storage device 90.
Claims (1)
を入力とし前記記憶装置中に蓄えられた特定の2点によ
つて定まる直線との距離が最大であるような前記記憶装
置中に蓄えられた点を判定する最遠点判定装置と、前記
記憶装置および最遠点判定装置に接続され、前記記憶装
置から読み出す2点を指定し、それら2点を用いて計算
される前記最大距離が、予じめ定められた1つの基準値
より小さくなる状態まで前記2点を順次変えながら指定
し、前記最遠点判定装置をくり返して動作せしめる制御
装置と、前記制御装置の出力する折点情報を蓄積する折
点記憶装置とを備えたことを特徴とする蓄積された点列
データの折線近似装置。1. Stored in the storage device such that the distance between a storage device that stores point coordinates and a straight line defined by two specific points stored in the storage device with the output of the storage device as input is the maximum. a farthest point determination device that determines the farthest point determined by the device; and a farthest point determination device that is connected to the storage device and the farthest point determination device, specifies two points to be read from the storage device, and calculates the maximum distance calculated using those two points. , a control device for repeatedly operating the furthest point determination device by sequentially changing the two points until the two points become smaller than one predetermined reference value; and corner information output by the control device. 1. A broken line approximation device for accumulated point sequence data, comprising a breaking point storage device for accumulating.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP10539075A JPS5929908B2 (en) | 1975-08-29 | 1975-08-29 | Broken line approximation device for accumulated point sequence data |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP10539075A JPS5929908B2 (en) | 1975-08-29 | 1975-08-29 | Broken line approximation device for accumulated point sequence data |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS5231633A JPS5231633A (en) | 1977-03-10 |
| JPS5929908B2 true JPS5929908B2 (en) | 1984-07-24 |
Family
ID=14406308
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP10539075A Expired JPS5929908B2 (en) | 1975-08-29 | 1975-08-29 | Broken line approximation device for accumulated point sequence data |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPS5929908B2 (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS61208184A (en) * | 1985-03-12 | 1986-09-16 | Fujitsu Ltd | Compression system for pattern information amount |
-
1975
- 1975-08-29 JP JP10539075A patent/JPS5929908B2/en not_active Expired
Also Published As
| Publication number | Publication date |
|---|---|
| JPS5231633A (en) | 1977-03-10 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US5781199A (en) | Parallel processing method for use with graphics processor | |
| US20170286507A1 (en) | Database search system and database search method | |
| US4941111A (en) | Video picking and clipping method and apparatus | |
| CN118982453B (en) | SLAM hardware acceleration architecture suitable for resource limited environment | |
| CN117369729B (en) | Additional writing implementation method of ZNS SSD | |
| US10083127B2 (en) | Self-ordering buffer | |
| EP3752912B1 (en) | Systems and methods for low latency hardware memory management | |
| JPS5929908B2 (en) | Broken line approximation device for accumulated point sequence data | |
| JPH04120652A (en) | Parallel processors | |
| CN110941730A (en) | Retrieval method and device based on facial feature data offset | |
| CN111045961A (en) | Data processing method and storage controller using the same | |
| US12072808B2 (en) | Data storage | |
| JP2001188675A (en) | Data transfer device | |
| KR102886960B1 (en) | Method for aligning gene sequence using graphic processing unit | |
| JP2550055B2 (en) | Free space management device for storage device | |
| JPH0114608B2 (en) | ||
| JPH02122328A (en) | File preparation system | |
| CN121980626A (en) | Data operation method, device, equipment and computer readable storage medium | |
| JP2932568B2 (en) | Data communication device | |
| GB2241362A (en) | Computer aided processing of geometrical constructional objects (CAD models) | |
| CN121765152A (en) | Front-end rendering optimization method based on WebAssembly | |
| KR100243310B1 (en) | Target recognition technique | |
| HK40039299A (en) | Systems and methods for low latency hardware memory management | |
| CN120704598A (en) | Command processing method, device, electronic device and storage medium | |
| CN120407436A (en) | NVme memory recovery method, device, equipment and storage medium |