JPS63303473A - System for compressing pattern data by curve approximation - Google Patents
System for compressing pattern data by curve approximationInfo
- Publication number
- JPS63303473A JPS63303473A JP13911787A JP13911787A JPS63303473A JP S63303473 A JPS63303473 A JP S63303473A JP 13911787 A JP13911787 A JP 13911787A JP 13911787 A JP13911787 A JP 13911787A JP S63303473 A JPS63303473 A JP S63303473A
- Authority
- JP
- Japan
- Prior art keywords
- vertical
- stroke
- curve
- curved
- line
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Landscapes
- Image Processing (AREA)
Abstract
Description
【発明の詳細な説明】
〔概 要〕
パターンの輪郭を直線と曲線で近似するパターンデータ
の圧縮方式において、縦/横線と曲線ストロークを統合
する手段と、統合したストロークをスプライン関数近似
する手段を備えたことを特徴とする。[Detailed Description of the Invention] [Summary] In a pattern data compression method that approximates the outline of a pattern using straight lines and curved lines, a means for integrating vertical/horizontal lines and curved strokes, and a means for approximating the integrated strokes with a spline function are provided. It is characterized by having
本発明は、文字、図形などのパターンを、その輪郭を近
似する直線と曲線で表現するパターンデータ圧縮方式に
関する。The present invention relates to a pattern data compression method that expresses patterns such as characters and figures using straight lines and curved lines that approximate the contours of the patterns.
文字、図形をトンドパターンでメモリに記↑aすると大
きなメモリ容量が必要になるが、文字、図形パターンの
輪郭を直線と曲線で近似し、直線はベクトル、曲線は関
数で記↑、aすると、記憶データ量の大幅な節減が可能
になりかつ復元時に拡大、縮小することが容易になる。Writing characters and figures in memory in a tondo pattern ↑a requires a large memory capacity, but if the contours of the characters and figure patterns are approximated by straight lines and curves, and the straight lines are written as vectors and the curves are written as functions ↑,a, It becomes possible to significantly reduce the amount of stored data, and it becomes easy to enlarge or reduce the data at the time of restoration.
この文字、図形パターンの輪郭を直線と曲線を用いて近
似表現するパターンデータ圧縮方式について本発明者等
は種々提案しており、「パターンデータの圧縮方式」
(特願昭6l−118920) 、r曲線近似によるパ
ターン圧縮方式」 (特願昭6l−220400) 、
r曲線近似区間設定方式」などはその二、三の例である
。この方式では先ず文字、図形ノトノトハターンの輪郭
を直線近似によりベクトル化し、次に該ベクトルの方向
、長さ等の情報により・縦/横線、飾り、斜線/曲線ス
トロークの抽出を行ない、該斜線/曲線ストロークをB
−スプライン関数で近似する。The present inventors have proposed various pattern data compression methods that approximate the contours of character and graphic patterns using straight lines and curved lines.
(Patent Application No. 6L-118920), “Pattern Compression Method Using R-Curve Approximation” (Patent Application No. 6L-220400),
``r-curve approximation section setting method'' are two or three examples. In this method, the contours of characters and figures are first vectorized by linear approximation, and then vertical/horizontal lines, decorations, diagonal lines/curved strokes are extracted based on information such as the direction and length of the vector, and the Stroke B
− Approximate with spline function.
この方式の問題点としては、第4図に示すような英字で
多く見られる、縦/横線β道とこれに滑らかに(急角度
でなく)連なる曲線i!2からなるス10−ク(本例は
、はらい)を高品質で再現することができないという問
題がある。第7図はその一例で、再現した文字「握」で
は「ノ」の部分の、矢印F1.F2で示した縦線と斜め
曲線の連結部分が/^らかでない。The problem with this method is that the vertical/horizontal line β road, which is often seen in alphabetical characters as shown in Figure 4, and the curve i! There is a problem in that it is not possible to reproduce with high quality a scale consisting of 2 blocks (in this example, a frame). FIG. 7 is an example of this. In the reproduced character "Nigiri", the arrow F1. The connection between the vertical line and the diagonal curve indicated by F2 is not smooth.
縦/横線と曲線ストロークの連結部が不円滑になるのは
、縦/横線は直線近似、曲線ストロークは曲線近似と、
別々に行なっているためで、か\る接続点では0次導関
数の連続性しか保証されない。The reason why the connection between vertical/horizontal lines and curved strokes becomes uneven is that vertical/horizontal lines are approximated by straight lines, curved strokes are approximated by curved lines, and so on.
This is because they are performed separately, and only the continuity of the zero-order derivative is guaranteed at such connection points.
本発明はか\る点を改善し、縦/横線とそれにン肖らか
に連なる曲線ストロークが、圧縮データから再?トシた
ものにおいても滑らかにつながる様にしようとするもの
である。The present invention improves this point and allows vertical/horizontal lines and curved strokes connected to them to be recreated from compressed data. The aim is to create a smooth connection even between rough edges.
第1図に示すように本発明では、縦/横線とそれに1%
らかに連なる曲線ストロークとの統合手段10と、統合
したストロークに対するn次スプライン関数近似手段1
2を設ける。As shown in Figure 1, in the present invention, vertical/horizontal lines and 1%
A means 10 for integrating curved strokes that continues smoothly, and a means 1 for approximating an nth-order spline function for the integrated strokes.
2 will be provided.
文字、図形の縦/横線、飾り、曲線ストロークの属性付
き屈曲点データを、縦/横線と曲線ストロークの統合手
段10に入力し、該統合手段では、縮/横線と曲線スト
ロークの属性の付いている屈曲点に注目して、縦/横線
とそれに滑らかに続く曲線ストロークの統合を行なう。The bending point data with attributes of vertical/horizontal lines of characters, figures, decorations, and curved strokes is input to the vertical/horizontal line and curved stroke integration means 10, and the integration means Focusing on the bending point, the vertical/horizontal line and the curved stroke that smoothly follows it are integrated.
この統合したスI・ローフに近似するスプライン関数を
手段12が発生し、文字、図形のこの部分(縦/横線と
曲線ストローク)のデータは該スプライン関数として持
つ。A means 12 generates a spline function that approximates this integrated stroke, and data of this portion (vertical/horizontal lines and curved strokes) of characters and figures is held as the spline function.
同し関数内では1次導関数等も連続しており、従って上
記処理で、再生した縦/横線と曲線ストロークの接続部
は滑らかな連続性を持つようになる。次に処理の各々に
ついて説明する。The first derivatives and the like are also continuous within the same function, so through the above processing, the connection between the reproduced vertical/horizontal line and the curved stroke becomes smooth and continuous. Next, each of the processes will be explained.
縦/横線と曲線ストロークの統合: 縦/横線と滑らか
に接続する曲線ストロークの抽出は、縦/横線と隣接す
る曲線ストロークの接続部の傾きの連続性を調べること
により行なう。Integration of vertical/horizontal lines and curved strokes: Extraction of curved strokes that smoothly connect with vertical/horizontal lines is performed by checking the continuity of the slope of the connection between vertical/horizontal lines and adjacent curved strokes.
文字、図形の縦/横線を構成する2つの直線と隣接する
、曲線ストロークを構成する2つの対をなす曲線(輪郭
線)の位置関係は、輪郭追跡の順序(第4図の矢印方向
又はこの逆。この追跡方向は右廻り又は左廻りと予め定
めておく)で言って、直線の後に曲線ストロークの輪郭
線がある場合と、直線の前に曲線ストロークの輪郭線が
ある場合がある。以下では、直線の後に曲線がある第3
図の例を用いて説明するが、直線の前に曲線がある場合
も同様である。The positional relationship between two straight lines that make up the vertical/horizontal lines of a character or figure and two pairs of adjacent curved lines (outline lines) that make up a curved stroke is determined by the order of contour tracing (in the direction of the arrow in Figure 4 or this Conversely, the tracing direction is predetermined to be clockwise or counterclockwise), there are cases where a curved stroke outline follows a straight line, and there are cases where a curved stroke outline precedes a straight line. Below, the third line has a straight line followed by a curved line.
This will be explained using the example shown in the figure, but the same applies when there is a curved line in front of the straight line.
第3図で、口部は文字、図形の縦/横線の輪郭を表わす
直線の端点く屈曲点)を示し、○印は文字、図形の曲線
ストロークの輪郭を示す曲線の屈曲点を示す。これらの
節点又は屈曲点を結ぶベクトルをP i−P 1+l
、P i+2 + ・・・・・・で示す。こ\では輪郭
ベクトルPiは縦線の構成要素であり、輪郭ベクl−ル
P i+ l + P i+ 2は曲線ス1−ローク
の構成要素である。In FIG. 3, the mouth indicates the end point or bending point of a straight line representing the outline of the vertical/horizontal line of a character or figure, and the circle indicates the bending point of a curved line representing the outline of the curved stroke of the character or figure. The vector connecting these nodes or bending points is P i−P 1+l
, P i+2 + . . . Here, the contour vector Pi is a component of a vertical line, and the contour vector P i+ l + P i+ 2 is a component of a curve stroke.
■先ず、輪郭バク1−ルPiの長さIPilが、ある閾
値Lthよりも大きい縦/横線の属性の付いた輪郭ベク
トルを抽出する。(1) First, a contour vector with a vertical/horizontal line attribute whose length IPil of the contour vector Pi is greater than a certain threshold Lth is extracted.
■次に、該縦/横線の輪郭ベクトルPiと、それに続く
曲線ストロークの輪郭ベクトルP1+1(この長さはL
thより小)との傾きの連続性を調べる。輪郭ヘタ1−
ルPiとPl、1とのなす角をνとして、cosνがあ
る閾値cosvthより大きければ連続性(滑らかな連
続性)ありとして次の■に進み、小さければ連続性なし
として該PiとP1+1との統合は行なわない。■Next, the contour vector Pi of the vertical/horizontal line and the contour vector P1+1 of the following curved stroke (this length is L
th)). Contour heta 1-
Let the angle between Pi and Pl, 1 be ν, if cosν is larger than a certain threshold cosvth, it is assumed that there is continuity (smooth continuity) and proceed to the next ①, and if it is smaller, it is assumed that there is no continuity and the angle between the Pi and P1+1 is There will be no integration.
■更に、輪郭ベクトルPiと上記P1+1の次の曲線ス
トロークの輪郭ベクトルP1+2との傾きの連続性を調
べる。輪郭ベタ1−ルPiとP、+2のなす角をτとし
、cosτがある閾値cost thより大きいときは
連続性ありとして、輪郭ベクトルPiとP i+ 1
に直線と曲線の統合の属性を付け、こうして直線と曲線
との統合を行なう。(2) Furthermore, the continuity of the slope between the contour vector Pi and the contour vector P1+2 of the curved stroke next to the above-mentioned P1+1 is checked. Let the angle formed by the contour vectors Pi and P, +2 be τ, and if cosτ is larger than a certain threshold cost th, it is assumed that there is continuity, and the contour vectors Pi and P i+ 1
Attach the attribute of integrating straight lines and curves to , and thus perform the integration of straight lines and curves.
第5図に、縦/横線と曲線ストロークの統合例を示す。FIG. 5 shows an example of integrating vertical/horizontal lines and curved strokes.
(alは従来例で、PiとP i+ l + P i
+ 21・・・・・・は別に扱われている(統合せず)
が、本発明では(blの如くこれを統合し、P ! +
P i+I I P H+2+・・・・・・は1
つの連続する輪郭ベクトルとする。このベクトルを図で
は太線で示しており、図示の如くZlから72を通って
23へ至る。外側輪郭ベクトルは同様に統合されてZ3
からZaまで続く。(al is the conventional example, Pi and P i + l + P i
+ 21... are treated separately (not integrated)
However, in the present invention, this is integrated as shown in (bl), and P!+
P i+I I P H+2+...is 1
Let there be two consecutive contour vectors. This vector is shown by a thick line in the figure, and extends from Zl through 72 to 23 as shown. The outer contour vectors are similarly integrated into Z3
It continues from to Za.
スプライン関数による近似: 統合したストロークの各
輪郭線で表わされる区間を曲線近似区間(セグメントと
いう)としてこれを、次の(1)式で示すB−スプライ
ン関数の節点追加方法を用いて近似する。Approximation using spline function: The section represented by each contour of the integrated stroke is defined as a curve approximation section (referred to as a segment), and this is approximated using the node addition method of the B-spline function shown in equation (1) below.
この方法では、参照点のX、Y座標値と節点(近似区間
の両端点)のX(またはY)座標値を入力データとして
得られる曲線5fX)(または5(y))と参照点との
誤差が、(2)式で示すようにある闇値内になるように
係数cjを決定する。もし、誤差が闇値内にならなけれ
ば、その区間を2分割し、自動的に節点を追加して行く
。In this method, the reference point and the curve 5f The coefficient cj is determined so that the error is within a certain dark value as shown in equation (2). If the error does not fall within the dark value, the section is divided into two and nodes are automatically added.
但し、njは節点数、cjは係数、N j、aは4階の
差分前(基底関数)
但し、δ2は残差2乗和、δ2thはδ2の閾値、xl
。However, nj is the number of nodes, cj is the coefficient, Nj, a is the 4th order difference (basis function), however, δ2 is the sum of squared residuals, δ2th is the threshold of δ2, xl
.
y、はi番目参照点のX、 Y座標値、σ1は観測誤差
、nは参照点の総数
得られるスプライン関数5tX1(または5(y))は
、両端の節点では導関数の連続性は保証されないが、追
加した節点で分割してもその節点での導関数は連続とな
る性質がある。従って、lセグメント内の両端点以外で
は全て導関数が連続になる。y is the X and Y coordinate value of the i-th reference point, σ1 is the observation error, n is the total number of reference points The resulting spline function 5tX1 (or 5(y)) guarantees the continuity of the derivative at the nodes at both ends. However, even if it is divided at an added node, the derivative at that node has the property of being continuous. Therefore, the derivatives are continuous at all points other than both endpoints within the l segment.
上記の式で、従来は節点の初期値として両端点のX(ま
たはY)座標値のみを与えていたが、本発明では第3図
の縦線直線と曲線ストローク輪郭線との接続点Z2の節
点座標も与える。即ち、縦/横線と曲線ストロークを統
合したストロークの輪郭線に対してのみ節点数n の初
期値を3として、統合したストロークの両端点と接続点
(Z2)を節点の初期値として与える。他の初期値の与
え方、即ちX、YO1価関数の選択方法や観測誤差σ、
の与え方は従来通りである。こうすることにより、縦/
横線と曲線ストロークとの接続点での導関数の連続性が
保護され、そのストロークを高品質に生成することがで
きる。In the above equation, conventionally only the X (or Y) coordinate values of both end points were given as the initial value of the node, but in the present invention, the connection point Z2 of the vertical straight line and the curved stroke outline in FIG. Also give the nodal coordinates. That is, the initial value of the number of nodes n is set to 3 only for the outline of a stroke that is a combination of vertical/horizontal lines and curved strokes, and both end points and the connection point (Z2) of the combined stroke are given as the initial values of the nodes. Other ways to give initial values, such as how to select X and YO monovalent functions, observation error σ,
The method of giving is the same as before. By doing this, vertical/
The continuity of the derivative at the connection point between the horizontal line and the curved stroke is preserved, and the stroke can be generated with high quality.
第2図に、本発明方式の実施例を示す。入力は文字(図
形)ドツトパターン20であり、これを屈曲点抽出部2
2等で処理し、得られた圧縮データを記憶部46に格納
する。本発明は、曲線近似区間設定部32と多項式の係
数算出部34で実施される。FIG. 2 shows an embodiment of the method of the present invention. The input is a character (figure) dot pattern 20, which is sent to the bending point extractor 2.
2 or the like, and the obtained compressed data is stored in the storage unit 46. The present invention is implemented by a curve approximation section setting section 32 and a polynomial coefficient calculation section 34.
各処理を簡単に説明すると、屈曲点抽出部22では、文
字ドツトパターンの輪郭を直線近似によりベクl−ル化
して、輪郭ベクトルの端点である屈曲点を抽出する。こ
の抽出処理には、例えば特開昭61−208184 r
パターン情報量圧縮方式jを利用できる。抽出した屈曲
点は屈曲点属性テーブル30に、後述の属性と共に格納
する。Briefly explaining each process, the bending point extracting section 22 converts the contour of the character dot pattern into a vector by linear approximation, and extracts the bending point which is the end point of the contour vector. For this extraction process, for example, Japanese Patent Application Laid-Open No. 61-208184 r
Pattern information compression method j can be used. The extracted bending points are stored in the bending point attribute table 30 together with attributes to be described later.
次の水平・垂直線認識部24および飾り抽出部26では
、輪郭ベクトルの方向および長さ、輪郭ベクトル間の距
離などの情報を使って、水平、垂直線つまり縦/横線と
、飾り (明朝体の漢字の始終端、折曲部などにある突
出部)の認識を行ない、その旨を示す(属性)情報を輪
郭ベクトルまた屈凹点に付加する。この処理には例えば
特願昭60−182251 rパターンの相似変換方式
」を利用できる。Next, the horizontal/vertical line recognition unit 24 and decoration extraction unit 26 use information such as the direction and length of contour vectors and the distance between contour vectors to identify horizontal and vertical lines, that is, vertical/horizontal lines, and decorations (Mincho The starting and ending points of Chinese characters in the body, protrusions at bends, etc. are recognized, and (attribute) information indicating this is added to contour vectors and indented points. For this process, for example, Japanese Patent Application No. 60-182251 "R-pattern Similarity Transformation Method" can be used.
次の斜線/曲線ストローク抽出部28では、縦/横線お
よび飾り属性のない輪郭ベクトルを対象として、先ず輪
郭ベクトルの4方向分類を行なってその方向属性を輪郭
ベクトルに付加し、連続した同じ方向属性を持つ輪郭ベ
クトルを統合して、曲線ストロークを構成する2つの対
をなす輪郭線の候補を抽出する。4方向分類とは、輪郭
ベクトルの始端をX−Y座標面の原点において該ベクト
ルが第1〜第4象限のいずれにあるかを調べ、その象限
別にする(例えば第1〜第4象限にコードA−Dを割当
てておき、存在する象限に応じて当該ベクトルにコード
A−Dを付加する)ことをいう。次に、統合した輪郭ベ
クトルの4方向居性の対応関係および長さ、輪郭ベクト
ル間の距離の情報を用いて対応づけを行ない、曲線スト
ロークを構成する対をなす輪郭線を抽出する。この斜線
および曲線ストロークの抽出には例えば「斜め線の線幅
制御機能を持つ文字パターンの拡大・縮小方式」 (特
願昭6O−282271)および「斜め線及び曲線ス1
ヘロークの抽出方式」 (特願昭60−
)を利用できる。Next, in the diagonal line/curve stroke extraction unit 28, for vertical/horizontal lines and contour vectors without decorative attributes, first, the contour vectors are classified in four directions, and the directional attributes are added to the contour vectors. By integrating contour vectors with , two pairs of contour line candidates constituting a curved stroke are extracted. 4-way classification means checking which of the 1st to 4th quadrant the vector is located at, with the starting end of the contour vector at the origin of the A-D is assigned and codes A-D are added to the vector depending on the quadrant in which it exists. Next, correspondence is made using information on the four-directional correspondence of the integrated contour vectors, the length, and the distance between the contour vectors, and a pair of contour lines forming a curved stroke is extracted. Extraction of diagonal lines and curved strokes is possible, for example, in ``Character pattern enlargement/reduction method with diagonal line width control function'' (Japanese Patent Application No. 6O-282271) and ``Diagonal lines and curve strokes''.
"Heroku's Extraction Method" (Patent Application 1986-
) can be used.
曲線ス1−ロークの輪郭線はX、Yの一価関数の線分で
あり、漢字、片仮名を多(構成するこの一画関数の曲線
に対しては、その輪郭線をスプライン関数近似する。平
仮名と英数字に多く見られる多価関数の曲線に対しては
、−価関数の線分を統合して多価関数を抽出し、また新
たに曲線近似区間を再設定してスプライン関数近似する
。The contour line of the curved stroke is a line segment of a single-valued function of X and Y, and for the curve of this one-stroke function that consists of kanji and katakana characters, the contour line is approximated by a spline function. For multivalued function curves that are often found in hiragana and alphanumeric characters, the multivalued function is extracted by integrating the −valued function line segments, and a new curve approximation interval is set to approximate the spline function. .
曲線近似区間設定部32では、斜線/曲線ストローク抽
出部28で得られた一価関数の輪郭線をそのまま曲線近
似区間として設定する処理と、−価関数を統合して多価
関数を抽出して更に曲線近似区間を再設定する処理(平
仮名「の」の輪郭線に対する処理などがこれに該当)と
、本発明で行なう前記縦/横線と曲線ストロークを統合
する処理の3つを行なう。The curve approximation section setting section 32 performs a process of directly setting the contour line of the single-valued function obtained by the diagonal line/curve stroke extraction section 28 as a curve approximation section, and a process of integrating the -valued function to extract a multivalued function. Furthermore, three processes are performed: a process for resetting the curve approximation section (such as a process for the outline of the hiragana "no"), and a process for integrating the vertical/horizontal lines and curve strokes performed in the present invention.
多項式の係数算出部34および残差2乗和判定部36で
は、先ず曲線近似区間の平均的な傾きを輪郭ベクトルの
傾きより算出し、その区間を前記(1)式のS (x)
、 S (ylのいずれで近似するかを決定する。The polynomial coefficient calculating section 34 and the residual sum of squares determining section 36 first calculate the average slope of the curve approximation section from the slope of the contour vector, and then calculate the average slope of the curve approximation section from the slope of the contour vector.
, S (yl) to be approximated.
(1)式の係数CjO箆出は(2)式の誤差評価のもと
に行なうが、こ\で参照点は屈曲点のみを使う場合と輪
郭点全てを使う場合の2通りある。文字ドツトパターン
の解像度が大きい場合は屈曲点のみでも、それより得た
圧縮データで高品質パターンを生成でき、全輪郭点を使
う場合に比べて少ない計算時間で圧縮データを生成でき
る。解像度が少ない場合には、屈曲点のみで圧縮データ
を作成すると再生パターンの品質が十分でないので、全
輪郭点を用いる。The coefficient CjO of the equation (1) is calculated based on the error evaluation of the equation (2), and there are two types of reference points: when only the bending points are used and when all contour points are used. If the resolution of the character dot pattern is high, a high-quality pattern can be generated using the compressed data obtained from only the bending points, and the compressed data can be generated in less calculation time than when all contour points are used. If the resolution is low, the quality of the reproduced pattern will not be sufficient if compressed data is created using only bending points, so all contour points are used.
斜め線および曲線ストロークの輪郭復元部40では、屈
曲点から輪郭点を復元する処理を行なう。The contour restoration unit 40 for diagonal lines and curved strokes performs a process of restoring contour points from bending points.
前記(2)式の観測誤差σ1 は、参照点と得られるス
プライン曲線の誤差が距離(曲線から参照点への法線方
向の長さ)に等しくなるように、輪郭ベクトルの傾きを
用いて設定する。(11式の初期節点の与え方は、縦/
横線と曲線ストロークを統合したスI−ロークの場合(
本発明の場合)は両端点の×(またはY)座標と縦/横
線と曲線ストロークの接続点のX(またはY)座標を与
え、それ以外のストロークの場合は両端点のX(または
Y)座標を与える。The observation error σ1 in equation (2) above is set using the slope of the contour vector so that the error between the reference point and the obtained spline curve is equal to the distance (length in the normal direction from the curve to the reference point). do. (The way to give the initial nodes in Equation 11 is vertical/
In the case of a stroke that integrates a horizontal line and a curved stroke (
In the case of the present invention) gives the x (or Y) coordinates of both end points and the X (or Y) coordinate of the connection point of the vertical/horizontal line and the curved stroke, and in the case of other strokes, the X (or Y) coordinates of both end points Give the coordinates.
こうしてスプライン関数の係数Cjが誤差評価のもとに
1つに決まり、次に、得られたスプライン曲線が振動し
ているか否か(単純な彎曲線でなく、微小ながら波状の
うねりを持つことがある)を振動判定部38で判定して
係数Cjを適切なものにし、これ(Cj)を曲線近似に
よる圧縮データとする。この圧縮データは記憶部44に
格納する。In this way, the coefficient Cj of the spline function is determined to be one based on the error evaluation, and then it is determined whether the obtained spline curve is oscillating or not (it is not a simple curved curve but may have small undulations). The vibration determination unit 38 determines the coefficient Cj to be appropriate, and uses this (Cj) as compressed data by curve approximation. This compressed data is stored in the storage section 44.
斜線/曲線ストローク以外については、屈曲点、水平・
垂直線(縦/横線)、飾りの属性データを、直線近似に
よる圧縮データとし、これを記憶部42に格納する。ま
たこれらの圧縮データは、記憶部44.42より読出し
て記憶部46に格納する。For strokes other than diagonal/curved strokes, bend points, horizontal and
Attribute data of vertical lines (vertical/horizontal lines) and decorations are compressed data by linear approximation, and this is stored in the storage unit 42. Further, these compressed data are read out from the storage units 44 and 42 and stored in the storage unit 46.
曲線近似区間設定部32、斜め線および曲線ストローク
の輪郭復元部40、多項式の係数算出部34、残差2乗
和判定部36.1辰動判定部38には既出願の「バクー
ンデータの圧縮方式」 (特願昭6l−118920)
、r曲線近似によるパターン圧縮方式」 (特願昭6l
−220400)、および「曲線近似区間設定方式」
(特願昭61=)を利用できる。A curve approximation section setting section 32, a contour restoration section 40 for diagonal lines and curve strokes, a polynomial coefficient calculation section 34, a residual sum of squares judgment section 36. ``Method'' (Patent Application Sho 6l-118920)
, Pattern Compression Method Using R-Curve Approximation” (Patent Application Sho 6l
-220400), and “Curve approximation interval setting method”
(Special application 1986=) can be used.
〔発明の効果〕
以上説明したように、従来方式では縦/横線と滑らかに
接続する曲線ストロークを高品質に生成することができ
ないが、本発明によれば縦/横線と曲線ストロークの接
続点で導関数の連続的な高品質なパターンを生成するこ
とができる。第6図は本発明方式による再生文字で、第
7図の従来方式に比べて直線/曲線接続部Fl、F2が
滑らかになっている。これらは、圧縮データより拡大パ
ターンを生成したものである。[Effects of the Invention] As explained above, the conventional method cannot generate curved strokes that smoothly connect vertical/horizontal lines with high quality, but according to the present invention, curved strokes that smoothly connect vertical/horizontal lines and curved strokes cannot be generated with high quality. A continuous high-quality pattern of derivatives can be generated. FIG. 6 shows a character reproduced by the method of the present invention, in which straight line/curve connection portions Fl and F2 are smoother than in the conventional method shown in FIG. These are enlarged patterns generated from compressed data.
第1図は本発明方式の原理を示すブロック図、第2図は
本発明の実施例を示すブロック図、第3図と第4図は直
線に続く曲線の例を示す説明図、
第5図は直線と曲線との統合例を示す説明図、第6図と
第7図は再生文字の例を示す図で、第6図は本発明方式
、第7図は従来方式である。Fig. 1 is a block diagram showing the principle of the method of the present invention, Fig. 2 is a block diagram showing an embodiment of the invention, Figs. 3 and 4 are explanatory diagrams showing examples of curves following straight lines, Fig. 5 6 is an explanatory diagram showing an example of integrating straight lines and curved lines, and FIGS. 6 and 7 are diagrams showing examples of reproduced characters. FIG. 6 is the method of the present invention, and FIG. 7 is the conventional method.
Claims (1)
り部分は直線近似し、斜線/曲線ストローク部分は曲線
近似して、ベクトル及び関数で表わすパターンデータの
圧縮方式において、 縦/横線とそれに滑らかに連なる曲線ストロークとの統
合手段(10)と、統合したストロークにn次スプライ
ン関数近似を適用する手段(12)とを有することを特
徴とする曲線近似によるパターンデータの圧縮方式。[Claims] A compression method for pattern data expressed by vectors and functions, in which vertical/horizontal lines and decorative parts of the outlines of characters and graphic patterns are approximated by straight lines, and diagonal lines/curved stroke parts are approximated by curves, Compression of pattern data by curve approximation, characterized by comprising means (10) for integrating vertical/horizontal lines and curved strokes smoothly connected thereto, and means (12) for applying n-th order spline function approximation to the integrated strokes. method.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP62139117A JP2527187B2 (en) | 1987-06-03 | 1987-06-03 | Compression method of pattern data by curve approximation |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP62139117A JP2527187B2 (en) | 1987-06-03 | 1987-06-03 | Compression method of pattern data by curve approximation |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS63303473A true JPS63303473A (en) | 1988-12-12 |
| JP2527187B2 JP2527187B2 (en) | 1996-08-21 |
Family
ID=15237891
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP62139117A Expired - Lifetime JP2527187B2 (en) | 1987-06-03 | 1987-06-03 | Compression method of pattern data by curve approximation |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP2527187B2 (en) |
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH04170684A (en) * | 1990-11-05 | 1992-06-18 | Alps Electric Co Ltd | Method for approximating positional data |
| JPH07239679A (en) * | 1994-02-25 | 1995-09-12 | Kazuo Toraichi | Signboard making device |
| JP2011210159A (en) * | 2010-03-30 | 2011-10-20 | Canon Inc | Image processing method, image processor, program and storage medium |
Citations (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS6039280A (en) * | 1983-07-04 | 1985-03-01 | ウーアーヴェー ソフトウエアー アンド タイプ ゲーエムベーハー | Method and apparatus for automatically digitizing contour line |
-
1987
- 1987-06-03 JP JP62139117A patent/JP2527187B2/en not_active Expired - Lifetime
Patent Citations (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS6039280A (en) * | 1983-07-04 | 1985-03-01 | ウーアーヴェー ソフトウエアー アンド タイプ ゲーエムベーハー | Method and apparatus for automatically digitizing contour line |
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH04170684A (en) * | 1990-11-05 | 1992-06-18 | Alps Electric Co Ltd | Method for approximating positional data |
| JPH07239679A (en) * | 1994-02-25 | 1995-09-12 | Kazuo Toraichi | Signboard making device |
| JP2011210159A (en) * | 2010-03-30 | 2011-10-20 | Canon Inc | Image processing method, image processor, program and storage medium |
Also Published As
| Publication number | Publication date |
|---|---|
| JP2527187B2 (en) | 1996-08-21 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN104063723B (en) | The stroke restoring method and device of the Off-line Handwritten Chinese | |
| CN110909563B (en) | Method, apparatus, device and computer readable storage medium for extracting text skeleton | |
| JPS63303473A (en) | System for compressing pattern data by curve approximation | |
| US4853885A (en) | Method of compressing character or pictorial image data using curve approximation | |
| CN109887074A (en) | A 3D Modeling Method Based on Complex Plane Images | |
| Gonczarowski | A fast approach to auto-tracing (with parametric cubics) | |
| US5355451A (en) | Graphic processing unit | |
| US6614940B2 (en) | System, method and computer program product for generic outline font compression | |
| JP2887263B2 (en) | Character transformation device | |
| JPH09237339A (en) | Circle/circular arc recognizing method | |
| JP2915204B2 (en) | How to represent binary figures | |
| JP2507413B2 (en) | Pattern data compression method | |
| Tung et al. | Performance analysis of an OCR system via an artificial handwritten chinese character generator | |
| JP3344791B2 (en) | Line segment extraction method | |
| JPS62296280A (en) | Restoration and generation system for compressed data | |
| JPS5835674A (en) | Extracting method for feature of online hand-written character | |
| JP2833003B2 (en) | Curve dot pattern data compression method | |
| JPH03168888A (en) | Character recognizing system | |
| Gonczarowski | Curve techniques by autotracing | |
| JPH09288716A (en) | Online handwriting recognition method | |
| JPH03100883A (en) | Pattern normalizing device | |
| JP2782753B2 (en) | Character pattern scaling device | |
| JPS60251482A (en) | Non-linear normalizing system | |
| JPH0332111B2 (en) | ||
| JPH0776980B2 (en) | Character recognition method |