JPS6376086A - Pattern restoring system from contour vector - Google Patents

Pattern restoring system from contour vector

Info

Publication number
JPS6376086A
JPS6376086A JP22239886A JP22239886A JPS6376086A JP S6376086 A JPS6376086 A JP S6376086A JP 22239886 A JP22239886 A JP 22239886A JP 22239886 A JP22239886 A JP 22239886A JP S6376086 A JPS6376086 A JP S6376086A
Authority
JP
Japan
Prior art keywords
pattern
point
contour
discriminant
points
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
JP22239886A
Other languages
Japanese (ja)
Inventor
Shigemi Osada
茂美 長田
Katsuhiko Nishikawa
克彦 西川
Satoshi Naoi
聡 直井
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 JP22239886A priority Critical patent/JPS6376086A/en
Publication of JPS6376086A publication Critical patent/JPS6376086A/en
Pending legal-status Critical Current

Links

Landscapes

  • Image Generation (AREA)

Abstract

PURPOSE:To attain accurate pattern restoration by simple processing and less memory capacity by forming a discriminating point indicating the internal and external changes of a pattern from a supplied contour vector string. CONSTITUTION:For instance, data accumulated as a curved dot string having ordering property obtained by vectorizing the contour of a dot pattern by using a straight line generating means such as a DDA are used. A discriminating point forming means 1 forms a discriminating point indicating the internal and external changes of the pattern on a pattern memory. An inter- discriminating point painting means 2 paints out discriminating points formed on the pattern memory by the means 1. A contour line restoring means 3 restores the contour line of the pattern on the pattern memory based on the contour vector string. Consequently, the inside of the pattern applied as the contour vector string can be rapidly and accurately painted out/restored only by using a pattern memory having the number of bits corresponding to the pattern size.

Description

【発明の詳細な説明】 [概  要] 文字パターンやシンボルパターンを輪郭ベクトルのデー
タとして保持していて、必要に応じて該データから元の
トンドパターンを復元する技術については、従来、エツ
ジ・リスト法やエツジ・フラグ法およびその他の幾通り
かの方法が知られているが、処理が複雑であったり、正
確さに欠けたり、あるいは必要なメモリ量が多いなどの
問題点を有していた6本発明はこのような従来の問題点
を解決するため、与えられた輪郭ベクトル列からパター
ンの内部と外部が変化することを示す判別点を生成し、
該判別点を用いて元の文字パターンやシンボルパターン
を復元することにより、N潔な処理で正確なパターンの
復元が可能であると共に、パターンメモ」Jを必要とし
ないかあるいは従来より少量のメモリ量で実現すること
の出来る輪郭ベクトルデータからのパターン復元方式に
ついて開示している。
[Detailed Description of the Invention] [Overview] Conventionally, edge list technology has been used to store character patterns and symbol patterns as contour vector data, and to restore the original tondo pattern from the data as necessary. The method, edge flag method, and several other methods are known, but they have problems such as complex processing, lack of accuracy, and large memory requirements. 6 In order to solve these conventional problems, the present invention generates a discriminant point indicating that the inside and outside of the pattern change from a given contour vector sequence,
By restoring the original character pattern or symbol pattern using the discriminant points, it is possible to restore an accurate pattern with clean processing, and there is no need for a pattern memo or a smaller amount of memory than before. This paper discloses a method for restoring a pattern from contour vector data, which can be realized using the following methods:

[産業上の利用分野] 本発明は、電算写植機やワープロ、パソコン等、記憶容
量を削減するために、文字パターンやシンボルパターン
を輪郭ベクトルで表現しておき、必要に応じて、元のド
ツトパターンを復元し、出力するという分野や、コンピ
ュータグラフィクス等のベクトルで表現された図形の内
部を塗り潰す処理を必要とする分野などにおいて、与え
られたパターンの輪郭ベクトル列、即ち、屈曲点列から
そのパターンの内部を塗り潰すことによって元パターン
を復元する方式に関するものである。
[Industrial Field of Application] In order to reduce the storage capacity of computerized phototypesetting machines, word processors, personal computers, etc., the present invention expresses character patterns and symbol patterns as contour vectors, and if necessary, the original dots can be In the field of restoring and outputting patterns, or in fields such as computer graphics that require processing to fill in the inside of figures expressed in vectors, it is possible to This method relates to a method of restoring the original pattern by filling out the inside of the pattern.

[従来の技術] 従来のパターン復元方式、あるいは、塗り潰し方式とし
てエツジ・リスト法やエツジ・フラグ法等の方式があっ
た。
[Prior Art] Conventional pattern restoration methods or fill-in methods include methods such as the edge list method and the edge flag method.

