JPH03102393A - Character data processing method - Google Patents

Character data processing method

Info

Publication number
JPH03102393A
JPH03102393A JP1241144A JP24114489A JPH03102393A JP H03102393 A JPH03102393 A JP H03102393A JP 1241144 A JP1241144 A JP 1241144A JP 24114489 A JP24114489 A JP 24114489A JP H03102393 A JPH03102393 A JP H03102393A
Authority
JP
Japan
Prior art keywords
character
data
skeleton line
deviation
fourier
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
Application number
JP1241144A
Other languages
Japanese (ja)
Other versions
JPH0715628B2 (en
Inventor
Hiroyuki Shibata
博之 芝田
Yasuyuki Matsubara
松原 康之
Kyoko Kamata
鎌田 恭子
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.)
Shaken Co Ltd
Photo Composing Machine Manufacturing Co Ltd
Original Assignee
Shaken Co Ltd
Photo Composing Machine Manufacturing Co 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 Shaken Co Ltd, Photo Composing Machine Manufacturing Co Ltd filed Critical Shaken Co Ltd
Priority to JP1241144A priority Critical patent/JPH0715628B2/en
Publication of JPH03102393A publication Critical patent/JPH03102393A/en
Publication of JPH0715628B2 publication Critical patent/JPH0715628B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Controls And Circuits For Display Device (AREA)
  • Image Processing (AREA)

Abstract

PURPOSE:To reproduce the contour of a character which has desired line width and a desired shape by restoring the quantities of deviation by reverse Fourier transformation after varying frequency components of Fourier coefficient data, and finding positions which are the restored deviation quantities away from a reproduced skeleton line. CONSTITUTION:When the contour of the character is reproduced from data which specifies the shape of the character and consists of data including the Fourier coefficient data obtained from information specifying the skeleton line 2 of the character and the quantities of deviation from the skeleton line 2 to the contour of the character 3 through Fourier transformation, the frequency components of the Fourier coefficient data are varied properly and then the reverse Fourier transformation is carried out to restore the quantities of deviation from the skeleton line 2 to the contour 3. Then the skeleton line 2 is reproduced from the information specifying the skeleton line 2 and the positions which are the restored quantities of deviation away from the reproduced skeleton line 2 are found as points on the contour 3 of the character.

Description

【発明の詳細な説明】 [産業上の利用分野] 本発明は各種電子機器に収容した文字パターンデータか
ら文字を再生する文字データ処理方法に関し,詳しくは
文字パターンを骨格線情報と、骨格線から輪郭までの偏
移量の情報とでデータ化されている1つの文字パターン
データから、種々の線幅、形状の文字を再生する文字デ
ータ処理方法に関するものである。
[Detailed Description of the Invention] [Field of Industrial Application] The present invention relates to a character data processing method for reproducing characters from character pattern data stored in various electronic devices. The present invention relates to a character data processing method for reproducing characters with various line widths and shapes from one character pattern data that is converted into data with information on the amount of deviation to the contour.

[従来技術] レーザプリンタ、入力編集装置などの各種電子機器は,
画面表示やハードコピー出力のための文字パターンをハ
ードディスクや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 a memory such as a hard disk or ROM.

それらの文字パターンは、様々な方法でデータ化されて
いる。文字パターンをデータ化する技術の例として次の
ような方法がある。
These character patterns are converted into data in various ways. Examples of techniques for converting character patterns into data include the following methods.

