JPS62120576A - Similarity converting system for pattern - Google Patents

Similarity converting system for pattern

Info

Publication number
JPS62120576A
JPS62120576A JP60260539A JP26053985A JPS62120576A JP S62120576 A JPS62120576 A JP S62120576A JP 60260539 A JP60260539 A JP 60260539A JP 26053985 A JP26053985 A JP 26053985A JP S62120576 A JPS62120576 A JP S62120576A
Authority
JP
Japan
Prior art keywords
line width
pattern
width control
line
flection
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
JP60260539A
Other languages
Japanese (ja)
Other versions
JPH0332111B2 (en
Inventor
Katsuhiko Nishikawa
克彦 西川
Shigemi Osada
茂美 長田
Akira Inoue
彰 井上
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 JP60260539A priority Critical patent/JPS62120576A/en
Publication of JPS62120576A publication Critical patent/JPS62120576A/en
Publication of JPH0332111B2 publication Critical patent/JPH0332111B2/ja
Granted legal-status Critical Current

Links

Landscapes

  • Image Processing (AREA)

Abstract

PURPOSE:To obtain plural high quality patterns of various sizes out of one single pattern by adding the line width control information to a flection point significant to the line width control among those flection points extracted out of the contour lines of a pattern and multiplying said flection point and the pattern line width decided by the flection point by a similarity conversion factor for generation of the line width control value and then for control of the line width. CONSTITUTION:The flection points are extracted out of the counter lines of a character pattern 11 by a flection point extracting part 10 and then stored in a flection point storing part 12. The segments among those extracted flection points are integrated 13 and a contour line number is given to each integrated segment. A line group is decided 14 by means of said integrated lines and the decoration processing 15 is carried out for connection of the line group by means of this line group. Based on these information, an attribute list of the line width control information is formed 16 and stored 17. A deciding part 18 multiplies the pattern line width obtained from the flection points stored in both parts 12 and 17 by a similarity conversion factor to generate the line width control value. Based on this control value, a character pattern 26 is outputted via a coordinate conversion part 20, the table forming parts 21 and 23, a flection point coordinate rewriting part 24, and a paint-out part 25 respectively.

Description

【発明の詳細な説明】 〔目次〕 〔概要〕             ・・・2頁〔産業
上の利用分野〕       ・・ 3頁〔従来の技術
〕          ・・・4頁〔発明が解決しよう
とする問題点〕 ・・・4頁〔問題点を解決するための
手段〕  ・・・4頁〔作用〕           
  ・・・5頁〔実施例〕            ・
・・6頁〔発明の効果〕         ・・・23
頁〔)既要〕 パターンの輪郭線屈曲点の内のパターンの縦線及び横線
又は縦線及び横線並びにこれらに接続する飾りを構成す
る屈曲点に線幅制御情報を付加すると共に、前記屈曲点
及び線幅制御情報から求められるパターン線幅に相似変
換率を乗じて線幅制御値を発生し、パターンの拡大又は
縮小(相似変換)に際して線幅制御情報及び線幅制御値
を参照して線幅の制御を行なうようにした。
[Detailed description of the invention] [Table of contents] [Summary] ...2 pages [Industrial application field] ...3 pages [Prior art] ...4 pages [Problems to be solved by the invention] ...Page 4 [Means to solve the problem] ...Page 4 [Effect]
...5 pages [Example] ・
...Page 6 [Effects of the invention] ...23
Page [) Already required] Line width control information is added to the vertical lines and horizontal lines of the pattern, or the vertical lines and horizontal lines, and the vertical lines and horizontal lines, and the vertical lines and horizontal lines of the pattern, and the vertical lines and horizontal lines, and the vertical lines and horizontal lines, and the vertical lines and horizontal lines, and the vertical lines and horizontal lines, and the vertical lines and horizontal lines, and the vertical lines and horizontal lines, and the vertical lines and horizontal lines, and the vertical lines and horizontal lines, and the vertical lines and horizontal lines, and the vertical lines and horizontal lines of the pattern, and A line width control value is generated by multiplying the pattern line width found from the line width control information and the line width control information by a similarity conversion rate, and the line width control value is generated by referring to the line width control information and the line width control value when enlarging or reducing the pattern (similarity conversion). The width can now be controlled.

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

本発明はパターンの相似変換方式に関し、更に詳しく言
えば、線幅制御に有意な輪郭線屈曲点に付加された線幅
制御情報とパターン線幅に相似変換率を乗じて求められ
た線幅制御値とをパターンの拡大又は縮小の際に用いる
ようにしたパターンの相似変換方式に関する。
The present invention relates to a pattern similarity conversion method, and more specifically, the present invention relates to a pattern similarity conversion method, and more specifically, line width control information added to contour bending points that are significant for line width control and line width control obtained by multiplying the pattern line width by a similarity conversion rate. The present invention relates to a pattern similarity transformation method in which a value is used when enlarging or reducing a pattern.

文字パターン等の処理において、パターンの拡大又は縮
小が行なわれることがある。このような拡大又は縮小に
おいて、原パターンを忠実に拡大又は縮小していること
が要求される。そうでないと、原パターンの拡大又は縮
小の意味が失われて来るからである。
In processing character patterns, the pattern may be enlarged or reduced. In such enlargement or reduction, it is required that the original pattern be faithfully enlarged or reduced. Otherwise, the meaning of enlarging or reducing the original pattern will be lost.

〔従来の技術〕[Conventional technology]

文字パターンを拡大又は縮小する方法として、本出願人
は線幅を制御しながら文字パターンを拡大又は縮小する
技法を既に提案している。
As a method for enlarging or reducing a character pattern, the applicant has already proposed a technique for enlarging or reducing a character pattern while controlling the line width.

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