これらの方式の内エツジ・リスト法は、パターンを走査
してそのパターンの輪郭を検出してどこからどこまでが
パターンの内であり、外であるのかという判断をするこ
とが必要であるが、これが非常に複雑であり、そのため
処理が繁雑であると言う問題点があった。
Among these methods, the edge list method requires scanning the pattern, detecting the outline of the pattern, and determining from where to where the pattern is inside and outside, but this is extremely difficult. There was a problem in that the process was complicated and the processing was complicated.

また、エツジ・フラグ法は正確さに欠けるという問題点
があった。
Additionally, the edge-flag method has a problem of lacking accuracy.

そのため、比較的高速で、かつ、正確にパターンを塗り
潰すことの可能な手段として、例えば本出願人の出願に
係る「多角形内部領域塗潰装置(特願昭60−0488
96号)」等が提案されている。
Therefore, as a means for filling out a pattern relatively quickly and accurately, for example, "Polygonal Internal Area Filling Apparatus" (Japanese Patent Application No. 60-0488
No. 96)" etc. have been proposed.

[発明が解決しようとする問題点] 上述した従来のパターン復元方式の内「多角形内部領域
塗潰装置」による方式は、屈曲点データより復元した、
多角形の輪郭線上に多角形の内部と外部が変化すること
を示す判別点を定義して、その点を元に、比較的高速で
かつ正確にパターンを塗り潰すことが可能なものである
が、輪郭線データを格納するためのメモリと判別点デー
タを格納するためのメモリが別個に必要であるため、パ
ターンのサイズに応じたビット数の2倍の記憶容量を持
つパターンメモリが必要であるから、使用出来るメモリ
容量に制限のある場合には使用出来ないと言う問題点が
あった。
[Problems to be Solved by the Invention] Among the conventional pattern restoration methods described above, the method using the "polygon internal area filling device" restores from bending point data.
It is possible to define a discrimination point on the contour of a polygon that indicates that the inside and outside of the polygon change, and to fill in a pattern relatively quickly and accurately based on that point. Since a memory for storing contour data and a memory for storing discriminant point data are required separately, a pattern memory with a storage capacity twice the number of bits corresponding to the size of the pattern is required. Therefore, there was a problem that it could not be used if there was a limit to the usable memory capacity.

本発明はこのような従来の問題点に鑑み、パターンメモ
リを必要としないかあるいは少量のパターンメモリによ
って、文字パターンやシンボルパターンの復元や塗り潰
しが可能であると共に、簡潔な処理で正確なバタ゛−ン
復元を行なうことの出来る輪郭ベクトルデータからのパ
ターン復元手段を提供することを目的としている。
In view of these conventional problems, the present invention makes it possible to restore and fill in character patterns and symbol patterns without the need for pattern memory or with a small amount of pattern memory, as well as to create accurate patterns with simple processing. It is an object of the present invention to provide a means for restoring a pattern from contour vector data that can perform pattern restoration.

[問題点を解決するための手段] 本発明によれば、上述の目的は前記特許請求の範囲に記
載のとおり、与えられたパターンの輪郭ベクトル列から
輪郭線を復元する手段と、輪郭ベクトルからパターンの
内部と外部が変化することを示す判別点を生成する手段
と、判別点に基づいてパターン内部を塗り潰す手段とを
備え、まず、判別点を生成して、判別点間を塗り潰した
後に、輪郭線を復元することにより、パターンを復元す
るパターンメモリを削減できる輪郭ベクトルからのパタ
ーン復元方式、あるいは、与えられたパターンの輪郭ベ
クトル列からパターンの内部と外部が変化する点である
ことを示す判別点を生成する手段と、判別点を保持する
手段と、その判別点に基づいてパターンの黒ランベクト
ルを生成する手段とを備えて構成したことを特徴とする
パターン復元方式により達成される。
[Means for Solving the Problems] According to the present invention, the above-mentioned object is as described in the claims. The method includes means for generating discriminant points indicating that the inside and outside of the pattern change, and means for filling the inside of the pattern based on the discriminant points. , a pattern restoration method from contour vectors that can reduce the pattern memory for restoring a pattern by restoring the contour lines, or a method of restoring patterns from contour vectors that can reduce the amount of pattern memory needed to restore the pattern, or a method of restoring patterns from contour vectors that can be used to determine the points at which the inside and outside of a pattern change from the contour vector sequence of a given pattern. This is achieved by a pattern restoration method characterized by comprising means for generating discriminant points shown in the figure, means for holding the discriminant points, and means for generating black run vectors of the pattern based on the discriminant points. .

第1図は本発明の原理を示すブロック図であって、(a
)は特許請求の範囲第(1)”Jjに対応するものであ
り、(b)は特許請求の範囲第(2)項に対応するもの
である。
FIG. 1 is a block diagram showing the principle of the present invention, (a
) corresponds to claim (1) "Jj," and (b) corresponds to claim (2).

