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
JPH0325827B2 - - Google Patents
[go: Go Back, main page]

JPH0325827B2 - - Google Patents

Info

Publication number
JPH0325827B2
JPH0325827B2 JP60048895A JP4889585A JPH0325827B2 JP H0325827 B2 JPH0325827 B2 JP H0325827B2 JP 60048895 A JP60048895 A JP 60048895A JP 4889585 A JP4889585 A JP 4889585A JP H0325827 B2 JPH0325827 B2 JP H0325827B2
Authority
JP
Japan
Prior art keywords
point
straight line
contour
pattern
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.)
Expired - Lifetime
Application number
JP60048895A
Other languages
Japanese (ja)
Other versions
JPS61208184A (en
Inventor
Katsuhiko Nishikawa
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 JP60048895A priority Critical patent/JPS61208184A/en
Publication of JPS61208184A publication Critical patent/JPS61208184A/en
Publication of JPH0325827B2 publication Critical patent/JPH0325827B2/ja
Granted legal-status Critical Current

Links

Landscapes

  • Image Processing (AREA)
  • Image Generation (AREA)
  • Image Analysis (AREA)

Description

【発明の詳細な説明】 〔目次〕 概 要 産業上の利用分野 従来の技術 発明が解決しようとする問題点 問題点を解決するための手段(第1図) 作 用 実施例 (a) 本発明の一実施例構成(第2図〜第5図) (b) 本発明の動作(第2図〜第7図) 発明の効果 〔概要〕 本発明はパターン情報を圧縮するために、パタ
ーンの輪郭線を追跡して原パターンの輪郭データ
を得ておき、そこから屈曲点を抽出するときに輪
郭線上のある2点に対し、この点の間にある輪郭
線と、その点の間に発生した直線が一致する時、
その点を屈曲点として検出し、パターンの輪郭線
をこのパターンの複数の屈曲点により表現したも
のである。
[Detailed Description of the Invention] [Table of Contents] Overview Industrial Field of Application Conventional Technology Problems to be Solved by the Invention Means for Solving the Problems (Fig. 1) Working Examples (a) The present invention Configuration of one embodiment (FIGS. 2 to 5) (b) Operation of the present invention (FIGS. 2 to 7) Effects of the invention [Summary] Trace the line to obtain the contour data of the original pattern, and when extracting the bending point from there, for two points on the contour line, the contour line between these points and the curve that occurs between those points. When the straight lines match,
This point is detected as a bending point, and the outline of the pattern is expressed by a plurality of bending points of this pattern.

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

本発明は、例えば文字形の如きパターン情報を
圧縮して保持するパターン情報圧縮方式に係り、
特に原パターンを完全に忠実に復元できる圧縮デ
ータを生成するとともに圧縮量も大きく、しかも
原パターンを拡大・縮小し易くできるパターンの
情報量圧縮方式である。
The present invention relates to a pattern information compression method for compressing and retaining pattern information such as character shapes,
In particular, it is a pattern information compression method that generates compressed data that can completely faithfully restore the original pattern, has a large amount of compression, and can easily enlarge or reduce the original pattern.

文字や図形のパターン情報をオリジナルな状態
でメモリに保持することは情報量が大きく、従つ
て大容量のメモリが必要となるので好ましくな
い。従つてこれを圧縮して保持することが行なわ
れている。
It is not preferable to retain pattern information of characters and figures in the original state in memory because the amount of information is large and therefore a large capacity memory is required. Therefore, this is compressed and held.

〔従来の技術〕[Conventional technology]

従来のパターン情報を圧縮する方式としてはラ
ンレングス法やチエインコード法等がある。ラン
レングス法はメモリの走査方向における黒レベル
または白レベルの連続長によりパターン情報を表
わすものである。またチエインコード法は3×3
のマスクを利用し、そのマスクの中心点が連続す
る位置をその周辺の8つの点の位置により示すも
のである。
Conventional methods for compressing pattern information include a run-length method and a chain code method. The run-length method represents pattern information by the continuous length of black or white levels in the memory scanning direction. Also, the chain code method is 3×3
A mask is used, and the consecutive positions of the center point of the mask are indicated by the positions of eight points around it.

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

ところでランレングス法はパターンの復元時に
これを拡大・縮小または回転等の変換が行いにく
く、またチエインコード法でもパターンの復元時
に拡大・縮小等の変換がむづかしく回転もややむ
づかしい。そしていずれの方法でも情報の圧縮量
が十分でないという欠点がある。
By the way, in the run-length method, it is difficult to perform conversions such as enlargement, reduction, rotation, etc. when restoring a pattern, and in the chain code method, it is difficult to perform conversions such as enlargement, reduction, etc., and rotation is also somewhat difficult when restoring a pattern. Both methods have the disadvantage that the amount of information compressed is not sufficient.

本発明はこのような問題点を解決するため、パ
ターンの復元時に拡大・縮小や回転等が容易で、
しかも情報の圧縮量が大きいパターン情報量圧縮
方式を提供することを目的とする。
In order to solve these problems, the present invention makes it easy to enlarge, reduce, rotate, etc. when restoring a pattern.
Moreover, it is an object of the present invention to provide a pattern information amount compression method that allows a large amount of information to be compressed.

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

前記目的を解決するため、本発明では、第1図
aに示す如く、パターンの輪郭情報Pi(i=1〜
12)を求め、例えばパターンP12をスタート点と
し終点をP1と定める。(ここでまずP12(スタート
点)を屈曲点として抽出する)このスタート点は
適宜決定できる。そして終点P1とスタート点P12
の直線点列112(P1、P12)を求め、次に終点
のパターンP1から左廻り方向に、つまりスター
ト点方向にこの輪郭情報を追跡して追跡輪郭座標
列(P1、P2、P3…P12)を得る。この場合直線点
112≠座標列(P1、P2…P12)であるので
今度はP1の次のパターンP2とスタート点P12の直
線点列212(P2、P1、P12)を求め、次にパ
ターンP2から左廻り方向つまり終点とは逆方向
に輪郭情報を追跡した追跡輪郭座標列(P2、P3
…P12)を得、これと前記直線点列212とを比
較するがこの場合も一致しないので、次にパター
ンP3から同様の処理を行う、このようにパター
ンP3、P4、P5、P6…P8について同様にそれぞれ
スタート点と直線点列と追跡輪郭座標列とを比較
するがいずれも一致しない。なおパターンP5
P8ではそれぞれのパターンとスタート点P12との
直線点列は輪郭パターンから外れたものとなる。
In order to solve the above object, in the present invention, as shown in FIG. 1a, pattern contour information Pi (i=1 to
12), and for example, set pattern P 12 as the starting point and end point as P 1 . (First, P 12 (starting point) is extracted as the bending point) This starting point can be determined as appropriate. And end point P 1 and start point P 12
Find the straight line point sequence 1 , 12 (P 1 , P 12 ), then trace this contour information counterclockwise from the end point pattern P 1 , that is, in the direction of the start point, to obtain the traced contour coordinate sequence (P 1 , P 12 ). P 2 , P 3 ...P 12 ) are obtained. In this case, the straight line point sequence 1 , 12 ≠ coordinate sequence (P 1 , P 2 ... P 12 ), so this time, the next pattern P 2 of P 1 and the straight line point sequence 2 , 12 (P 2 , P 1 , P 12 ), and then traced contour coordinates (P 2 , P 3
...P 12 ) is obtained and compared with the straight line point sequences 2 and 12 , but since they do not match in this case, the same process is performed from pattern P 3. In this way, patterns P 3 , P 4 , For P 5 , P 6 . . . P 8 , the start point, straight line point sequence, and traced contour coordinate sequence are compared in the same way, but none of them match. In addition, pattern P 5 ~
At P8 , the straight line point sequence between each pattern and the starting point P12 deviates from the contour pattern.

