JPH0677190B2 - Pattern evaluation device - Google Patents

Pattern evaluation device

Info

Publication number
JPH0677190B2
JPH0677190B2 JP61304448A JP30444886A JPH0677190B2 JP H0677190 B2 JPH0677190 B2 JP H0677190B2 JP 61304448 A JP61304448 A JP 61304448A JP 30444886 A JP30444886 A JP 30444886A JP H0677190 B2 JPH0677190 B2 JP H0677190B2
Authority
JP
Japan
Prior art keywords
pattern
euler
linear conversion
closed loops
closed loop
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Lifetime
Application number
JP61304448A
Other languages
Japanese (ja)
Other versions
JPS63157280A (en
Inventor
聡 直井
茂美 長田
克彦 西川
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 JP61304448A priority Critical patent/JPH0677190B2/en
Publication of JPS63157280A publication Critical patent/JPS63157280A/en
Publication of JPH0677190B2 publication Critical patent/JPH0677190B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

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

Description

【発明の詳細な説明】 〔概要〕 本発明はパターン評価装置において、 既存パターンを線形変換したパターンに対して潰れの有
無を自動的に判定し得ない従来の問題点を解決するた
め、 線形変換前後のパターンの閉ループ数又は(及び)オイ
ラー数を算出してこれら両者を比較することにより、 潰れの有無を自動的に、確実に判定し得るようにしたも
のである。
DETAILED DESCRIPTION OF THE INVENTION [Outline] In order to solve the conventional problem that the pattern evaluation apparatus cannot automatically determine the presence / absence of crushing in a pattern obtained by linearly converting an existing pattern, the linear conversion is performed. By calculating the number of closed loops or (and) Euler numbers of the front and back patterns and comparing both of them, the presence or absence of the collapse can be automatically and surely determined.

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

本発明はパターン評価装置、特に、計算機,ワードプロ
セッサ,電算写植機等に記憶されている文字や図形パタ
ーンを作成するシステムに適用され、既存パターンを縮
少或いは拡大等線形変換したパターンに対して潰れの有
無を判定する装置に関する。現在、上記機器の用いられ
ている膨大な数の文字や図形パターンは人手によって作
成されているために多くの工数がかかるが、既存パター
ンを線形変形したパターンに対して潰れを生じているか
否かを自動的に判定して人手を煩わせないようにして新
規パターンを作成することが必要である。
INDUSTRIAL APPLICABILITY The present invention is applied to a pattern evaluation apparatus, and more particularly to a system for creating a character or graphic pattern stored in a computer, a word processor, a computer typesetting machine, etc. A device for determining the presence or absence of Currently, the enormous number of characters and graphic patterns used in the above-mentioned devices are created by hand, which requires a lot of man-hours. Whether or not the existing patterns are crushed linearly It is necessary to automatically determine and create a new pattern so as not to bother man.

〔従来の技術〕[Conventional technology]

第5図は従来装置の一例のブロック図を示す。同図にお
いて、既存パターンは線形変換部1にて縮小或いは拡大
等線形変換され。表示部2に表示される。操作者は表示
部2に表示されるパターンを視、線形変換によってパタ
ーンに潰れを生じているか否かを判定し、潰れを生じて
いる修正必要なパターンについてのみ修正を行なって新
規パターンを作成していた。
FIG. 5 shows a block diagram of an example of a conventional device. In the figure, the existing pattern is linearly converted, such as reduced or enlarged, by the linear conversion unit 1. It is displayed on the display unit 2. The operator looks at the pattern displayed on the display unit 2, determines whether or not the pattern is crushed by linear conversion, and corrects only the crushed pattern that needs correction and creates a new pattern. Was there.

〔発明が解決しようとする問題点〕[Problems to be solved by the invention]

従来装置では表示部2に表示されるパターンを操作者が
視て判定しているために判定能率が悪く、多くの工数を
必要とする問題点があった。
In the conventional device, since the operator visually determines the pattern displayed on the display unit 2, the determination efficiency is poor, and there is a problem that a lot of man-hours are required.

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

第1図は本発明装置の原理ブロック図を示す。同図中、
11は文字,図形パターンを縮小、拡大等線形変換する手
段、10,12は線形変換を行なう前の文字,図形パターン
の閉ループ数又は(及び)オイラー数、及び該線形変換
を行なった後の上記文字,図形パターンの閉ループ数又
は(及び)オイラー数を夫々算出する手段、13は上記線
形変換を行なう前の閉ループ数又は(及び)オイラー数
と上記線形変換を行なった後の閉ループ数又は(及び)
オイラー数とを比較し、 その比較結果によって上記線形変換による文字,図形パ
ターンの潰れの有無を判定する手段である。
FIG. 1 shows a principle block diagram of the device of the present invention. In the figure,
Reference numeral 11 is a means for linearly converting a character or a graphic pattern such as reduction or enlargement, 10 and 12 are characters before the linear conversion, the number of closed loops or (and) Euler numbers of the graphic pattern, and the above after the linear conversion. Means for calculating the number of closed loops or (and) Euler numbers of a character or a graphic pattern, and 13 is the number of closed loops before performing the linear conversion or (and) Euler number and the number of closed loops after performing the linear conversion or (and )
It is a means for comparing the Euler number and determining whether or not the character or figure pattern is collapsed by the linear conversion based on the comparison result.

〔作用〕[Action]

線形変換前後のパターンの閉ループ数又は(及び)オイ
ラー数を算出してこれら両者を比較し、異なっていれば
潰れ有り、一致していれば潰れ無しとして判定する。
The number of closed loops or (and) Euler numbers of the patterns before and after the linear conversion is calculated, and these two are compared. If they are different, it is determined that there is crushing, and if they match, it is determined that there is no crushing.

〔実施例〕〔Example〕

第2図は本発明装置の一実施例のブロック図を示す。本
実施例は、フルドット文字パターンの輪郭をベクトル化
して圧縮したデータを用いて新規パターンを作成するシ
ステムに適用したものである。
FIG. 2 shows a block diagram of an embodiment of the device of the present invention. The present embodiment is applied to a system for creating a new pattern using data obtained by vectorizing and compressing the contour of a full dot character pattern.

同図において、圧縮データ生成部3は例えば本出願人が
先に特願昭60−48895号(特開昭61−208184号)(発明
の名称「パターン情報量圧縮方式」)にて提案した方法
が用いられ、フルドットの既存パターンの輪郭がベクト
ル化される。本発明装置では、上記方法によってフルド
ットパターンから圧縮データが得られる際にフルドット
パターンの閉ループ数又はオイラー数が算出されるよう
にしておく。
In the figure, the compressed data generation unit 3 is, for example, the method previously proposed by the present applicant in Japanese Patent Application No. 60-48895 (Japanese Patent Application Laid-Open No. 61-208184) (invention title "pattern information amount compression method"). Is used to vectorize the contour of the existing full dot pattern. In the device of the present invention, when the compressed data is obtained from the full dot pattern by the above method, the closed loop number or Euler number of the full dot pattern is calculated.

閉ループ数は輪郭追跡を行うことによって算出でき、
又、オイラー数は公知の技術である2×2のマイクを用
いることにより算出できる。例えば第3図(A)に示す
i軸及びy軸にて構成される画像に対して同図(B)に
示す2×2のマイク (n1〜n5)を走査させ、 E=(n1+n2+n3+n4)−(n5) なる式によって連結数(n1+n2+n3+n4) とホール数(n5)との差からオイラー数Eが算出され
る。
The number of closed loops can be calculated by performing contour tracking,
The Euler number can be calculated by using a 2 × 2 microphone, which is a known technique. For example, an image composed of i-axis and y-axis shown in FIG. 3 (A) is scanned by a 2 × 2 microphone (n 1 to n 5 ) shown in FIG. 3 (B), and E = (n The Euler number E is calculated from the difference between the number of connections (n 1 + n 2 + n 3 + n 4 ) and the number of holes (n 5 ) by the formula 1 + n 2 + n 3 + n 4 ) − (n 5 ).

圧縮データ生成部3にてベクトル化されたデータは線形
変換部4に供給され、ここで屈曲点の座標値変換によっ
て縮少或いは拡大等線形変換が行なわれ、次に、輪郭復
元部5にて屈曲点と屈曲点とがDDA(デジタル・ディフ
ァレンシャル・アナライザ)等によって連結されること
によって連隠復元され、輪郭復元されたデータは塗潰し
部6に供給される。塗潰し部6は例えば本出願人が先に
特願昭60−48896号(特開昭61−208172号)(発明の名
称「多角形内部領域塗潰方式」)にて提案した方式が用
いられ、多角形の輪郭線上に多角形の内部と外部とが変
化することを示す判別点を定義してこの点を基に多角形
の内部が塗潰される。
The data vectorized by the compressed data generation unit 3 is supplied to the linear conversion unit 4, where linear conversion such as reduction or expansion is performed by the coordinate value conversion of the bending point, and then the contour restoration unit 5 performs the conversion. The bending points and the bending points are connected by a DDA (Digital Differential Analyzer) or the like to successively conceal and restore, and the contour restored data is supplied to the painting section 6. For the filling section 6, for example, the method previously proposed by the present applicant in Japanese Patent Application No. 60-48896 (Japanese Patent Application Laid-Open No. 61-208172) (invention name "polygonal internal area filling method") is used. , A discrimination point indicating that the inside and the outside of the polygon change is defined on the outline of the polygon, and the inside of the polygon is filled based on this point.

次に、閉ループ数又はオイラー数算出部7にて前記方法
によって生成パターンの閉ループ数又はオイラー数が算
出される。続いて閉ループ数又はオイラー数比較部8に
おいて既存パターンの閉ループ数又はオイラー数と生成
パターンの閉ループ数又はオイラー数とが比較され、両
者が一致した時は潰れが無い(修正不必要な)生成パタ
ーンとして判定される一方、両者が不一致の時は潰れが
有る(修正必要な)生成パターンとして判定される。
Next, the closed loop number or Euler number calculation unit 7 calculates the closed loop number or Euler number of the generated pattern by the above method. Subsequently, the closed loop number or Euler number comparison unit 8 compares the closed loop number or Euler number of the existing pattern with the closed loop number or Euler number of the generated pattern, and when both match, there is no collapse (correction unnecessary) generated pattern. On the other hand, when the two do not match, it is determined as a generation pattern that is crushed (needs to be corrected).

上記潰れが有ると判定された生成パターンのみが表示部
9に供給されてここに表示又はプリントアウトされ、操
作者はこれを視て潰れ部分を修正する。
Only the generated pattern that is determined to have the above-described collapse is supplied to the display unit 9 and displayed or printed out here, and the operator views this and corrects the collapsed portion.

第4図は既存パターン及び線形変換によって潰れを生じ
た生成パターンの図を示す。同図(A)は104ドット×1
04ドットで、閉ループ数12、オイラー数2であるのに対
し、同図(B)は40ドット×40ドットで、閉ループ数1
9、オイラー数−13である。線形変換前(同図(A))
の既存パターンの閉ループ数又はオイラー数と、線形変
換後(同図(B))の生成パターンの閉ループ数又はオ
イラー数とが比較され、潰れ有無が判定される。
FIG. 4 shows a diagram of an existing pattern and a generated pattern which has been collapsed by linear conversion. The figure (A) is 104 dots x 1
The number of closed loops is 04 and the number of closed loops is 2, and the number of Euler is 2, while the figure (B) is 40 dots x 40 dots and the number of closed loops is 1.
9, Euler number -13. Before linear conversion (Fig. (A))
The number of closed loops or Euler's number of the existing pattern is compared with the number of closed loops or Euler's number of the generated pattern after the linear conversion ((B) in the same figure) to determine the presence or absence of the collapse.

なお、上記実施例では閉ループ数又はオイラー数のいず
れかを算出する構成であるが、本発明はこれに限定され
るものではなく、閉ループ数及びオイラー数の双方を夫
々算出して線形変換の前後におけるこれらを夫々比較す
るように構成してもよい。
Although the above embodiment is configured to calculate either the closed loop number or the Euler number, the present invention is not limited to this, and the closed loop number and the Euler number are both calculated before and after the linear conversion. It may be configured to compare these in each.

〔発明の効果〕〔The invention's effect〕

本発明によれば、生成パターンの潰れの有無を自動的に
検出し得、表示部に表示される生成パターンをその都度
視て判定していた従来装置に比して判定能率がよく、修
正の必要なパターンのみを取出して効率よくパターン作
成を行ない得、少ない工数で済む等の特長を有する。
According to the present invention, it is possible to automatically detect the presence / absence of a collapse of a generated pattern, and the determination efficiency is better than that of a conventional device that determines the generated pattern displayed on the display unit each time, and the correction can be performed. It has features such that only necessary patterns can be taken out and patterns can be efficiently created, and a small number of steps are required.

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

第1図は本発明装置原理ブロック図、 第2図は本発明装置の一実施例のブロック図、 第3図は画像及びオイラー数算出に用いるマスクの図、 第4図は既存パターン及び潰れを生じた生成パターンの
図、 第5図は従来装置のブロック図である。 図において、 3は圧縮データ生成部、 4は線形変換部、 7は閉ループ数又はオイラー数算出部、 8は閉ループ数又はオイラー数比較部、 10は既存パターン閉ループ数又は(及び)オイラー数算
出手段、 11は線形変換手段、 12は生成パターン閉ループ数又(及び)オイラー数算出
手段、 13は閉ループ数又は(及び)オイラー数比較手段であ
る。
FIG. 1 is a block diagram of the principle of the device of the present invention, FIG. 2 is a block diagram of an embodiment of the device of the present invention, FIG. 3 is a diagram of a mask used for image and Euler number calculation, and FIG. FIG. 5 is a block diagram of a conventional device, which shows the generated pattern. In the figure, 3 is a compressed data generation unit, 4 is a linear conversion unit, 7 is a closed loop number or Euler number calculation unit, 8 is a closed loop number or Euler number comparison unit, and 10 is an existing pattern closed loop number or (and) Euler number calculation means. , 11 is a linear conversion means, 12 is a generation pattern closed loop number or (and) Euler number calculation means, and 13 is a closed loop number or (and) Euler number comparison means.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】線形変換を行なう前の文字,図形パターン
の閉ループ数又は(及び)オイラー数、及び該線形変換
を行なった後の上記文字,図形パターンの閉ループ数又
は(及び)オイラー数を夫々算出する手段(10,12)
と、 上記線形変換を行なう前の閉ループ数又は(及び)オイ
ラー数と上記線形変換を行なった後の閉ループ数又は
(及び)オイラー数とを比較し、 その比較結果によって上記線形変換による文字,図形パ
ターンの潰れの有無を判定する手段(13)とを有してな
ることを特徴とするパターン評価装置。
1. The number of characters before the linear conversion, the number of closed loops or (and) Euler of the figure pattern, and the number of closed loops of the characters or figure pattern after the linear conversion or (and) the number of Euler, respectively. Means of calculating (10,12)
And the number of closed loops or (and) Euler numbers before performing the above linear conversion and the number of closed loops or (and) Euler numbers after performing the above linear conversion, and the result of the comparison compares the character or figure A pattern evaluation apparatus comprising: a means (13) for determining the presence or absence of pattern collapse.
JP61304448A 1986-12-20 1986-12-20 Pattern evaluation device Expired - Lifetime JPH0677190B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP61304448A JPH0677190B2 (en) 1986-12-20 1986-12-20 Pattern evaluation device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61304448A JPH0677190B2 (en) 1986-12-20 1986-12-20 Pattern evaluation device

Publications (2)

Publication Number Publication Date
JPS63157280A JPS63157280A (en) 1988-06-30
JPH0677190B2 true JPH0677190B2 (en) 1994-09-28

Family

ID=17933130

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61304448A Expired - Lifetime JPH0677190B2 (en) 1986-12-20 1986-12-20 Pattern evaluation device

Country Status (1)

Country Link
JP (1) JPH0677190B2 (en)

Also Published As

Publication number Publication date
JPS63157280A (en) 1988-06-30

Similar Documents

Publication Publication Date Title
JP3238580B2 (en) Thicker text generator
US4853885A (en) Method of compressing character or pictorial image data using curve approximation
JPH0677190B2 (en) Pattern evaluation device
EP0471849B1 (en) Method of generating dot signal corresponding to character pattern and device therefor
JP2726951B2 (en) Character / graphic drawing device
JP3039015B2 (en) Character processor
JP3536894B2 (en) Graphic processing unit
JP2904994B2 (en) Coordinate connection display method
JPH07262385A (en) Outline data generator
JP2941322B2 (en) Drawing processing equipment
JPH10198334A (en) Device and method for processing character
JPH0387794A (en) Character font generation system
JP3072756B2 (en) Drawing equipment
JP2000182056A (en) Picture processor
JP2740506B2 (en) Image recognition method
JP3035141B2 (en) Character creation device and character creation method
JP2854588B2 (en) Raster vector conversion method and line figure input device
JPH05334431A (en) Function approximating device for dot shape data
JPS63198168A (en) Device for representing linear graphic by polygonal line
JPS62211691A (en) Character synthesization system
JPS62212167A (en) Synthesized character forming system
JPH09146523A (en) Character generating device
JPH02134686A (en) Character pattern magnification device
JPH0812547B2 (en) Pattern reduction / enlargement processing device
JPH09128467A (en) Building wind generation area estimation system