この技法によると、文字パターンの拡大又は縮小に際し
て、線幅の制御を人手を介さなければならない煩わしさ
がある。
According to this technique, when enlarging or reducing a character pattern, the line width must be controlled manually, which is troublesome.

本発明は斯かる問題点に鑑みて創作されたもので、1つ
のパターンから種々の大きさのパターンを自動的線幅制
御の基に高品位で発生することができるパターンの相似
変換方式を提供することを目的とする。
The present invention was created in view of such problems, and provides a pattern similarity conversion method that can generate patterns of various sizes from one pattern with high quality based on automatic line width control. The purpose is to

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

第1図は本発明の原理ブロック図を示す。本発明はパタ
ーンの相似変換方式において、パターンの輪郭線から屈
曲点を抽出する抽出手段1と、抽出された屈曲点の内の
線幅制御に有意な屈曲点に線幅制御情報を付加する付加
手段2と、抽出された屈曲点及び前記線幅制御情報を用
いて決定されるパターン線幅に相似変換率を乗じて線幅
制御値を発生する線幅制御値発生手段3と、パターンの
拡大又は縮小に際して線幅制御情報及び線幅制御値を参
照して線幅の制御を行なう線幅制御手段4とを備えて構
成したものである。
FIG. 1 shows a block diagram of the principle of the present invention. In a pattern similarity conversion method, the present invention includes an extraction means 1 for extracting bending points from the outline of a pattern, and an addition unit for adding line width control information to a bending point that is significant for line width control among the extracted bending points. means 2; line width control value generating means 3 for generating a line width control value by multiplying the pattern line width determined using the extracted bending point and the line width control information by a similarity conversion rate; and expanding the pattern. Alternatively, the line width control means 4 controls the line width by referring to the line width control information and the line width control value at the time of reduction.

〔作用〕[Effect]

パターン輪郭線上の屈曲点が抽出手段1によって抽出さ
れる。抽出された屈曲点の内のパターン縦線及び横線又
は縦線及び横線並びにこれらに接続する飾り等を構成す
る線幅制御に有意な屈曲点に線幅制御情報が付加手段2
によって付加される。
The extraction means 1 extracts bending points on the pattern contour. Means 2 for adding line width control information to curved points significant for line width control constituting pattern vertical lines and horizontal lines or vertical lines and horizontal lines and decorations connected thereto among the extracted curved points.
added by

これに加えて、抽出された屈曲点及び前記線幅制御情報
から求められたパターン線幅に相似変換率を乗じる演算
を行なう線幅制御値発生手段3から線幅制御値が発生さ
れる。このような前処理を施した後に、パターンの拡大
又は縮小を行なわんとするに際して上述の線幅制御情報
及び線幅制御値が線幅制御手段4によって参照されて線
幅の制御に用いられ、パターンの拡大又は縮小が行なわ
れる。
In addition, a line width control value is generated from a line width control value generating means 3 which performs an operation of multiplying the pattern line width determined from the extracted bending point and the line width control information by a similarity conversion rate. After performing such pre-processing, when enlarging or reducing the pattern, the above-mentioned line width control information and line width control value are referred to by the line width control means 4 and used to control the line width, The pattern is enlarged or reduced.

斯くして、1つの原パターンから拡大又は縮小したパタ
ーンを、線幅制御を自動的に行ないながら、高品位で得
ることができる。
In this way, a pattern enlarged or reduced from one original pattern can be obtained with high quality while automatically controlling the line width.

〔実施例〕〔Example〕

第2図は本発明の一実施例を示す。この図において、1
0は供給される文字パターン1)から輪郭線上の屈曲点
を抽出する屈曲点抽出部である。
FIG. 2 shows an embodiment of the invention. In this figure, 1
0 is a bending point extracting unit that extracts bending points on the contour line from the supplied character pattern 1).

抽出された屈曲点は後刻での利用に供するために屈曲点
格納部12に格納される。
The extracted bending points are stored in the bending point storage unit 12 for later use.

13は抽出された屈曲点間の輪郭線分の統合を行なう輪
郭線分の統合部である。
Reference numeral 13 denotes a contour line segment integration unit that integrates contour line segments between the extracted bending points.

14は統合された線分を用いて線群を決定する線群の決
定部である。ここに、線群とは複数の輪郭線分で構成さ
れるパターン上の一本の線をいう。
14 is a line group determination unit that determines a line group using the integrated line segments. Here, the line group refers to one line on a pattern made up of a plurality of contour line segments.

15は決定された線群を用いてそれに接続する飾りの処
理を行なう飾りの認識部である。
Reference numeral 15 denotes an ornament recognition unit that uses the determined line group to process ornaments connected thereto.

16は上述の各処理から得られる情報を基にして線幅制
御情報を属性表にして作成する属性表の作成部である。
Reference numeral 16 denotes an attribute table creation unit that creates an attribute table of line width control information based on the information obtained from each of the above-mentioned processes.

作成部16で作成された属性表は後刻での使用に供する
ために属性表格納部17に格納される。
The attribute table created by the creation unit 16 is stored in the attribute table storage unit 17 for later use.

18は属性表格納部17に格納された線幅制御情報及び
屈曲点格納部に格納された屈曲点を用いて求められたパ
ターン線幅に相偵変換率を乗じて線幅制御値を発生する
線幅制御値の決定部である。
18 generates a line width control value by multiplying the pattern line width obtained using the line width control information stored in the attribute table storage unit 17 and the bending points stored in the bending point storage unit by a relative conversion rate. This is a line width control value determining unit.

