Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JPH042999B2 - - Google Patents
[go: Go Back, main page]

JPH042999B2 - - Google Patents

Info

Publication number
JPH042999B2
JPH042999B2 JP3456684A JP3456684A JPH042999B2 JP H042999 B2 JPH042999 B2 JP H042999B2 JP 3456684 A JP3456684 A JP 3456684A JP 3456684 A JP3456684 A JP 3456684A JP H042999 B2 JPH042999 B2 JP H042999B2
Authority
JP
Japan
Prior art keywords
chain
interpolation
window
coordinates
handwritten
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
Application number
JP3456684A
Other languages
Japanese (ja)
Other versions
JPS60178598A (en
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 filed Critical
Priority to JP3456684A priority Critical patent/JPS60178598A/en
Publication of JPS60178598A publication Critical patent/JPS60178598A/en
Publication of JPH042999B2 publication Critical patent/JPH042999B2/ja
Granted legal-status Critical Current

Links

Landscapes

  • Arrangements For Transmission Of Measured Signals (AREA)
  • Facsimiles In General (AREA)

Description

【発明の詳細な説明】 〔発明の技術分野〕 この発明は、手書き図形を伝送する手書き図形
伝送装置に関するものである。
DETAILED DESCRIPTION OF THE INVENTION [Technical Field of the Invention] The present invention relates to a handwritten figure transmission device that transmits handwritten figures.

〔従来技術〕[Prior art]

従来、この種の装置として第1図に示すものが
あつた。図において、1は座標検出部、2はA/
D変換部、3はA/D変換部2で得られる各時刻
tiにおけるX座標XiとY座標Yiの変化を監視し、
8連結チエーン図形を得るために大きさ1の8方
向フリーマンチエーンを検出するチエーン検出
部、4は上記チエーン検出部3で得られる8方向
チエーン列に対してデータ圧縮のための符号化を
行なうチエーン符号化部、5は上記チエーン符号
化部4で得られてデータを回線を通して伝送する
ために、必要に応じて変調、復調を行ない、全体
の通信制御を行なう通信制御部、7は通信制御部
6により受信された手書き図形信号を8連結のチ
エーン列に復号化するチエーン復号化部、6は手
書きされた図形又は受信された図形をドツドイメ
ージで記憶する例えばビデオメモリなどの画像記
憶部、8は上記画像記憶部6の内容を表示する例
えばCRTデイスプレイなどの画像表示部、9は
回線である。
Conventionally, there has been a device of this type as shown in FIG. In the figure, 1 is a coordinate detection unit, 2 is an A/
D converter, 3 is each time obtained by A/D converter 2
Monitor changes in the X coordinate Xi and Y coordinate Yi at ti,
A chain detection unit detects an 8-direction freeman chain of size 1 to obtain an 8-connected chain figure, and 4 is a chain that performs encoding for data compression on the 8-direction chain array obtained by the chain detection unit 3. An encoding unit 5 is a communication control unit that modulates and demodulates the data obtained by the chain encoding unit 4 as necessary and performs overall communication control in order to transmit the data through a line; 7 is a communication control unit 6 is a chain decoding unit that decodes the handwritten figure signal received by 6 into an 8-connected chain string; 6 is an image storage unit such as a video memory that stores the handwritten figure or the received figure as a dot image; 8 is an image storage unit such as a video memory; An image display unit, such as a CRT display, displays the contents of the image storage unit 6, and 9 is a line.

次に動作について説明する。 Next, the operation will be explained.

手書きされた図形は、座標検出部1を通してペ
ンの位置座標(X、Y)及びペンのアツプ/ダウ
ンの信号(Z)としてA/D変換部2に入力され
る。次にこのA/D変換部2において一定の周期
でペンの位置座標が標本化され、各時刻tiにおけ
る位置座標信号Xi、Yi及びこのときのペンのア
ツプ/ダウン信号Ziが得られる。次に8連結チエ
ーン図形を得るため、各標本化時刻tiにおけるX
座標、Y座標の変化がチエーン検出部3で監視さ
れ、第2図に示すような大きさ1の変位が生じた
時、その変位が0〜7のコードからなる大きさ1
の8方向フリーマンチエーンで表示される。この
8方向フリーマンチエーンコードは、中心位置
A0と、この中心位置A0に対してそのX又はYの
相対座標の絶対値が1となるような各格子点A1
〜A8とを結ぶ線分の方向により決定される。
A handwritten figure is input through the coordinate detection section 1 to the A/D conversion section 2 as pen position coordinates (X, Y) and pen up/down signals (Z). Next, the A/D converter 2 samples the pen's position coordinates at regular intervals, and obtains the position coordinate signals Xi and Yi at each time ti and the up/down signal Zi of the pen at this time. Next, in order to obtain an 8-connected chain figure,
Changes in coordinates and Y coordinates are monitored by the chain detection unit 3, and when a displacement of magnitude 1 as shown in FIG. 2 occurs, the displacement is of magnitude 1 consisting of codes 0 to 7
It is displayed in an 8-way freeman chain. This 8-way freeman chain cord has a center position
A0 and each grid point A1 whose absolute value of its X or Y relative coordinate with respect to this center position A0 is 1.
It is determined by the direction of the line segment connecting ~A8.

そしてこのチエーン検出部3において得られた
8方向のチエーン列に対して、データ圧縮のため
の符号化がチエーン符号化部4で行なわれる。こ
の符号化方式としては、例えば、8方向のフリー
マンチエーンの差分チエーンに対してその差分値
の出現確率にもとづくハフマン符号を割当て、ス
トロークの先頭点に対しては、先頭を示す符号と
その絶対座標X、Yとで符号化し、ストロークの
終了時には、終了を示す符号を出すようにする。
このようにして符号化されたデータは、通信制御
部5において必要に応じて変調され伝送される。
また通信制御部5は、データの受信時にはこのデ
ータの復調を行なつて全体の通信制御を行なつて
いる。また上記チエーン符号化部4で符号化され
たチエーンは、通信制御部5に送られると同時
に、画像記憶部6にも送られ、該画像記憶部6に
書き込まれる。そしてこの画像記憶部6の内容は
画像表示部8に表示される。チエーン復号化部7
は、通信制御部5で受信データを必要に応じて復
調して得た信号を復号化し、この復号化により得
られたチエーン列に関する情報を上記画像記憶部
6に書き込む。
The chain array in eight directions obtained by the chain detecting section 3 is then encoded for data compression by the chain encoding section 4. In this encoding method, for example, a Huffman code is assigned to the difference chain of the 8-direction Freeman chain based on the probability of appearance of the difference value, and for the start point of the stroke, a code indicating the start and its absolute coordinates are assigned. The stroke is encoded using X and Y, and at the end of the stroke, a code indicating the end is output.
The data encoded in this manner is modulated and transmitted as necessary in the communication control section 5.
Furthermore, when receiving data, the communication control section 5 demodulates the data and controls the overall communication. Further, the chain encoded by the chain encoding section 4 is sent to the communication control section 5, and at the same time, is also sent to the image storage section 6 and written into the image storage section 6. The contents of this image storage section 6 are then displayed on the image display section 8. Chain decoding section 7
The communication control unit 5 demodulates the received data as necessary and decodes the obtained signal, and writes information regarding the chain array obtained by this decoding to the image storage unit 6.

従来の手書き図形伝送装置は以上のように構成
されているので、常に8連結図形を得るために非
常に高速の座標の入力、即ち非常に高速のA/D
変換及びチエーン検出が必要であつた。例えば装
置の解像度を4ドツト/mmとし、筆速が最大1000
mm/秒までこの解像度を保持できるようにするた
めには、標本化周波数を4000Hz程度の高い周波数
にしなければならなかつた。また、チエーン検出
時に雑音の影響を受けやすく、高速の筆記に対し
て8連結チエーンの検出が間に合わない場合が生
じるという欠点があつた。さらに、伝送ビツトレ
イトが低い場合には、データ圧縮率があまり高く
ないため受信側で伝送遅延が顕著になるなどの欠
点があつた。
Since the conventional handwritten figure transmission device is configured as described above, very high-speed coordinate input, that is, very high-speed A/D, is required to always obtain 8-connected figures.
Conversion and chain detection were required. For example, if the resolution of the device is 4 dots/mm, the maximum writing speed is 1000.
In order to maintain this resolution down to mm/sec, the sampling frequency had to be as high as 4000 Hz. In addition, there is a drawback that the detection of the chain is easily affected by noise, and the detection of the 8-connected chain may not be in time for high-speed writing. Furthermore, when the transmission bit rate is low, the data compression rate is not very high, so there are disadvantages such as noticeable transmission delays on the receiving side.

〔発明の概要〕[Summary of the invention]

この発明は、上記のような従来のものの欠点を
除去するためになされたもので、直接、8連結チ
エーンを逐次検出するのではなく、入力座標を一
定周期で標本化して標本点を得、該各標本点間の
相対座標に対して直線補間処理を施して該相対座
標を大きさ1の8連結補間チエーンに分解すると
ともに、得られた8連結補間チエーン列に対して
M×Nの大きさのウインドウを設定し、上記チエ
ーン列が該ウインドウの外周フレームを上記チエ
ーン列が通過したときその通過位置に対応したウ
インドウチエーンコードを発生し、このウインド
ウチエーン列に対して符号化を行なうようにする
ことにより、高速の筆記に対しても確実に8連結
チエーンが発生できるとともに、データ圧縮率を
高くして低い伝送ビツトレイトでも遅延なくデー
タ伝送をすることのできる手書き図形伝送装置を
提供することを目的としている。
This invention was made to eliminate the drawbacks of the conventional ones as described above, and instead of directly sequentially detecting the 8-connected chain, the input coordinates are sampled at a constant period to obtain sample points. A linear interpolation process is applied to the relative coordinates between each sample point, and the relative coordinates are decomposed into 8 connected interpolation chains of size 1, and the resulting 8 connected interpolation chains have a size of M×N. A window is set, and when the chain train passes the outer frame of the window, a window chain code corresponding to the passing position is generated, and encoding is performed for this window chain train. It is an object of the present invention to provide a handwritten figure transmission device that can reliably generate an 8-connected chain even during high-speed handwriting, and can also increase the data compression rate and transmit data without delay even at a low transmission bit rate. It is said that

〔発明の実施例〕[Embodiments of the invention]

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

第3図はこの発明の一実施例による手書き図形
伝送装置の構成図を示し、図において、1はペン
の位置座標(X、Y)とペンのアツプ/ダウン状
態を検出する座標検出部、2は上記座標検出部1
で得られた位置座標信号(X、Y)をA/D変換
して標本化するとともにその位置座標のペンのア
ツプ/ダウン信号(Z)をも標本化するA/D変
換部、10は上記A/D変換部2で得られた各標
本点の座標(Xi、Yi)及びペンのアツプ/ダウ
ン信号(Zi)から、各標本点とその直前の標本点
との相対座標を直線補間処理によつて8連結チエ
ーン列に分解する補間チエーン発生部であり、上
記8連結チエーン列は、補間格子点間を結ぶ大き
さ1の補間チエーンからなつている。11は上記
補間チエーン発生部10において発生された補間
チエーン列に対してM×Nの補間格子点からなる
ウインドウを設定し、上記補間チエーン列が該ウ
インドウの外周フレームを通過したとき、その位
置に対応したウインドウチエーンを発生するウイ
ンドウチエーン発生部、12は上記ウインドウチ
エーン発生部11において得られたウインドウチ
エーン列に対してデータ圧縮のための符号化を行
なうウインドウチエーン符号化部、5は上記ウイ
ンドウチエーン符号化部12において符号化され
た手書き図形信号を必要に応じて変調して伝送
し、また受信したデータを復調が必要である場合
には復調し、合わせて全体の通信制御をする通信
制御部、14は上記通信制御部5において受信、
復調された手書き図形データをウインドウチエー
ンに復号化するウインドウチエーン復号化部、1
3はウインドウチエーン発生部11において発生
されるウインドウチエーン列又は上記ウインドウ
チエーン復号化部14において得られるウインド
ウチエーン列に対して、直線補間処理を施して大
きさ1の8連結チエーン列を発生するウインドウ
チエーン補間部、6は上記ウインドウチエーン補
間部13において得られる大きさ1の8連結チエ
ーン列を手書きされた図形及び受信された図形の
ドツトイメージとして記憶しておく、例えばビデ
オメモリなどの画像記憶部、8は上記画像記憶部
6の内容を表示する例えばCRTデイスプレイな
どの画像表示部、9は回線である。
FIG. 3 shows a configuration diagram of a handwritten figure transmission device according to an embodiment of the present invention, in which 1 is a coordinate detection unit that detects the position coordinates (X, Y) of the pen and the up/down state of the pen; is the coordinate detection section 1
10 is the above-mentioned A/D conversion unit that A/D converts and samples the position coordinate signal (X, Y) obtained in , and also samples the up/down signal (Z) of the pen at the position coordinate. From the coordinates (Xi, Yi) of each sample point obtained by the A/D converter 2 and the up/down signal (Zi) of the pen, the relative coordinates of each sample point and the sample point immediately before it are subjected to linear interpolation processing. Therefore, it is an interpolation chain generating section that decomposes into 8-connected chain arrays, and the 8-connected chain arrays are made up of interpolation chains of size 1 connecting interpolation grid points. 11 sets a window consisting of M×N interpolation grid points for the interpolation chain sequence generated in the interpolation chain generating section 10, and when the interpolation chain sequence passes through the outer peripheral frame of the window, the window is set at that position. A window chain generation section 12 generates a corresponding window chain; 12 is a window chain encoding section that performs encoding for data compression on the window chain sequence obtained in the window chain generation section 11; 5 is a window chain encoding section 5; A communication control unit that modulates and transmits the handwritten figure signal encoded in the encoding unit 12 as necessary, demodulates the received data if demodulation is necessary, and also controls the overall communication. , 14 are received by the communication control unit 5,
a window chain decoding unit that decodes demodulated handwritten figure data into a window chain;
3 is a window that performs linear interpolation processing on the window chain sequence generated in the window chain generation unit 11 or the window chain sequence obtained in the window chain decoding unit 14 to generate an 8-connected chain sequence of size 1. The chain interpolation unit 6 is an image storage unit such as a video memory, which stores the 8-connected chain array of size 1 obtained in the window chain interpolation unit 13 as dot images of handwritten figures and received figures. , 8 is an image display section such as a CRT display for displaying the contents of the image storage section 6, and 9 is a line.

次に動作について説明する。 Next, the operation will be explained.

30Hz程度の標本化周波数で各時刻tiにおけるペ
ンの位置座標(Xi、Yi)及びペンのアツプ/ダ
ウン状態を示す信号(Zi)が座標検出部1におい
て入力された後、これらの信号はA/D変換部2
において量子化されて離間的な値に変換される。
次に補間チエーン発生部10においては、各時刻
tiにおける各信号Xi、Yi、Ziからストロークの開
始及び終了が検出されると共に、ストロークの継
続点については各標本点(X(i−1)、Y(i−
1))との相対座標が求められ、直線補間処理に
よつて得られる補間格子点より8連結チエーン列
(補間チエーン列)が出力される。
After the pen position coordinates (Xi, Yi) and the signal (Zi) indicating the up/down state of the pen at each time ti are input to the coordinate detection unit 1 at a sampling frequency of about 30Hz, these signals are converted into A/ D converter 2
is quantized and converted into discrete values at .
Next, in the interpolation chain generation section 10, each time
The start and end of the stroke are detected from each signal Xi, Yi, and Zi at ti, and the continuation point of the stroke is detected from each sample point (X(i-1), Y(i-
1)), and an 8-connected chain sequence (interpolated chain sequence) is output from the interpolation grid points obtained by linear interpolation processing.

この場合の相対座標から補間格子点を求める処
理を高速で実現する方法について次に説明する。
A method for quickly realizing the process of finding interpolated grid points from relative coordinates in this case will be described below.

まず、第5図に示すように、相対座標のx座標
dx、y座標dyの正負の符号並びに絶対値の大小
比較より、該相対座標(dx、dy)を第4図に示
す〜の8つのオクタントのいずれかに分類す
る。第4図及び第5図に示される関係から第オ
クタント以外のオクタントに属する相対座標に対
しては、第オクタントへ投影し、そのときの相
対座標(dx、dy)に対して補間格子点並びに補
間チエーンを求め、最終的に各応答するオクタン
トに逆投影して実際の補間格子点並びに補間チエ
ーンを求める。
First, as shown in Figure 5, the x coordinate of relative coordinates
By comparing the positive and negative signs of the dx and y coordinates dy and the magnitude of their absolute values, the relative coordinates (dx, dy) are classified into one of the eight octants shown in FIG. 4. From the relationships shown in Figures 4 and 5, relative coordinates belonging to octants other than the octant are projected onto the octant, and interpolation grid points and interpolation are performed for the relative coordinates (dx, dy) at that time. The chain is determined and finally back-projected onto each responding octant to determine the actual interpolation grid points and interpolation chain.

次に第オクタントの相対座標より補間格子点
並びに補間チエーン列を求める方法について述べ
る。
Next, a method for obtaining interpolated grid points and interpolated chain sequences from the relative coordinates of the octant will be described.

一般に手書き図形を30Hz程度で標本化した場合
の相対座標(直前の標本点座標と現在の標本点座
標との差分)の分布を調べると、ほとんどは絶対
値16ドツト以内である。従つて相対座標(dx、
dy)について絶対値16までの補間チエーンをテ
ーブルとして記憶しておけば充分である。
In general, if you examine the distribution of relative coordinates (difference between the previous sample point coordinate and the current sample point coordinate) when handwritten figures are sampled at about 30 Hz, most of them are within 16 dots in absolute value. Therefore, the relative coordinates (dx,
It is sufficient to store an interpolation chain of up to an absolute value of 16 as a table for dy).

第6図に示す第オクタントの相対座標につい
て第8図に示すような補間チエーンテーブルを参
照する。例えば、第7図に示すような(3、2)
という相対座標が与えられた場合、第8図の補間
チエーンテーブルの(3、2)座標を採用し、対
応するチエーン長と補間チエーン列を求める。即
ち、チエーン長=3よりテーブルに記憶された2
バイトの補間チエーン列中、上位3ビツトのチエ
ーン列{1、0、1}を得る。実際の補間格子点
は、第4図に示されたチエーンの方向の関係より
第7図に示すような補間格子点が求められる。
Regarding the relative coordinates of the octant shown in FIG. 6, an interpolation chain table as shown in FIG. 8 is referred to. For example, (3, 2) as shown in Figure 7.
When the relative coordinates are given, the (3, 2) coordinates of the interpolation chain table in FIG. 8 are used to find the corresponding chain length and interpolation chain sequence. In other words, since chain length = 3, 2 stored in the table
Obtain the chain sequence {1, 0, 1} of the upper 3 bits in the interpolation chain sequence of bytes. The actual interpolation grid points are determined as shown in FIG. 7 based on the chain direction relationship shown in FIG. 4.

ここで相対座標が補間チエーン発生部10のテ
ーブルの範囲を越える場合には、第9図に示すよ
うに、あらかじめ設定されたX方向、Y方向の補
間チエーンテーブルの大きさLx、Ly(上述の説
明ではLx=16、Ly=16)により、相対座標を分
割し、途中の中継点座標列を計算し、得られた中
継点の座標より標本点と中継点との間、及び中継
点相互間の差分座標を計算し、それぞれの区間に
対して先に述べた手法で補間チエーン発生部10
で補間チエーンの発生を行なう。
If the relative coordinates exceed the range of the table of the interpolation chain generator 10, as shown in FIG. In the explanation, the relative coordinates are divided by Lx = 16, Ly = 16), the intermediate point coordinate string is calculated, and from the obtained relay point coordinates, the distance between the sample point and the relay point, and between the relay points is calculated. The interpolation chain generation unit 10 calculates the difference coordinates of
generates an interpolation chain.

