JPH0715626B2 - Character data processing method - Google Patents

Character data processing method

Info

Publication number
JPH0715626B2
JPH0715626B2 JP1219989A JP21998989A JPH0715626B2 JP H0715626 B2 JPH0715626 B2 JP H0715626B2 JP 1219989 A JP1219989 A JP 1219989A JP 21998989 A JP21998989 A JP 21998989A JP H0715626 B2 JPH0715626 B2 JP H0715626B2
Authority
JP
Japan
Prior art keywords
character
data
skeleton line
contour
fourier coefficient
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 - Lifetime
Application number
JP1219989A
Other languages
Japanese (ja)
Other versions
JPH0381799A (en
Inventor
和男 佐柳
眞一郎 福田
博之 芝田
Original Assignee
株式会社写研
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 株式会社写研 filed Critical 株式会社写研
Priority to JP1219989A priority Critical patent/JPH0715626B2/en
Publication of JPH0381799A publication Critical patent/JPH0381799A/en
Publication of JPH0715626B2 publication Critical patent/JPH0715626B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Description

【発明の詳細な説明】 [産業上の利用分野] 本発明は各種電子機器に収容して出力するための文字パ
ターンを記憶、再生する文字データ処理方法に関し、詳
しくは文字パターンを骨格線情報と、骨格線から輪郭ま
での偏移量の情報とで文字パターンをデータ化し、それ
を再生する文字データ処理方法に関するものである。
Description: TECHNICAL FIELD The present invention relates to a character data processing method for storing and reproducing a character pattern to be accommodated and output in various electronic devices, and more specifically, a character pattern is used as skeleton line information. The present invention relates to a character data processing method for converting a character pattern into data by using information on a shift amount from a skeleton line to a contour and reproducing the data.

[従来技術] レーザプリンタ、入力編集装置などの各種電子機器は、
画面表示やハードコピー出力のための文字パターンをハ
ードディスクやROM等のメモリに収容している。
[Prior Art] Various electronic devices such as laser printers and input editing devices are
Character patterns for screen display and hard copy output are stored in memory such as hard disk and ROM.

それらの文字パターンは、メモリ容量をできるだけ少な
くするために、様々な方法でデータ圧縮されている。デ
ータ圧縮技術の例として次のような方法がある。
The character patterns are data-compressed in various ways in order to minimize the memory capacity. The following methods are examples of data compression techniques.

.ビットマップデータをランレングス符号を使って定
義 .文字の輪郭をベクトルで近似 .文字の輪郭を曲線で近似 [発明が解決しようとする課題] このように種々のデータ圧縮方法があるが、いずれの方
法にも何らかの問題がある。例えば、文字パターンデー
タを作成する際、アナログの原字から読み取ったときに
生じる輪郭部のノイズの除去(輪郭の平滑化)が簡単に
できなかったり、1つの文字パターンデータから種々線
幅の異なる文字が再生できない等の問題がある。そのた
め機器によって使用するデータ圧縮方法を適宜選択して
採用しているのが実情である。
. Define bitmap data using run-length code. Approximate the outline of a character with a vector. Approximating Character Contour by Curve [Problem to be Solved by the Invention] As described above, there are various data compression methods, but each method has some problems. For example, when creating character pattern data, it is not easy to remove noise (smoothing of the outline) at the contour portion that occurs when reading from an analog original character, or one character pattern data has different line widths. There is a problem that characters cannot be reproduced. Therefore, the actual situation is that the data compression method used by the device is appropriately selected and adopted.

[課題を解決するための手段] 本発明は以上の点から成したものであり、文字パターン
のデータをアナログの原字などから作成する際、輪郭部
に発生したノイズを除去したり、あるいは文字パターン
を再生するときに、文字の線幅を変える等の処理が簡単
に行える文字データ処理方法を提供することを目的とす
る。その特徴とするところは、文字の形状を特定するデ
ータを作成する文字データ処理方法において、文字の骨
格線から文字の輪郭までの偏移量を複数抽出し、抽出し
た前記複数の偏移量をフーリエ変換してフーリエ係数デ
ータを作成し、該フーリエ係数データと前記骨格線を特
定する骨格線情報とを少なくとも含むデータを、文字の
形状を特定するデータとして作成することである。
[Means for Solving the Problems] The present invention has been made from the above points, and when data of a character pattern is created from an analog original character, noise generated in a contour portion is removed or a character is generated. An object of the present invention is to provide a character data processing method capable of easily performing processing such as changing the line width of a character when reproducing a pattern. The feature is that in the character data processing method for creating the data for specifying the shape of the character, a plurality of deviation amounts from the skeleton line of the character to the contour of the character are extracted, and the extracted deviation amounts are Fourier transform is performed to create Fourier coefficient data, and data including at least the Fourier coefficient data and skeleton line information that specifies the skeleton line is created as data that specifies the shape of a character.

[実施例] I.文字パターンデータの作成 はじめに文字パターンデータの作成について説明する。[Example] I. Creation of character pattern data First, creation of character pattern data will be described.

本発明は、第2図に示すように文字1を各構成要素(以
下基本ストロークという)1aに分解し、各基本ストロー
ク1aを1つの単位としてデータ化し、文字パターンデー
タを作成する。
According to the present invention, as shown in FIG. 2, a character 1 is decomposed into constituent elements (hereinafter referred to as basic strokes) 1a, and each basic stroke 1a is converted into data to form character pattern data.

以下に、第3図に例示するような文字の1つの基本スト
ローク1aをデータ化する場合について、第1図の処理フ
ロー図に従って説明する。尚、文字パターンデータを作
成するための元になる文字は、アナログの原字でも、あ
るいは既に何らかの方法でデータ化されている文字パタ
ーンデータでもそのどちらでも良い。
The case of converting one basic stroke 1a of a character as illustrated in FIG. 3 into data will be described below with reference to the process flow chart of FIG. The original character for creating the character pattern data may be either an analog original character or character pattern data that has already been converted into data by some method.

〈1.骨格線情報の作成〉 はじめに基本ストロークの骨格線を抽出し、その骨格線
を定義する骨格線情報を作成する(第1図S1)。
<1. Creation of skeleton line information> First, a skeletal line of a basic stroke is extracted, and skeleton line information defining the skeleton line is created (Fig. 1, S1).

骨格線の抽出は、画像処理技術により自動的に抽出する
方法、表示画面上でオペレータがマニュアルで抽出する
方法など種々の方法があるが、いずれの方法によっても
良い。また抽出した骨格線の定義は、直線、曲線(関
数)、直線と曲線など、いずれの方法によっても良い。
There are various methods for extracting the skeleton line, such as a method of automatically extracting the image with an image processing technique and a method of manually extracting it on the display screen by an operator, but any method may be used. The extracted skeleton line may be defined by any method such as straight line, curved line (function), straight line and curved line.

例えば第3図の基本ストローク1aに対しては、第4図に
示す骨格線2を定義する骨格線情報が作成される。
For example, for the basic stroke 1a in FIG. 3, skeleton line information defining the skeleton line 2 shown in FIG. 4 is created.

〈2.偏移量の抽出〉 次に、骨格線から輪郭までの偏移量(距離)を抽出する
(S2)。
<2. Extraction of Shift Amount> Next, the shift amount (distance) from the skeleton line to the contour is extracted (S2).

偏移量は、任意に定めた偏移量抽出開始点より順に抽出
する。そして基本的には予め定められている間隔で骨格
線上に設定した分割点から輪郭までの距離を順次抽出す
ることによって行う。分割点を設定する間隔は任意に定
めることができる。
The shift amount is extracted in order from the shift amount extraction start point that is arbitrarily determined. Then, basically, it is performed by sequentially extracting the distances from the division points set on the skeleton line to the contour at predetermined intervals. The intervals at which the division points are set can be set arbitrarily.

尚、骨格線の特異な部分ではその部分に適した方法で抽
出する。本実施例では、骨格線の状態により次の方法に
よって偏移量を抽出している。
Note that the peculiar part of the skeleton line is extracted by a method suitable for that part. In this embodiment, the shift amount is extracted by the following method according to the state of the skeleton line.

.骨格線が直線やゆるやかな曲線の中間部分 骨格線2が、第5図(1)に示すように直線やゆるやか
な曲線の中間部分は、第5図(2)に示すように骨格線
2を等間隔に分割した点を分割点として設定する。そし
て分割点の法線が輪郭3と交わる点(以下サンプル点と
いう)までの距離が偏移量となる。これは上述した抽出
方法である。
. The skeleton line is a straight line or a middle part of a gentle curve. The skeleton line 2 is a straight line or a middle part of a gentle curve as shown in Fig. 5 (1). The points divided at equal intervals are set as division points. The distance to the point where the normal of the dividing point intersects the contour 3 (hereinafter referred to as the sample point) is the shift amount. This is the extraction method described above.

.骨格線の端部 第6図(1)に示すような骨格線2の端部は、上述した
の方法のように骨格線を等間隔で分割して分割点を設
定できないので、第6図(2)に示すように等角度で分
割する。骨格線の端部2eから、分割した角度線の延長線
と交わるサンプル点までの距離が偏移量となる。
. End of skeleton line As shown in FIG. 6 (1), the end of the skeleton line 2 cannot be set by dividing the skeleton line at equal intervals as in the above-described method, and therefore, FIG. Divide at equal angles as shown in 2). The distance from the end 2e of the skeleton line to the sample point intersecting the extension line of the divided angle line is the shift amount.

.骨格線の両端に隣接する骨格線が角度を有している
部分 骨格線2nの両端2a,2bに隣接する骨格線2n+1,2n-1が第
7図(1)に示すように角度がついている部分は、第7
図(2)に示すように両端点2a,2bに隣接する側の2つ
の骨格線2n+1,2n-1の端点の2法線の交点4を求め、そ
の交点4と骨格線2nを等間隔に分割した分割点とを結ぶ
線が輪郭3と交わるサンプル点までの距離を偏移量とし
て抽出する。
. As the partial skeleton lines 2 n at both ends 2a skeletal line adjacent to both ends of the skeleton line is at an angle, the skeleton line 2 n + 1, 2 n-1 adjacent to 2b shown in FIG. 7 (1) The angled part is the 7th
As shown in FIG. (2), the intersection 4 of the two normals of the end points of the two skeleton lines 2 n + 1 and 2 n-1 on the side adjacent to the end points 2a and 2b is obtained, and the intersection point 4 and the skeletal line 2 The distance to the sample point where the line connecting the division points obtained by dividing n at equal intervals intersects the contour 3 is extracted as the shift amount.

交点と反対側の輪郭については、上述のの方法によっ
て抽出する。
The contour on the side opposite to the intersection is extracted by the method described above.

本発明において偏移量を抽出する方法は、上記〜の
方法に限定されるものではなく、他の方法によって行っ
ても良いことはもちろんである。
In the present invention, the method of extracting the shift amount is not limited to the above-mentioned methods, and it goes without saying that another method may be used.