上述の如くして格納された屈曲点、属性表及び線幅制御
値が次の所要各部で用いられる。
The bending points, attribute table, and line width control values stored as described above are used in the following required sections.

20は屈曲点格納部12に格納された屈曲点の座標を予
め決められた値だけ変える座標変換部である。
Reference numeral 20 denotes a coordinate conversion unit that changes the coordinates of the bending point stored in the bending point storage unit 12 by a predetermined value.

21は属性表格納部17に格納された属性表の成る屈曲
点の座標を用いて線幅制御を行なうために用いる仮の線
幅制御表の座標値開に仮の座標値を書き込んで仮の線幅
制御表を作成する仮の線幅制御表作成部である。作成さ
れた仮の線幅制御表は後刻での使用のため線幅制御表格
納部22に格納される。
21 writes temporary coordinate values into the coordinate value field of a temporary line width control table used to perform line width control using the coordinates of the bending point formed by the attribute table stored in the attribute table storage unit 17. This is a temporary line width control table creation unit that creates a line width control table. The created temporary line width control table is stored in the line width control table storage unit 22 for later use.

23は線幅決定表格納部19の内容を参照しつつ仮の線
幅制御表に所要の処理を施して線幅制御表を作成する線
幅制御表の作成部である。
Reference numeral 23 denotes a line width control table creation unit that performs necessary processing on a temporary line width control table while referring to the contents of the line width determination table storage unit 19 to create a line width control table.

24は線幅制御表を用いて座標変換部18の座標を書き
換える屈曲点座標の書換え部である。
24 is a bending point coordinate rewriting unit that rewrites the coordinates of the coordinate converting unit 18 using a line width control table.

25は上述の各部18乃至24で線幅制御されている屈
曲点の内部を塗り潰して文字パターン26を出力する輪
郭内部の塗り潰し部である。
Reference numeral 25 denotes a filling portion inside the contour for outputting a character pattern 26 by filling out the inside of the bending point whose line width is controlled by the above-mentioned portions 18 to 24.

次に、上述各構成部を有する本発明実施例の処理態様を
第3図の文字パターン例を用いて説明する。
Next, the processing mode of the embodiment of the present invention having each of the above-mentioned components will be explained using an example of a character pattern shown in FIG.

先ず、文字パターンの輪郭から屈曲点の抽出処理■が行
なわれる。この抽出処理により、第3図文字パターンの
屈曲点P1〜P13が屈曲点抽出部10によって抽出さ
れる。
First, a process (2) for extracting bending points from the outline of a character pattern is performed. Through this extraction process, the bending points P1 to P13 of the character pattern in FIG. 3 are extracted by the bending point extraction unit 10.

この屈曲点抽出処理後に、属性表の作成処理■に入る。After this inflection point extraction process, the attribute table creation process (2) begins.

ここで、第3図中のし1〜L13は線分を表しているも
のとする。又、図の右方向にXの正方向、下方向にYの
正方向を設定し、点P、の座標を(Xt 、Y+ )と
して表す。線分L1は点P1と点p++、とを結んで得
られる線分である。又、Pl4はPlである。
Here, it is assumed that numbers 1 to L13 in FIG. 3 represent line segments. Further, the positive direction of X is set to the right of the figure, and the positive direction of Y is set to the bottom, and the coordinates of point P are expressed as (Xt, Y+). Line segment L1 is a line segment obtained by connecting point P1 and point p++. Further, Pl4 is Pl.

<5tapl) このような段別の下において、輪郭線分の統合部13に
おいて次のような処理が行なわれる。
<5 tapl) Under such a stage classification, the following processing is performed in the contour line segment integration unit 13.

先ず、線分L1は次の5種類に分類される。ただし、T
 h 、は予め決められる闇値である。
First, the line segment L1 is classified into the following five types. However, T
h is a predetermined darkness value.

C1・・・Y1=Yi+t 、  (XtとX ++1
との差)≧Th1 C2・・・Xl =Xi+1.  (YlとX1+1と
の差)≧T h 。
C1...Y1=Yi+t, (Xt and X++1
difference)≧Th1 C2...Xl =Xi+1. (Difference between Yl and X1+1)≧T h.

C3・・・ (YlとYi+、との差)=1゜(Xi 
とX1÷、との差)≧Tht C4・・・ (Xt とX1+、との差)=1゜(’y
’+ とX1+、との差)≧T h IC6・・・ (
Xt とX1+、との差)=1゜(YlとY l+1 
との差)=1 Co ・・・上記以外の場合。
C3... (difference between Yl and Yi+) = 1° (Xi
and X1÷, ) ≧ Tht C4... (difference between Xt and
'+ and X1+)≧T h IC6... (
Difference between Xt and X1+) = 1° (Yl and Yl+1
difference) = 1 Co...For cases other than the above.

この分類法の下で第3図の線分り、〜L13を分類する
と次のようになる。
Under this classification method, the line segment ~L13 in Figure 3 is classified as follows.

C1°°°L1・ L4・ L7・ L1)C2・・・
L3.LGI  L9.L12C5・・・なし C4・・・なし C6・・・なし Go  ・・・L2.Ls、La、L、O+  Lt3
この分類結果を基にして次のような線分統合基準に従っ
て、線分の統合を行ない、統合された線分の集合の各々
に対し輪郭線番号Enを与える。
C1°°°L1・L4・L7・L1)C2...
L3. LGI L9. L12C5...None C4...None C6...None Go...L2. Ls, La, L, O+ Lt3
Based on the classification results, line segments are integrated according to the following line segment integration criteria, and a contour line number En is given to each set of integrated line segments.