■.ビットマップデータをランレングス符号を使って定
義 ■.文字の輪郭をベクトルで近似 ■.文字の輪郭を曲線で近似 [発明が解決しようとする課題] このように文字パターンをデータ化する方法は種々存在
するが、いずれの方法も1つの文字パターンデータから
線幅の異なる文字や、輪郭を変形した文字が簡単に再生
できない等の問題がある.[課題を解決するための手段
コ 本発明は以上の点から威したものであり、文字パターン
を再生するときに、lつの文字パターンデータから文字
の線幅等、文字の形状を変える処理を行うための文字デ
ータ処理方法を提供するこか とを目的とする。その特徴とするところは、文字の骨格
線を特定する情報と、該骨格線から文字の輪郭までの複
数の偏移量をフーリエ変換したフーリエ係数データとを
少なくとも含むデータによって構成される文字の形状を
特定するデータから、文字の輪郭を再生する文字データ
処理方法において、前記フーリエ係数データの周波数成
分を適宜変更したのち、逆フーリエ変換して骨格線から
輪郭までの偏移量を復元し、前記骨格線を特定する情報
から骨格線を再生し、前記再生した骨格線から、復元し
た偏移量だけ離れた位置を求めて文字の輪郭上の点とす
ることにより,所望線幅や形状の文字の輪郭を再生する
ことである。
■. Define bitmap data using run-length codes ■. Approximating the outline of characters with vectors ■. Approximating the outline of a character with a curved line [Problem to be solved by the invention] There are various methods for converting character patterns into data, but all of these methods can convert characters with different line widths or outlines from one character pattern data. There are problems such as characters that have been transformed cannot be easily reproduced. [Means for Solving the Problems] The present invention has been developed based on the above points, and when reproducing a character pattern, processing is performed to change the shape of the character, such as the line width of the character, from one character pattern data. The purpose is to provide a method for processing character data. The feature is that the character shape is composed of data that includes at least information that specifies the skeleton line of the character, and Fourier coefficient data obtained by Fourier transforming multiple deviations from the skeleton line to the outline of the character. In a character data processing method for reproducing the outline of a character from data specifying the character, the frequency components of the Fourier coefficient data are appropriately changed, and then the deviation amount from the skeleton line to the outline is restored by inverse Fourier transform. A character with a desired line width and shape can be created by reproducing a skeleton line from the information specifying the skeleton line, and determining a position separated by the restored deviation amount from the reproduced skeleton line and setting it as a point on the outline of the character. The goal is to reproduce the contours of

[実施例] ■.文字パターンデータの作成 はじめに本発明が適用する文字パターンデータの作成方
法について説明する. 本発明が適用する文字パターンデータは、第2図に示す
ように文字1を各構成要素(以下基本ストロークという
)laに分解し、各基本ストローク1aを1つの単位と
してデータ化し、文字パターンデータを作或する. 以下に、第3図に例示するような文字の1つの基本スト
ローク1aをデータ化する場合について,第12図の処
理フロー図に従って説明する。尚、文字パターンデータ
を作成するための元になる文字は、アナログの原字でも
,あるいは既に何らかの方法でデータ化されている文字
パターンデータでもそのどちらでも良い。
[Example] ■. Creation of character pattern data First, a method for creating character pattern data to which the present invention is applied will be explained. The character pattern data to which the present invention is applied is obtained by decomposing a character 1 into constituent elements (hereinafter referred to as basic strokes) la as shown in FIG. 2, and converting each basic stroke 1a into data as one unit. Create something. Below, the case where one basic stroke 1a of a character as illustrated in FIG. 3 is converted into data will be explained with reference to the processing flow diagram of FIG. 12. Note that the characters used as the basis for creating the character pattern data may be either analog original characters or character pattern data that has already been converted into data by some method.

く1.骨格線情報の作成〉 はじめに基本ストロークの骨格線を抽出し、その骨格線
を定義する骨格線情報を作成する(第12図81). 骨格線の抽出は、画像処理技術により自動的に抽出する
方法、表示画面上でオペレータがマニュアルで抽出する
方法など種々の方法があるが、いずれの方法によっても
良い。また抽出した骨格線の定義は、直線、曲線(関数
)、直線と曲線など、いずれの方法によっても良い. 例えば第3図の基本ストローク1aに対しては,第4図
に示す骨格線2を定義する骨格線情報が作或される. 〈2.偏移量の抽出〉 次に、骨格線から輪郭までの偏移量(距離)を抽出する
(S2). 偏移量は、任意に定めた偏移量抽出開始点より順に抽出
する。そして基本的には予め定められている間隔で骨格
線上に設定した分割点から輪郭までの距離を順次抽出す
ることによって行う。分割点を設定する間隔は任意に定
めることができる,尚、骨格線の特異な部分ではその部
分に適した方法で抽出する.例えば骨格線の状態により
次の方法によって偏移量を抽出している。
1. Creation of skeleton line information> First, extract the skeleton line of the basic stroke and create skeleton line information that defines the skeleton line (Fig. 12, 81). There are various methods for extracting the skeleton lines, such as automatic extraction using image processing technology and manual extraction by an operator on the display screen, and any of these methods may be used. In addition, the extracted skeleton lines may be defined using any method such as straight lines, curves (functions), straight lines and curves, etc. For example, for the basic stroke 1a in FIG. 3, skeleton line information that defines the skeleton line 2 shown in FIG. 4 is created. <2. Extraction of deviation amount> Next, the deviation amount (distance) from the skeleton line to the contour is extracted (S2). The deviation amount is extracted in order from an arbitrarily determined deviation amount extraction start point. Basically, this is performed by sequentially extracting distances from division points set on the skeleton line to the contour at predetermined intervals. The interval at which dividing points are set can be set arbitrarily, and in the case of peculiar parts of the skeleton line, extraction is performed using a method suitable for that part. For example, the amount of deviation is extracted by the following method depending on the state of the skeleton line.

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

■.骨格線の端部 第6図ωに示すような骨格線2の端部は、上述した■の
方法のように骨格線を等間隔で分割して分割点を設定で
きないので,第6図(2)に示すように等角度で分割す
る.骨格線の端部2eから、分割した角度線の延長線と
交わるサンプル点までの距離が偏移量となる. ■.骨格線の両端に隣接する骨格線が角度を有している
部分 骨格線2,の両端2a,2bに隣接する骨格線2,。,
,2エー,が第7図ωに示すように角度がついている部
分は、第7図(2)に示すように両端点2a,2bに隣
接する側の2つの骨格線2 It+ll 2a−1の端
点の2法線の交点4を求め、その交点4と骨格線2,を
等間隔に分割した分割点とを結ぶ線が輪郭3と交わるサ
ンプル点までの距離を偏移量として抽出する。
■. End of the Skeletal Line The end of the skeleton line 2 as shown in Figure 6 ω cannot be divided into dividing points at equal intervals as in the method ① described above. ) Divide into equal angles as shown. The distance from the end 2e of the skeleton line to the sample point that intersects with the extension line of the divided angle line is the deviation amount. ■. A skeleton line 2 adjacent to both ends 2a, 2b of a partial skeleton line 2, in which the skeleton lines adjacent to both ends of the skeleton line have an angle. ,
, 2A, are angled as shown in Figure 7 ω, the two skeleton lines 2It+ll 2a-1 on the side adjacent to both end points 2a and 2b as shown in Figure 7(2) The intersection point 4 of the two normals of the end points is found, and the distance to the sample point where the line connecting the intersection point 4 and the division points obtained by dividing the skeleton line 2 at equal intervals intersects the contour 3 is extracted as the amount of deviation.

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