第8図はある1つの基本ストロークについて、上述のよ
うにして抽出した偏移量をグラフにした図である。縦軸
は偏移量を表す。横軸は、その偏移量が輪郭上のどのサ
ンプル点の偏移量なのかを識別する情報を表し、例えば
偏移量を抽出した輪郭上のサンプル点に1,2,…と順に番
号(以下サンプル項番という)を付し、その番号を横軸
としている。
FIG. 8 is a graph showing the shift amount extracted as described above for a certain basic stroke. The vertical axis represents the shift amount. The horizontal axis represents information for identifying which sample point on the contour the shift amount is, for example, the sample points on the contour from which the shift amount is extracted are numbered in order (1, 2, ...). Hereinafter referred to as the sample item number), the number is the horizontal axis.

〈3.フーリエ変換〉 以上のようにして抽出した基本ストロークの偏移量をフ
ーリエ変換する(S3)。
<3. Fourier transform> The shift amount of the basic stroke extracted as described above is Fourier transformed (S3).

偏移量は第8図に示すようなデータ列で構成される離散
値なので、ここで行うフーリエ変換は離散的フーリエ変
換である。
Since the shift amount is a discrete value composed of a data string as shown in FIG. 8, the Fourier transform performed here is a discrete Fourier transform.

離散的フーリエ変換は、一般に次式で表される。The discrete Fourier transform is generally expressed by the following equation.