分類番号が01又はC2の線分を見つけこれをLkとす
る。
Find a line segment with classification number 01 or C2 and set it as Lk.

(1)  ルール1→LkがC1の場合、L k−を又
はL k++がC1又はC3であれば統 合する。Lkが02の場合はC2 又はC4であれば統合する。
(1) Rule 1 → If Lk is C1, integrate L k− or if L k++ is C1 or C3. If Lk is 02, it is integrated if it is C2 or C4.

(2)  )Lt−7L/2−LkがC1の場合、L 
k−1が05でかつL k−2がC1かC3又は Lk+tが05でかつL k+2がC1かC3であれば
統合する。Lkが 02の場合はC2又はC4であれ ば統合する。
(2)) If Lt-7L/2-Lk is C1, L
If k-1 is 05 and L k-2 is C1 or C3, or Lk+t is 05 and L k+2 is C1 or C3, they are integrated. When Lk is 02, if it is C2 or C4, it is integrated.

(3)ルール3−上記以外の場合は統合を終了する。(3) Rule 3 - In cases other than the above, the integration is terminated.

このようにして統合された各線分には輪郭線番号が与え
られるが、統合されなかった線分には輪郭線番号は与え
られない。第3回設例における輪郭線番号の付与例を示
せば次の通りとなる。
Each line segment integrated in this manner is given a contour number, but line segments that are not integrated are not given a contour number. An example of assigning contour numbers in the third example is as follows.

L 1−E 1)  L 3−E 2+  L 4←E
3.Le←L7″E5.L3″Eε、L1)″Ev l
  r、t a←E8 又、輪郭の方向を右、左、下、上の4種類に分類する。
L 1-E 1) L 3-E 2+ L 4←E
3. Le←L7″E5.L3″Eε, L1)″Ev l
r, t a←E8 Also, the direction of the contour is classified into four types: right, left, bottom, and top.

右・・・El 、 Ea、 ET 左・・・El1 下・・・Ea、E4 上・・・Ell、Elf そして、線群の決定部14の処理に移る。Right...El, Ea, ET Left...El1 Bottom...Ea, E4 Top...Ell, Elf Then, the process moves to the line group determining unit 14.

<5tepff) 輪郭E1と対になる輪郭を求めるために、E+とEk 
(k=1.2・・・、13.に#i)との間で次の2つ
の量、M(重なり度)とD(距離)とを計算する。ただ
し、輪郭E1を構成する屈曲点のうち、その始点をps
i、始点をPEiとする(第4図参照)。
<5tepff) In order to find the contour paired with contour E1, E+ and Ek
The following two quantities, M (degree of overlap) and D (distance), are calculated between (k=1.2..., 13. and #i). However, among the bending points that make up the contour E1, the starting point is ps
i, and the starting point is PEi (see Figure 4).

Tl)  輪郭Eiの方向が右で、Ekの方向が左で且
且つEkの位置がEiより下にある場合(2)輪郭E1
の方向が左で、Ekの方向が右でがつEkの位置がEl
より上にある場合 min (XEk−Xsk、Xs r −XEI )(
3)輪郭E+の方向が下で、Ekの方向が上でがつEk
の位置がElより左にある場合 (4)輪郭E1の方向が上で、Ekの方向が下でかつE
kの位置がElより右にある場合 (1)乃至(4)以外の場合は対となり得ない。
Tl) When the direction of the contour Ei is to the right, the direction of Ek is to the left, and the position of Ek is below Ei (2) Contour E1
The direction of is on the left, the direction of Ek is on the right, and the position of Ek is El.
If it is above min (XEk - Xsk, Xs r - XEI) (
3) Ek where the direction of contour E+ is down and the direction of Ek is up
If the position of is to the left of El (4) The direction of contour E1 is up, the direction of Ek is down, and E
If the position of k is to the right of El, cases other than (1) to (4) cannot form a pair.

それぞれの条件に該当する上述の各M及びDを計算した
後、算出されたM及びDが M≧Th2 D≦Ttl+ を満たし、かつDが最小のものをElの対と決定する。
After calculating each of the above-mentioned M and D corresponding to each condition, the calculated M and D satisfy M≧Th2 D≦Ttl+ and the one with the minimum D is determined as the pair of El.

ただし、TE01.Th3は適当な闇値である。第3回
設例の場合について言えば次のような対が決定される。
However, TE01. Th3 is an appropriate darkness value. In the case of the third example, the following pairs are determined.

E、・・・なし   Ea・・・E3 E2 ・・・Ea    EG ・・・なしEa ・ 
・ ・Es      E7  ・ ・ ・E6E4・
・・なし   Ea・・・Ea このような処理結果を基にして線群を決定する。
E,...None Ea...E3 E2...Ea EG...None Ea ・
・ ・Es E7 ・ ・ ・E6E4・
...None Ea...Ea A line group is determined based on such processing results.

第3図の段別について説明する。The stages shown in FIG. 3 will be explained.