偏移量を抽出する方法は、上記■〜■の方法に限定され
るものではなく、他の方法によって行っても良いことは
もちろんである。
The method for extracting the amount of deviation is not limited to the methods (1) to (4) above, and it goes without saying that other methods may be used.

第8図はある1つの基本ストロークについて,上述のよ
うにして抽出した偏移量をグラフにした図である。縦軸
は偏移量を表す。横軸は、その偏移量が輪郭上のどのサ
ンプル点の偏移量なのかを識別する情報を表し,例えば
偏移量を抽出した輪郭上のサンプル点に工,2,・・・
と順に番号(以下サンプル項番という)を付し、その番
号を横軸としている. く3.フーリエ変換〉 以上のようにして抽出した基本ストロークの偏移量をフ
ーリエ変換する(S3)。
FIG. 8 is a graph showing the amount of deviation extracted as described above for one basic stroke. The vertical axis represents the amount of deviation. The horizontal axis represents information that identifies which sample point on the contour the amount of deviation corresponds to.For example, if the sample point on the contour from which the amount of deviation was extracted is
A number (hereinafter referred to as sample item number) is assigned in order, and the horizontal axis is the number. 3. Fourier Transform> The deviation amount of the basic stroke extracted as described above is subjected to Fourier transform (S3).

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

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

N  :データ数 g(4):4番目のデータ ここでは、 N  :1つの基本ストロークのサンプル項番の数 g(4):4番目のサンプル項番における偏移量となる
N: Number of data g(4): Fourth data Here, N: Number of sample item numbers of one basic stroke g(4): Amount of deviation in the fourth sample item number.