第9図では1つの中継点T1の座標を計算した
のち、Pi〜T1区間の補間チエーンの発生はT1の
Piに対する相対座標(dx1、dy1)より補間チエ
ーン列を検索し、T1〜Pi+1区間の補間チエー
ンの発生処理はPi+1のT1に対する相対座標
(dx2、dy2)より補間チエーン列を検索し、補間
チエーンを発生させるようにしている。
In Figure 9, after calculating the coordinates of one relay point T1, the generation of the interpolation chain between Pi and T1 is
The interpolation chain sequence is searched from the relative coordinates (dx1, dy1) with respect to Pi, and the interpolation chain generation process for the interval T1 to Pi+1 is performed by searching the interpolation chain sequence from the relative coordinates of Pi+1 with respect to T1 (dx2, dy2), and generating the interpolation chain. I'm trying to make it happen.

このようにして補間チエーン発生部10で発生
された補間チエーン列に対し、ウインドウチエー
ン発生部11において第10図に示すようなM×
Nのサイズのウインドウが設定され、上記補間チ
エーン列がウインドウの外周フレームを通過した
ときにその通過位置に対応したウインドウチエー
ンコードが発生される。この第10図はウインド
ウのサイズが5×7の場合を示している。この場
合にはウインドウの外周点は全部で20個あり、従
つて20方向のウインドウチエーンコードが与えら
れる。同図の場合では、8方向の補間チエーン列
{1、2、1}に対して1つのウインドウチエー
ン{3}が発生する。
For the interpolation chain sequence generated in the interpolation chain generation section 10 in this way, the window chain generation section 11 generates M× as shown in FIG.
A window of size N is set, and when the interpolation chain train passes through the outer peripheral frame of the window, a window chain code corresponding to the passing position is generated. FIG. 10 shows a case where the window size is 5×7. In this case, there are a total of 20 peripheral points of the window, and therefore window chain codes in 20 directions are given. In the case of the figure, one window chain {3} is generated for the interpolation chain sequence {1, 2, 1} in eight directions.