(al  Ea及びEaのように互いの対が等しい場合
には、 無条件に1つの線群とする。
(If the pairs are equal, such as Ea and Ea, they are unconditionally treated as one line group.

(b)Es及びET、Ea及びEaのように複数の対が
存在する場合、 先ず、その中でDの最小値D minを求める。次に各
対のDとDminとの差を求め、その差が成る閾値Th
4以下であるならば、それら輪郭線分を1つの線群とす
る。
(b) When there are multiple pairs such as Es and ET and Ea and Ea, first find the minimum value D min of D among them. Next, find the difference between D and Dmin for each pair, and find the threshold Th at which the difference occurs.
If the number is 4 or less, these contour line segments are treated as one line group.

これを第3図の段別について言えば、そこでの線群は 線群番号 E 2 、 E B   −=(:、 IE a 、E
 a + E T−G2 (S t e p I[) 5tepI[の処理結果を基にして線群を構成する輪郭
線分に含まれる屈曲点に対し、第5図に示すような仮の
属性表を作成する。この表の意味するところは、例えば
、P4の場合それは線群G1の右の点でありかつ線群G
2の上の点であることを表している。
In terms of the stages in Figure 3, the line groups there are line group numbers E 2 , E B −=(:, IE a , E
a + E T-G2 (S t e p I [) Based on the processing results of 5 step I [, a temporary attribute table as shown in Fig. 5 is created for the bending points included in the contour line segments constituting the line group. Create. What this table means is that, for example, in the case of P4, it is the right point of line group G1 and line group G
This indicates that the point is above 2.

(StepIV) 次いで、飾りの認識部15の処理に入る。ここでの処理
は飾りに関する情報を第5図に加えるための処理を行な
うことにある。
(Step IV) Next, the process of the decoration recognition unit 15 begins. The processing here consists of processing for adding information regarding the decoration to FIG.

飾りには次の2種類がある。There are two types of decorations:

■ 同一線群に接続する飾り(第6図(a)参照)Pz
、Psは線群G1に属するものとする。第6図(alの
屈曲点P2.P3.P4の如く、成る線群の端点から成
る闇値以内の距離にある点を飾りとみなし、次のような
属性情報をPz +  Pl +  P4に付与する。
■ Decorations connected to the same line group (see Figure 6 (a)) Pz
, Ps belong to line group G1. Figure 6 (like bending points P2, P3, and P4 of al, points within the distance of the darkness value consisting of the end points of the line group consisting of are regarded as decorations, and the following attribute information is given to Pz + Pl + P4 do.

Pz、Pl ・・・線群G1の上の飾りP4・・・線群
G1の下の飾り この上下の判断はG1の中心線L1より上か下かで行な
う。
Pz, Pl... Decoration above the line group G1 P4... Decoration below the line group G1 The determination of whether this is up or down is made based on whether it is above or below the center line L1 of G1.

■ 互いに直交する異なる線群に接続する飾り(第6図
山)参照)P+ 、Psは線群G、に属し、P、s、P
sは線群G2に属するものとする。第6図(b)の屈曲
点P 2 +  P 3の如く、成る直交する線群の端
点から閾値以内の距離にある点を飾りとみなし、次のよ
うな属性情報をPz、Plに付与する。
■ Decorations connected to different line groups that are orthogonal to each other (see Figure 6)) P+, Ps belong to line group G, and P, s, P
It is assumed that s belongs to line group G2. Points within a threshold distance from the end points of the group of orthogonal lines, such as the bending point P 2 + P 3 in FIG. 6(b), are regarded as decorations, and the following attribute information is given to Pz and Pl. .

Pz ・・・線群G、の上でかつG2の左の飾りPl 
・・・線群G1の下でかつG2の右の飾りG1の上下の
判断は中心線L1より上か下かで、またG2の左右の判
断は中心線L2より左か右かで行なう。
Pz... Decoration Pl above line group G and to the left of G2
...The verticality of the decoration G1 below the line group G1 and to the right of G2 is determined by whether it is above or below the center line L1, and the left and right direction of G2 is determined by whether it is to the left or right of the center line L2.

この処理を第3図の文字パターンに対して施すと、 Pl ・・・線群G、の左の飾り Pz ・・・線群G、の右の飾り Pε+PtO・・・線群G2の上の飾りPl ・・・線
群G2の下の飾り という情報が得られる。
When this process is applied to the character pattern in Fig. 3, Pl... Decoration on the left of line group G, Pz... Decoration on the right of line group G, Pε+PtO... Decoration above line group G2. Pl... Information about the decoration below the line group G2 is obtained.

そして、飾りの認識部15で得られた情報を線群の決定
部14で得られた仮の属性表に加える処理が属性表の作
成部16において行なわれて第7図に示すような属性表
が得られる。この属性表は属性表格納部17に格納され
る。
The attribute table creation unit 16 then adds the information obtained by the decoration recognition unit 15 to the temporary attribute table obtained by the line group determination unit 14, resulting in an attribute table as shown in FIG. is obtained. This attribute table is stored in the attribute table storage section 17.

この属性表の作成及びその格納後、本発明の特徴部分を
成す線幅制御値の決定処理■に入るが、4この決定は線
幅制御値の決定部18で行なわれる。
After creating and storing this attribute table, the line width control value determination process (2), which is a characteristic part of the present invention, begins.4 This determination is performed by the line width control value determining section 18.

線幅制御値の決定は文字パターンの線分に対して為され
る。そのすべてを示すのは冗長に過ぎると思われるので
、ここでは、その−例を示すに留める。
The line width control value is determined for the line segment of the character pattern. It would be too redundant to show all of them, so I will just show some examples here.

屈曲点p4.PT +  Pi 2の座標値がP4=(
57,80) 、Pv ” (100,87) 、Pz
 2= (50,80)を取っている例について線幅制
御値の決定例について説明する。
Inflection point p4. The coordinate value of PT + Pi 2 is P4=(
57,80), Pv'' (100,87), Pz
An example of determining the line width control value will be described for an example in which 2=(50,80).

属性表(第7図)からP4はG、の右の点であり、且つ
G2の上の点である。従って、線幅決定表(第8図)の
G1の“上又は右の座標”の欄に57を書き込み、G2
の“上又は右の座標”の欄に80を書き込む。同様にし
て、PlはG2の下の点であるからG2の“下又は左の
座標”の欄に87を書き込み、Pl2はG、の左の点で
あるから“下又は左の座標”の欄に50を書き込む。こ
うして完成した表からGl 、G2の変換前の線幅は次
のような値であることになる。
From the attribute table (FIG. 7), P4 is a point to the right of G and a point above G2. Therefore, write 57 in the "top or right coordinate" column of G1 in the line width determination table (Figure 8), and
Write 80 in the "Top or right coordinate" column. Similarly, Pl is a point below G2, so write 87 in the "Bottom or left coordinate" column of G2, and Pl2 is a point to the left of G, so write 87 in the "Bottom or left coordinate" column. Write 50 to . From the table thus completed, the line widths of Gl and G2 before conversion have the following values.

G1− (57−50)+1=8 G2 = (8780)+t=a この場合に、文字パターンの大きさを275に縮小した
場合の線幅は al、 G2 = 8 x 215 =3.2−3 (
四捨五入)として与えられ、この値は線幅決定表格納部
19に格納され、次の線幅制御の処理■の<S t e
 p■〉において線幅制御値として用いられる。
G1- (57-50)+1=8 G2 = (8780)+t=a In this case, when the size of the character pattern is reduced to 275, the line width is al, G2 = 8 x 215 = 3.2-3 (
This value is stored in the line width determination table storage unit 19, and is used in the next line width control process (■).
p■〉 is used as a line width control value.

こうして属性表が作成され、線幅制御値が決定された後
、線幅制御の処理■に入る。
After the attribute table is created in this way and the line width control value is determined, the line width control process (2) begins.

(Stapl> 文字パターンの輪郭からの屈曲点抽出処理■で抽出した
屈曲点の座標は座標変換部20において次式に従って変
換される。
(Stapl>) The coordinates of the bending point extracted in the bending point extraction process (2) from the outline of the character pattern are converted in the coordinate conversion unit 20 according to the following equation.

i=1. 2.  ・ ・ ・、13 但し、上式において5xIXSY1は変換前のパターン
の大きさ、SX2 X5Y2は変換後のパターンの大き
さである。
i=1. 2. . . . , 13 However, in the above equation, 5xIXSY1 is the size of the pattern before conversion, and SX2 X5Y2 is the size of the pattern after conversion.

<5tepII> 属性情報の生成処理■で作成した属性表の成る屈曲点の
座標を用い、線幅制御を行なうのに用いる仮の線幅制御
表の座標値開に仮の座標値を書き込む(第9図参照)。
<5tep II> Using the coordinates of the bending point of the attribute table created in attribute information generation process (See Figure 9).

この処理は仮の線幅制御表作成部21で行なわれる。This process is performed by the temporary line width control table creation section 21.

例えば、第3図の段別において5teplによりP4.
P7.PI 2の座標値が P、s   (23,32) P7   (40,35) PI2  (20,32) に決定されたとする。属性表からP4はG1の右の点で
あり、かつG2の上の点であることがわかる。従って、
仮の線幅制御表の01の“上又は右の座標”の欄に23
を書き込み、G2の“上又は右の座標”の欄に32を書
き込む。同様にして、P7はG2の下の点であるからG
2の“下又は左の座標”の欄に35を書き込み、pla
はG1の左の点であるから“下又は左の座標”の欄に2
0を書き込む。このようにして第9図を完成する。
For example, in the step of FIG. 3, P4.
P7. Suppose that the coordinate values of PI2 are determined to be P,s (23,32) P7 (40,35) PI2 (20,32). It can be seen from the attribute table that P4 is a point to the right of G1 and a point above G2. Therefore,
23 in the “Top or right coordinate” column of 01 in the temporary line width control table.
and write 32 in the "Top or right coordinate" column of G2. Similarly, since P7 is a point below G2, G
Write 35 in the “Bottom or left coordinate” column in step 2, and press
is the left point of G1, so enter 2 in the "Bottom or left coordinate" column.
Write 0. In this way, Figure 9 is completed.

完成された仮の線幅制御表は線幅制御表格納部22に格
納される。
The completed temporary line width control table is stored in the line width control table storage section 22.

<5tepIII> 線幅制御表の作成部23において仮の線幅制御表に対し
次の処理を施して仮の線幅制御表を書き換え、パターン
の線幅が与えられた線幅に為らしめる線幅制御表を作成
する。ただし、縦線の幅はWX、横線の幅はWyである
が、これらの値は夫々、線幅制御値の決定処理■で決定
された線幅制御値である。
<5 tep III> The line width control table creation unit 23 performs the following processing on the temporary line width control table to rewrite the temporary line width control table and create a line whose pattern line width is the given line width. Create a width control table. However, although the width of the vertical line is WX and the width of the horizontal line is Wy, these values are the line width control values determined in the line width control value determination process (2).

上又は右の輪郭を基準に線幅を制御することにすると、 +8)  線群が横線のとき 目標下の座標値=“上又は右の座標”+Wy(b)  
線群が縦線のとき 目標車の座標値=“上又は右の座標”−WX+1 の如くそれぞれの場合の座標値は決定される。このとき
、制御量Cは目標値−“下又は左の座標値”で求まる。
If we decide to control the line width based on the upper or right contour, +8) When the line group is horizontal lines, the target lower coordinate value = “upper or right coordinate” + Wy (b)
When the line group is vertical lines, the coordinate values of the target vehicle are determined in each case as follows: ``Top or right coordinates'' - WX+1. At this time, the control amount C is determined by the target value minus the "lower or left coordinate value."

しかし、この制御量が大き過ぎるとパターンの形がくず
れてしまうので、上又は右及び下又は左の両側を制御す
ることとし、その制御量を次式で求める。
However, if this control amount is too large, the shape of the pattern will be distorted, so both upper or right and lower or left sides are controlled, and the control amount is determined by the following equation.

G2           =C+CIこれらC1,C
2のそれぞれ“上又は右の移動量”、“下又は左の移動
量”として第9図の表に付加して線幅制御表(第10図
参照)を作成する。
G2 = C + CI these C1, C
A line width control table (see FIG. 10) is created by adding the "upward or rightward movement amount" and "downward or leftward movement amount" to the table in FIG. 9, respectively.

この処理は線幅制御表の作成部23で行なわれる。This process is performed by the line width control table creation section 23.

上述のCI、C2は線幅制御表を次のように書き換える
のに用いられる。
The above CI and C2 are used to rewrite the line width control table as follows.

“上又は右の座標値”=“上又は右の座標値”+C1 “下又は左の座標値”=“下又は左の座標値”十02 <5tepIV> 5teplの座標は線幅制御表を用いて書き換えられる
。この処理は屈曲点座標の書換え部22で行なわれる。
“Top or right coordinate value” = “Top or right coordinate value” + C1 “Bottom or left coordinate value” = “Bottom or left coordinate value” can be rewritten. This process is performed by the bending point coordinate rewriting unit 22.

その例を第3図文字パターンの屈曲点P12及びP3の
場合について説明する。
An example of this will be explained with respect to bending points P12 and P3 of the character pattern in FIG. 3.

PI2は属性表(第5図)からG、の左でかっG2の上
の点で飾りではないことがわかる。次にG1の左の座標
と02の上の座標とを線幅制御表(第10図)から調べ
ると21及び32である。
From the attribute table (Figure 5), it can be seen that PI2 is not a decoration because of the large left bracket of G and the point above G2. Next, when the left coordinate of G1 and the upper coordinate of 02 are checked from the line width control table (FIG. 10), they are 21 and 32.

従って、PI2の座標は(20,32)から(21,3
3)に書き換えられる。
Therefore, the coordinates of PI2 are from (20,32) to (21,3
3) can be rewritten.

P9は属性表(第7図)からG2の下の点で飾りである
ことがわかる。そして、線幅制御表(第10図)の02
の下の移動量を調べると、−1になっている。従って、
P3の座標が(15,35)であるならば、Y座標を−
1して(15,34)に書き換えられる。
It can be seen from the attribute table (Fig. 7) that P9 is a decoration at the point below G2. Then, 02 in the line width control table (Figure 10)
If you check the movement amount under , it is -1. Therefore,
If the coordinates of P3 are (15, 35), change the Y coordinate to -
1 and rewritten as (15, 34).

上述の線幅制御処理■から得られる線幅制御済の屈曲点
列内部の塗り潰し処理が行なわれる。
Filling processing is performed inside the curved point sequence whose line width has been controlled, which is obtained from the line width control process (2) described above.

因みに、本発明の処理を施した場合とそうでない場合と
の比較例を示せば、第1)図(a)(線幅制御あり)及
び第1)図山)(線幅制御なし)の如くである。これら
図の文字パターンは512X512の文字パターンから
縦線を4.横線を2に線幅制御して縮小して作った60
X60の文字パターンである。又、本発明の処理のため
の閾値T h t〜Th4は次の通りである。
Incidentally, if we show a comparative example between the case where the process of the present invention is applied and the case where it is not, as shown in Fig. 1) (a) (with line width control) and Fig. 1) (without line width control). It is. The character pattern in these figures is a 512x512 character pattern with 4 vertical lines. 60 made by controlling the horizontal line width to 2 and reducing it
This is an X60 character pattern. Further, the threshold values T h t to Th4 for the processing of the present invention are as follows.

Th、=10.Th2=0.5.  Th3=50゜T
h4=3゜ なお、上記実施例においては、文字パターンを例にとっ
て説明したが、他のパターンにおいても本発明を実施し
得る。
Th,=10. Th2=0.5. Th3=50°T
h4=3° Note that in the above embodiment, the explanation was given by taking a character pattern as an example, but the present invention can be practiced with other patterns as well.

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

以上説明したように本発明によれば、線幅制御に有窓な
屈曲点に与えられた線幅制御情報と抽出された屈曲点及
び前記線幅制御情報からパターン線幅を決定し、その線
幅に相似変換率を乗じて得られた線幅制御値とをパター
ンの拡大又は縮小に際し参照して線幅の制御を行なって
パターンの拡大又は縮小を行なっているから、線幅制御
値を用いない場合に比し1つの原パターンから拡大又は
縮小した高品位のパターンを人手を介することなしに得
ることができる。
As explained above, according to the present invention, the pattern line width is determined from the line width control information given to a windowed bending point, the extracted bending point, and the line width control information, and the line width is When enlarging or reducing a pattern, the line width control value obtained by multiplying the width by the similarity conversion rate is referenced and the line width is controlled to enlarge or reduce the pattern, so the line width control value is used. A high-quality pattern that is enlarged or reduced from one original pattern can be obtained without any manual intervention, compared to the case where there is no manual pattern.

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

第1図は本発明の原理ブロック図、 第213!!Iは本発明の一実施例を示す図、第3図は
パターン例を示す図、 第4図は輪郭線分の例を示す図、 第5図は仮の属性表を示す図、 第6図はパターンの飾りを示す図、 第7図は属性表を示す図、 第8図は線幅決定表を示す図、 第9図は仮の線幅制御表を示す図、 第10図は線幅制御表を示す図、 第1)図は比較例を示す図である。 第1図において、 1は抽出手段、 2は付加手段、 3は線幅制御値発生手段、 4は線幅制御手段である。
Figure 1 is a block diagram of the principle of the present invention. 213! ! 3 is a diagram showing an example of a pattern, FIG. 4 is a diagram showing an example of a contour segment, FIG. 5 is a diagram showing a temporary attribute table, and FIG. 6 is a diagram showing an example of the present invention. Figure 7 shows the pattern decoration, Figure 7 shows the attribute table, Figure 8 shows the line width determination table, Figure 9 shows the temporary line width control table, Figure 10 shows the line width. Figure 1) shows a control table; Figure 1) is a diagram showing a comparative example. In FIG. 1, 1 is an extraction means, 2 is an addition means, 3 is a line width control value generation means, and 4 is a line width control means.