N :データ数 g(k):k番目のデータ 本発明では、 N :1つの基本ストロークのサンプル項番の数 g(k):k番目のサンプル項番における偏移量となる。 N: number of data g (k): kth data In the present invention, N: number of sample item numbers of one basic stroke g (k): shift amount at kth sample item number.

従ってここでは上式で表されるフーリエ変換を行う。フ
ーリエ変換した結果をグラフに表すと、例えば第9図の
ようになる。第9図で横軸は次数、縦軸はフーリエ係数
である。また第9図(1)は実数部、第9図(2)は虚
数部のフーリエ係数を表すグラフである。
Therefore, the Fourier transform represented by the above equation is performed here. The result of Fourier transform is shown in a graph, for example, as shown in FIG. In FIG. 9, the horizontal axis represents the order and the vertical axis represents the Fourier coefficient. Further, FIG. 9 (1) is a graph showing the Fourier coefficient of the real part, and FIG. 9 (2) is a graph showing the Fourier coefficient of the imaginary part.

第9図では実数部のフーリエ係数は左右偶対称、虚数部
は同じく奇対称となっている。これは第9図の例が特殊
なのではなく、離散的フーリエ変換に特有な性質であ
る。従ってすべてのフーリエ係数を記憶する必要はな
く、半分だけ記憶しておけば充分である。
In FIG. 9, the Fourier coefficient of the real part is left-right even symmetry and the imaginary part is odd symmetry. This is not peculiar to the example of FIG. 9, but a property peculiar to the discrete Fourier transform. Therefore, it is not necessary to store all Fourier coefficients, and it is sufficient to store only half of them.

〈4.データの記憶〉 次に、以上のようにして求めた骨格線情報やフーリエ係
数などからなる、1つの基本ストロークに関するデータ
の記憶について説明する。
<4. Data Storage> Next, the storage of data regarding one basic stroke, which includes the skeleton line information and the Fourier coefficient obtained as described above, will be described.

第10図はフーリエ係数データのフォーマット例を示す図
である。第10図の各データが表す情報は次のとおりであ
る。
FIG. 10 is a diagram showing a format example of Fourier coefficient data. The information represented by each data in FIG. 10 is as follows.

.全次数 その基本ストロークのフーリエ係数の次数。. All orders The order of the Fourier coefficients of the basic stroke.

.データ種別 以下に続くフーリエ係数が実数部か、虚数部かを区別す
るデータ。
. Data type Data that distinguishes whether the following Fourier coefficient is the real part or the imaginary part.

.量子化ピッチ フーリエ係数を量子化したときのピッチ。. Quantization pitch The pitch when the Fourier coefficient is quantized.

.区間数 第11図に示すように、フーリエ係数の値の大小により割
り当てるビット数を変えるため、全データをいくつかの
区間に分割するが、そのときの区間の数を示すデータ。
. Number of sections As shown in Fig. 11, all data is divided into several sections in order to change the number of bits to be assigned depending on the magnitude of the value of the Fourier coefficient. Data indicating the number of sections at that time.

.区間の次数 その区間はフーリエ係数何次分のデータなのかを示すデ
ータ。
. Data of the degree of the Fourier coefficient of the section.

.割当ビット数 その区間のフーリエ係数を表すのに割り当てたビット
数。
. Number of allocated bits The number of allocated bits to represent the Fourier coefficient of the section.

最大のフーリエ係数を表せるように一律に同じビット数
を与えると、小さなフーリエ係数の部分にも冗長にビッ
トが与えられてデータ量が多くなってしまう。そこで本
実施例では、第11図に示すようにフーリエ係数の絶対値
の大きさにより、割り当てるビット数を変えるようにし
た。つまりフーリエ係数の絶対値が大きいときは多くの
ビットを、小さいときは逆に少ないビットを割り当てる
ことにより全体のデータ量が少なくなる。
If the same number of bits is given so that the maximum Fourier coefficient can be expressed, bits are redundantly given to the small Fourier coefficient portion and the data amount increases. Therefore, in this embodiment, as shown in FIG. 11, the number of bits to be assigned is changed according to the magnitude of the absolute value of the Fourier coefficient. That is, when the absolute value of the Fourier coefficient is large, a large number of bits are assigned, and when the absolute value of the Fourier coefficient is small, a small number of bits are assigned.