従ってここでは上式で表されるフーリエ変換を行う.フ
ーリエ変換した結果をグラフに表すと、例えば第9図の
ようになる。第9図で横軸は次数,縦軸はフーリエ係数
である。また第9図(1)は実数部、第9図<2)は虚
数部のフーリエ係数を表すグラフである. 第9図では実数部のフーリエ係数は左右偶対称、虚数部
は同じく奇対称となっている。これは第9図の例が特殊
なのではなく、離散的フーリエ変換に特有な性質である
.従ってすべてのフーリエ係数を記憶する必要はなく,
半分だけ記憶しておけば充分である。
Therefore, here we perform the Fourier transform expressed by the above formula. If the result of Fourier transformation is expressed in a graph, it will be as shown in FIG. 9, for example. In FIG. 9, the horizontal axis is the order, and the vertical axis is the Fourier coefficient. Also, Fig. 9 (1) is a graph showing the real part, and Fig. 9 <2) is a graph showing the Fourier coefficient of the imaginary part. In FIG. 9, the real part of the Fourier coefficients is left-right even symmetric, and the imaginary part is also odd symmetric. This is not a special characteristic of the example shown in Figure 9, but rather a characteristic peculiar to discrete Fourier transform. Therefore, there is no need to memorize all Fourier coefficients,
Memorizing only half of it is enough.

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

フーリエ係数データは得られたものをそのまま記憶して
も良いが、ここではデータ量を圧縮して記憶する方法に
ついて説明する。
Although the obtained Fourier coefficient data may be stored as is, a method of compressing and storing the data amount will be described here.

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

■.全次数 その基本ストロークのフーリエ係数の次数。■. total order The order of the Fourier coefficients of that elementary stroke.

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

■.量子化ピッチ フーリエ係数を量子化したときのピッチ。■. quantization pitch Pitch when Fourier coefficients are quantized.

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

■.区間の次数 その区間はフーリエ係数何次分のデータなのかを示すデ
ータ. ■,割当ビット数 その区間のフーリエ係数を表すのに割り当てたビット数
6 最大のフーリエ係数を表せるように一律に同じビット数
を与えると、小さなフーリエ係数の部分にも冗長にビッ
トが与えられてデータ量が多くなってしまう。そのため
第11図に示すようにフーリエ係数の絶対値の大きさに
より,割り当てるビット数を変えるようにしている。つ
まりフーリエ係数の絶対値が大きいときは多くのビット
を、小さいときは逆に少ないビットを割り当てることに
より全体のデータ量が少なくなる。
■. Degree of interval Data that indicates how many orders of Fourier coefficients the interval corresponds to. ■ Number of allocated bits Number of bits allocated to represent the Fourier coefficient in that interval 6 If the same number of bits is given uniformly to represent the largest Fourier coefficient, bits will be given redundantly to the part of the small Fourier coefficient. The amount of data will increase. Therefore, as shown in FIG. 11, the number of bits to be allocated is changed depending on the magnitude of the absolute value of the Fourier coefficient. In other words, when the absolute value of the Fourier coefficient is large, more bits are allocated, and when it is small, fewer bits are allocated, thereby reducing the overall amount of data.

■.フーリエ係数 フーリエ係数を上述した量子化ピッチで量子化した1区
間分のフーリエ係数の値。つまり上述した゛′■区間の
次数″だけフーリエ係数を記憶している。
■. Fourier coefficient The value of the Fourier coefficient for one section obtained by quantizing the Fourier coefficient at the above-mentioned quantization pitch. In other words, Fourier coefficients are stored for the number of degrees of the above-mentioned interval.

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

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

そして1つの文字パターンデータは複数の基本ストロー
クに関するデータで構成される。
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 the JIS 1st and 2nd standards is created and used as character pattern data to be installed in various electronic devices such as laser printers and input editing devices.