また、ストロークの終了時には、5×7のウイ
ンドウの場合、その終了時点でのペンの位置を示
すウインドウ内部座標を、第11図に示すE0〜
E14の15種類のコードで表現する。
In addition, at the end of the stroke, in the case of a 5x7 window, the window internal coordinates indicating the pen position at the end of the stroke are calculated from E0 to E0 as shown in Fig. 11.
Expressed with 15 types of E14 codes.

そしてこのウインドウチエーン発生部11にお
いて得られたウインドウチエーン列に対し、ウイ
ンドウチエーン符号化部12においてデータ圧縮
のため、例えば次のような符号化が行なわれる。
Then, the window chain sequence obtained by the window chain generating section 11 is subjected to the following encoding in the window chain encoding section 12 for data compression.

即ち、ウインドウチエーンコードの差分である
差分ウインドウチエーンに対して、差分ウインド
ウチエーンの出現分布に応じたハフマン
(Huffman)符号を割当てて符号化し、ストロー
クの先頭ではストロークの先頭を示す符号及び先
頭点の絶対座標を符号化し、ストロークの終了で
はストロークの終了を示す終了コード(En)と
ウインドウ内部コード(E0〜E14)とを4ビツト
の固定長で符号化する。
That is, a Huffman code corresponding to the appearance distribution of the differential window chain is assigned to the differential window chain, which is the difference between the window chain codes, and encoded. The absolute coordinates are encoded, and at the end of the stroke, an end code (En) indicating the end of the stroke and a window internal code (E0 to E14) are encoded with a fixed length of 4 bits.