第1図(a)、(b)において、入力となる輪郭ベクト
ル列は与えられたパターンの輪郭ベクトル表現であって
、例えばDDA等のa hs発生手段を用いてドツトパ
ターンの輪郭をベクトル化した順序性を有する屈曲点列
として蓄積されたデータである。
In FIGS. 1(a) and (b), the input contour vector sequence is a contour vector representation of a given pattern, for example, the contour of a dot pattern is vectorized using an AHs generating means such as DDA. This data is accumulated as an ordered series of bending points.

第1図(a)において、1はこれらの輪郭ベクトル列(
屈曲点列)に基づいて、パターンメモリ上にパターンの
内部と外部が変化することを示す判別点を生成する判別
点生成手段である。
In FIG. 1(a), 1 is a sequence of these contour vectors (
This is a discriminant point generating means that generates discriminant points indicating that the inside and outside of the pattern change on the pattern memory based on the bending point sequence).

2は判別点間塗り潰し手段であり、判別点生成手段1に
よってパターンメモリ上に生成された判別点間を塗り潰
す手段である。3は輪郭ベクトル列に基づいて、パター
ンの輪!Is 4mをパターンメモリ上に復元する輪郭
線復元手段である。
Reference numeral 2 denotes a means for filling in between discriminant points, which is a means for filling in between discriminant points generated on the pattern memory by the discriminant point generating means 1. 3 is a pattern ring based on the contour vector sequence! This is a contour line restoring means for restoring Is 4m on the pattern memory.

第1図(b)において、4はこれらの輪郭ベクトル列(
屈曲点列)に基づいて、パターンの内部と外部が変化す
ることを示す判別点を生成する判別点生成手段である。
In FIG. 1(b), 4 is a sequence of these contour vectors (
This is a discriminant point generating means that generates discriminant points indicating that the inside and outside of the pattern change based on the bending point sequence).

5は判別点保持手段であり、これは、パターンメモリで
あっても、判別点の座標点テーブルの形であっても構わ
ない、6はパターンの黒ランのベクトル化手段であり、
判別点保持手段5によって保持されている判別点から、
パターンの黒うンベクトルを生成するものである。黒ラ
ンベクトル化手段6は、判別点保持手段5の実現形態に
依存するが、判別点保持手段5がパターンメモリ上に判
別点を保持するならば、そのパターンメモリをサーチす
ることによって、黒ランベクトルを生成する手段であり
、判別点保持手段5が座標点テーブルの形であれば、そ
の座標点テーブルをサーチし、黒ランベクトルを生成す
る手段である。6は、生成された黒ランベクトルに基づ
いて、実際に黒ランを発生し、パターンを復元するパタ
ーン復元手段である。
5 is a discrimination point holding means, which may be in the form of a pattern memory or a coordinate point table of discrimination points; 6 is a means for vectorizing black runs of the pattern;
From the discrimination points held by the discrimination point holding means 5,
It generates a black vector of a pattern. The black run vectorization means 6 depends on the implementation form of the discriminant point holding means 5, but if the discriminant point holding means 5 holds the discriminant points on the pattern memory, the black run vectorization means 6 searches the pattern memory to vectorize the black run. It is means for generating a vector, and if the discrimination point holding means 5 is in the form of a coordinate point table, it is means for searching the coordinate point table and generating a black run vector. 6 is a pattern restoring means that actually generates a black run and restores a pattern based on the generated black run vector.

[作  用] 第1図(a)に示した構成においては、輪郭ベクトル列
で与えられたパターンの内部を高速に、正確に、且つ、
パターンのサイズに対応したビット数のパターンメモリ
を必要とするだけで、塗り潰す/復元することができる
[Function] In the configuration shown in FIG. 1(a), the interior of the pattern given by the contour vector sequence can be quickly, accurately, and
Filling/restoring can be performed by simply requiring a pattern memory with a number of bits corresponding to the size of the pattern.