.フーリエ係数 フーリエ係数を上述した量子化ピッチで量子化した1区
間分のフーリエ係数の値。つまり上述した“区間の次
数”だけフーリエ係数を記憶している。
. Fourier coefficient The value of the Fourier coefficient for one section obtained by quantizing the Fourier coefficient with the above-described quantization pitch. That is, the Fourier coefficients are stored by the above-mentioned “degree of section”.

このようにフーリエ係数データは第10図にも示すよう
に、のデータで1つの区間データを構成し、その
区間データが区間数が示す数だけ集まって実数部また
は虚数部のデータを構成している。
Thus, as shown in FIG. 10, the Fourier coefficient data constitutes one section data with the data of, and the section data is collected by the number indicated by the number of sections to form the data of the real part or the imaginary part. There is.

以上のようなフォーマットで構成されるフーリエ係数デ
ータを、上述した骨格線情報および偏移量抽出方法のデ
ータとともに記憶して、基本ストロークに関するデータ
とする(第1図S4)。
The Fourier coefficient data configured in the above format is stored together with the skeleton line information and the data of the shift amount extraction method described above, and is used as the data regarding the basic stroke (FIG. 1, S4).

そして1つの文字パターンデータは複数の基本ストロー
クに関するデータで構成される。
Then, one character pattern data is composed of data regarding a plurality of basic strokes.

このようにして例えばJIS第1,第2水準までの文字の文
字パターンデータを作成し、レーザプリンタ、入力編集
装置など各種の電子機器に搭載する文字パターンデータ
とする。
In this way, for example, character pattern data of characters up to JIS level 1 and level 2 is created and used as character pattern data to be installed in various electronic devices such as a laser printer and an input editing device.

II.文字パターンの再生 次に、以上のようにして作成した文字パターンデータか
らの文字の再生処理を、第12図の処理フロー図に従って
説明する。尚、以下は1つの基本ストロークの再生につ
いての説明である。
II. Reproduction of Character Pattern Next, a character reproduction process from the character pattern data created as described above will be described with reference to the process flow diagram of FIG. Note that the following is a description of reproduction of one basic stroke.

はじめに基本ストロークの偏移量を復元する(第12図S
1)。偏移量は、第10図に示すフォーマットで記憶して
いるフーリエ係数データから、第9図(1)(2)に示
すようなデータに復元し、それを逆フーリエ変換するこ
とで、例えば第8図に示すような偏移量のデータ列が再
生される。
First, restore the deviation of the basic stroke (Fig. 12 S
1). The shift amount is restored, for example, from the Fourier coefficient data stored in the format shown in FIG. 10 to the data as shown in FIGS. A data string having a shift amount as shown in FIG. 8 is reproduced.

逆フーリエ変換は、一般に次式で表される。The inverse Fourier transform is generally expressed by the following equation.

N :1つの基本ストロークのサンプル項番の数 g(k):k番目のサンプル項番における偏移量 次に基本ストロークの骨格線を復元する(S2)。骨格線
は、フーリエ係数データとともに記憶した骨格線情報か
ら復元する。
N: Number of sample item numbers of one basic stroke g (k): Shift amount at the kth sample item number Next, the skeleton line of the basic stroke is restored (S2). The skeleton line is restored from the skeleton line information stored together with the Fourier coefficient data.

以上のようにして復元した偏移量と骨格線および偏移量
抽出方法のデータから、基本ストロークの輪郭を再生す
る(S3)。
The outline of the basic stroke is reproduced from the shift amount, the skeleton line, and the data of the shift amount extraction method restored as described above (S3).

このようにして再生された基本ストロークの輪郭は、第
13図に示すように、輪郭上の点の形で得られる。そのた
め、本発明による文字パターンデータを搭載した電子機
器等で文字を出力するときは、それらの輪郭上の点の間
を補間し、更に輪郭の内部を塗り潰す処理を行う。補間
及び塗り潰し処理は従来より周知の方法で行えば良い。
The outline of the basic stroke reproduced in this way is
It is obtained in the form of points on the contour, as shown in Fig. 13. Therefore, when a character is output by an electronic device or the like equipped with the character pattern data according to the present invention, a process of interpolating between the points on the contour and further filling the inside of the contour is performed. The interpolation and the filling processing may be performed by a conventionally known method.