このウインドウチエーン符号化部12において
符号化された信号は、通信制御部5によつて回線
を通して別の手書き図形伝送装置に伝送される。
The signal encoded by the window chain encoding section 12 is transmitted by the communication control section 5 to another handwritten figure transmission device through a line.

一方、通信制御部5において受信された手書き
図形データは、ウインドウチエーン復号化部14
でストロークの先頭、ストロークの途中、ストロ
ークの終了の3つの状態が判定され、ストローク
の先頭では先頭点の絶対座標が、ストロークの終
了時では終了コードに続いてウインドウ内部コー
ド(E0〜E14)が復号化され、ストロークの途中
ではウインドウチエーン列に復号化される。ウイ
ンドウチエーン補間部13では、ウインドウチエ
ーン発生部11及びウインドウチエーン復号化部
14において得られたウインドウチエーンが8方
向チエーンに分解される。ウインドウチエーンか
ら8方向チエーンへの分解は、第12図に示す変
換テーブルを参照して行なわれる。そしてこのウ
インドウチエーン補間部13において得られた8
方向チエーン列は、手書き図形画像として画像記
憶部6に書き込まれ、その内容は画像表示部8に
よつて表示される。
On the other hand, the handwritten figure data received by the communication control unit 5 is transmitted to the window chain decoding unit 14.
Three states are determined: the beginning of the stroke, the middle of the stroke, and the end of the stroke. At the beginning of the stroke, the absolute coordinates of the starting point are determined, and at the end of the stroke, the window internal code (E0 to E14) is displayed following the end code. In the middle of the stroke, it is decoded into a window chain sequence. In the window chain interpolation unit 13, the window chain obtained in the window chain generation unit 11 and the window chain decoding unit 14 is decomposed into eight-way chains. The window chain is decomposed into an 8-way chain with reference to the conversion table shown in FIG. 8 obtained in this window chain interpolation section 13
The directional chain sequence is written into the image storage section 6 as a handwritten graphic image, and its contents are displayed on the image display section 8.

このような本実施例では、30Hz程度の低速で標
本化された標本点座標を高速で直線補間処理して
8方向の補間チエーン列を発生するようにしたの
で、高速のA/D変換器が不要であり、どのよう
な速い筆記に対しても確実に8連結のチエーンを
発生することができ、解像度に悪影響を及ぼすこ
とはない。さらに、上記補間チエーン列に対して
ウインドウを設定してこれをウインドウチエーン
列に変換し、これにより得られたウインドウチエ
ーンに対して符号化を行なうようにしたので、8
方向のチエーンよりもデータ圧縮率が高く、受信
側での伝送遅延がほとんど生じない。
In this embodiment, sample point coordinates sampled at a low speed of about 30 Hz are subjected to linear interpolation processing at high speed to generate an interpolation chain train in eight directions. It is not necessary, and an 8-connection chain can be reliably generated for any fast writing without adversely affecting the resolution. Furthermore, we set a window for the above interpolated chain string, converted it to a window chain string, and encoded the window chain obtained by this, so 8
The data compression rate is higher than that of a directional chain, and there is almost no transmission delay on the receiving side.

第13図は、本発明における補間チエーン発生
のための他の実施例を示したもので、この実施例
では、同図に示すフローチヤートに従つて整数加
減算のみで、直接、補間チエーンを求めるように
している。
FIG. 13 shows another embodiment for generating an interpolation chain according to the present invention. In this embodiment, an interpolation chain is directly determined by only integer addition and subtraction according to the flow chart shown in the same figure. I have to.