才た、第1[ffl (b)に示した構成のものにおい
ては、輪郭ベクトル列で与えられたパターンから黒ラン
のベクトルを正確に生成できるので、パターンメモリの
有無にかかわらず、元パターンを復元することができる
。また、拡大/縮小パターンを生成する際にも、一旦、
輪郭ベクトルを拡大/縮小変換した後、黒ランのベクト
ル化を行えば、ランレングス符号化の拡大/I小等で必
要な走査線間の補間といった処理が不必要であり、拡大
/1iF小パターンの生成にも、本発明は非常に有効と
なる。
In the first configuration shown in (b), the black run vector can be accurately generated from the pattern given by the contour vector sequence, so the original pattern can be generated regardless of the presence or absence of pattern memory. Can be restored. Also, when generating an enlargement/reduction pattern,
If the black runs are vectorized after enlarging/reducing the contour vector, processing such as interpolation between scanning lines required for enlarging run-length encoding/I small etc. is unnecessary, and enlargement/1iF small pattern The present invention is also very effective in producing.

[実 施 例] 第2図は本発明の一実施例を示すブロック図である。こ
の図において、8は与えられたパターンの輪郭ベクトル
列を格納するメモリである。
[Embodiment] FIG. 2 is a block diagram showing an embodiment of the present invention. In this figure, 8 is a memory that stores a contour vector sequence of a given pattern.

まず、判別点生成回路9は、輪郭ベクトル列を読み出し
、パターンの内部と外部が変化することを示す判別点を
生成してパターンメモIJ12に書き込む9判別点の生
成は下記のステップI〜ステップ■のように行なわれる
First, the discrimination point generation circuit 9 reads the contour vector string, generates discrimination points indicating that the inside and outside of the pattern change, and writes them into the pattern memo IJ12.The generation of the 9 discrimination points is performed in steps I to II below. It is done as follows.

第3図(a)〜(d)に各種の場合の判別点の生成の例
を示す、第3図において、・は判別点を表わしている。
FIGS. 3(a) to 3(d) show examples of generation of discriminant points in various cases. In FIG. 3, * represents a discriminant point.

くステップ■〉 屈曲点列間を補関し、輪郭点の座標値を発生しながら、
Y座標が等しい連続する点列(水平部)を抽出する。屈
曲点の補間には、2点間の直線発生手段があれ:ボ充分
である0例えば、後述するDDA(ディジタル微分解析
機:  Digital  Differential
Analyzer)を用いる。
Step ■〉 While interpolating between the curved point sequences and generating the coordinate values of the contour points,
Extract a series of consecutive points (horizontal part) with the same Y coordinate. For interpolation of bending points, it is sufficient to have a straight line generation means between two points.For example, the DDA (Digital Differential Analyzer)
Analyzer) is used.

〈ステップ■〉 水平部に連結する前後の点のY座標が異なる場合、水平
部の一点を判別点として生成する0等しい場合は判別点
を生成しない。
<Step ■> If the Y coordinates of the points before and after connected to the horizontal part are different, one point in the horizontal part is generated as a discrimination point. If they are equal to 0, no discrimination point is generated.

また、判別点は排他的論理和で生成する。Further, the discriminant points are generated by exclusive OR.

即ち、判別点とすべき点が既に判別点てある場合は、そ
の判別点を判別点とはしない。
That is, if a point that should be a discrimination point already exists, that discrimination point is not used as a discrimination point.

以上の処理によって判別点を生成しながら、判別点生成
回路9は、判別点をパターンメモリ12に書き込む、そ
の際、屈曲点列により補関された輪郭点はパターンメモ
IJ12には書き込まない。
While generating the discriminant points through the above processing, the discriminant point generation circuit 9 writes the discriminant points into the pattern memory 12. At this time, the contour points interpolated by the bending point sequence are not written into the pattern memo IJ12.

次に、判別点間塗り潰し回路10において、パターンメ
モリ12を読み出し、以下のステップI−Vにより判別
点間を塗り潰す(第4図参照)、パターンメモリのサイ
ズを(Xmin、 Ymin)〜(Xmax、 Yia
x)とする。
Next, in the discrimination point filling circuit 10, the pattern memory 12 is read out, and the areas between the discrimination points are filled in by the following steps IV (see Fig. 4), and the size of the pattern memory is set from (Xmin, Ymin) to (Xmax). , Yia
x).

〈ステップI >  Y =Ymin。<Step I> Y=Ymin.

〈ステップII >  FLG −0,X −Ymin
<Step II> FLG -0,X -Ymin
.

〈ステップ■〉 もし、(X、Y)が判別点ならば、F
LG −1−FLG。
<Step ■> If (X, Y) is the discrimination point, F
LG-1-FLG.

(X、Y)が判別点でなく、 且つ、FLG−1ならば、 (X、Y)を塗る。(X, Y) is not a discrimination point, And if it is FLG-1, Paint (X, Y).

くステップiv>  x−x+t もし X≦X+*axならば、 くステップ■〉へ。Step iv>   x−x+t If X≦X+*ax, Go to step ■>.

くステップ■〉 Y凛Y+1 もし Y≦Ymaxならば、 くステップ■〉へ、 Y>Xmaxならば、終了。Ku step ■〉 YRinY+1 If Y≦Ymax, Go to step ■〉 If Y>Xmax, end.

次に、輪郭線復元回路11において、再び、輪郭ベクト
ル列が読み出され、屈曲点間の輪郭点を補関する。捕間
には、判別点生成回路9で用いる2点間を結ぶ直線発生
手段を利用し、例えば、I)DAにより下記に示すステ
ップ■〜■の手順によって処理する。
Next, the contour line restoration circuit 11 reads out the contour vector sequence again and interpolates the contour points between the bending points. For the interpolation, a straight line generation means connecting two points used in the discriminant point generation circuit 9 is used, and processing is performed according to steps 1 to 2 shown below using, for example, I) DA.