このようにして基本ストロークを複数再生することで、
1つの文字を再生できる。
By playing multiple basic strokes in this way,
Can play one character.

III.本発明による文字パターンデータを搭載した電子機
器の例 第14図は上述した方法によって文字パターンデータをメ
モリに記憶したレーザプリンタの実施例を表すブロック
図である。
III. Example of electronic device equipped with character pattern data according to the present invention FIG. 14 is a block diagram showing an embodiment of a laser printer in which character pattern data is stored in a memory by the method described above.

第14図で、5は上述した方法で作成した文字パターンデ
ータを例えばJIS第1,第2水準まで記憶しているメモ
リ、6はCPU、7は種々の指令を行う入力部、8はメモ
リ5から読み出した文字パターンデータから文字パター
ンを再生するデコーダ、9はデコーダ8で再生した文字
をビット展開するビットマップメモリ、10は出力制御
部、11はビットマップメモリ9に展開されているデータ
をハードコピー出力する出力部である。この出力部11
は、例えばレーザビームをポリゴンミラーで走査して普
通紙や感光材料に文字を出力する周知のレーザ出力ユニ
ットで構成する。
In FIG. 14, 5 is a memory that stores the character pattern data created by the above-described method up to JIS 1st and 2nd levels, 6 is a CPU, 7 is an input section for issuing various commands, and 8 is a memory 5 A decoder for reproducing a character pattern from the character pattern data read from the device, 9 is a bit map memory for bit-expanding the character reproduced by the decoder 8, 10 is an output control unit, and 11 is a hard disk for the data expanded in the bit map memory 9. This is an output unit that outputs a copy. This output part 11
Is a well-known laser output unit that outputs a character on plain paper or a photosensitive material by scanning a laser beam with a polygon mirror.

文字の出力は、まずCPU6が、出力する文字の文字パター
ンデータをメモリ5から読み出し、デコーダ8へ送る。
デコーダ8は上述した文字パターン再生の処理を行って
文字パターンを再生し、ビットマップメモリ9へ展開す
る。
To output a character, the CPU 6 first reads the character pattern data of the character to be output from the memory 5 and sends it to the decoder 8.
The decoder 8 performs the above-described character pattern reproduction processing to reproduce the character pattern, and expands it in the bitmap memory 9.

このような処理を繰り返して行って複数の文字パターン
のデータをビットマップメモリ9に展開したら、出力制
御部10の制御により、出力部11で文字を出力する。
After repeating such processing and expanding the data of a plurality of character patterns in the bitmap memory 9, the output unit 11 controls the output unit 11 to output the characters.

以上本発明の実施例を説明したが、上記実施例では文字
を基本ストロークに分解して文字パターンデータを作成
したが、本発明は基本ストロークに分解することなく文
字パターンデータを作成しても良いことはもちろんであ
る。
Although the embodiment of the present invention has been described above, the character pattern data is created by decomposing characters into basic strokes in the above embodiment, but the present invention may create character pattern data without decomposing into basic strokes. Of course.

[発明の効果] 本発明は上述したように骨格線から文字輪郭上の点まで
の偏移量を抽出し、それをフーリエ変換したものを文字
パターンデータとしたため、次のような効果がある。
EFFECTS OF THE INVENTION Since the present invention extracts the shift amount from the skeleton line to the point on the character contour as described above, and Fourier-transforms the extracted shift amount, it has the following effects.

まず、アナログの原字から読み取ったときなどに輪郭に
第15図(1)に示すようなノイズがある場合、偏移量を
フーリエ変換したときの高周波成分が多くなる。この高
周波成分を除去すれば第15図(2)に示すようにノイズ
を除去できるが、この操作は簡単にできるため、ノイズ
のない文字パターンデータを簡単に作成することができ
る。この処理は文字パターンデータの作成時でなく、文
字を再生するときに行うようにすることもできる。
First, if the contour has noise as shown in FIG. 15 (1) when it is read from an analog original character, the high-frequency component becomes large when the shift amount is Fourier transformed. If this high frequency component is removed, noise can be removed as shown in FIG. 15 (2), but since this operation is simple, it is possible to easily create noise-free character pattern data. This processing can be performed not only when the character pattern data is created but also when the character is reproduced.