以下、このフローチヤートに従つて補間チエー
ンを発生する場合の動作について説明する。
The operation for generating an interpolation chain will be described below in accordance with this flowchart.

まずオクタントの決定がステツプAで行なわ
れ、その後各相対座標は第1オクタントに投影さ
れた後(ステツプB)、以下の処理がなされる。
First, the octant is determined in step A, and then each relative coordinate is projected onto the first octant (step B), and then the following processing is performed.

ここで、補間チエーン発生用の式(1)として、 式(1)=2*N*dy−(2*I+1)*dy dx、dy:相対座標 I:Y座標の整数値(0、1、……) N:X座標値(1、2、…、N) この式(1)は傾きdy/dxの直線、即ち2つの標
本点間を結ぶ直線とこの直線を挟む2つの補間格
子点間を結ぶ直線との交点が、上記2つの補間格
子点のうちいずれの補間格子点に近いかを判定す
るための式であり、これによれば補間チエーン列
を、直接、整数加減算のみで求めることができ
る。
Here, the formula (1) for interpolation chain generation is as follows: Formula (1) = 2*N*dy-(2*I+1)*dy dx, dy: relative coordinates I: integer value of Y coordinate (0, 1, ...) N: X coordinate value (1, 2, ..., N) This equation (1) is a straight line with slope dy/dx, that is, a straight line connecting two sample points and two interpolation grid points that sandwich this straight line. This is a formula for determining which interpolation grid point of the above two interpolation grid points the intersection with the straight line connecting I can do it.

そしてまず初期設定として、N=1、I=0
(ステツプC)、式(1)=0(ステツプD)とし、さ
らに差分δとして δ=2*dy−dx を計算する(ステツプE)。
First, as initial settings, N=1, I=0
(Step C), equation (1) is set to 0 (Step D), and the difference δ is calculated as δ=2*dy−dx (Step E).

次にX座標値Nがdx+1以上か否かを判定し
(ステツプF)、dx+1未満であれば次の補間チ
エーン発生ステツプ(ステツプG〜P)に進み、
またdx+1以上であれば座標の更新(ステツプ
Q)を行なう。
Next, it is determined whether the X coordinate value N is greater than or equal to dx+1 (step F), and if it is less than dx+1, the process proceeds to the next interpolation chain generation step (steps G to P).
Moreover, if it is dx+1 or more, the coordinates are updated (step Q).

補間チエーン発生ステツプでは、上記式(1)の値
に上記差分δの値を加えたものを新たに式(1)の値
とし(ステツプG)、この値の正、負を判定する
(ステツプH)。そしてこの値が正又は0であれ
ば、上記Y座標の整数値I、X座標値Nにそれぞ
れ1を加え(ステツプJ)、また差分を新たに2
*(dy−dx)の値に設定し直し(ステツプL)、
補間チエーン{1}を発生する(ステツプN)。
In the interpolation chain generation step, the value of equation (1) above plus the value of the difference δ is set as a new value of equation (1) (step G), and whether this value is positive or negative is determined (step H ). If this value is positive or 0, add 1 to the integer value I of the Y coordinate and the integer value N of the X coordinate (step J), and newly calculate the difference by 2.
*Reset to the value of (dy−dx) (step L),
Generate interpolation chain {1} (step N).