くステップI>  C;1−eos(φ)G 2 =s
in(φ) −Xi Y肩YI R1−X 1 + 0.5 R2−Y 1 + 0.5 くステップn>  R1富R1+GI R2冒R2+G2 くステップm〉 もし1nt(R1)≠X または1n
t(R2)≠Y のとき、 X −3nt(R1) Y = 1nt(R2) 座標(X、Y)に点を発生す る。
Step I >C; 1-eos(φ)G 2 =s
in(φ) -Xi Y shoulder YI R1-X 1 + 0.5 R2-Y 1 + 0.5 Step n> R1 Wealth R1 + GI R2 Deflection R2 + G2 Step m> If 1nt(R1)≠X or 1n
When t(R2)≠Y, a point is generated at the coordinates (X, Y): X - 3nt(R1) Y = 1nt(R2).

〈ステップ■〉 点(X、Y)が点(X2.Y2)に等
しくなければ、〈ステラ プ■〉へ。
<Step ■> If the point (X, Y) is not equal to the point (X2.Y2), go to <Step ■>.

そうでなければ、終了。Otherwise, exit.

但し、intは小数点以下を切り捨てる関数である。However, int is a function that truncates the fraction below the decimal point.

上述の処理により輪郭線を復元し、パターンメモリ12
に書き込むと、パターンメモリ12上に元パターンが復
元される。
The contour line is restored by the above processing and is stored in the pattern memory 12.
, the original pattern is restored on the pattern memory 12.

第4図は上述したパターンの復元処理の例について説明
する図で、(a)は輪郭ベクトル列を、(b)は該輪郭
ベクトル列からの判別点の生成を、(C)は判別点間の
塗り潰しを、(d)は輪郭線の復元について示している
0図中、口は屈曲点、・は判別点、Δは判別点が戻った
点、Oは判別点間の塗り潰しで塗られた点、◎は輪郭線
復元で復元された点を表わしている。
FIG. 4 is a diagram illustrating an example of the above-mentioned pattern restoration process, in which (a) shows a contour vector sequence, (b) shows the generation of discriminant points from the contour vector sequence, and (c) shows the difference between the discriminant points. (d) shows the restoration of the contour line. In figure 0, the mouth is the inflection point, ・ is the discriminant point, Δ is the point where the discriminant point returned, and O is the filling between the discriminant points. The points and ◎ represent points restored by contour line restoration.

第5図は本発明の他の実施例を示すブロック図である。FIG. 5 is a block diagram showing another embodiment of the present invention.

この図において、13は与えられたパターンの輪郭ベク
トル列を格納するメモリである。
In this figure, 13 is a memory that stores a contour vector sequence of a given pattern.

まず、判別点生成回路14は、輪郭ベクトル列13を読
み出し、パターンの内部と外部が変化することを示す判
別点を生成して判別点保持メモリ17に書き込む0判別
点の生成は下記に示すステップエ〜■によって行なわれ
る。
First, the discriminant point generation circuit 14 reads the contour vector sequence 13, generates discriminant points indicating that the inside and outside of the pattern change, and writes the generated discriminant points into the discriminant point holding memory 17.The generation of the 0 discriminant point is performed by the step process shown below. ~■ is carried out.

また、第6図(a)〜(g)に判別点生成の例を説明し
ている。同図において・は判別点、ムは判別点が多種に
生成される点を表わしている。
Moreover, examples of discrimination point generation are explained in FIGS. 6(a) to 6(g). In the figure, . indicates a discriminant point, and .mu. indicates a point where a variety of discriminant points are generated.

くステップI〉 屈曲点列間を補関し、輪郭点の座標値を発生しながら、
Y座標が等しい連続する点列(水平部)を抽出する。屈
曲点の補間には、2点間の直線発生手段があれば充分で
ある0例えば、DDA (ディジタル微分解折機:  
Digital Differential Anal
yzer)を用いる。
Step I> While interpolating between the bending point sequences and generating the coordinate values of the contour points,
Extract a series of consecutive points (horizontal part) with the same Y coordinate. For interpolation of bending points, it is sufficient to have a straight line generating means between two points.
Digital Differential Anal
yzer).

くステップ■〉 水平部に連結する前後の点のY座標が異なる場合、水平
部の一点を判別点として生成する。
Step ■> If the Y coordinates of the points before and after connecting to the horizontal part are different, one point in the horizontal part is generated as a discrimination point.

判別点の生成個所は、屈曲点列の保持の仕方に依存する
が、例えば、屈曲点列がパターン輪郭の時計廻り方向に
順序付けられて保持されているとすると、第6図(a)
The location where the discriminant point is generated depends on how the bending point sequence is maintained, but for example, if the bending point sequence is maintained in order in the clockwise direction of the pattern contour, the location shown in FIG. 6(a)
.

(b)に示す位置に生成する。It is generated at the position shown in (b).

水平部に連結する前後の点のY座標が等しい場合、部ち
、水平部が極大、極小点になっている場合には、第6図
(C)、(d)に示すように、その水平部の両端点に判
別点を生成する。
If the Y coordinates of the points before and after connecting to the horizontal part are the same, and if the horizontal part is the maximum or minimum point, the horizontal Generate discriminant points at both end points of the section.