■.文字パターンの再生 次に、以上のようにして作成した文字パターンデータか
ら種々線幅の文字や、輪郭を変形した文字を再生する本
発明の実施例を、第1図の処理フロー図に従って説明す
る。尚、以下は1つの基本ストロークの再生についての
説明である。
■. Reproduction of Character Patterns Next, an embodiment of the present invention for reproducing characters with various line widths and characters with deformed outlines from the character pattern data created as described above will be described with reference to the processing flow diagram in FIG. . The following is a description of the reproduction of one basic stroke.

はじめに第10図に示すフォーマットで記憶しているデ
ータから、第9図a> (2)に示すようなフーリエ係
数データを復元する(第1図SL)。
First, Fourier coefficient data as shown in FIG. 9a>(2) is restored from data stored in the format shown in FIG. 10 (SL in FIG. 1).

次に復元したフーリエ係数データを適宜変更する処理を
行う(S2)。
Next, a process of appropriately changing the restored Fourier coefficient data is performed (S2).

本発明はこのように、フーリエ係数データを適宜変更す
ることにより、再生される文字の線幅や輪郭の形状を変
形する。
In this way, the present invention modifies the line width and contour shape of the reproduced character by appropriately changing the Fourier coefficient data.

具体的な変更内容と文字の形状の変化は、例えば以下の
通り。
For example, the specific changes and changes in character shape are as follows.

■.フーリエ係数の低周波成分値を増減する変更この変
更を行うことにより、文字の線幅を変えることかできる
■. Change to increase or decrease the low frequency component value of the Fourier coefficient By performing this change, the line width of the character can be changed.

■.低周波成分、または高周波成分を付加する変更 特に単純で滑らかな輪郭のフーリエ係数にこの変更を行
うと,輪郭に凹凸ある文字を再生することができる。
■. By adding a low frequency component or a high frequency component, especially to the Fourier coefficients of a simple and smooth contour, it is possible to reproduce characters with uneven contours.

■.高周波或分を除去する変更 文字パターンデータ作成時に生じたノイズなどが輪郭に
あるとき、フーリエ係数にこの変更を行うとノイズが除
去され、滑らかな輪郭の文字が再生される。
■. Modification to remove a certain amount of high frequency If there is noise in the outline that occurred during the creation of character pattern data, this change to the Fourier coefficients will remove the noise and reproduce a character with a smooth outline.

以上のように文字の線幅や輪郭の形状を変更することか
できる。処理結果の詳細は後述する。
As described above, you can change the line width and outline shape of characters. Details of the processing results will be described later.

次に上述のように適宜変更したフーリエ係数データを逆
フーリエ変換する(S3)。
Next, the Fourier coefficient data appropriately changed as described above is subjected to inverse Fourier transform (S3).

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

N  :lつの基本ストロークのサンプル項番の数 g(4):4番目のサンプル項番における偏移量次に基
本ストロークの骨格線を復元する(S4)。
N: Number of sample item numbers of one basic stroke g(4): Amount of deviation in the fourth sample item number Next, the skeleton line of the basic stroke is restored (S4).

骨格線は、フーリエ係数データとともに記憶した骨格線
情報から復元する4 以上のようにして復元した偏移量と骨格線および偏移量
抽出方法のデータから,基本.ストロークの輪郭を再生
する(S5)。
The skeleton line is restored from the skeleton line information stored together with the Fourier coefficient data.4 From the data of the deviation amount, skeleton line, and deviation extraction method restored as above, the basic. The outline of the stroke is reproduced (S5).

第13図は、上述した■の変更を行って文字の線幅を変
えた処理例を説明する図である。第13図(1)は元の
文字パターンデータが表わす基本ストローク、偏移量、
フーリエ係数を表わし、第13図(2)はフーリエ係数
の低周波或分を低減する変更を行って文字の線幅を変え
た状態を表わしている。
FIG. 13 is a diagram illustrating an example of processing in which the line width of a character is changed by making the above-mentioned change. Figure 13 (1) shows the basic stroke, deviation amount, and
FIG. 13(2) shows a state in which the line width of a character is changed by reducing a certain low frequency component of the Fourier coefficient.