また、上記ステツプGで得られた式(1)の値が負
であれば、X座標値Nのみに1を加え(ステツプ
I)、差分を新たに2*dyの値に設定し直し(ス
テツプK)、補間チエーン{0}を発生する(ス
テツプM)。
Furthermore, if the value of equation (1) obtained in step G above is negative, 1 is added only to the X coordinate value N (step I), and the difference is reset to a new value of 2*dy (step K), generate an interpolation chain {0} (step M).

そして上記ステツプM、Nで得られた補間チエ
ーン{0}又は{1}は、オクタント値に応じて
8方向フリーマンチエーンに変換され(ステツプ
O、P)、上記ステツプFに戻る。このような動
作を繰り返して相対座標(dx、dy)を補間チエ
ーン列に分解する。
Then, the interpolation chain {0} or {1} obtained in steps M and N is converted into an eight-way Freeman chain according to the octant value (steps O and P), and the process returns to step F. By repeating these operations, the relative coordinates (dx, dy) are decomposed into interpolation chain sequences.

このようにして得られた補間チエーン列に対し
て上記実施例と同様にして符号化が行なわれる。
The interpolation chain sequence thus obtained is encoded in the same manner as in the above embodiment.

このような実施例においても、上記実施例と同
様に、どのような速い筆記に対しても確実に8連
結の補間チエーンを発生することができ、さらに
データ圧縮も高効率で行なうことができる。
In this embodiment, as in the above embodiment, an 8-connected interpolation chain can be reliably generated for any fast handwriting, and data can be compressed with high efficiency.

なお、上記実施例では、補間チエーン発生部に
おいて補間チエーン列をすべてフリーマンの8方
向チエーンに変換して出力し、ウインドウチエー
ン発生部では8方向チエーン列に対してウインド
ウをかける場合について説明したが、補間チエー
ン発生部では8方向チエーンに変換せずに、標本
点毎のオクタント番号、チエーン長、オクタント
内チエーン符号(0または1)を出力するように
し、ウインドウチエーン発生部12においてこれ
らより直接ウインドウチエーンを発生させるよう
にしてもよい。
In the above embodiment, the interpolation chain generation section converts all interpolation chain sequences into Freeman's 8-direction chains and outputs them, and the window chain generation section applies a window to the 8-direction chain sequence. The interpolation chain generation section outputs the octant number, chain length, and intra-octant chain code (0 or 1) for each sample point without converting it to an 8-way chain, and the window chain generation section 12 directly converts the window chain from these. may be generated.

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

以上のように、本発明によれば、直接、8連結
チエーンを検出するのではなく、従来に比し低速
で標本化して得られた各標本点間の相対座標に対
し、直線補間処理を施して補間チエーン列を発生
するようにし、さらに該補間チエーン列に対して
ウインドウを設定してウインドウチエーン列に変
換し、これにより得られたウインドウチエーンに
対して符号化を行なうようにしたので、高速の筆
記に対しても確実に8連結チエーンを発生でき、
さらに符号化に際し、データ圧縮率を著しく高く
することができる効果がある。
As described above, according to the present invention, instead of directly detecting an 8-connected chain, linear interpolation processing is performed on the relative coordinates between each sampling point obtained by sampling at a slower speed than in the past. This method generates an interpolated chain sequence using It is possible to reliably generate an 8-connected chain even for writing,
Furthermore, there is an effect that the data compression rate can be significantly increased during encoding.

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

第1図は従来の手書き図形伝送装置の構成図、
第2図は8連結チエーンの説明図、第3図はこの
発明の一実施例による手書き図形伝送装置の構成
図、第4図はオクタント番号及びオクタント内の
チエーン符号の説明図、第5図はオクタントの分
類とオクタント内のチエーン方向を説明するため
の図、第6図は補間チエーン用テーブルが用意さ
れているエリアの説明図、第7図は相対座標の一
例及び補間チエーン列と補間格子点との対応を説
明するための図、第8図は補間チエーンテーブル
の説明図、第9図は相対座標が補間チエーンテー
ブルの範囲を越えた場合の補間チエーン発生処理
の説明図、第10図はウインドウチエーンの説明
図、第11図はストローク終了に使用されるウイ
ンドウ内部コードの説明図、第12図はウインド
ウチエーンから8方向フリーマンチエーン列への
変換テーブルを示す図、第13図は本発明の他の
実施例による補間チエーン発生のためのフローチ
ヤ−トを示す図である。 1……座標検出部、2……A/D変換部、10
……補間チエーン発生部、11……ウインドウチ
エーン発生部、12……ウインドウチエーン符号
化部。なお図中、同一符号は同一又は相当部分を
示す。
Figure 1 is a configuration diagram of a conventional handwritten figure transmission device.
FIG. 2 is an explanatory diagram of an 8-connected chain, FIG. 3 is a configuration diagram of a handwritten figure transmission device according to an embodiment of the present invention, FIG. 4 is an explanatory diagram of octant numbers and chain codes within the octant, and FIG. Figure 6 is an explanatory diagram of the area where the interpolation chain table is prepared. Figure 7 is an example of relative coordinates, interpolation chain rows, and interpolation grid points. 8 is an explanatory diagram of the interpolation chain table, FIG. 9 is an explanatory diagram of the interpolation chain generation process when the relative coordinates exceed the range of the interpolation chain table, and FIG. 10 is an explanatory diagram of the interpolation chain generation process. FIG. 11 is an explanatory diagram of the window internal code used to end a stroke. FIG. 12 is a diagram showing a conversion table from the window chain to an eight-way freeman chain sequence. FIG. 7 is a diagram showing a flowchart for generating an interpolation chain according to another embodiment. 1... Coordinate detection section, 2... A/D conversion section, 10
. . . Interpolation chain generation section, 11 . . . Window chain generation section, 12 . . . Window chain encoding section. In the figures, the same reference numerals indicate the same or equivalent parts.