但し、第6図(e)、(f)(g)に示すように、判別
点が多重に生成された場合、即ち、判別点とすべき点が
既に判別点である場合は、偶数回生成された場合には、
2重に、奇数回生成された場合には、1つとして扱う。
However, as shown in FIGS. 6(e), (f), and (g), if the discriminant point is generated multiple times, that is, if the point that should be a discriminant point is already a discriminant point, it will be generated an even number of times. If the
If double is generated an odd number of times, it is treated as one.

以上の処理によって判別点を生成しながら、判別点生成
回路14は、判別点を判別点保持メモリ17に書き込む
While generating the discriminant points through the above processing, the discriminant point generation circuit 14 writes the discriminant points into the discriminant point holding memory 17.

判別点保持メモリ17は、二次元状のパターンメモリで
も、座標点テーブル(例えば、第1表に示す形式の座標
点テーブル)でも構わない。
The discrimination point holding memory 17 may be a two-dimensional pattern memory or a coordinate point table (for example, a coordinate point table in the format shown in Table 1).

パターンメモリの場合は、通常の判別点と2重に生成さ
れた判別点とを区別するために2ビツト/1点のメモリ
が必要である。一方、座標点テーブルの場合は、判別点
が生成される度毎に判別点座標をテーブルに書き込めば
よい。
In the case of a pattern memory, 2 bits/1 point memory is required to distinguish between a normal decision point and a doubly generated decision point. On the other hand, in the case of a coordinate point table, the discriminant point coordinates may be written into the table every time a discriminant point is generated.

次に、黒ランベクトル生成回路15において、判別点保
持メモリ17から判別点情報を読み出し、パターンの黒
ランベクトルが生成される(第7図参照)8判別点保持
メモリ17がパターンメモリであれば、パターンメモリ
を水平方向にサーチし、判別間を結ぶ黒ランベクトルを
生成する(第7図参照)。その時、通常の判別点と二重
に生成された判別点を区別しなければならないが、二重
に生成された判別点に対しては、その点からその点まで
の黒ランベクトルを生成する。黒ランベクトルを生成す
る必要がない場合には、パターンメモリ上の判別点間を
水平方向に塗り潰してやれば、元パターンを復元できる
。一方、判別点保持メモリ17として、・座標点テーブ
ルを使用する場合は、垂直方向(Y方向)の同−事標単
位(第1表の行単位)で、水平方向くX方向)座標順に
判別点座標のソーティングを実行する。ソーティングの
後、2組毎に判別点座標値を取り出し、それらを黒ラン
ベクトルの始点、終点とすることによって、黒ランベク
トルを生成する。
Next, in the black run vector generation circuit 15, the discriminant point information is read from the discriminant point holding memory 17, and a black run vector of the pattern is generated (see FIG. 7).8 If the discriminant point holding memory 17 is a pattern memory, , the pattern memory is searched in the horizontal direction, and a black run vector connecting the discriminations is generated (see FIG. 7). At this time, it is necessary to distinguish between a normal discriminant point and a doubly generated discriminant point, and for a doubly generated discriminant point, a black run vector from that point to that point is generated. If it is not necessary to generate a black run vector, the original pattern can be restored by filling in the spaces between the discrimination points on the pattern memory in the horizontal direction. On the other hand, when a coordinate point table is used as the discrimination point holding memory 17, discrimination is made in the vertical direction (Y direction) in units of the same object (in units of rows in Table 1), and in the horizontal direction (X direction) in coordinate order. Performs sorting of point coordinates. After sorting, a black run vector is generated by extracting the discrimination point coordinate values for every two sets and using them as the start and end points of the black run vector.

このようにして、黒ランベクトル生成回路15から、1
ラスター毎の黒ランベクトルが生成されるので、パター
ン、復元回路16では、単に生成された黒ランベクトル
間に黒ランを発生することによって、パターンが復元さ
れる。
In this way, from the black run vector generation circuit 15, 1
Since black run vectors are generated for each raster, the pattern restoration circuit 16 restores the pattern by simply generating black runs between the generated black run vectors.

第7図は上述したパターンの復元の例について説明する
図で(a)は輪郭ベクトル列の例を、(b)は<a>に
示した輪郭ベクトルについての判別点の生成を、(c)
は黒ランベクトルの生成を、(d)はパターンの復元を
示しており、口は屈曲点、・は判別点、ムは判別点が二
重に生成された点、○は黒ランベクトルによって塗られ
た点を表わしている。
FIG. 7 is a diagram explaining an example of restoring the pattern described above, in which (a) shows an example of a contour vector sequence, (b) shows the generation of discriminant points for the contour vector shown in <a>, and (c)
(d) shows the generation of the black run vector, (d) shows the restoration of the pattern, where the mouth is the inflection point, / is the discrimination point, MU is the point where the discrimination point is generated twice, and ○ is the point filled by the black run vector. It represents the point that was

