JPS62296280A - Restoration and generation system for compressed data - Google Patents

Restoration and generation system for compressed data

Info

Publication number
JPS62296280A
JPS62296280A JP13964686A JP13964686A JPS62296280A JP S62296280 A JPS62296280 A JP S62296280A JP 13964686 A JP13964686 A JP 13964686A JP 13964686 A JP13964686 A JP 13964686A JP S62296280 A JPS62296280 A JP S62296280A
Authority
JP
Japan
Prior art keywords
contour
curve
points
linearly
lines
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP13964686A
Other languages
Japanese (ja)
Inventor
Satoshi Naoi
聡 直井
Shigemi Osada
茂美 長田
Katsuhiko Nishikawa
克彦 西川
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fujitsu Ltd
Original Assignee
Fujitsu Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP13964686A priority Critical patent/JPS62296280A/en
Publication of JPS62296280A publication Critical patent/JPS62296280A/en
Pending legal-status Critical Current

Links

Landscapes

  • Image Processing (AREA)

Abstract

PURPOSE:To efficiently obtain a high quality linear conversion pattern by linearly approximating the horizontal, vertical and decoration parts of character and graphic patterns, using compressed data approximate to a curve obtained by n-degree spline function for an oblique line and a curved stroke, linearly converting them, then restoring and generating a pattern. CONSTITUTION:The titled system is composed of a part 12 enlarging and reducing critical point coordinate data from the compressed data 10 on character and graphic patterns, a part 14 restoring a profile through a DDA, a part 16 which takes out a polynomial data and linearly converts it, a part 18 restoring a border point, a part 20 for restoring a profile 20, a part 22 connecting a linear approximate part and a curve approximate part, and a part 22 which paints out an inner area enclosed by border points and generates linearly converted character and graphic patterns. The horizontal, vertical and decoration parts of the border lines of a character and graphic are linearly approximated. The compressed data 10 obtained by approximating with a curve through the use of the n-degree spline function is used for the oblique line and the curved stroke. As a result the linearly converted character and graphic patterns are restored and generated efficiently and beautifully.

Description

【発明の詳細な説明】 3、発明の詳細な説明 〔概 要〕 文字、図形パターンを、その水平、垂直、および飾り部
に対しては直線近似し、斜め線及び曲線ストロークにつ
いては0次スプライン関数による曲線近似した圧縮デー
タを用い、それを線形変換したのち、復元、パターン生
成して、効率よく美しい高品質線形変換パターンを得る
[Detailed Description of the Invention] 3. Detailed Description of the Invention [Summary] Characters and graphic patterns are approximated by straight lines for their horizontal, vertical, and decorative parts, and diagonal lines and curved strokes are approximated by zero-order splines. Using compressed data approximated by a curve using a function, it is linearly transformed, then restored and pattern generated to efficiently obtain a beautiful, high-quality linear transformation pattern.

〔産業上の利用分野〕[Industrial application field]

本発明は、文字、図形の圧縮データを用いて文字、図形
の輪郭の屈曲点を復元し、パターン生成する方式に関す
る。
The present invention relates to a method for restoring the bending points of the contours of characters and graphics using compressed data of characters and graphics to generate patterns.

文字、図形データをフルドツトで記憶すると大容量メモ
リが必要になり、またフルドツトパターンをそのフルド
ツトのま\で拡大、縮小処理すると美しいパターンが得
られない。そこで文字、図形データを少ないメモリ容量
で蓄積でき、かつ高品質の拡大、縮小パターンを生成で
きるパターンデータ圧縮、復元およびパターン生成方法
が必要とされる。本発明はこのうちのパターンデータ復
元及びパターン生成方式に係るものである。
Storing character and graphic data as full dots requires a large capacity memory, and enlarging or reducing a full dot pattern without leaving it as full dots results in a beautiful pattern. Therefore, there is a need for a pattern data compression, restoration, and pattern generation method that can store character and graphic data with a small memory capacity and generate high-quality enlarged and reduced patterns. The present invention relates to a pattern data restoration and pattern generation method.

パターン拡大、縮小は、画素密度の異なるファクシミリ
へ転送する場合、およびある画素密度のスキャナで読み
込んだ文字、図形データを画素密度を変換して使用する
例えばプリンタで記録しディスプレイに表示する場合に
必要不可欠である。
Pattern enlargement or reduction is necessary when transferring to a facsimile machine with a different pixel density, or when converting the pixel density of character and graphic data read by a scanner with a certain pixel density and using it, for example, when recording it on a printer and displaying it on a display. It is essential.

〔従来の技術〕[Conventional technology]

拡大、縮小変換の一方式として直線近似がある。 Linear approximation is one method of enlarging and reducing conversion.

これは文字、図形の輪郭を直線群で近似し、各直線(ベ
クトル)の端点座標を文字、図形のパターン拡大クとし
て持つもので、ドツトパターンで持つ方式に比べて大幅
にメモリ容量を節減でき、またパターン拡大、縮小も容
易である。例えば文字、図形を2倍に拡大又は1/2に
縮小するには、各直線の端点座標を2倍に拡大又は1/
2に縮小すればよい。しかしこの直線近似方式では水平
、垂直線に対しては近似度が高く拡大、縮小を行なって
も美しいパターンを生成できるが、斜め線や曲線ストロ
ークに対しては凹凸が目立ち、美しいパターンを生成す
ることができない。即ち斜め線は、ディスプレイ上では
格子点を辿ることになるのでいわば量子化誤差が生じて
階段状になり、また曲線ストロークを直線近似すると一
般には近似度が低く (これを高めると多数の直線が必
要になり、データ量が多くなる)、これらを拡大、縮小
すると美しいパターンにはならない。そこで滑らかな斜
め線や曲線ストロークを生成できるパターンデータ圧縮
、復元およびパターン生成方法が望まれる。
This approximates the contours of characters and figures using a group of straight lines, and uses the coordinates of the end points of each straight line (vector) as a pattern enlargement mark for the characters and figures. Compared to the method using dot patterns, the memory capacity can be significantly reduced. , It is also easy to enlarge or reduce the pattern. For example, to enlarge characters or figures by 2 times or reduce them by 1/2, the coordinates of the end points of each straight line should be enlarged by 2 times or reduced by 1/2.
It can be reduced to 2. However, this linear approximation method has a high degree of approximation for horizontal and vertical lines, and can generate beautiful patterns even when enlarged or reduced. However, for diagonal lines or curved strokes, unevenness becomes noticeable and a beautiful pattern is generated. I can't. In other words, diagonal lines trace lattice points on the display, so quantization errors occur and they become step-like.Also, when a curved stroke is approximated by a straight line, the degree of approximation is generally low (if this is increased, many straight lines are created). If you enlarge or reduce these, you will not get a beautiful pattern. Therefore, a pattern data compression, restoration, and pattern generation method that can generate smooth diagonal lines and curved strokes is desired.

文字、図形の輪郭を、直線ではなく曲線で近似する方式
もある。第9図にその一例を示す。本例では平仮名の「
な」の輪郭を○、△、Oを付した線群で近似している。
There is also a method of approximating the contours of characters and figures using curved lines instead of straight lines. An example is shown in FIG. In this example, the hiragana “
The outline of `` is approximated by a group of lines marked with ○, △, and O.

輪郭を曲線で近似するとき、その曲線を表わす関数は、
一方の軸例えばX軸について1価関数でなければならず
、そこで文字輪郭を辿るこれらの線群は1つのX値に対
して1つのy値になるように区分されている。○印はこ
の区分された1つの線(1ブロツク)の始、終点を示す
。Δ印は直線近似により得られた標本点、即ち輪郭上の
2点を直線で結び該直線と輪郭とのずれが許容値にある
範囲で可及的に該直線を長くしたく上記2点間距離を大
にした)ときの該直線の端点である。またe印は曲線分
割点である。即ち、文字の輪郭を1 (i[[i関数に
なるように区分した前記ブロックは直線部(※で示す)
を含むもの、2ストロークが交差して出来ていて(頃斜
が急に変る点く変曲点)を含むものなどがあるが、この
ような曲線と直線の境界および変曲点(・印で示す)で
は線を分割して複数ブロックとし、関数表現を容易にす
る。
When approximating the contour with a curve, the function representing that curve is
It must be a monovalent function for one axis, for example the X axis, so that these lines tracing the character contour are partitioned into one y value for one x value. The ○ marks indicate the start and end points of one divided line (one block). The Δ marks are sample points obtained by linear approximation, i.e., two points on the contour are connected by a straight line, and the distance between the two points is to make the straight line as long as possible within the range where the deviation between the straight line and the contour is within the allowable value. This is the end point of the straight line when the distance is increased. Further, the mark e is a curve dividing point. In other words, the outline of the character is divided into 1 (i
There are some strokes that include two strokes intersecting each other (an inflection point where the slope changes suddenly), but the boundary between a curve and a straight line and an inflection point (marked with a *) ) divides the line into multiple blocks to facilitate functional expression.

直線部は、上記標本点間距離が所定値以上のものをいう
。直線部は1次子項式で表現し、曲線部はn次(2次ま
たは3次)多項式で表現する。n次多項式の係数は、曲
線近似する区間の両端座標とその傾きより決定する。曲
線近似を行なうには、各標本点(直線近似により得られ
た点)における傾きを求め、次に輪郭上の2つの輪郭点
により近似曲線を決定し、該近似曲線と輪郭との偏位量
を各輪郭点につき求め、今、問題とする近似曲線区間に
おける各偏位量が許容誤差以下の場合は標本点を1つ前
進させて同様処理を繰り返し、該偏位量が許容誤差内で
最長となる区間(サンプル区間)を決定し、輪郭を該サ
ンプル区間毎に分割する。
The straight line section refers to a section where the distance between the sample points is greater than or equal to a predetermined value. The straight line portion is expressed by a first-order subnomial, and the curved portion is expressed by an nth-order (second-order or third-order) polynomial. The coefficients of the n-th degree polynomial are determined from the coordinates of both ends of the curve-approximating section and its slope. To perform curve approximation, find the slope at each sample point (point obtained by linear approximation), then determine the approximate curve using two contour points on the contour, and calculate the deviation between the approximate curve and the contour. is calculated for each contour point, and if each deviation in the approximation curve section in question is less than the allowable error, move the sample point forward by one and repeat the process to find the maximum deviation within the allowable error. A section (sample section) is determined, and the contour is divided into each sample section.

このサンプル区間を表わすn次多項式で輪郭曲線部が近
似される。この詳細は特開昭60−75975、同75
976、同75977.同17978、同75979に
ある。
The contour curve portion is approximated by an n-th degree polynomial representing this sample section. The details are JP-A-60-75975, JP-A-75
976, 75977. 17978 and 75979.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

この従来の方法では、ブロック内で曲線近似し、該曲線
と標本点との偏位量が許容誤差以下なら標本点を1つ増
やし、偏位量をチェックして許容誤差以下なら再び輪郭
点を1つ増やし、という逐次処理を行なうので効率が悪
い。
In this conventional method, a curve is approximated within a block, and if the deviation between the curve and the sample point is less than the tolerance, the sample point is increased by one, and the deviation is checked, and if it is less than the tolerance, the contour points are re-approximated. It is inefficient because it performs sequential processing such as increasing the number by one.

また従来の方法では、直線部以外の全ての曲線部に曲線
近似を行なうので効率が悪い。文字拡大、縮小で凹凸が
目立つのは、左はらい、右はらい等の長い曲線ストロー
クや斜め線であり、飾りのような短い部分では目立たな
いので簡略化が可能である。
Furthermore, in the conventional method, curve approximation is performed for all curved sections other than straight sections, which is inefficient. When characters are enlarged or reduced, unevenness is noticeable in long curved strokes and diagonal lines such as the left edge and right edge, but it is not noticeable in short parts such as decorations, so it can be simplified.

また従来の方法では、曲線振動現象を考慮していないの
で、適切な曲線近似ができない場合が生しる。即ち、従
来方法で輪郭線を分割し曲線近似すると、■ブロック内
で拡大値と極小値が両方存在する曲線を多項式近(以す
る場合があり、そのため極大値と極小値が両方存在しな
いブロックを曲線近似する場合得られた曲線が振動して
いないかどうか判定することができず、常に適切な曲線
を当て嵌め、美しいパターンを生成できるとは限らない
。これに対しては予め曲線部(以する前に極大値と極小
値の数を調べ、曲線近似後に確認することが嵩えられる
が、輪郭点列から正確な極大値と極小値の数を算出する
ことは難しい。
Furthermore, since the conventional method does not take curve vibration phenomena into consideration, there are cases where appropriate curve approximation cannot be performed. In other words, when dividing the contour line and approximating the curve using the conventional method, (1) polynomial approximation of the curve in which both the enlarged value and the local minimum value exist within the block (there are cases where the curve has both the enlarged value and the local minimum value); When approximating a curve, it is not possible to judge whether the obtained curve is vibrating or not, and it is not always possible to fit an appropriate curve and generate a beautiful pattern. However, it is difficult to accurately calculate the number of local maximums and minimum values from a sequence of contour points.

また従来方法では、曲線近似を行なう際、参照点として
輪郭点のみ使用するが、1ブロンク内の輪郭点が少ない
場合誤差を計算する参照点が少ないため、適切な曲線が
得られるとは限らない。
In addition, in the conventional method, only contour points are used as reference points when performing curve approximation, but if there are few contour points in one bronc, there are fewer reference points for calculating errors, so it is not always possible to obtain an appropriate curve. .

本発明者はこのような点を改善したパターンデータ圧縮
方式を案出したが、本発明はその圧縮データを用いて線
形変換し、線形変換後の屈曲点を復元してパターン生成
する方式を提供しようとするものである。
The present inventor has devised a pattern data compression method that improves these points, and the present invention provides a method for linearly transforming the compressed data and restoring the bending points after the linear transformation to generate a pattern. This is what I am trying to do.

〔問題点を解決するための手段〕[Means for solving problems]

本発明の復元、生成方式の原理ブロック図を第1図に示
す。図示のようにこれは、文字、図形パターンの圧縮デ
ータ(10)より、水平線、垂直線、および飾り部に対
する屈曲点座標データを取出してそれを線形変換例えば
拡大、縮小する部分(12)、線形変換後の屈曲点座標
データを用いてDDAにより輪郭復元する部分(14)
 、前記圧縮データ(10)より斜め線及び曲線ストロ
ークに対する多項式データを取出してそれを線形変換す
る部分(16)変換後の関数値を算出して輪郭点を復元
する部分(18)、該輪郭点が離れているものについて
DDAにより穴埋めして輪郭復元する部分(20)、こ
れらの輪郭復元部分により発生された直線近似部と曲線
近似部とを接続する部分(22)と、算出された輪郭点
により囲まれた内部領域を塗りつふして線形変換された
文字、図形パターンを生成する部分(22)からなる。
A block diagram of the principle of the restoration and generation method of the present invention is shown in FIG. As shown in the figure, this involves extracting bending point coordinate data for horizontal lines, vertical lines, and decorative parts from the compressed data of characters and graphic patterns (10), and linearly converting it, for example, enlarging and contracting parts (12), linear Part (14) where the contour is restored by DDA using the converted bending point coordinate data
, a part (16) that extracts polynomial data for diagonal lines and curved strokes from the compressed data (10) and linearly transforms it; a part (18) that restores contour points by calculating function values after the transformation; A portion (20) where the contour is restored by filling in the holes using DDA for those where the contours are far apart, a portion (22) connecting the straight line approximation portion and the curve approximation portion generated by these contour restoration portions, and the calculated contour point. It consists of a part (22) that fills in the internal area surrounded by to generate linearly converted character and graphic patterns.

〔作用〕[Effect]

この方式によれば、文字、図形の輪郭線をその水平部、
垂直部、および飾り部については直線で近(Uし、Pl
め線及び曲線ストロークについてはn次のスプライン関
数を用いて曲線で近似した圧縮データ(10)を用いて
、線形変換した文字、図形パターンを効率よく、美しい
パターンで復元、生成することができる。
According to this method, the outline of characters and figures can be
For vertical parts and decorative parts, use straight lines (U, Pl).
For lines and curved strokes, compressed data (10) approximated by curves using nth-order spline functions can be used to efficiently restore and generate linearly converted character and graphic patterns as beautiful patterns.

〔実施例〕〔Example〕

、  まず圧縮データ10の作成について詳細に説明し
、その後、本発明の復元、生成方式を詳細に説明する。
, First, the creation of the compressed data 10 will be explained in detail, and then the restoration and generation method of the present invention will be explained in detail.

第6図に示すように、圧縮データ作成処理は、入カバタ
ーン(文字、図形のドツトパターン)がら屈曲点(屈曲
部を表わす点で、前記ブロックの    ゛始終点、標
本点および曲線分割点に相当)を抽出する処理と、屈曲
点の座標値から水平、垂直線を認識しまた飾りを抽出し
これらの屈曲点の座標値を記憶する処理と、斜め線及び
曲線ストロークを抽出する処理と、屈曲点のみを使って
輪郭近似多項式(n次のスプライン関数)の各係数を算
出する処理と、屈曲点が少ない部分に列しDDAにより
直線近似を行なう斜め線及び曲線ストロークの輪郭19
元処理と、求めた多項式が振動していないか否かを判定
する処理と、得られた多項式の係数と曲線近似した区間
の両端点の座標値(曲線近似による圧縮データ)を記憶
する処理と、水平、垂直線及び飾りを直線近似した圧縮
データを記憶する処理からなる。
As shown in Fig. 6, the compressed data creation process involves converting input cover patterns (dot patterns of characters and figures) into bending points (points representing bends, which correspond to the start and end points, sample points, and curve division points of the block). ), processing to recognize horizontal and vertical lines from the coordinate values of bending points, extract decorations and memorize the coordinate values of these bending points, processing to extract diagonal lines and curved strokes, and processing to extract bending points. A process of calculating each coefficient of a contour approximation polynomial (n-th order spline function) using only points, and contours of diagonal lines and curved strokes that are arranged in parts with few bending points and subjected to straight line approximation by DDA 19
The original processing, the process of determining whether the obtained polynomial does not oscillate, and the process of storing the coefficients of the obtained polynomial and the coordinate values of both end points of the curve-approximated section (compressed data by curve approximation). , the process of storing compressed data in which horizontal and vertical lines and decorations are linearly approximated.

この方式によれば、水平線、垂直線、及び飾りは除いて
、斜め線及び曲線ストロークにのみ曲線近似を通用する
ので、ヘクトル文字を拡大、縮小した場合に凹凸が目立
つ右はらい、左はらい等の長い曲線ストローク又は斜め
線を美しいパターンで再生でき、しかも効率の良いデー
タ圧縮を行なうことができる。
According to this method, curve approximation is applied only to diagonal lines and curved strokes, excluding horizontal lines, vertical lines, and decorations, so when a hector character is enlarged or reduced, unevenness is noticeable on the right side, left side, etc. Long curved strokes or diagonal lines can be reproduced in beautiful patterns, and data can be compressed efficiently.

また曲線近似される各セグメント内に極大値と極小値が
存在しないため、得られた曲線の振動現象の有無を容易
に調べることができ、適切な曲線が求められる。
Furthermore, since there are no local maximum values and local minimum values within each segment to which the curve is approximated, it is possible to easily check whether or not there is a vibration phenomenon in the obtained curve, and an appropriate curve can be determined.

また各セグメントは、曲線の接線方向が類似しており、
2次の多項式でもある程度良好に近似できるなど、各セ
グメントは曲線近似しやすく分割されている。そのため
セグメントを曲線近似の精度によって変更することがな
く、処理効率の点でよい。
Also, each segment has similar tangential directions to the curve,
Each segment is divided to facilitate curve approximation, such as even a quadratic polynomial can be approximated to some extent. Therefore, the segments are not changed depending on the accuracy of curve approximation, which is good in terms of processing efficiency.

更に、曲線近似のとき参照とする点を屈曲点だけでなく
、場合によっては輪郭点を使うので、誤差を計算する参
照点が少なくて適切な曲線が得られないことがない。
Furthermore, since not only inflection points are used as reference points during curve approximation, but contour points are also used in some cases, there is no possibility that an appropriate curve cannot be obtained due to a small number of reference points for calculating errors.

このパターン圧縮方式は水平線、垂直線、および飾りに
対して直線近似を適用する処理と、斜め線および曲線ス
トロークに対して曲線近似を通用する処理の2つが主要
なものであるが、前者については既出願の■「パターン
情報量圧縮方式」(特願昭6O−48895)および■
「パターンの相似変換方式」 (特願昭6O−2822
71)を利用できる。
There are two main types of this pattern compression method: one that applies linear approximation to horizontal lines, vertical lines, and decorations, and the other that applies curve approximation to diagonal lines and curved strokes. Previously filed ■ “Pattern information compression method” (patent application 1986-48895) and ■
"Pattern similarity conversion method" (Patent application 6O-2822
71) can be used.

印刷された漢字などは直線部が多く、それに飾りが付い
ている。第10図にその一例を示す。直線部の端点が屈
曲点になる。屈曲点は勿論、飾り、斜め線及び曲線スト
ロークにもあり、図では濃いスポットが屈曲点である。
Many of the printed kanji have straight lines, and they have decorations attached to them. An example is shown in FIG. The end point of the straight line becomes the bending point. Inflection points are of course found in decorations, diagonal lines, and curved strokes, and the dark spots in the figure are inflection points.

輪郭線上の各屈曲点を抽出すれば、これらの屈曲点の座
標情報で輪郭線を表現でき、ドツトデータで文字パター
ンを持つ方式に比べて大幅なデータ圧縮が可能になる。
By extracting each bending point on the contour line, the contour line can be expressed using the coordinate information of these bending points, making it possible to significantly compress data compared to a method that uses dot data as a character pattern.

屈曲点は上記■に記載の方法で求めることができる。The inflection point can be determined by the method described in (1) above.

即ち、文字輪郭線は閉ループを作るので、ドツト群で表
わされる輪郭線の隣接2点を始点Ps、終点Peとして
点Pを終点より始点へ遠廻りしながら輪郭線上で辿らせ
、DDA (口1g1Lal Differenむia
l Analyzer )で点PとPsを結ぶ直線を発
生し、該直線と輪郭線とのずれを調べる。点Psが角に
あるとすると、点Pがその1つ手前の角に来たとき上記
ずれはな(なるからそのときの点Pの位置(P+とする
)を屈曲点とする。次は点P1をPs相当とし、同様処
理を行なうとP+の1つ手前の屈曲点が発見でき、以下
同様にして輪郭線上の全屈曲点を求めることができる。
That is, since the character contour line forms a closed loop, two adjacent points of the contour line represented by a group of dots are set as the starting point Ps and the ending point Pe, and the point P is traced on the contour line while detouring from the ending point to the starting point. Different
1Analyzer) to generate a straight line connecting points P and Ps, and examine the deviation between the straight line and the contour line. Assuming that the point Ps is at a corner, when the point P comes to the corner in front of it, the above deviation will not occur (therefore, the position of the point P at that time (denoted as P+) is the bending point. Next, the point If P1 is set to correspond to Ps and similar processing is performed, the bending point one point before P+ can be found, and all bending points on the contour can be found in the same manner.

上記■には輪郭を折れ線近似する各線分の統合、線群、
飾り検出、線幅制御などが開示されている。
The above ■ includes the integration of each line segment that approximates the contour with a polygonal line, line groups,
Decoration detection, line width control, etc. are disclosed.

例えば第11図の如き漢字「大」の折れ線近似において
、P+−P24は屈曲点、L1〜L24はこれらを結ぶ
線分である。線分は水平線、垂直線などに分けられ、同
種のものは統合し、統合した線分の水平方向のものには
El、El、・・・・・・垂直方向のものにはE2.E
a、・・・・・・などの輪郭線番号を与える。線分L2
など水平/垂直方向にないもの(所定゛のルールに合わ
ないもの)には輪郭線番号は付さない。Ei  (i=
1.2.・・・・・・)力付いた輪郭については対にな
るものを重なり度と距離から求め、線群Gl、G2.・
・・・・・を求める。飾りは、線群の端部、または角を
作る2線群の該角部にあるものとして求める。Plは線
群G1の左の飾り、P2は同右の飾り、P5は線群G2
の上の飾り、P2Oは線群G3の下の飾り・・・・・・
である。
For example, in the polygonal line approximation of the kanji character "dai" as shown in FIG. 11, P+-P24 is a bending point, and L1 to L24 are line segments connecting these points. Line segments are divided into horizontal lines, vertical lines, etc., and those of the same type are merged, and the horizontal lines of the integrated line segments are El, El, etc. The vertical lines are E2. E
Give a contour number such as a, . . . Line segment L2
Contour numbers are not assigned to items that are not in the horizontal/vertical direction (those that do not meet the predetermined rules). Ei (i=
1.2. ...) For the stressed contours, pairs are found from the degree of overlap and distance, and line groups Gl, G2 .・
...to be found. The decoration is determined as being at the end of a group of lines or at the corner of two groups of lines forming a corner. Pl is the decoration on the left of line group G1, P2 is the decoration on the right, and P5 is the decoration on line group G2.
The decoration above, P2O is the decoration below line group G3...
It is.

斜め線は、水平線、垂直線、および飾り2外の線分とす
る。
The diagonal lines are horizontal lines, vertical lines, and line segments outside the decoration 2.

水平線、垂直線の検出は屈曲点の座標値を使って簡単に
行なえる。例えば線分の両端の屈曲点をPi  (Xi
、Yi)、Pj  (Xj、  Yj)とすれば、X1
=Xj、Yi+Yjなら垂直線、Yi−Y J 、  
X + ; X Jなら水平線である。
Horizontal and vertical lines can be easily detected using the coordinate values of bending points. For example, the bending points at both ends of the line segment are Pi (Xi
, Yi), Pj (Xj, Yj), then X1
=Xj, Yi+Yj is a vertical line, Yi-YJ,
If X + ; X J, it is a horizontal line.

別途出願した■「斜め線及び曲線ストロークの抽出方式
」 (特願昭61−     )では、次のようにして
斜め線及び曲線ストロークの輪郭線を識別する。即ち該
輪郭線を表わす屈曲点列のグループがN群存在し、その
第j群の屈曲点数をn3.第j群の各屈曲点をPji(
こ\でi−1゜2・・・・・・、  n4  + j=
1. 2.・旧・・N)、第j群の各屈曲点のx、y座
標をX (Pji) 、 Y (Pji)として次のス
テップ1〜5の処理を行ない、上記輪郭線を識別する。
In the separately filed ``Method for Extracting Diagonal Lines and Curved Strokes'' (Japanese Patent Application No. 1988-), the outlines of diagonal lines and curved strokes are identified as follows. That is, there are N groups of bending point sequences representing the contour line, and the number of bending points in the jth group is n3. Let each bending point of the j-th group be Pji(
Here, i-1゜2..., n4 + j=
1. 2.・Old...N), the x and y coordinates of each bending point of the jth group are set as X (Pji) and Y (Pji), and the following steps 1 to 5 are performed to identify the above contour line.

ステップト・・・・・各群の輪郭線の長さDj′を計算
する。
Stepped: Calculate the length Dj' of the contour line of each group.

Dj/ == 、召、C(X(P41+t)  X(P
jt))2+(Y(Pji+1)  Y(Pji))’
)・・・・・・(1)但しP jnj+1は、Pjnj
の次の屈曲点を表わす。
Dj/ == , Call, C(X(P41+t) X(P
jt))2+(Y(Pji+1) Y(Pji))'
)・・・・・・(1) However, P jnj+1 is Pjnj
represents the next inflection point.

第j群と第j+1群が連結する場合には次式が成立する
When the jth group and the j+1th group are connected, the following equation holds true.

X  (Pjnj+1  )  =X  (Pjt1 
1)Y (Pjnj+1 ) −Y (Pjt11)ス
テップ2・・・・・・閾値をDthとしてDj’>Dt
hを満たす群(jとする)に注目する。群jの属性AT
ROIに対して群にの属性A T R(k)が表1の対
応表を満たす群kを群jのマツチング候補とする。
X (Pjnj+1) =X (Pjt1
1) Y (Pjnj+1) -Y (Pjt11) Step 2...Dj'>Dt with the threshold value Dth
Let us focus on the group (let us call it j) that satisfies h. Attribute AT of group j
A group k whose attribute ATR(k) of the group with respect to the ROI satisfies the correspondence table of Table 1 is set as a matching candidate for the group j.

表   1 矢印は前記群の方向を示しており、そして第11図に示
したように文字の輪郭は1つの方向、本例では時計方向
に辿るので各画(カフ)の上/下縁、左/右縁は辿る方
向が逆になる。従って表1の関係がある群j、には斜め
の画を構成する条件の1つを満たしている。
Table 1 The arrows indicate the direction of the groups, and as shown in Figure 11, the outline of the letter follows one direction, in this case clockwise, so the upper/lower edge of each stroke (cuff), left /The right edge is traced in the opposite direction. Therefore, the group j having the relationship shown in Table 1 satisfies one of the conditions for forming a diagonal picture.

ステップ3・・・・・・群jの対応候補である全ての群
kに対して次の識別量を計算する。
Step 3: Calculate the next discrimination amount for all groups k that are correspondence candidates for group j.

Djk= (Mj−Mk)2+l’Dj′−Dk′l 
  ・・・・・・(2)こ\で(2)式の右辺第1項は
輪郭線間の距離を表わし、同第2項は輪郭線の長さの差
である。上記距離は両輪郭線の中点におけるそれとする
Djk= (Mj-Mk)2+l'Dj'-Dk'l
(2) Here, the first term on the right side of equation (2) represents the distance between the contour lines, and the second term represents the difference in length between the contour lines. The above distance is that at the midpoint of both contours.

ステップ4・・・・・・群jは識別1Djkを最小にす
る群とマツチングする(これらの群は画の両縁とする)
Step 4...Group j is matched with the group that minimizes the discrimination 1Djk (these groups are assumed to be both edges of the image)
.

ステップ5・・・・・・全てのjに対してステップ2〜
4を行なう。
Step 5...Step 2~ for all j
Do step 4.

斜め線及び曲線ストロークの抽出を行なった屈曲点デー
タの一例が第10図に示しである。この図では見にくい
が、水平線または垂直線の屈曲点には目印が、飾り部の
屈曲点には↑印が、斜め線と曲線ストロークの屈曲点に
は凸と数字が付されている。特に数字は、斜め線及び曲
線ストロークの輪郭線ペアを示す。上記論理で抽出した
輪郭線ペアは、各々接線方向が類似で、かつ極大値と極
小値が存在しない1価関数となる。
An example of bending point data from which diagonal lines and curved strokes have been extracted is shown in FIG. Although it is difficult to see in this diagram, the bending points of horizontal or vertical lines are marked, the bending points of decorations are marked with ↑ marks, and the bending points of diagonal lines and curved strokes are marked with convex numbers. In particular, the numbers indicate contour pairs of diagonal lines and curved strokes. The contour pairs extracted by the above logic are monovalent functions in which the tangential directions are similar and there is no maximum value or minimum value.

この出願■の方式では斜め線および曲線ストロークを直
線近似するが、直線近似は拡大、縮小で凹凸が目立つよ
うになる。そこで本発明方式では、輪郭線ペアの各々に
曲線近似を適用する。曲線近似には第9図で述べた方法
があるが、本発明方式ではn次のスプライン関数による
平滑化方式、特に数値的に安定であるB −Spl i
ne関数によるそれを用いる。
In the method of this application (2), diagonal lines and curved strokes are approximated by a straight line, but when the linear approximation is enlarged or reduced, unevenness becomes noticeable. Therefore, in the method of the present invention, curve approximation is applied to each contour pair. There are methods for curve approximation as shown in FIG. 9, but the method of the present invention uses a smoothing method using an nth-order spline function, especially B-Spl i which is numerically stable.
Use that by the ne function.

曲線近似:  B−5pline平滑化方式平滑化部点
列を外部から与える固定節点式と、節点列を内部で適応
的に与える節点追加方式または逐次分割方式がある。節
点列の与え方は幾通りもあり、曲線の形状によって異な
るので、本発明方式では後者の節点追加方式を採る。B
 −Spl ine関数による平w化方式(節点追加方
式)の一般式S (Xlを(3)式に示す。
Curve approximation: B-5 pline smoothing method Smoothing unit There are two methods: a fixed node method that provides a point sequence from the outside, and a node addition method or sequential division method that provides a node sequence internally adaptively. Since there are many ways to provide a node sequence, which differ depending on the shape of the curve, the method of the present invention adopts the latter method of adding nodes. B
General formula S (Xl) of the smoothing method (node addition method) using the -Spline function is shown in equation (3).

但しmは次数、n、は節点の数、Cjは係数、Nj、n
++1は(m+1)階の差分商(3)式の係数Cjは、
最小2乗近似的条件から求められる。具体的には(4)
式の評(西式を満足するように決める。
However, m is the degree, n is the number of nodes, Cj is the coefficient, Nj, n
++1 is the difference quotient of the (m+1) floor, and the coefficient Cj of equation (3) is
It is obtained from the least squares approximation condition. Specifically (4)
Evaluation of the formula (Determine to satisfy the Western style.

但しδ2は残差2乗和、δ2thは残差2乗和の闇値、
yl はi番目参照点のy座標値、σ12は観測誤差、
nは参照点の総数 こ\で観測誤差61 は、参照点の重み即ちどの点を重
要視するかを表わす点である。こ\では、スプライン関
数の次数mを3とし、観測誤差σ12は、各参照点を統
計量とみなし相対誤差が一定になるように次の如く与え
る。
However, δ2 is the sum of squared residuals, δ2th is the dark value of the sum of squared residuals,
yl is the y-coordinate value of the i-th reference point, σ12 is the observation error,
n is the total number of reference points, and observation error 61 is a point representing the weight of the reference points, that is, which point is considered important. Here, the order m of the spline function is set to 3, and the observation error σ12 is given as follows so that each reference point is regarded as a statistical quantity and the relative error is constant.

σ+/)’+=一定        ・・・・・・(5
)振動判定二 前記のように本発明方式では曲線近似の
対象となる各セグメント(線分)内に極大値、極小値は
存在しないので、これを関べることにより振動が起きて
いるか否か判定できる。極大値、極小値の有無は、得ら
れた曲線を細かく分割し、各点の微係数の符号を調べれ
ば分るが、微係数算出の手間を省くため、これは次のよ
うに行なう。
σ+/)'+=constant ・・・・・・(5
) Vibration Judgment 2 As mentioned above, in the method of the present invention, there are no local maximum values or local minimum values within each segment (line segment) that is subject to curve approximation, so by considering these values, it is possible to determine whether vibration is occurring or not. Can be judged. The presence or absence of local maximum values and local minimum values can be determined by dividing the obtained curve into small pieces and checking the sign of the differential coefficient at each point, but in order to save the effort of calculating the differential coefficient, this is done as follows.

各セグメントは、屈曲点間のベクトルを90’おきの4
方向に分類し、その属性を基に決定しておくので、各分
割区間の属性を調べることにより極大値と極小値の有無
が分り、振動の有無を判定できる。分割した2番目の点
のX座標をxt 、  y座標を5(xz)とすると、
(I!+1)とlの区間で(Xz+I  Xt )の正
負と(S (XL+、  ) −5(xz))の正負を
調べることにより属性が分る。
Each segment divides the vector between the inflection points into 4 vectors every 90'.
Since the directions are classified and determined based on the attributes thereof, by examining the attributes of each divided section, the presence or absence of local maximum values and local minimum values can be determined, and the presence or absence of vibration can be determined. Assuming that the X coordinate of the second divided point is xt and the y coordinate is 5 (xz),
The attribute can be determined by checking the sign of (Xz+I Xt ) and the sign of (S (XL+, ) −5(xz)) in the interval between (I!+1) and l.

次に振動判定の処理ステップを示す。Next, processing steps for vibration determination will be described.

ステソプト・・・・・曲線を、分割点をN s ll1
ilとして(Ns−1)個に分割する。
Stepsop... Curve, dividing point N s ll1
Divide into (Ns-1) pieces as il.

ステップ2・・・・・・分割点!=1の属性を求める。Step 2...Dividing point! Find the attribute of =1.

(X2−XI)と(S (X2)  S (XI))の
正負を判定することにより、表2に示す属性を決定する
The attributes shown in Table 2 are determined by determining whether (X2-XI) and (S (X2) S (XI)) are positive or negative.

ステップ3・・・・・・分割点z=2の属性を同様な方
法で求め、x=1の属性と一致しているが否が調べる。
Step 3: The attribute of the dividing point z=2 is obtained in a similar manner, and it is checked whether it matches the attribute of the dividing point z=1 or not.

ステップ4・・・・・・もし属性が一致していればβ−
3についても尿性を求め、f=1との属性の一致/不一
致を調べる。属性が一致しなければ振動ありと判定し、
処理を打ち切る。
Step 4...If the attributes match, β-
The urinary nature of 3 is also determined, and the match/mismatch of attributes with f=1 is examined. If the attributes do not match, it is determined that there is vibration,
Abort processing.

ステップ5・・・・・・z=4から1=Ns−1までス
テップ4の処理を行ない、f=Nslまで属性の一致が
確認できれば振動なしと判定する。
Step 5: The process of step 4 is performed from z=4 to 1=Ns-1, and if the matching of attributes is confirmed up to f=Nsl, it is determined that there is no vibration.

表   2 斜め線及び曲線ストロークの輪郭復元: これは前記(
3)式により行なう。なお屈曲点が少ない場合は(4)
式により得られる誤差の信頼性が薄く、また振動現象も
生しやすいため、通切な曲線を得ることが難しい。そこ
で屈曲点数が少ない場合は、屈曲点間をDDAにより発
生させた直線で結び、参照点を増やして曲線近似を行な
う。また屈曲点が多い場合でも(4)式の誤差条件と前
項の振動判定の条件を満足しないとき、屈曲点間をDD
Aで結び、参照点を増やして曲線近似を行なう。
Table 2 Contour restoration of diagonal lines and curved strokes: This is as described above (
3) Performed by the formula. In addition, if there are few bending points, (4)
It is difficult to obtain a continuous curve because the reliability of the error obtained by the formula is low and vibration phenomena are likely to occur. Therefore, when the number of bending points is small, the bending points are connected by straight lines generated by DDA, and the number of reference points is increased to perform curve approximation. In addition, even if there are many bending points, if the error condition of equation (4) and the vibration judgment condition of the previous section are not satisfied, the distance between the bending points is
Connect at A, increase the number of reference points, and perform curve approximation.

本発明ではこのようにして得た文字、図形パターンの圧
縮データを用いて、線形変換後の屈曲点復元およびパタ
ーン生成を行なう。
In the present invention, the compressed data of character and graphic patterns obtained in this way is used to restore the bending point after linear transformation and to generate the pattern.

パターンの復元および生成: これは第1図に示したよ
うに、水平、垂直線、および飾りに対する、屈曲点の線
形変換、DDAによる輪郭復元、また斜め線及び曲線ス
トロークに対する、多項式%式% と曲線近似部の接続、および塗りつぶし、で処理される
Pattern restoration and generation: As shown in Figure 1, this involves linear transformation of bending points for horizontal, vertical lines, and decorations, contour restoration using DDA, and polynomial % expression % and % for diagonal lines and curved strokes. Processed by connecting and filling the curve approximation parts.

多項式の線形変換は次のようにして行なう。式(6)に
示すように、式(3)で得られた多項式S (X)を多
項式S (x′)に線形変換する。
Linear transformation of polynomials is performed as follows. As shown in equation (6), the polynomial S (X) obtained in equation (3) is linearly transformed into polynomial S (x').

この処理は第2図のようにX軸、S fXl軸のスケー
ルを(6)式の関係にあるx′、S (x’ )に変換
することに相当する。例えば拡大、縮小変換する場合は
、その変換倍率をαとして、αX=αs=α、βX=β
s=0と設定する。また圧縮データから復元する場合は
αX=αs=1.βX=βS−〇と設定する。なおX、
 、  S (x、 )は変換前の、斜め線及び曲線ス
トロークの屈曲点に相当し、X、 ’ 、  S (x
I ’ )は線形変換後のそれに相当する。
This process corresponds to converting the scales of the X axis and SfXl axis into x' and S(x') having the relationship expressed by equation (6) as shown in FIG. For example, when performing enlargement or reduction conversion, the conversion magnification is α, αX=αs=α, βX=β
Set s=0. Also, when restoring from compressed data, αX=αs=1. Set βX=βS−〇. Furthermore, X,
, S (x, ) corresponds to the bending point of the diagonal line and curved stroke before conversion, and X, ', S (x
I') corresponds to that after linear transformation.

関数値算出は次の如く行なう。X+′からx′nまでl
x1++ ′  Xi ’  l=1となるi−1′〜
n′のX、′に対して各S (x、 ’ )を算出する
Function value calculation is performed as follows. l from X+' to x'n
x1++ 'Xi'i-1'~ where l=1
Each S (x, ') is calculated for X, ' of n'.

これは変換後の屈曲点間隔を適正にするためである。S
 (x、 ’ )  は5(xl)より求まるので、元
のx、5(xl座標系であるサンプル間隔ΔXごとにS
 (x、 )を算出し、(6)式のα5s(xI)”β
SよりS(x+′)が求まる。例えば拡大、縮小変換の
場合αX−αS=α、βX=βS=OであるからX、′
/α=x、  となり、元のx、5(x)座標系でサン
プル間隔1/α毎に5(xl)を算出する。例を挙げる
とα=2の場合(2倍に拡大するとき)第3図に示すよ
うに、0.5間隔で5(xl)を算出し、2S(xI)
より拡大した座標系での輪郭点の座標値を計算できる。
This is to ensure that the interval between the bending points after conversion is appropriate. S
(x, ') can be found from 5(xl), so for each sample interval ΔX in the original x, 5(xl) coordinate system, S
(x, ) and α5s(xI)”β of equation (6)
S(x+') is found from S. For example, in the case of expansion and contraction conversion, αX − αS = α, βX = βS = O, so X, ′
/α=x, and 5(xl) is calculated for every sample interval 1/α in the original x, 5(x) coordinate system. For example, when α=2 (when magnifying 2 times), as shown in Figure 3, 5(xl) is calculated at 0.5 intervals, and 2S(xI)
It is possible to calculate the coordinate values of contour points in a more expanded coordinate system.

輪郭復元は次のようにして行なう。多項式の線形変換を
行ない、あるX座標に対応した関数値5(Xlを算出す
ることにより輪郭点が求まる。このとき隣り合う輪郭点
間が4連結又は8連結で結びつかない場合が生じる。例
えば拡大、縮小変換する場合、第4図に示すように曲線
の凹きが45°を超えると隣り合う輪郭点間が4連結あ
るいは8連結で結びつかなくなる。なお図中○印は曲線
近似により求まる輪郭点である。このような場合は輪郭
点○即問を、DDAで発生させた直線で結ぶ。
Contour restoration is performed as follows. Contour points are found by performing linear transformation of the polynomial and calculating the function value 5 (Xl) corresponding to a certain X coordinate. At this time, there may be cases where adjacent contour points are not connected by 4 or 8 connections. , when performing reduction conversion, if the concavity of the curve exceeds 45°, as shown in Figure 4, adjacent contour points will no longer be connected by 4 or 8 connections.In the figure, the ○ marks are contour points found by curve approximation. In such a case, the contour points ○ are connected with a straight line generated by DDA.

Δ印がそれ、即ち直線近似で穴埋めする輪郭点である。The Δ mark is the contour point to be filled with straight line approximation.

直線近似部と曲線近似部の接続: 直線近似部の輪郭復
元は第6図左側に示したように圧縮データである屈曲点
座標値を読取り、次に屈曲点座標値の線形変換を行なっ
た後、屈曲点間をDDAによって結び、輪郭復元する。
Connection of the straight line approximation part and the curve approximation part: To restore the contour of the straight line approximation part, as shown on the left side of Figure 6, read the bending point coordinate values, which are compressed data, and then linearly transform the bending point coordinate values. , the bending points are connected by DDA and the contour is restored.

輪郭復元の順序は圧縮データに依存する。本例では原パ
ターンから屈曲点を抽出するときに用いた輪郭追跡の順
序に従う。直線近似部と曲線近似部は、それらを示す属
性を読取り、各々の処理を行なう。圧縮データに変形変
換を適用し、パターン生成を行なう場合に、直線近似部
の端点と曲線近似部の端点が一致しない場合が生じる。
The order of contour restoration depends on the compressed data. In this example, the order of contour tracing used when extracting bending points from the original pattern is followed. The straight line approximation unit and the curve approximation unit read the attributes indicating them and perform their respective processing. When applying deformation transformation to compressed data to generate a pattern, the end points of the linear approximation section and the end points of the curve approximation section may not match.

これに対しては端点間をDDAで結びつける処理を行な
い、直線近似部と曲線近似部を接続する。
For this purpose, processing is performed to connect the end points using DDA to connect the straight line approximation section and the curve approximation section.

塗りつぶし: 算出した全輪郭点に対し、軸郭点で囲ま
れた内部領域に対する塗りつぶしパターンを生成する。
Filling: Generates a filling pattern for the internal area surrounded by the axis points for all calculated contour points.

このとき各輪郭点が内部に属する点か外部に属する点(
判別点)かを判別し、判別点を用いて内部領域を塗りつ
ふす。
In this case, each contour point is either a point belonging to the interior or a point belonging to the exterior (
Discriminant points) are determined, and the internal area is filled in using the discriminant points.

第5図は本発明の効果を示す図で、(a)は直線近似に
よる拡大変換(屈曲点の座標値に変換倍率を掛けて拡大
サイズの屈曲点の座標値を求め、その屈曲点間をDDA
で結んで輪郭を復元したのち塗りつぶしを行なう)の結
果例、(blは本発明方式による拡大変換の結果例であ
る。いずれも104×104サイズのものを180X1
80サイズに拡大した。(alでははらい部に欠けが見
られるが(blではこれが除かれている。
FIG. 5 is a diagram showing the effects of the present invention, and (a) is an enlarged conversion by linear approximation (the coordinate values of the bending points are multiplied by the conversion magnification to obtain the coordinate values of the bending points of the enlarged size, and the coordinates between the bending points are D.D.A.
(bl is an example of the result of enlargement conversion using the method of the present invention. In both cases, the 104 x 104 size is converted to 180 x 1.
Expanded to 80 size. (Although there is a chip on the heel in the al, this has been removed in the bl.

第7図は第6図と同種の図であるが、対象を文字に限定
している。屈曲点の属性とは前述の方向性などである。
FIG. 7 is a diagram of the same type as FIG. 6, but the object is limited to characters. The attributes of the bending point include the above-mentioned direction.

第8図は第7図で得られた圧縮データを用いて拡大、縮
小を行ない、それを復元、表示する処理要領を示し、第
1図に対応する。
FIG. 8 shows a processing procedure for enlarging and reducing the compressed data obtained in FIG. 7, and restoring and displaying the data, and corresponds to FIG. 1.

(発明の効果〕 以上説明したように本発明は、文字、図形の輪郭線をそ
の水平部、垂直部、および飾り部については直線近似し
、斜め線及び曲線ストロークについてはn次のスプライ
ン関数を用いて曲線近似した圧縮データ(10)を用い
て、線形変換した文字、図形パターンを効率よく、美し
いパターンで1夏元、生成することができる。
(Effects of the Invention) As explained above, the present invention approximates the contour lines of characters and figures by linear approximation for their horizontal parts, vertical parts, and decorative parts, and uses an nth-order spline function for diagonal lines and curved strokes. By using the compressed data (10) approximated by a curve using the compressed data (10), linearly converted character and graphic patterns can be efficiently generated in beautiful patterns in one summer.

また復元に際しては、l Xi+l ’   X+ ’
  l=1となるi=l’ 〜n’の)J ′に対して
S(x、’)を計算する即ち復元後の輪郭点がX方向で
ドツト間隔になるようにするので、またこの際各5(x
t’)の間隔が4連結又は8連結で結びつかない部分に
ついてはDDAにより輪郭点発生するので、更に直線近
似部と曲線近似部の間が不連続であるとDDAによりこ
れらを結ぶので、連続した美しい文字、図形パターンを
生成することができる。
Also, when restoring, l Xi+l 'X+'
S(x,') is calculated for J' (of i=l' to n' where l=1). In other words, the contour points after restoration are made to have dot spacing in the X direction, so at this time, 5 each (x
Contour points are generated by DDA for parts where the intervals of t') are not connected by 4 or 8 connections.Furthermore, if there is discontinuity between the straight line approximation part and the curve approximation part, they are connected by DDA, so they are continuous. It is possible to generate beautiful characters and shape patterns.

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

第1図は本発明の原理ブロック図、 第2図は多項式の線形変換の説明図、 第3図は関数値の算出要領の説明図、 第4図は輪郭復元要領の説明図、 第5図は拡大変換例の説明図、 第6図は圧縮データ作成要領の説明図、第7図および第
8図は具体例の説明図、第9図は従来の曲線近似例の説
明図、 第10図は斜め線の抽出例を示す説明図、第11図は折
れ線近似の説明図である。
Figure 1 is a block diagram of the principle of the present invention. Figure 2 is an illustration of linear transformation of polynomials. Figure 3 is an illustration of how to calculate function values. Figure 4 is an illustration of contour restoration procedures. Figure 5 is an explanatory diagram of an enlargement conversion example, Fig. 6 is an explanatory diagram of compressed data creation procedure, Figs. 7 and 8 are explanatory diagrams of specific examples, Fig. 9 is an explanatory diagram of a conventional curve approximation example, and Fig. 10 11 is an explanatory diagram showing an example of diagonal line extraction, and FIG. 11 is an explanatory diagram of polygonal line approximation.

Claims (1)

【特許請求の範囲】 文字、図形の輪郭線を、その水平部、垂直部、および飾
り部については直線で近似し、斜め線及び曲線ストロー
クについてはn次のスプライン関数を用いて曲線で近似
した圧縮データ(10)を用いて、線形変換した文字、
図形パターンを生成する方式において、 前記圧縮データより水平線、垂直線、および飾り部に対
する屈曲点座標データを取出してそれを線形変換する手
段(12)、および線形変換後の屈曲点座標データを用
いてDDAにより輪郭復元する手段(14)と、 前記圧縮データより斜め線及び曲線ストロークに対する
多項式データを取出してそれを線形変換する手段(16
)、変換後の関数値を算出して輪郭点を復元する手段(
18)、該輪郭点が離れているものについてDDAによ
り穴埋めして輪郭復元する手段(20)と、 これらの輪郭復元手段により発生された直線近似部と曲
線近似部とを接続し、これらの接続端が離れている場合
はDDAによりこれらを連結する手段(22)と、 算出された輪郭点により囲まれた内部領域を塗りつぶし
て線形変換された文字、図形パターンを生成する手段(
22)とを有することを特徴とする圧縮データの復元、
生成方式。
[Claims] The outlines of characters and figures are approximated by straight lines for horizontal parts, vertical parts, and decorative parts, and by curved lines using an nth-order spline function for diagonal lines and curved strokes. Characters linearly converted using compressed data (10),
In the method for generating a graphic pattern, means (12) for extracting bending point coordinate data for horizontal lines, vertical lines, and decorative parts from the compressed data and linearly converting the data, and using the bending point coordinate data after the linear transformation. means (14) for restoring contours by DDA; and means (16) for extracting polynomial data for diagonal lines and curved strokes from the compressed data and linearly transforming them.
), a means of calculating the converted function value and restoring the contour points (
18), a means (20) for restoring the contour by filling in holes using DDA for those whose contour points are far apart, and connecting the straight line approximation part and the curve approximation part generated by these contour restoring means, and connecting them. If the edges are far apart, there is a means (22) for connecting them using DDA, and a means (22) for filling in the internal area surrounded by the calculated contour points to generate a linearly converted character or graphic pattern (22).
22) Restoration of compressed data characterized by having
Generation method.
JP13964686A 1986-06-16 1986-06-16 Restoration and generation system for compressed data Pending JPS62296280A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP13964686A JPS62296280A (en) 1986-06-16 1986-06-16 Restoration and generation system for compressed data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP13964686A JPS62296280A (en) 1986-06-16 1986-06-16 Restoration and generation system for compressed data

Publications (1)

Publication Number Publication Date
JPS62296280A true JPS62296280A (en) 1987-12-23

Family

ID=15250121

Family Applications (1)

Application Number Title Priority Date Filing Date
JP13964686A Pending JPS62296280A (en) 1986-06-16 1986-06-16 Restoration and generation system for compressed data

Country Status (1)

Country Link
JP (1) JPS62296280A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0260324A (en) * 1988-08-26 1990-02-28 Ryoichi Mori Data signal compressor

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6039280A (en) * 1983-07-04 1985-03-01 ウーアーヴェー ソフトウエアー アンド タイプ ゲーエムベーハー Method and apparatus for automatically digitizing contour line
JPS6075975A (en) * 1983-10-03 1985-04-30 Photo Composing Mach Mfg Co Ltd Processing method of character picture data

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6039280A (en) * 1983-07-04 1985-03-01 ウーアーヴェー ソフトウエアー アンド タイプ ゲーエムベーハー Method and apparatus for automatically digitizing contour line
JPS6075975A (en) * 1983-10-03 1985-04-30 Photo Composing Mach Mfg Co Ltd Processing method of character picture data

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0260324A (en) * 1988-08-26 1990-02-28 Ryoichi Mori Data signal compressor

Similar Documents

Publication Publication Date Title
JP3238580B2 (en) Thicker text generator
CN114494306B (en) Edge gradient covariance guided method for repairing character outline of first bone and Doppler dictionary
US7239318B2 (en) Method and computer software program product for processing characters based on outline font
KR910001525B1 (en) Method of curve approximation
JP3037854B2 (en) Character generation method and device
JPS62274472A (en) Compression system for pattern data
JPS62296280A (en) Restoration and generation system for compressed data
CN107292840B (en) Image restoration method and device, computer-readable storage medium and terminal
CN112232022B (en) Method and system for dynamically adjusting parameters and designing Chinese character patterns and layouts
US5355451A (en) Graphic processing unit
JP2527187B2 (en) Compression method of pattern data by curve approximation
Ye et al. Document image matching and annotation lifting
JPH0683952A (en) Device and method for inputting and outputting character data
JPS62211692A (en) Preparation system for character of varied size
JP2507413B2 (en) Pattern data compression method
JP2882327B2 (en) Line figure matching device
JPS62212167A (en) Synthesized character forming system
JP2782753B2 (en) Character pattern scaling device
JP3278247B2 (en) Character recognition method
JP2856704B2 (en) Character generator
JP3035141B2 (en) Character creation device and character creation method
CN118552444A (en) Image restoration method and device
JP3030998B2 (en) Character generator
JPH07262385A (en) Outline data generator
JPH04223495A (en) Character signal generator