第14図は、上述した■の変更を行って輪郭に凹凸があ
る文字を再生した処理例を説明する図である。第14図
(1)は元の文字パターンデータが表わす基本ストロー
ク、偏移量、フーリエ係数を表わし、第14図(2)は
フーリエ係数に低周波或分、高周波或分を適宜付加する
変更を行って輪郭に凹凸ある文字を再生した状態を表わ
している。
FIG. 14 is a diagram illustrating an example of processing in which a character with an uneven outline is reproduced by changing the above-mentioned ■. Figure 14 (1) shows the basic strokes, deviation amounts, and Fourier coefficients represented by the original character pattern data, and Figure 14 (2) shows changes that add a certain amount of low frequency and a certain amount of high frequency to the Fourier coefficient as appropriate. This shows the state in which characters with uneven outlines are reproduced.

第15図は,上述した■の変更を行って輪郭のノイズを
除去する処理例を説明する図である。第15図(1)は
元の文字パターンデータが表わす基本ストローク,偏移
量、フーリエ係数を表わし、第15図(2)はフーリエ
係数の高周波成分を除去する変更を行って、ノイズのな
い滑らかな輪郭の文字を再生した状態を表わしている。
FIG. 15 is a diagram illustrating an example of processing for removing contour noise by performing the above-mentioned change. Figure 15 (1) shows the basic strokes, deviation amounts, and Fourier coefficients represented by the original character pattern data, and Figure 15 (2) shows the changes that remove high-frequency components of the Fourier coefficients to create a smooth, noise-free image. This shows the state in which characters with a sharp outline are reproduced.

尚、上述した第13図、第14図、第15図ではフーリ
エ係数は実数部のみを例示し、虚数部は省略している。
Note that in FIGS. 13, 14, and 15 described above, only the real parts of the Fourier coefficients are illustrated, and the imaginary parts are omitted.

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

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

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

第17図で、5は上述した方法で作或した文字パター・
ンデータを例えばJIS第1,第2水準まで記憶してい
るメモリ、6はCPU、7は文字の種類、線幅、変形の
種類など種々の指令を行う入力部、8はメモリ5から読
み出した文字パターンデータから文字パターンを再生す
るデコーダ、9はデコーダ8で再生した文字をビット展
開するビットマップメモリ、10は出力制御部、11は
ビットマップメモリ9に展開されているデータをハード
コピー出力する出力部である。この出力部l1は、例え
ばレーザビームをポリゴンミラーで走査して普通紙や感
光材料に文字を出力する周知のレーザ出力ユニットで構
或する. 文字の出力は、まずCPU6が、出力する文字の文字パ
ターンデータをメモリ5から読み出し、デコーダ8へ送
る.デコーダ8は上述した文字パターン再生の処理を行
って所定の文字,線幅、形状で文字パターンを再生し、
ビットマップメモリ9へ馬関する。
In Fig. 17, 5 is the character pattern made by the method described above.
6 is a CPU, 7 is an input unit for issuing various commands such as character type, line width, deformation type, etc., and 8 is a character read out from memory 5. A decoder for reproducing a character pattern from pattern data; 9 a bitmap memory for bit-expanding the characters reproduced by the decoder 8; 10 an output control unit; 11 an output for outputting a hard copy of the data expanded in the bitmap memory 9. Department. The output section l1 is, for example, a well-known laser output unit that outputs characters on plain paper or photosensitive material by scanning a laser beam with a polygon mirror. 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 character pattern reproduction process described above to reproduce the character pattern with predetermined characters, line widths, and shapes.
The information is related to the bitmap memory 9.

このような処理を繰り返して行って複数の文字パターン
のデータをビットマップメモリ9に展開したら、出力制
御部10の制御により、出力部11で文字を出力する. 以上本発明の実施例を説明したが、上記実施例では文字
を基本ストロークに分解して文字パターンデータを作成
したが,本発明は基本ストロークに分解することなく文
字パターンデータを作成しても良いことはもちろんであ
る, [発明の効果] 本発明は、文字を再生するとき実数部のフーリ工係数デ
ータの周波数或分を適宜変更するという簡単な処理を行
うだけで、第13図、第14図、第15図に例示するよ
うに簡単に線幅や文字の形状を変えることができるため
、1つの文字パターンデータから様々な線幅や形状の文
字を再生することができるという効果を有する。
After the data of a plurality of character patterns is expanded into the bitmap memory 9 by repeating such processing, the output unit 11 outputs the characters under the control of the output control unit 10. The embodiments of the present invention have been described above. In the above embodiments, character pattern data is created by decomposing characters into basic strokes. However, in the present invention, character pattern data may be created without decomposing characters into basic strokes. Of course, [Effects of the Invention] The present invention can reproduce the results shown in FIGS. 13 and 14 by simply performing a simple process of appropriately changing the frequency of the Fourier coefficient data of the real part when reproducing characters. Since the line width and character shape can be easily changed as illustrated in FIGS. 15 and 15, there is an effect that characters with various line widths and shapes can be reproduced from one character pattern data.

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

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