Claims (3)

【特許請求の範囲】[Claims] (1)パターンの相似変換方式において、 パターンの輪郭線から屈曲点を抽出する抽出手段(1)
と、 抽出された屈曲点の内の線幅制御に有意な屈曲点に線幅
制御情報を付加する付加手段(2)と、抽出された屈曲
点及び前記線幅制御情報を用いて決定されるパターン線
幅に相似変換率を乗じて線幅制御値を発生する線幅制御
値発生手段(3)と、 パターンの相似変換に際して前記線幅制御情報及び線幅
制御値を参照して線幅の制御を行なう線幅制御手段(4
)とを備えて構成したことを特徴とするパターンの相似
変換方式。
(1) In the pattern similarity transformation method, extraction means for extracting inflection points from the contour of the pattern (1)
and additional means (2) for adding line width control information to a bend point that is significant for line width control among the extracted bend points, and an additional means (2) for adding line width control information to a bend point that is significant for line width control among the extracted bend points; line width control value generating means (3) for generating a line width control value by multiplying the pattern line width by a similarity conversion rate; Line width control means (4
).
(2)前記線幅制御に有意な屈曲点は前記パターンの縦
線及び横線を構成する屈曲点であることを特徴とする特
許請求の範囲第1項記載のパターンの相似変換方式。
(2) The pattern similarity conversion method according to claim 1, wherein the bending points that are significant for the line width control are bending points forming vertical lines and horizontal lines of the pattern.
(3)前記線幅制御に有意な屈曲点は前記パターンの縦
線及び横線並びにこれらに接続する飾りを構成する屈曲
点であることを特徴とする特許請求の範囲第1項記載の
パターンの相似変換方式。
(3) Similarity of the pattern according to claim 1, characterized in that the bending points significant for the line width control are bending points forming vertical lines and horizontal lines of the pattern and decorations connected thereto. Conversion method.
JP60260539A 1985-11-20 1985-11-20 Similarity converting system for pattern Granted JPS62120576A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP60260539A JPS62120576A (en) 1985-11-20 1985-11-20 Similarity converting system for pattern

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP60260539A JPS62120576A (en) 1985-11-20 1985-11-20 Similarity converting system for pattern