Claims (1)

【特許請求の範囲】[Claims] 1 タブレツトからペンにより入力された手書き
図形の標本点座標を符号化して伝送する手書き図
形伝送装置において、上記ペンにより指示される
座標及び該ペンのアツプ/ダウン状態を検出する
座標検出部と、該座標検出部において得られたペ
ンの位置座標を一定の周期で標本化するA/D変
換部と、該A/D変換部で得られた各標本点の座
標及びペンのアツプ/ダウン信号から各標本点と
その直前の標本点間の相対座標を求めるとともに
該相対座標を補間格子点間を結ぶ大きさ1の補間
チエーンに分解する直線補間処理により補間チエ
ーン列を発生する補間チエーン発生部と、該補間
チエーン発生部からの補間チエーン列に対しM×
Nの補間格子点からなるウインドウを設定し上記
補間チエーン列が該ウインドウの外周フレームを
通過したときその通過位置に対応したウインドウ
チエーンを発生するウインドウチエーン発生部
と、該ウインドウチエーン発生部において発生さ
れたウインドウチエーン列に対しデータ圧縮のた
めの符号化を行なうウインドウチエーン符号化部
とを備えたことを特徴とする手書き図形伝送装
置。
1. A handwritten figure transmission device that encodes and transmits the sample point coordinates of a handwritten figure input from a tablet with a pen, comprising a coordinate detection unit that detects the coordinates indicated by the pen and the up/down state of the pen; An A/D conversion section samples the pen position coordinates obtained in the coordinate detection section at a constant cycle; an interpolation chain generation unit that generates an interpolation chain sequence by linear interpolation processing that calculates relative coordinates between a sample point and the sample point immediately before it and decomposes the relative coordinates into interpolation chains of size 1 connecting interpolation grid points; M× for the interpolation chain sequence from the interpolation chain generation unit
A window chain generation unit that sets a window consisting of N interpolation grid points and generates a window chain corresponding to the passing position when the interpolation chain train passes through the outer peripheral frame of the window; A handwritten figure transmission device comprising: a window chain encoding unit that encodes a window chain string for data compression.
JP3456684A 1984-02-24 1984-02-24 Handwritten graphic transmitter Granted JPS60178598A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3456684A JPS60178598A (en) 1984-02-24 1984-02-24 Handwritten graphic transmitter

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3456684A JPS60178598A (en) 1984-02-24 1984-02-24 Handwritten graphic transmitter

Publications (2)

Publication Number Publication Date
JPS60178598A JPS60178598A (en) 1985-09-12
JPH042999B2 true JPH042999B2 (en) 1992-01-21

Family

ID=12417864

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3456684A Granted JPS60178598A (en) 1984-02-24 1984-02-24 Handwritten graphic transmitter

Country Status (1)

Country Link
JP (1) JPS60178598A (en)

Also Published As

Publication number Publication date
JPS60178598A (en) 1985-09-12

Similar Documents

Publication Publication Date Title
US6741749B2 (en) System, device, computer program product, and method for representing a plurality of electronic ink data points
US6549675B2 (en) Compression of digital ink
US5528003A (en) Data compression for pen stroke input
JPH042999B2 (en)
JPH041400B2 (en)
JPH0347532B2 (en)
JPS60178600A (en) Handwritten graphic transmitter
JPS60178599A (en) Handwritten graphic transmitter
CA2463824C (en) Lossless variable-bit signature compression
JP2625452B2 (en) Image data encoding and decoding methods
JP2882404B1 (en) Handwritten code processing device
JPH043000B2 (en)
JP2615215B2 (en) Image data compression method
JPS61208371A (en) Image data compression encoding circuit
Daskalakis et al. The application of two dimensional compression schemes to computer graphic display systems
JPS6365190B2 (en)
US20040130733A1 (en) Image formation apparatus, image formation method, and program
KR900000999B1 (en) Korean text decoding device of teletext
JPH09237150A (en) Prediction encoding device and decoding device
JPS60253372A (en) Picture signal coding system
KR0153620B1 (en) Stroke data compression method
JPS5927503B2 (en) calligraphy communication device
CN101887326B (en) Image scanning system and its control method
KR900007566B1 (en) Image data conversion device and method
JPS5992674A (en) Encoding circuit

Legal Events

Date Code Title Description
EXPY Cancellation because of completion of term