第     1     表 [発明の効果] 近年、文字のディジタル処理技術の導入が進み、今やO
A機器や電算写植システムなどでは、文字品質そのもの
が問われる時代になっている。
Table 1 [Effects of the invention] In recent years, the introduction of digital character processing technology has progressed, and now O
We are living in an era where the quality of text itself is being questioned in A devices and computer typesetting systems.

このようなシステム、或いは、機器には膨大な数の文字
パターンが要求れれるため、それらを格納しておくため
の膨大な記憶容量が必要となる。これを解決するため、
文字パターンを輪郭ベクトル表現によって圧縮しておき
、必要に応じて元パターンを復元する手段が必要とされ
る。
Since such a system or device requires a huge number of character patterns, a huge amount of storage capacity is required to store them. To solve this,
A means is required to compress the character pattern using contour vector representation and to restore the original pattern as necessary.

また、コンピュータグラフィクスなどの分野においても
、ベクトルデータで与えた図形内部に色塗りを施すよう
な機能が必要とされる。
Furthermore, in fields such as computer graphics, there is a need for a function to color the inside of a figure given by vector data.

このような要求に対し本発明によれば、特許請求の範囲
第(I)項記載の手段によって、与えられた輪郭ベクト
ル列から元パターンの内部を高速に、正確に、塗り潰す
ことができ、しかも、パターンのサイズに対応したビッ
ト数のパターンメモリを必要とするだけで、元パターン
を復元できる。
In response to such demands, according to the present invention, the inside of the original pattern can be filled in quickly and accurately from a given contour vector sequence by the means recited in claim (I). Furthermore, the original pattern can be restored by simply requiring a pattern memory with a number of bits corresponding to the size of the pattern.

また、特許請求の範囲第(2)項記載の手段によれば、
与えられた輪郭ベクトル列から元パターンの黒ランのベ
クトルを正確に且つ高速に生成できるので、パターンメ
モリの有無にかかわらず、元パターンを復元することが
できる。
Furthermore, according to the means described in claim (2),
Since black run vectors of the original pattern can be generated accurately and quickly from a given contour vector sequence, the original pattern can be restored regardless of the presence or absence of pattern memory.

また、拡大/縮小パターンを生成する際にも、輪郭ベク
トル列を拡大/縮小変換した後、黒ランベクトルを生成
すれば、ラレングス符号化されたパターンの拡大/縮小
等で必要な走査量の補間といった処理が不要となる。
Also, when generating an enlargement/reduction pattern, if the black run vector is generated after enlarging/reducing the contour vector sequence, the scanning amount required for enlarging/reducing the length-encoded pattern can be interpolated. Such processing becomes unnecessary.

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

第1図は本発明の原理を示すブロック図、第2図は本発
明の一実施例を示すブロック図、第3図は判別点の生成
の例を示す図、第4図はパターンの復元処理を説明する
図、第5図は本発明の他の実施例を示すブロック図、第
6図は判別点の生成の例を示す図、第7図はパターンの
復元の例について説明する図である。 1.4・・・・・・・・・判別点生成手段、2・・・・
・・・・・判別点間塗り潰し手段、3・・・・・・・・
・輪郭線復元手段、5・・・・・・・・・判別点保持手
段、6・・・・・・・・・黒ランベクトル生成手段、7
・・・・・・・・・パターン復元手段、8.13・・・
・・・・・・輪郭ベクトル列格納メモリ、9.14・・
・・・・・・・判別点生成回路、10・・・・・・・・
・判別点間塗り潰し回路、  11・・・・・・・・・
輪郭線復元[1i11.12・・・・・・パターンメモ
リ、15・・・・・・・・・黒ランベクトル生成回路、
16・・・・・・パターン復元回路、17・・・・・・
判別点保持メモリ代理人 弁理士 井 桁 貞 − (a)                   (C)
o     o=bo     o         
o−>。 oooo       oooo         o
o    o。 (b)  ’             cd)判ア1
永、の生成の砂ト示す図 第 3 図 r輪郭ベクトル列j      1判別免切生威」1判
別熱間の遠り違し」     1奇郭謀の復元」パター
ンOA笈元処理を銭帆すろ図 茅 4 図 本発明の他の炙施伊区示すブロック図 第6 口 判別2そ、の生成の秒I庖示す図 第6 図 r阜倉郭ベクトル列、      1割算1蕉の主成。 θ裏うシベクトルの眩」′パターンの復元」パターンの
1元の例1ニー)7・て説朗寸ろ図第 7 図
Fig. 1 is a block diagram showing the principle of the present invention, Fig. 2 is a block diagram showing an embodiment of the invention, Fig. 3 is a diagram showing an example of discriminant point generation, and Fig. 4 is a pattern restoration process. 5 is a block diagram illustrating another embodiment of the present invention, FIG. 6 is a diagram illustrating an example of discriminant point generation, and FIG. 7 is a diagram illustrating an example of pattern restoration. . 1.4...Discrimination point generation means, 2...
...Filling between discrimination points, 3...
・Contour line restoring means, 5... Discrimination point holding means, 6... Black run vector generating means, 7
......Pattern restoration means, 8.13...
...Contour vector string storage memory, 9.14...
......Discrimination point generation circuit, 10...
・Filling circuit between discrimination points, 11...
Contour restoration [1i11.12... Pattern memory, 15... Black run vector generation circuit,
16... Pattern restoration circuit, 17...
Discrimination point retention memory agent Patent attorney Sada Igeta - (a) (C)
o o=bo o
o->. oooo oooo o
o o. (b) ' cd) Grade A1
Fig. 3 shows the sand formation of the 3rd figure r contour vector sequence Fig. 4 Fig. 4 Block diagram showing another section of the present invention Fig. 6 Fig. 6 Fig. 6 showing the generation of the discrimination 2 part Fig. θ Backlash vector dazzle ``Restoration of pattern'' 1 element example of pattern 1 knee) 7.