またこの性質を逆に利用し、文字を再生するときに高周
波成分や低周波成分を適宜付加してやり、1つの文字パ
ターンデータから輪郭に様々な凹凸がある文字を再生さ
せることもできる。
Further, by utilizing this property in reverse, it is possible to reproduce a character having various irregularities in the contour from one character pattern data by appropriately adding a high frequency component and a low frequency component when reproducing the character.

また、文字を再生するとき実数部のフーリエ係数データ
の0次の項を変化させれば、第16図に例示するように線
幅を変えることができるため、1つの文字パターンデー
タから様々な線幅の文字ファミリーを再生することがで
きる。
Also, when reproducing a character, if the 0th-order term of the Fourier coefficient data of the real part is changed, the line width can be changed as illustrated in FIG. 16, so various line patterns can be changed from one character pattern data. A wide character family can be played.

以上のように、本発明によれば文字パターンに対して種
々の変形や多様化処理が簡単に行えるという大なる効果
を有する。
As described above, according to the present invention, it is possible to easily perform various transformations and diversification processes on a character pattern.

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

第1図は本発明の文字パターンデータ作成の処理手順を
示す処理フロー図、第2図は文字の基本ストロークへの
分割を説明する図、第3図は基本ストロークの例を示す
図、第4図は文字の骨格を説明する図、第5図、第6
図、第7図は偏移量抽出の方法を説明する図、第8図は
偏移量のグラフ、第9図はフーリエ係数データのグラ
フ、第10図はフーリエ係数データのフォーマットを示す
図、第11図はフーリエ係数データの区間を説明する図、
第12図は本発明の文字の再生の処理手順を示す処理フロ
ー図、第13図は再生処理によって得られた輪郭上の点を
示す図、第14図はレーザプリンタの例のブロック図、第
15図はノイズの除去を説明する図、第16図は文字の線幅
の変更を説明する図である。 5……メモリ 6……CPU 7……入力部 8……デコーダ 9……ビットマップメモリ 10……出力制御部 11……出力部
FIG. 1 is a process flow chart showing a processing procedure for creating character pattern data according to the present invention, FIG. 2 is a diagram for explaining division of characters into basic strokes, and FIG. 3 is a diagram showing an example of basic strokes. The figure is a figure explaining the skeleton of the character, Fig. 5, Fig. 6
FIG. 7 is a diagram for explaining the method of extracting the shift amount, FIG. 8 is a graph of the shift amount, FIG. 9 is a graph of Fourier coefficient data, and FIG. 10 is a diagram showing the format of Fourier coefficient data. FIG. 11 is a diagram illustrating a section of Fourier coefficient data,
FIG. 12 is a processing flow chart showing the processing procedure of character reproduction of the present invention, FIG. 13 is a diagram showing points on the contour obtained by the reproduction processing, and FIG. 14 is a block diagram of an example of a laser printer,
FIG. 15 is a diagram for explaining the removal of noise, and FIG. 16 is a diagram for explaining the change of the line width of characters. 5 ... Memory 6 ... CPU 7 ... Input section 8 ... Decoder 9 ... Bitmap memory 10 ... Output control section 11 ... Output section

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】文字の形状を特定するデータを作成する文
字データ処理方法において、 文字の骨格線から文字の輪郭までの偏移量を複数抽出
し、 抽出した前記複数の偏移量をフーリエ変換してフーリエ
係数データを作成し、 該フーリエ係数データと前記骨格線を特定する骨格線情
報とを少なくとも含むデータを、文字の形状を特定する
データとして作成することを特徴とする文字データ処理
方法。
1. A character data processing method for creating data for specifying a character shape, wherein a plurality of shift amounts from a skeleton line of a character to a contour of a character are extracted, and the extracted shift amounts are Fourier-transformed. And generating Fourier coefficient data, and creating at least data containing the Fourier coefficient data and skeleton line information for specifying the skeleton line as data for specifying the shape of a character.
【請求項2】特許請求の範囲第(1)項記載の文字デー
タ処理方法において、 前記フーリエ係数データにおける各フーリエ係数を表わ
すデータは、各フーリエ係数の絶対値の大きさに応じた
ビット数を割り当てて構成したことを特徴とする文字デ
ータ処理方法。
2. The character data processing method according to claim 1, wherein the data representing each Fourier coefficient in the Fourier coefficient data has a bit number corresponding to the magnitude of the absolute value of each Fourier coefficient. A character data processing method characterized by being allocated and configured.
【請求項3】文字の骨格線を特定する情報と、該骨格線
から文字の輪郭までの複数の偏移量をフーリエ変換した
フーリエ係数データとを少なくとも含むデータによって
構成される文字の形状を特定するデータから、文字の輪
郭を再生する文字データ処理方法において、 前記フーリエ係数データを逆フーリエ変換して骨格線か
ら輪郭までの偏移量を復元し、 前記骨格線を特定する情報から骨格線を再生し、 前記再生した骨格線から、復元した偏移量だけ離れた位
置を求めて文字の輪郭上の点とすることにより文字の輪
郭を再生することを特徴とする文字データ処理方法。
3. A shape of a character formed by data including at least information for specifying a skeleton line of a character and Fourier coefficient data obtained by Fourier transforming a plurality of shift amounts from the skeleton line to the contour of the character. In the character data processing method for reproducing the contour of the character from the data, the Fourier coefficient data is inverse-Fourier-transformed to restore the shift amount from the skeleton line to the contour, and the skeleton line is determined from the information that specifies the skeleton line. A character data processing method, which reproduces the contour of a character by obtaining a position separated from the reproduced skeleton line by a restored deviation amount and setting it as a point on the contour of the character.
JP1219989A 1989-08-25 1989-08-25 Character data processing method Expired - Lifetime JPH0715626B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1219989A JPH0715626B2 (en) 1989-08-25 1989-08-25 Character data processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1219989A JPH0715626B2 (en) 1989-08-25 1989-08-25 Character data processing method