Publications (2)

Publication Number Publication Date
JPS62120576A true JPS62120576A (en) 1987-06-01
JPH0332111B2 JPH0332111B2 (en) 1991-05-09

Family

ID=17349367

Family Applications (1)

Application Number Title Priority Date Filing Date
JP60260539A Granted JPS62120576A (en) 1985-11-20 1985-11-20 Similarity converting system for pattern

Country Status (1)

Country Link
JP (1) JPS62120576A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH02130690A (en) * 1988-11-11 1990-05-18 Canon Inc Graphic processor
KR100689578B1 (en) * 2003-02-28 2007-03-02 마츠시타 덴끼 산교 가부시키가이샤 Toilet

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH02130690A (en) * 1988-11-11 1990-05-18 Canon Inc Graphic processor
KR100689578B1 (en) * 2003-02-28 2007-03-02 마츠시타 덴끼 산교 가부시키가이샤 Toilet

Also Published As

Publication number Publication date
JPH0332111B2 (en) 1991-05-09

Similar Documents

Publication Publication Date Title
US7502511B2 (en) Shape grammar interpreter
KR970067572A (en) Pattern Proximity Effect Correction Method, Program, and Apparatus
CN111241348B (en) Method for dynamically adjusting Tree spacing based on Walker&#39;s Tree
US7423656B2 (en) Method and apparatus for generating morphing sequence
CN110727969B (en) Workflow automatic adjustment method, device, device and storage medium
JPS62120576A (en) Similarity converting system for pattern
CN114387368B (en) Road network generation method, system, terminal equipment and storage medium
JPS62272295A (en) Expansion/reduction system of character pattern with line width control function
CN114359038A (en) Multi-style dynamic word forming method based on generation of confrontation network
US20070266307A1 (en) Auto-layout of shapes
JPS6263384A (en) Similar converting system for pattern
Zhu A New Type of Size Function Respecting Premeshed Entities.
JP5460031B2 (en) Deformation map generator
JPH02197895A (en) Character pattern magnification device
JPH03271799A (en) Character pattern similarity converting system
JPH01267598A (en) Similar conversion system for character pattern
JPH02277173A (en) Producing device for graphic proper to business form
JPH0348373A (en) Method for converting vector data into raster data
JPH04205676A (en) Method for approximating polygonal of point sequence data
CN121861060A (en) Tunnel section intelligent segmentation method and system based on geometric calculation
JPH09179994A (en) Design system
JPS62257532A (en) System for implementing optimization of subroutine
JPH06180724A (en) Approximate transformation device from parametric curve group to b-spline curve group
JP3089842B2 (en) Outline font processor
JPS58155474A (en) Drawing method of parallel curve