Claims (1)

【特許請求の範囲】[Claims] (1)、文字の骨格線を特定する情報と、該骨格線から
文字の輪郭までの複数の偏移量をフーリエ変換したフー
リエ係数データとを少なくとも含むデータによって構成
される文字の形状を特定するデータから、文字の輪郭を
再生する文字データ処理方法において、 前記フーリエ係数データの周波数成分を適宜変更したの
ち、逆フーリエ変換して骨格線から輪郭までの偏移量を
復元し、 前記骨格線を特定する情報から骨格線を再生し、前記再
生した骨格線から、復元した偏移量だけ離れた位置を求
めて文字の輪郭上の点とすることにより、所望線幅や形
状の文字の輪郭を再生することを特徴とする文字データ
処理方法。
(1) Identifying the shape of a character made up of data that includes at least information that specifies the skeleton line of the character and Fourier coefficient data obtained by Fourier-transforming multiple deviations from the skeleton line to the outline of the character. In a character data processing method for reproducing character contours from data, after appropriately changing the frequency components of the Fourier coefficient data, inverse Fourier transform is performed to restore the deviation amount from the skeleton line to the contour, and the skeleton line is The outline of the character with the desired line width and shape can be created by regenerating the skeleton line from the specified information, finding a position that is separated by the restored deviation amount from the regenerated skeleton line, and setting it as a point on the outline of the character. A character data processing method characterized by reproduction.
JP1241144A 1989-09-18 1989-09-18 Character data processing method Expired - Lifetime JPH0715628B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1241144A JPH0715628B2 (en) 1989-09-18 1989-09-18 Character data processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1241144A JPH0715628B2 (en) 1989-09-18 1989-09-18 Character data processing method

Publications (2)

Publication Number Publication Date
JPH03102393A true JPH03102393A (en) 1991-04-26
JPH0715628B2 JPH0715628B2 (en) 1995-02-22

Family

ID=17069925

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1241144A Expired - Lifetime JPH0715628B2 (en) 1989-09-18 1989-09-18 Character data processing method

Country Status (1)

Country Link
JP (1) JPH0715628B2 (en)

Also Published As

Publication number Publication date
JPH0715628B2 (en) 1995-02-22

Similar Documents

Publication Publication Date Title
JP4312295B2 (en) Editing curves based on sketches
US4792981A (en) Manipulation of run-length encoded images
JP3031613B2 (en) Color / shade image input / output device and input / output method
JP2003323631A (en) Modeling method for 3d scene
JPH03102393A (en) Character data processing method
JP2000182076A (en) Data processor, data processing method and provision medium
JPH0381799A (en) Character data processing method
JPH03102392A (en) Character data processing method
CN110766117A (en) Two-dimensional code generation method and system
JPH0715629B2 (en) Character data processing method
JPH03126079A (en) Character data processing method
JP3777649B2 (en) Image compression method and image expansion method
WO2000075865A1 (en) Image processing method
JPH03166597A (en) Character data processing method
JPH0125072B2 (en)
KR900003876B1 (en) Method for compressing character or pictorial image data
CN111444674B (en) Character deformation method, medium and computer equipment
JPH05166706A (en) Method for preparing data for charged particle beam lithography
KR900002811B1 (en) Method for compressing character or pictorial image data
JPH0918877A (en) Fractal image compression device
EP0783230A2 (en) Transform coding of arbitrarily shaped image segments
JPH0157387B2 (en)
JP4027646B2 (en) 3D shape processing apparatus, polyline generation program, and polygon generation program
JP2000022961A (en) Device and method for generating code book used for vector quantization, vector quantizing device, and recording medium
JPH07107294A (en) Device for encoding picture