Claims (2)

【特許請求の範囲】[Claims] (1)与えられたパターンの輪郭ベクトル列からパター
ンの内部と外部が変化することを示す判別点を生成する
手段(1)と、 判別点に基づいてパターン内部を塗り潰す手段(2)と
、 前記輪郭ベクトル列からパターンの輪郭線を復元する手
段(3)とを備え、 判別点を生成して判別点間を塗り潰した後に輪郭線を復
元することによりパターンを復元することを特徴とする
輪郭ベクトルからのパターン復元方式。
(1) means (1) for generating a discriminant point indicating that the inside and outside of the pattern change from a sequence of outline vectors of a given pattern; and (2) means for filling the inside of the pattern based on the discriminant point; means (3) for restoring the outline of the pattern from the outline vector sequence, the outline characterized in that the pattern is restored by restoring the outline after generating discriminant points and filling in between the discriminant points. Pattern restoration method from vectors.
(2)与えられたパターンの輪郭ベクトル列からパター
ンの内部と外部が変化する点であることを示す判別点を
生成する手段(4)と、 判別点を保持する手段(5)と、 その判別点に基づいてパターンの黒ランベクトルを生成
する手段(6)とを備えて構成したことを特徴とするパ
ターン復元方式。
(2) means (4) for generating a discriminant point indicating a point where the inside and outside of the pattern change from a sequence of outline vectors of a given pattern; a means (5) for holding the discriminant point; 1. A pattern restoration method comprising: means (6) for generating a black run vector of a pattern based on the points.
JP22239886A 1986-09-19 1986-09-19 Pattern restoring system from contour vector Pending JPS6376086A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP22239886A JPS6376086A (en) 1986-09-19 1986-09-19 Pattern restoring system from contour vector

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP22239886A JPS6376086A (en) 1986-09-19 1986-09-19 Pattern restoring system from contour vector

Publications (1)

Publication Number Publication Date
JPS6376086A true JPS6376086A (en) 1988-04-06

Family

ID=16781748

Family Applications (1)

Application Number Title Priority Date Filing Date
JP22239886A Pending JPS6376086A (en) 1986-09-19 1986-09-19 Pattern restoring system from contour vector

Country Status (1)

Country Link
JP (1) JPS6376086A (en)

Similar Documents

Publication Publication Date Title
EP0549351A2 (en) Image processing method and apparatus
US5600772A (en) Bit map character convertor using chain-codes for the character filling process
JP3238580B2 (en) Thicker text generator
EP0344686A2 (en) Clipping process and processor
JP3037854B2 (en) Character generation method and device
JP2634851B2 (en) Image processing device
JPH03119387A (en) Method and apparatus for forming contour of digital type surface
JP2770582B2 (en) Figure filling device
US5386502A (en) Painting pattern generation system using outline data and flag data
JPS6376086A (en) Pattern restoring system from contour vector
Lejun et al. A new contour fill algorithm for outlined character image generation
JPS62211692A (en) Preparation system for character of varied size
US5428719A (en) Method and apparatus for generating high-quality pattern in accordance with an edge defining a character pattern
JP2630843B2 (en) Straight line drawing method and apparatus
JP3087414B2 (en) Data output device
JPS62274472A (en) Compression system for pattern data
JP2989604B2 (en) Pattern restoration method
JPH02122956A (en) Filling in contour curve
JP3473046B2 (en) Non-erected character drawing method and apparatus
JP2835056B2 (en) High quality character pattern generation method
JPS63127288A (en) Pattern generator
JP2896097B2 (en) Method and apparatus for filling outline font in which characters are configured for each element
KR950000251B1 (en) High-quality font device
JP3072756B2 (en) Drawing equipment
JPS62211691A (en) Character synthesization system