しかしパターンP9では直線点列912(P9
P10、P11、P12)と、追跡輪郭座標列(P9、P10
P11、P12)とは一致するので、このパターンP9
屈曲点として検出される。
However, in pattern P 9 , the straight line point sequence 9 , 12 (P 9 ,
P 10 , P 11 , P 12 ) and the tracking contour coordinate sequence (P 9 , P 10 ,
P 11 , P 12 ), this pattern P 9 is detected as the bending point.

次に、第1図cに示す如く、屈曲点として検出
されたP9をスタート点として同様の処理を行え
ば、今度はパターンP6が屈曲点として検出され
る。そしてパターンP6をスタート点として同様
な処理を行えばパターンP3が屈曲点として検出
される。ここで直線点列31 2と右廻りの追
跡輪郭座標列(P3、P2、P1、P12)が一致するの
で抽出処理を終了する。
Next, as shown in FIG. 1c, if similar processing is performed using P9 detected as a bending point as a starting point, pattern P6 will be detected as a bending point this time. Then, if similar processing is performed using pattern P6 as a starting point, pattern P3 will be detected as a bending point. Here, the straight line point sequences 3 and 12 match the clockwise tracking contour coordinate sequence (P 3 , P 2 , P 1 , P 12 ) , so the extraction process is terminated.

これにより屈折点(P12、P9、P6、P3、)が得
られるので、パターン輪郭を表現することができ
る。
Since the refraction points (P 12 , P 9 , P 6 , P 3 ,) are thereby obtained, the pattern outline can be expressed.

〔作用〕[Effect]

輪郭情報を複数の屈折点情報によりもつことが
できるので、パターンの拡大・縮小、圧縮が非常
に容易になるのみならず、その情報量を大幅に圧
縮することができる。
Since the contour information can be provided by a plurality of pieces of refraction point information, it is not only very easy to enlarge/reduce and compress the pattern, but also the amount of information can be significantly compressed.

〔実施例〕〔Example〕

本発明の一実施例を第2図〜第7図にもとづき
説明する。
An embodiment of the present invention will be described based on FIGS. 2 to 7.

(a) 本発明の一実施例構成 第2図は本発明の一実施例構成図、第3図は
その直線発生部の動作説明図、第4図は直線発
生部の動作フロー、第5図は屈曲点生成状態説
明図、第6図は屈曲点生成の動作フロー、第7
図は屈曲点の抽出例である。
(a) Configuration of an embodiment of the present invention Fig. 2 is a configuration diagram of an embodiment of the present invention, Fig. 3 is an explanatory diagram of the operation of the straight line generation section, Fig. 4 is the operation flow of the straight line generation section, and Fig. 5 is an explanatory diagram of the bending point generation state, Fig. 6 is the operation flow of bending point generation, and Fig. 7 is an explanatory diagram of the bending point generation state.
The figure is an example of extraction of bending points.

第2図において、1はパターン保持部、2は
追跡部、3は直線発生部、4は輪郭線切出部、
5は比較部、6は屈曲点生成部、7は圧縮デー
タ保持部である。
In FIG. 2, 1 is a pattern holding section, 2 is a tracking section, 3 is a straight line generation section, 4 is a contour cutting section,
5 is a comparison section, 6 is a bending point generation section, and 7 is a compressed data storage section.

パターン保持部1はTVカメラのCCDの如き
適宜入力手段から伝達された、例えば文字のオ
リジナル・パターンを記憶保持するものであ
る。
The pattern holding section 1 stores and holds, for example, an original pattern of characters transmitted from an appropriate input means such as a CCD of a TV camera.

追跡部2はパターンの輪郭部分を追跡して輪
郭線上の座標列点を得るものである。このた
め、例えばパターンを3×3のウインドウで走
査してパターンの輪郭線上の一点を捉え、そこ
から輪郭線を8方向に追跡可能にしてこれを追
跡し、輪郭上の点の座標列を得る。輪郭線の始
点をS、終点をEとすれば、例えば第5図aに
おいて白丸で示す如き輪郭線を得ることにな
る。なお第5図aにおける*印は輪郭線内部の
パターンである。
The tracing section 2 traces the outline of the pattern to obtain coordinate string points on the outline. To do this, for example, a pattern is scanned in a 3x3 window to capture a point on the outline of the pattern, and from there, the outline can be traced in 8 directions and this is traced to obtain the coordinate string of the points on the outline. . If the starting point of the contour line is S and the end point is E, the contour line will be obtained, for example, as shown by the white circle in FIG. 5a. Note that the * mark in FIG. 5a is a pattern inside the contour line.

直線発生部3は与えられた2点間に直線を発
生する手段であつて、周知のものが使用でき
る。一例としてDDA(Digital Differential
Analyzer:デイジタル微分解析機)を使用す
る例について、第3図および第4図により説明
する。第3図に示す如く、P1(X1、Y1)とP2
(X2、Y2)間に直線を引くとき、第1ステツプ
として、始点を(X1、Y1)にプロツトし、こ
の直線の角度をφとするとき、係数G1=cosφ、
係数G2=sinφを求め、スタート点(X、Y)
の座標をX=X1、Y=Y1にセツトする。そし
て初期値としてX座標レジスタR1、Y座標レ
ジスタR2に次のデータを記入する。
The straight line generating section 3 is a means for generating a straight line between two given points, and any known type can be used. An example is DDA (Digital Differential).
An example of using a digital differential analyzer (analyzer) will be explained with reference to FIGS. 3 and 4. As shown in Figure 3, P 1 (X 1 , Y 1 ) and P 2
When drawing a straight line between (X 2 , Y 2 ), the first step is to plot the starting point at (X 1 , Y 1 ), and if the angle of this straight line is φ, then the coefficient G 1 =cosφ,
Find the coefficient G 2 = sinφ and find the starting point (X, Y)
Set the coordinates of X=X 1 and Y=Y 1 . Then, the following data is written into the X coordinate register R 1 and Y coordinate register R 2 as initial values.

R1=X1+0.5 ………(1) R2=Y1+0.5 ………(2) 第2ステツプとしてX座標レジスタR1の値
に前記cosφを加え、Y座標レジスタR2の値に
前記sinφを加える。これは、第3図においてス
タート点P1よりP2の方に単位長1だけ直線を
引いたときのX座標およびY座標を示す。とこ
ろでメモリにセツトされるデータは通常整数単
位であるので、前記加算後の値の整数部分I1
I2だけを取り出す。なお第4図の第2ステツプ
でint(R1)はレジスタR1より整数部分のみを
取り出すことを示し、int(R2)はレジスタR2
より整数部分のみを取出すことを示す。ここで
intは、小数点以下を切り捨てる関数を示す。
R 1 = _ _ _ Add the above sinφ to the value of . This shows the X and Y coordinates when a straight line is drawn by unit length 1 from the starting point P 1 toward P 2 in FIG. By the way, since the data set in memory is usually in integer units, the integer part I 1 of the value after the addition is
Take out only I 2 . Note that in the second step of FIG. 4, int(R 1 ) indicates that only the integer part is extracted from register R 1 , and int(R 2 ) indicates that only the integer part is extracted from register R 2 .
Indicates that only the integer part is extracted. here
int indicates a function that truncates the number below the decimal point.

第3ステツプとして、前記第2ステツプで得
た整数I1が第1ステツプX1と異なるか、または
整数I2が第1ステツプのY1と異なるときにはX
=I1、Y=I2としてこれらを(X、Y)にプロ
ツトする。このようなことをX=X2、Y=Y2
になるまで繰返す。このようにして、第3図に
〇印で示す如きP1、P2の間の直線のデータが
得られる。
As a third step, if the integer I 1 obtained in the second step is different from the first step X 1 or the integer I 2 is different from Y 1 in the first step,
= I 1 and Y = I 2 and plot them on (X, Y). In this way, X=X 2 , Y=Y 2
Repeat until. In this way, data of a straight line between P 1 and P 2 as shown by the circle in FIG. 3 is obtained.

輪郭線切出部4は輪郭線を適宜切出してその
間の座標を出力するものである。
The contour line cutting section 4 cuts out the contour lines as appropriate and outputs the coordinates therebetween.

比較部5は、直線発生部3により発生した直
線と、輪郭線切出部4の切出した輪郭線が等し
いか否かを比較するものである。
The comparing section 5 compares the straight line generated by the straight line generating section 3 and the contour line cut out by the contour line cutting section 4 to see if they are equal.

屈曲線生成部6は後述する終了条件チエツク
信号を発生し屈曲点生成処理をさらに続けるか
否かを判断するものである。
The bending line generation section 6 generates a termination condition check signal, which will be described later, to determine whether or not to continue the bending point generation process.

圧縮データ保持部7は輪郭線における屈曲点
を保持するものである。
The compressed data holding unit 7 holds bending points in the contour line.

(b) 本発明の動作 本発明は2点間の直線の発生、輪郭線か
らの屈曲点抽出という2つの技術を主にしてい
る。
(b) Operation of the present invention The present invention mainly uses two techniques: generating a straight line between two points and extracting a bending point from a contour line.

イ このうちについては、前記(a)の直線発生
部3について第3図、第4図にもとづき説明
したので省略し、についてまず説明し、そ
の後に全体の動作について説明する。
(a) These are omitted because they have been explained with reference to FIGS. 3 and 4 for the straight line generating section 3 in (a), but will be explained first, and then the overall operation will be explained.

の輪郭線から屈曲点抽出は次の第1ステ
ツプ〜第5ステツプの手順によりパターンの
輪郭線から屈曲点を抽出する。
The bending points are extracted from the contour of the pattern by the following steps 1 to 5.

第1ステツプでは、例えば第5図aに示す
如く、パターンの輪郭線上の一点を提え、そ
こから輪郭線を8連結で追跡し、白丸印で示
す如き輪郭上の点の座標列を得る。輪郭線の
始点をS、終点をEとする。
In the first step, for example, as shown in FIG. 5A, a point on the outline of the pattern is set, and from there the outline is traced in 8-connection to obtain a coordinate string of points on the outline as shown by white circles. Let S be the starting point of the contour line, and E be the ending point.

第2ステツプではまず始点SをP1とし、
このP1を無条件に屈曲点として抽出する。
In the second step, the starting point S is set to P 1 ,
This P 1 is unconditionally extracted as an inflection point.

第3ステツプでは点Pを終点Eから始点S
に向かつて輪郭線上を移動させながら点Pと
Sとの間にの方法で直線発生部3により直
線を発生し、その区間の輪郭線を輪郭線切出
部4で求め、比較部5によりこの直線と輪郭
線との差を求める。例えば、点Pが第5図b
に示す星印の位置にあるときこの星印と始点
S(X印)間の直線を求めると、(星印、◎、
◎、◎、X印)の如き直線が得られ、また輪
郭線として星印から左廻り方向にX印までの
輪郭線が得られるが、この両者は不一致であ
りその差は零でない。そのため次に点Pは星
印位置より1個S側寄りに移動したP′の位置
で同様に直線を発生し、また輪郭線を切出し
て一致状態をチエツクする。このようなこと
を順次P′、P″と始点S方向に移動させて行
う。そして、第5図bのPvで行うとき、そ
のPvから始点Sの直線とその区間の輪郭線
が一致してその差が零になるので、この点
Pvを屈曲点Vとして抽出する。
In the third step, point P is moved from end point E to start point S.
A straight line is generated by the straight line generation section 3 in a manner between points P and S while moving on the contour toward the point, the contour line in that section is obtained by the contour line cutting section 4, and the comparison section 5 calculates this straight line. Find the difference between the straight line and the contour line. For example, point P is
If you find the straight line between this star and the starting point S (X mark) when you are at the position of the star shown in (star mark, ◎,
Straight lines such as ◎, ◎, X marks) are obtained, and a contour line from the star mark to the X mark in the counterclockwise direction is obtained, but these two do not match and the difference is not zero. Therefore, next, a straight line is generated in the same way at the position P', which is moved one point closer to the S side than the position of the star, and the contour line is cut out to check whether it matches. This is done by sequentially moving P' and P'' in the direction of the starting point S. Then, when doing this at Pv in Figure 5b, the straight line from Pv to the starting point S and the outline of that section match. Since the difference becomes zero, this point
Pv is extracted as the bending point V.

第4ステツプでは、屈曲点を全部抽出した
か否かをチエツクするものである。このため
に、前記第3ステツプで得た屈曲点Vと終点
Eを経由して始点Sまでの区間の輪郭線(こ
の例では屈曲点Vから右廻り方向の輪郭線)
と、屈曲点Vと始点Sの直線との差が零か否
かをチエツクする。このチエツクは第2図の
屈曲点生成部6からの指示により、直線発生
部3が直線を発生させ、輪郭線切出部4が輪
郭線を切出し、比較部5がその一致不一致を
チエツクすることにより行われる。この差が
後述するように零ならば屈曲点抽出処理は終
了することになるが、第5図bにおいて、屈
曲点Pvにおける前記チエツクでは不一致で
あるので次の屈曲点を検出するための第5ス
テツプに続く。
In the fourth step, it is checked whether all bending points have been extracted. For this purpose, the outline of the section from the bending point V obtained in the third step to the starting point S via the end point E (in this example, the contour line in the clockwise direction from the bending point V)
Then, it is checked whether the difference between the bending point V and the straight line at the starting point S is zero. This check is performed by having the straight line generating section 3 generate a straight line, the contour cutting section 4 cutting out the contour line, and the comparing section 5 checking whether they match or do not match based on instructions from the bending point generating section 6 shown in FIG. This is done by If this difference is zero, as will be described later, the bending point extraction process ends, but in FIG. Follow the steps.

第5ステツプでは、終点Eから左廻りにス
タートさせて、第3ステツプと同様に屈曲点
Vへの直線と、屈曲点Vまでの輪郭線の一致
する点を検出し、これにより次の屈曲点V1
が検出できる。そして前記第4ステツプの終
了条件をチエツクするが、V1でも終了条件
が満足されないので今度はEをスタート点
(始点Sとするのではない)としてV1に対す
る直線および輪郭線を比較する。これにより
次に屈曲点V2が検出できる。ここで終了条
件のチエツクが行われ、終了条件が満されて
いなければEよりこの屈曲点V2までの直線
及び輪郭線を順次比較する。このような処理
を順次行うことにより、第5図dに黒丸で示
す如く各屈曲点を検出する。
In the fifth step, start counterclockwise from the end point E, and similarly to the third step, detect the point where the straight line to the bending point V and the contour line to the bending point V match, and from this, the next bending point is detected. V 1
can be detected. Then, the end condition of the fourth step is checked, but since the end condition is not satisfied even at V1 , this time the straight line and contour line for V1 are compared using E as the starting point (not the starting point S). This allows the next bending point V2 to be detected. Here, the termination condition is checked, and if the termination condition is not met, the straight line and contour line from E to this bending point V2 are sequentially compared. By sequentially performing such processing, each bending point is detected as shown by the black circle in FIG. 5d.

第6図は前記屈曲点検出のための一般的な
動作を説明するフローチヤートである。ここ
では追跡した輪郭線の座標点列を{P1、P2
…Pn}とし、輪郭線上のi番目の点Piとj
番目の点Pjとの間に前記手法((a)の直線発
生部3における説明)で発生した点列{N1
N2…NL}と{Pi…Pj}とを比較して、両者
が等しい時はyes、等しくないときはnoを返
す処理SAME(i、j)が定義されているも
のとする。
FIG. 6 is a flowchart illustrating the general operation for detecting the bending point. Here, the coordinate point sequence of the traced contour is {P 1 , P 2
...Pn}, and the i-th point Pi and j on the contour line
The point sequence {N 1 ,
Assume that a process SAME (i, j) is defined that compares N2 ...NL} and {Pi...Pj} and returns yes if they are equal, and no if they are not equal.

ロ 次に本発明の全体動作を第2図により説明
する。
(b) Next, the overall operation of the present invention will be explained with reference to FIG.

図示省略したTVカメラの如き画像入力
部より入力された文字パターンが保持部1
に保持される。このパターンは追跡部2に
よりその輪郭部分が追跡され、第5図aに
白丸で示す如き輪郭線上の座標列点が得ら
れる。このとき得られた輪郭線の始点を
S、終点をEとする。これらのデータは直
線発生部3及び輪郭線切出部4にて保持さ
れる。
A character pattern input from an image input unit such as a TV camera (not shown) is stored in the holding unit 1.
is maintained. The contour portion of this pattern is traced by the tracing section 2, and coordinate string points on the contour line as shown by white circles in FIG. 5a are obtained. The starting point of the contour obtained at this time is S, and the ending point is E. These data are held in the straight line generating section 3 and the contour cutting section 4.

まず屈曲点生成部6は無条件に始点Sを
屈曲点として抽出する。
First, the bending point generation unit 6 unconditionally extracts the starting point S as a bending point.

終点Eと始点S間の直線を直線発生部3
により発生させ、その直線の座標を比較部
3に送出する。また輪郭線切出部4は終点
Eから左廻りで始点Sまでの輪郭線の座標
(E、P1、P2…S)を比較部3に送出す
る。比較部3はこの直線と輪郭線座標を比
較して不一致のとき不一致信号を屈曲点生
成部6に出力する。屈曲点生成部6はこれ
により終点Eの次の輪郭線上の点P1(始点
Sとは反対側の点)に対して同様の処理を
行うように直線発生部3と輪郭発生部4に
指令する。これにより直線発生部3はP1
とS間の直線を発生させ、また輪郭発生部
4は(P1、P2…S)を送出し比較部5で
比較が行われる。このときも不一致なの
で、次に点P2とSの直線及び輪郭線の比
較を行う。このようなことが順次行われ、
点Pvにおいて比較部5から一致信号が出
力される。
The straight line between the end point E and the start point S is the straight line generator 3
and sends the coordinates of the straight line to the comparing section 3. Further, the contour line cutting section 4 sends the coordinates (E, P 1 , P 2 . . . S) of the contour line from the end point E to the starting point S in a counterclockwise direction to the comparison section 3. The comparator 3 compares the straight line and the contour line coordinates, and outputs a mismatch signal to the bending point generator 6 when they do not match. The bending point generation unit 6 thereby instructs the straight line generation unit 3 and the contour generation unit 4 to perform the same process on the point P 1 on the contour line next to the end point E (the point on the opposite side from the start point S). do. As a result, the straight line generating section 3 becomes P 1
The contour generating section 4 sends out (P 1 , P 2 . . . S), and the comparison section 5 compares them. Since they do not match at this time as well, the straight line and outline of points P2 and S are compared next. These things are done sequentially,
A matching signal is output from the comparing section 5 at point Pv.

これにより屈曲点生成部6は、今度は輪
郭線切出部4に対しPvから右廻りに終点
Eを経由して始点Sまでの輪郭線を出力さ
せ、また直線発生部3にはPvとSとの直
線を出力させ、比較する。比較部5からは
不一致信号が送出されるので、屈曲点生成
部6はその終了条件が満されていないこと
を認識し、今度は前記イの第5ステツプに
関する説明と同様な制御が行われる。この
ようにして各屈曲点が順次検出される。そ
して第5図dに黒丸として示す各屈曲点が
圧縮データ保持部7に保持されることにな
る。
As a result, the bending point generating section 6 in turn causes the contour line cutting section 4 to output a contour line clockwise from Pv to the starting point S via the terminal point E, and also causes the straight line generating section 3 to output the contour line from Pv to the starting point S. Output a straight line with and compare. Since the comparison section 5 sends out a mismatch signal, the inflection point generation section 6 recognizes that the termination condition is not satisfied, and this time performs the same control as described for the fifth step in A above. In this way, each bending point is sequentially detected. Then, each bending point shown as a black circle in FIG. 5d is held in the compressed data holding unit 7.

このようにして、例えば第7図aのパタ
ーン情報を、同bの黒点印の屈曲点の座標
情報により圧縮保持することができる。
In this way, for example, the pattern information in FIG. 7a can be compressed and held using the coordinate information of the bending point indicated by the black dot in FIG. 7b.

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

本発明によれば原パターン情報を屈曲点情報に
より保持するのできわめて圧縮した情報量で保持
することができる。また原パターンとの部分的な
一致不一致を検出して屈曲点を検出するので原パ
ターンを完全に復元できる圧縮データを生成す
る。しかも屈曲点を座標情報としてもつので、拡
大・縮小・回転等の変換を施した各パターンを容
易に発生することができる。そのためいままでフ
ル・ドツトでパターンを記憶していた装置の小型
化のみならずその高性能化にも役立つことにな
る。
According to the present invention, original pattern information is held using bending point information, so that it is possible to hold a highly compressed amount of information. In addition, since a bending point is detected by detecting a partial match or mismatch with the original pattern, compressed data that can completely restore the original pattern is generated. Furthermore, since the bending points are used as coordinate information, each pattern that has been subjected to transformations such as enlargement, reduction, rotation, etc. can be easily generated. Therefore, it will be useful not only for downsizing devices that have until now memorized patterns using full dots, but also for increasing their performance.

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

第1図は本発明の原理説明図、第2図は本発明
の一実施例構成図、第3図は直線発生状態説明
図、第4図は直線発生部の動作フロー、第5図は
屈曲点検出状態説明図、第6図は屈曲点検出動作
フロー、第7図は屈曲点の抽出例を示す。 1……パターン保持部、2……追跡部、3……
直線発生部、4……輪郭線切出部、5……比較
部、6……屈曲点生成部、7……圧縮データ保持
部。
Fig. 1 is an explanatory diagram of the principle of the present invention, Fig. 2 is a configuration diagram of an embodiment of the present invention, Fig. 3 is an explanatory diagram of a straight line generation state, Fig. 4 is an operation flow of the straight line generating section, and Fig. 5 is a bending diagram. An explanatory diagram of a point detection state, FIG. 6 shows a bending point detection operation flow, and FIG. 7 shows an example of extracting a bending point. 1... Pattern holding section, 2... Tracking section, 3...
Straight line generation section, 4... Contour cutting section, 5... Comparison section, 6... Bend point generation section, 7... Compressed data holding section.

Claims (1)

【特許請求の範囲】 1 パターンの輪郭線を折線近似することにより
情報量を圧縮するパターン情報量圧縮方式におい
て、 2点間に直線を発生する直線発生部と、 2点間の輪郭線を出力する輪郭線切出部と、 2点間の直線と、2点間の輪郭線が一致するか
否かを検出する一致検出手段を備え、 パターンの輪郭から抽出される2点間の直線と
その間の輪郭線とが一致するか否かを検出するこ
とにより輪郭線の屈曲点情報を抽出し、該屈曲点
情報で前記輪郭線情報を表現するようにしたこと
を特徴とするパターン情報量圧縮方式。
[Claims] 1. In a pattern information amount compression method that compresses the amount of information by approximating the outline of a pattern with a broken line, the method comprises: a straight line generating section that generates a straight line between two points; and a contour line between the two points. and a matching detection means for detecting whether or not a straight line between two points matches a contour line between two points, and a straight line between two points extracted from the outline of a pattern, A pattern information amount compression method characterized in that information on bending points of the contour is extracted by detecting whether or not the contour lines match, and the contour information is expressed using the bending point information. .
JP60048895A 1985-03-12 1985-03-12 Compression system for pattern information amount Granted JPS61208184A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP60048895A JPS61208184A (en) 1985-03-12 1985-03-12 Compression system for pattern information amount

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP60048895A JPS61208184A (en) 1985-03-12 1985-03-12 Compression system for pattern information amount

Publications (2)

Publication Number Publication Date
JPS61208184A JPS61208184A (en) 1986-09-16
JPH0325827B2 true JPH0325827B2 (en) 1991-04-09

Family

ID=12816002

Family Applications (1)

Application Number Title Priority Date Filing Date
JP60048895A Granted JPS61208184A (en) 1985-03-12 1985-03-12 Compression system for pattern information amount

Country Status (1)

Country Link
JP (1) JPS61208184A (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63241625A (en) * 1987-03-28 1988-10-06 Dainippon Printing Co Ltd Line drawing input device
JPS6476285A (en) * 1987-09-18 1989-03-22 Fujitsu Ltd Picture display controller
JPH0636184B2 (en) * 1988-03-28 1994-05-11 東洋産業株式会社 Image drawing device
JP4991590B2 (en) * 2008-02-14 2012-08-01 キヤノン株式会社 Image processing apparatus, image processing method, image processing program, and storage medium

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5929908B2 (en) * 1975-08-29 1984-07-24 日本電気株式会社 Broken line approximation device for accumulated point sequence data
JPS5947666A (en) * 1982-09-13 1984-03-17 Dainippon Screen Mfg Co Ltd Data compressing method of binary picture

Also Published As

Publication number Publication date
JPS61208184A (en) 1986-09-16

Similar Documents

Publication Publication Date Title
Tsai et al. ATTRIBUTED STRING MATCHING WITH MERGING FOR SHAPE-RECOGNITION
Han et al. Skeleton generation of engineering drawings via contour matching
Hori et al. Raster-to-vector conversion by line fitting based on contours and skeletons
JPH02263277A (en) Line image vectorization method
US4853885A (en) Method of compressing character or pictorial image data using curve approximation
JPH0325827B2 (en)
JPH01161487A (en) Object recognizing method
JPH0338624B2 (en)
JP2512800B2 (en) Linear approximation method of line figure input device
JPS61169974A (en) Graphic input device
JP2683026B2 (en) Line figure vectorization device
JP2885476B2 (en) Image processing method and apparatus
JPH02264373A (en) Shape recognition device
JPS6269370A (en) Compression system for pattern information
JPS63198168A (en) Device for representing linear graphic by polygonal line
JPH04579A (en) Method for extracting feature point of graphic
JP2935331B2 (en) Figure recognition device
JPH0362269A (en) Method and device for approximating line image
JPH03142693A (en) On-line character recognition method
JPH0883319A (en) Pattern recognizing device
JPS61105685A (en) Coding method of character tracing
JPH04112385A (en) Vector approximation system
JPS62236077A (en) Graphic input device
JPS63292374A (en) Method for vectorization of image
JPS61195477A (en) Method for processing free curve line picture data of picture reader

Legal Events

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