Publications (2)

Publication Number Publication Date
JPH0381799A JPH0381799A (en) 1991-04-08
JPH0715626B2 true JPH0715626B2 (en) 1995-02-22

Family

ID=16744183

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1219989A Expired - Lifetime JPH0715626B2 (en) 1989-08-25 1989-08-25 Character data processing method

Country Status (1)

Country Link
JP (1) JPH0715626B2 (en)

Also Published As

Publication number Publication date
JPH0381799A (en) 1991-04-08

Similar Documents

Publication Publication Date Title
US4792981A (en) Manipulation of run-length encoded images
JP4312295B2 (en) Editing curves based on sketches
JP3251084B2 (en) Virtual editing method and apparatus for compressed image
Forsey et al. Multiresolution surface reconstruction for hierarchical B-splines
JP2005513655A (en) Computer graphic system and method for representing images for display
JPH0715626B2 (en) Character data processing method
JP2646478B2 (en) Compression storage device and composite output device for divided reading of character and graphics
US6714687B2 (en) Image encoding/decoding method, apparatus thereof and recording medium in which program therefor is recorded
JPH0715628B2 (en) Character data processing method
JPH0715627B2 (en) Character data processing method
JPH03126079A (en) Character data processing method
JPH0715629B2 (en) Character data processing method
JP2845098B2 (en) Decoding method and apparatus for multi-level image compression code
JPH03166597A (en) Character data processing method
US6356667B1 (en) Encoding apparatus and method, decoding apparatus and method and recording medium
JP3162918B2 (en) Image processing apparatus and method
JP3703445B2 (en) Digital watermark embedding device, digital watermark extraction device, and methods thereof
JP3520166B2 (en) Image processing device
KR900002811B1 (en) Method for compressing character or pictorial image data
JPH0654500B2 (en) Data compression method
JPH01189692A (en) Dot matrix converting method for registering character type
JP3348932B2 (en) Image reading device and image storage device
JP4268706B2 (en) Image creation method
JPH01300766A (en) Data encoding method
JPS595343A (en) Information output device