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

JPH0525329B2 - - Google Patents

Info

Publication number
JPH0525329B2
JPH0525329B2 JP62147293A JP14729387A JPH0525329B2 JP H0525329 B2 JPH0525329 B2 JP H0525329B2 JP 62147293 A JP62147293 A JP 62147293A JP 14729387 A JP14729387 A JP 14729387A JP H0525329 B2 JPH0525329 B2 JP H0525329B2
Authority
JP
Japan
Prior art keywords
line segment
coordinates
character
end point
line
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP62147293A
Other languages
Japanese (ja)
Other versions
JPS63311428A (en
Inventor
Shoji Ishioroshi
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 JP14729387A priority Critical patent/JPS63311428A/en
Publication of JPS63311428A publication Critical patent/JPS63311428A/en
Publication of JPH0525329B2 publication Critical patent/JPH0525329B2/ja
Granted legal-status Critical Current

Links

Description

【発明の詳細な説明】 〔概要〕 XYプロツタ等に文字を描画するための線分文
字データの最適化処理方法に関し、 データ量が少なく、且つ描画速度が速くなるよ
うな線分文字データの作成を目的とし、 文字を構成する線分を示す入力データから、該
文字を描画するための座標値からなる線分文字デ
ータを生成するに際し、所定座標を最初の開始点
とし、該入力データを検索して、開始点に最も
近い線分の端点を求め、該端点の座標を位置づけ
座標として出力し、該端点を始点とする線分の
終点座標を線分の座標として出力し、該終点と
同一の座標を持つ線分を検索し、当該線分があ
れば、該終点を端点としての処理に戻り、当該
線分が無ければ、該終点を開始点として、の処
理に戻る処理によつて出力される座標値を、該文
字の線分文字データとするように構成する。
[Detailed Description of the Invention] [Summary] Regarding an optimization processing method for line segment character data for drawing characters on an XY plotter, etc., creating line segment character data that reduces the amount of data and increases the drawing speed. When generating line segment character data consisting of coordinate values for drawing a character from input data indicating line segments that constitute a character, the input data is searched using a predetermined coordinate as the first starting point. Find the end point of the line segment closest to the starting point, output the coordinates of this end point as positioning coordinates, output the end point coordinates of the line segment starting from this end point as the coordinates of the line segment, and output the coordinates of the end point that is the same as the end point. Search for a line segment with the coordinates of , and if the line segment is found, return to processing using the end point as the end point; if the line segment is not found, output using the end point as the starting point and return to processing. The coordinate values of the character are configured to be line segment character data of the character.

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

本発明は、XYプロツタ等によつて文字を描画
するための線分文字データを最適化するための処
理方法に関する。
The present invention relates to a processing method for optimizing line segment character data for drawing characters using an XY plotter or the like.

線画を描画するXYプロツタ等によつて、図面
中の線画と共に文字を描く場合には、文字を線分
の集まりで表すようにし、必要な各文字ごとに、
その文字を構成する線分及び必要な描画ヘツドの
位置づけを行う点を示す座標データからなる線分
文字データを準備する必要がある。
When drawing characters along with the line drawings in the drawing using an XY plotter, etc., the characters should be represented as a collection of line segments, and each character should be
It is necessary to prepare line segment character data consisting of line segments constituting the character and coordinate data indicating the point at which the necessary drawing head is positioned.

〔従来の技術と発明が解決しようとする問題点〕[Problems to be solved by conventional technology and invention]

第3図は、漢字「間」の例により線分文字デー
タを説明する図である。
FIG. 3 is a diagram illustrating line segment character data using an example of the kanji character "ma".

線分文字データは、例えば図示のように、文字
を中央部分に囲む適当な正方形領域の左下頂点を
原点とし、2辺を座標軸とする座標系を想定し、
その座標値によつて文字を構成するための線分を
表し、それらの線分データと、位置づけのための
座標値によつて構成する。
Line segment character data, for example, assumes a coordinate system where the origin is the lower left vertex of a square area surrounding the character in the center and the two sides are the coordinate axes, as shown in the figure.
Line segments for composing characters are represented by the coordinate values, and are constructed by the line segment data and coordinate values for positioning.

こゝで、線分データは各線分の両端の座標値で
あつて、例えばXYプロツタの描画ヘツドを、線
を描く状態で移動する区間を示すが、線分が連続
する場合、即ちいわゆる折れ線を構成する場合に
は、前の線分の終点と次の線分の始点は1座標で
兼用され、各頂点の座標を順に配列したデータと
なる。位置づけ座標値は、描画ヘツドの現位置か
ら、線を描くことなくヘツドを移動する移動先を
指示するためのデータであり、1つの線分の終点
から、分離した別の線分の始点までヘツドを移動
する場合に、後の線分の始点座標を位置づけ座標
値として指定する必要がある。
Here, line segment data is the coordinate values of both ends of each line segment, and indicates, for example, the section in which the drawing head of an XY plotter is moved while drawing a line, but when the line segments are continuous, that is, they are In this case, the end point of the previous line segment and the start point of the next line segment are shared by one coordinate, and the data is obtained by arranging the coordinates of each vertex in order. Positioning coordinate values are data for instructing the destination to move the drawing head from the current position of the drawing head without drawing a line. When moving, it is necessary to specify the starting point coordinates of the next line segment as the positioning coordinate values.

このような条件で、ある文字の線分文字データ
を採取する場合に、例えば通常の手書きの場合の
筆順に従い、又は線分の始点を左上から右下の方
向へ走査して、順次必要な座標値を求めるならば
採取もれ等が生じ難いので、そのようにして線分
文字データを作成する。
Under these conditions, when collecting line segment character data of a certain character, for example, follow the stroke order in normal handwriting, or scan the starting point of the line segment from the upper left to the lower right, and sequentially obtain the necessary coordinates. If values are determined, line segment character data is created in this way because it is less likely to cause omissions.

第3図には、線の端の黒丸で位置づけ座標、矢
印で線分の始点を表して、前記のようにして得ら
れるデータで表される内容を図示する。
FIG. 3 shows the content represented by the data obtained as described above, with the black circles at the ends of the lines representing the positioning coordinates and the arrows representing the starting points of the line segments.

第3図の例によれば、図から明らかなように、
位置づけ座標は12個あり、位置づけ座標の点又は
連続する線分の終点を始点とする、線分の終点を
示す座標の数(図の矢印の数)、即ち線分数が16
個であるので、この文字は合計28個の座標値から
なり、例えば1個の座標値が2バイトで表される
場合には56バイトの線分文字データになる。
According to the example in Figure 3, as is clear from the figure,
There are 12 positioning coordinates, and the number of coordinates indicating the end point of the line segment (the number of arrows in the figure), that is, the number of line segments, starting from the positioning coordinate point or the end point of continuous line segments, is 16.
Therefore, this character consists of a total of 28 coordinate values. For example, if one coordinate value is expressed in 2 bytes, it becomes 56 bytes of line segment character data.

文字の種類は一般に数千字種用意されるので、
この各文字のデータ量をできるだけ減少すること
が望まれる。
There are generally several thousand types of characters available, so
It is desirable to reduce the amount of data for each character as much as possible.

又、第3図に説明するための破線によつて示す
ような、位置づけのためのみの描画ヘツドの移動
は、描画上は余分な時間を加えることになるの
で、できるだけ少なくすることが望ましい。
Further, since the movement of the drawing head solely for positioning, as shown by the broken line in FIG. 3, adds extra time to the drawing process, it is desirable to minimize this movement as much as possible.

本発明は、このような考慮のもとに、位置づけ
座標の数を極小化するように線分文字データを最
適化する処理方法を目的とする。
Based on such considerations, the present invention aims at a processing method for optimizing line segment character data so as to minimize the number of positioning coordinates.

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

第1図は、本発明の原理構成を示す処理の流れ
図である。
FIG. 1 is a process flowchart showing the principle configuration of the present invention.

図は線分文字データ最適化処理の流れを示し、
1〜6は処理ステツプである。
The figure shows the flow of line segment character data optimization processing.
1 to 6 are processing steps.

〔作用〕[Effect]

線分文字データの最適化は、所要の1文字につ
いて採取した線分文字データを入力データとし
て、処理ステツプ1で所定の座標を開始点の座標
として、処理ステツプ2で入力データの線分の端
点で、最も近い端点を走査する。
Optimization of line segment character data is performed by using the line segment character data collected for one required character as input data, using predetermined coordinates as the coordinates of the starting point in processing step 1, and determining the end point of the line segment of the input data in processing step 2. , scan the nearest endpoint.

その端点の座標値を処理ステツプ3で位置づけ
座標として出力し、処理ステツプ4で線分の終点
座標を出力する。
In processing step 3, the coordinate values of the end points are outputted as positioning coordinates, and in processing step 4, the end point coordinates of the line segment are outputted.

処理ステツプ5でその終点で連続する線分があ
るか判別し、あれば処理ステツプ4に戻る。
In processing step 5, it is determined whether there is a continuous line segment at the end point, and if so, the process returns to processing step 4.

連続線分が無い場合は、処理ステツプ6で最後
の終点座標を新たな開始点として処理ステツプ2
に戻り、以上の処理を反復して入力データのすべ
ての線分を処理する。
If there is no continuous line segment, the coordinates of the last end point are set as a new starting point in processing step 6, and processing is performed in processing step 2.
Return to and repeat the above process to process all line segments of the input data.

以上の処理方法により、位置づけの個数を少な
くすることができるので、その結果データ量を減
少し描画時間を短縮することができる。
With the above processing method, the number of positions can be reduced, and as a result, the amount of data can be reduced and the drawing time can be shortened.

〔実施例〕〔Example〕

線分文字データの最適化は、所要の各文字につ
いて、前記の筆順法等の適当な方法で採取した座
標値からなる線分文字データを入力データとして
各1文字ごとに以下のように処理する。
Optimization of line segment character data uses line segment character data consisting of coordinate values collected by an appropriate method such as the above-mentioned stroke order method for each required character as input data, and processes each character as follows. .

先ず処理ステツプ1で所定の座標を開始点の座
標とする。例えば入力データの座標系が前記のよ
うに文字を中央部分に囲む適当な正方形領域の左
下頂点を原点とする場合には、原点座標を開始点
とする。
First, in processing step 1, predetermined coordinates are set as the coordinates of the starting point. For example, if the coordinate system of the input data has its origin at the lower left vertex of an appropriate square area surrounding a character in the center as described above, the origin coordinates are used as the starting point.

処理ステツプ2で入力データの線分の端点のう
ち、開始点に最も近い端点を探す。こゝで端点と
して、折れ線を構成する2線分の接続点は後位の
選択順位とし、先ず線分のいわゆる開放された端
にある端点を優先して選択し、開放された端点が
無いか、すべて処理済になつた場合のみ、他の端
点を選択するようにするのがよい。
In processing step 2, the end point closest to the starting point is found among the end points of the line segment of the input data. Here, as endpoints, the connecting points of the two line segments that make up the polygonal line are selected later in the selection order, and the endpoints at the so-called open ends of the line segments are selected first, and if there are no open endpoints, , it is best to select other endpoints only when all of them have been processed.

その端点の座標値を処理ステツプ3で位置づけ
座標として出力し、処理ステツプ4ではその点を
始点とする線分の終点座標を、1線分を決定する
座標として出力する。
In processing step 3, the coordinate values of the end points are output as positioning coordinates, and in processing step 4, the coordinates of the end point of a line segment starting from that point are output as coordinates for determining one line segment.

処理ステツプ5でその終点を連続する線分があ
るか判別する。
In processing step 5, it is determined whether there is a line segment that continues the end point.

連続線分があれば処理ステツプ4に戻り、連続
線分の終点座標を出力する。即ち、この処理ステ
ツプ4,5のループにより、折れ線を構成する場
合には一続きの折れ線全体を続けて描画するよう
にする。
If there is a continuous line segment, the process returns to step 4, and the coordinates of the end point of the continuous line segment are output. That is, by this loop of processing steps 4 and 5, when a polygonal line is constructed, the entire polygonal line is continuously drawn.

終点で連続する線分が無い場合は、新たな線分
の端点で、最後に描画ヘツドのある位置に最も近
いものから処理するために、処理ステツプ6で最
後の終点座標を新たな開始点として処理ステツプ
2に戻り、前記の端点走査を再開する。
If there is no continuous line segment at the end point, the coordinates of the last end point are used as the new starting point in step 6 in order to process the new line segment from the end point closest to the last position of the drawing head. Returning to processing step 2, the endpoint scanning described above is resumed.

以上の処理を反復して処理ステツプ2で選択す
べき端点が無くなれば、この文字データの最適化
が完了する。
The optimization of this character data is completed when there are no more endpoints to be selected in processing step 2 by repeating the above processing.

第2図は、第3図と同じ漢字「間」のデータを
最適化した結果を説明する図である。図から明ら
かなように、前記と同様に黒丸で示す位置づけ座
標の点が6個になり、前記第3図の12個に対し減
少する。
FIG. 2 is a diagram illustrating the result of optimizing the data for the same kanji character "ma" as in FIG. 3. As is clear from the figure, the number of positioning coordinate points indicated by black circles is now 6, which is decreased from 12 in FIG. 3, as before.

その結果データ量は12バイト減少して、前記例
の56バイトに対し、44バイトに縮小できる。又、
図を比較して差が明らかなように、破線で示す位
置づけのためのヘツドの移動の回数が減少すると
共に、移動距離が大幅に減少しているので、描画
の高速化が期待できる。
As a result, the amount of data decreases by 12 bytes, and can be reduced to 44 bytes, compared to 56 bytes in the above example. or,
As can be seen by comparing the figures, the number of times the head moves for positioning as shown by the broken line is reduced, and the moving distance is also significantly reduced, so faster drawing can be expected.

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

以上の説明から明らかなように本発明によれ
ば、線分文字を描画するための座標値からなる線
分文字データが最適化されて、データ量が縮小さ
れ、描画処理が高速化されるという著しい工業的
効果がある。
As is clear from the above description, according to the present invention, line segment character data consisting of coordinate values for drawing line segment characters is optimized, the amount of data is reduced, and the drawing process is speeded up. It has significant industrial effects.

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

第1図は本発明の原理構成を示す処理の流れ
図、第2図は本発明の最適化データ例を説明する
図、第3図は最適化前のデータ例を説明する図で
ある。 図において、1〜6は処理ステツプを示す。
FIG. 1 is a process flowchart showing the principle configuration of the present invention, FIG. 2 is a diagram explaining an example of optimized data of the present invention, and FIG. 3 is a diagram explaining an example of data before optimization. In the figure, 1 to 6 indicate processing steps.

Claims (1)

【特許請求の範囲】 1 所要の文字セツトの描画のために準備する、
該文字セツトの各文字についての線分文字データ
を、各該文字を構成する線分を示す入力データに
基づいて、1個以上の連続する該線分からなる各
折線について、描画ヘツドを位置づけて各該折線
の描画の始点とする位置を示す位置づけ座標と、
該位置づけ座標を該始点として、当該折線を構成
する各線分の端点の各座標を順次示す座標値とか
らなる折線座標値群を有し、該折線座標値群を該
折線の描画順に配置してなるように生成するに際
し、 所定座標を最初の開始点とし1、該入力データ
を検索して、下記〜の処理によつて出力され
る座標値を、該文字の線分文字データとすること
を特徴とする線分文字データ最適化処理方法。 開始点に最も近い線分の端点を求め2、該端
点の座標を位置づけ座標として出力し3、 該端点を始点とする線分の終点座標を、線分
の座標として出力し4、 該終点と同一の座標を持つ線分を検索し5、 当該線分があれば、該終点を端点としての
処理に戻り、当該線分が無ければ、該終点を開
始点として、の処理に戻る6。
[Claims] 1. Preparing for drawing a required character set;
Line segment character data for each character in the character set is generated by positioning the drawing head for each broken line consisting of one or more consecutive line segments based on input data indicating the line segments that constitute each character. positioning coordinates indicating the starting point for drawing the broken line;
It has a group of broken line coordinate values consisting of the positioning coordinates as the starting point and coordinate values sequentially indicating the coordinates of the end points of each line segment constituting the broken line, and the group of broken line coordinate values are arranged in the drawing order of the broken line. To generate the character, set the specified coordinates as the first starting point 1, search the input data, and use the coordinate values output by the following processing as the line segment character data of the character. Features a line segment character data optimization processing method. Find the end point of the line segment closest to the starting point 2, output the coordinates of the end point as the positioning coordinates 3, output the end point coordinates of the line segment with the end point as the starting point as the coordinates of the line segment 4, and A line segment having the same coordinates is searched 5, and if the line segment exists, the process returns to the end point using the end point, and if there is no such line segment, the process returns to the process using the end point as the starting point 6.
JP14729387A 1987-06-12 1987-06-12 Optimization processing method for segment character data Granted JPS63311428A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP14729387A JPS63311428A (en) 1987-06-12 1987-06-12 Optimization processing method for segment character data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP14729387A JPS63311428A (en) 1987-06-12 1987-06-12 Optimization processing method for segment character data

Publications (2)

Publication Number Publication Date
JPS63311428A JPS63311428A (en) 1988-12-20
JPH0525329B2 true JPH0525329B2 (en) 1993-04-12

Family

ID=15426931

Family Applications (1)

Application Number Title Priority Date Filing Date
JP14729387A Granted JPS63311428A (en) 1987-06-12 1987-06-12 Optimization processing method for segment character data

Country Status (1)

Country Link
JP (1) JPS63311428A (en)

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5960537A (en) * 1982-09-30 1984-04-06 Fujitsu Ltd Picture-drawing plotting system of plotter device

Also Published As

Publication number Publication date
JPS63311428A (en) 1988-12-20

Similar Documents

Publication Publication Date Title
JP2626153B2 (en) Layout compaction method
JPH0196771A (en) Recognizing system for circular arc part
JP2608571B2 (en) Apparatus and method for vectorizing input scanned image data
JP2002099911A (en) Computerized method of vectorizing raster images.
JPH0525329B2 (en)
EP0471849B1 (en) Method of generating dot signal corresponding to character pattern and device therefor
JP2878194B2 (en) Partial erasure and partial detection method of image data
JPH01126717A (en) Linear graphic input device
JP2734107B2 (en) Image data centering processing method
JP3396374B2 (en) Image processing apparatus and image processing method
JP3536894B2 (en) Graphic processing unit
JPH06168278A (en) Facility data retrieving device
JPS62274467A (en) Intellectual conversation processing method
JP2633695B2 (en) Search system
JP2932844B2 (en) Multi-branch shape figure display method
JP2876023B2 (en) How to segment skeleton points
JPH08171646A (en) Graphic creation device
JPH02146681A (en) Contour line extracting system
JPS6344278A (en) Semi-automatic drawing input system
JPS63235987A (en) Expanded character interpolation system
JPH07244684A (en) Dimension line automatic drawing system
JPH02257368A (en) Graphic processor
JPH06282619A (en) Graphic drawing device
JPS60117381A (en) Method and device for extracting contour
JPH04112385A (en) Vector approximation system

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees