JPS59189469A - Vector generating system of line picture - Google Patents

Vector generating system of line picture

Info

Publication number
JPS59189469A
JPS59189469A JP6396583A JP6396583A JPS59189469A JP S59189469 A JPS59189469 A JP S59189469A JP 6396583 A JP6396583 A JP 6396583A JP 6396583 A JP6396583 A JP 6396583A JP S59189469 A JPS59189469 A JP S59189469A
Authority
JP
Japan
Prior art keywords
segment
run
vector
line
section
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
JP6396583A
Other languages
Japanese (ja)
Other versions
JPH0423303B2 (en
Inventor
Hiroaki Harada
裕明 原田
Mitsuo Ishii
石井 光雄
Masashige Yamamoto
山本 正成
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 JP6396583A priority Critical patent/JPS59189469A/en
Publication of JPS59189469A publication Critical patent/JPS59189469A/en
Publication of JPH0423303B2 publication Critical patent/JPH0423303B2/ja
Granted legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/20Drawing from basic elements, e.g. lines or circles

Abstract

PURPOSE:To obtain quickly a data made into a vectorial form and to facilitate coding of picture data and pattern recognition by generating vector in the highest-order segment out of registered segments from the coordinate relation of the lowest order segment. CONSTITUTION:A drawing 11 is photoelectrically converted by a photoelectrical conversion section 12 and binary coded by a binary coding device 13. The binary coded data is stored in buffer memories 18, 112. A run detecting section 110 detects run from the binary coded data, and a matching section 114 detects the number of runs of preceding line exists in the section corresponding to the run of detected line. A segment judging section examines to which segment a run is connected from the number of runs, and at the same time, stores the run with a segment table 115, segment length, inclination and line width, and registers whether the run exists in the segment or not. A vector generating section 118 generates vector from coordinate relation of the highest-order and the lowest- order segments out of registered segments.

Description

【発明の詳細な説明】 (1)発明の技術分野 本発明は入力画像の2次元的情報をセグメントテーブル
の形で圧縮し、走査線方向の情報はラン(画素の連なり
)の形でバッファメモリに記録しておき、走査線間の相
関は該ラン情報とセグメントテーブルを対照とすること
により取り、ベクトル(折線近似パターン)の座標値を
、ベクトル発生条件を満足した時点で速やかに出力する
方式に関する。
Detailed Description of the Invention (1) Technical Field of the Invention The present invention compresses two-dimensional information of an input image in the form of a segment table, and stores information in the scanning line direction in a buffer memory in the form of a run (a series of pixels). A method in which the correlation between scanning lines is determined by comparing the run information with the segment table, and the coordinate values of the vector (broken line approximation pattern) are immediately output when the vector generation conditions are satisfied. Regarding.

(2)従来技術と問題点 従来9画像処理機器は書類や図面を単に光電変換し、2
値化処理(濃淡を白、黒の2値に変換する。)のみを施
すものであり、2値化されたデータの記憶容量が大きく
なることとパターン処理等に容易に利用できない欠点が
あった。
(2) Prior art and problems Conventional nine image processing devices simply photoelectrically convert documents and drawings,
It only performs digitization processing (converting shading into binary values of white and black), and has the disadvantage that the storage capacity of the digitized data becomes large and that it cannot be easily used for pattern processing, etc. .

(3)発明の目的 本発明は前記欠点を解消して、線図形を光電変換し、更
に2値化処理した後、速やかにヘクトル化(折線近似化
)されたデータを得ることにより。
(3) Purpose of the Invention The present invention solves the above-mentioned drawbacks by photoelectrically converting line figures, further binarizing them, and then quickly obtaining hectorized (broken line approximation) data.

画像データの符号化、パターン認識処理の容易化を図る
ことを目的とする。
The purpose is to facilitate image data encoding and pattern recognition processing.

(4)発明の構成 該目的は線画像を光電変換し、2値化器により0(白)
又は1 (黒)に2値化するシステムにおいて、該2値
化したデータを格納するバッファメモリと、該2値化デ
ータからラン(1の連続)を検出するラン検出手段と、
該検出された行のランに相当する区間ムこ前行のランが
何個あるかを計数するマツチング手段と、該ラン個数か
らあるランがどのセグメント(ランの集合体)に結合し
ているかを調べるとともにセグメントテーブル2セグメ
ント長さ、傾き2線幅とともに当該ランを格納した後、
該ランが当該セグメントに含まれるがどうか判定し登録
するセグメント判定手段と、該登録されたセグメントの
中の最上位セグメントと最下位セグメントの座標関係か
らベクトルを発生させるベクトル発生手段から構成され
ることを特徴とする線画像のヘクトル発生方式により達
成される。
(4) Structure of the invention The purpose is to photoelectrically convert a line image and convert it to 0 (white) using a binarizer.
or a system that binarizes to 1 (black), a buffer memory that stores the binarized data, a run detection means that detects a run (a series of 1's) from the binarized data;
A matching means for counting how many runs are in the previous row in the interval corresponding to the run in the detected row, and determining which segment (collection of runs) a certain run is connected to from the number of runs. After checking and storing the run along with the segment table 2 segment length and slope 2 line width,
The segment determination means determines whether the run is included in the segment and registers it, and the vector generation means generates a vector from the coordinate relationship between the highest segment and the lowest segment among the registered segments. This is achieved by a line image hector generation method characterized by:

(5)発明の実施例 以下図面を参照しつつ本発明の詳細な説明する。(5) Examples of the invention The present invention will be described in detail below with reference to the drawings.

第1図は本発明の一実施例を示す全体ブロック図である
FIG. 1 is an overall block diagram showing one embodiment of the present invention.

図において、11は図面、12は光電変換部。In the figure, 11 is a drawing, and 12 is a photoelectric conversion unit.

13は2値化器、14は行カウンタ、15は列カウンタ
、16はデータバス、17はスイッチ、18はバッファ
メモリA、19はメモリアクセス部1 (メモリリード
ライト)、110はラン検出部。
13 is a binarizer, 14 is a row counter, 15 is a column counter, 16 is a data bus, 17 is a switch, 18 is a buffer memory A, 19 is a memory access section 1 (memory read/write), and 110 is a run detection section.

111はメモリアクセス部4,112はバッファメモリ
B、113はメモリアクセス2,114はマツチング部
、115ばセグメントテーブル、116はメモリアクセ
ス3,117はセグメント判定部、118はベクトル発
生部、119は外部メモリである。
111 is a memory access unit 4, 112 is a buffer memory B, 113 is a memory access unit 2, 114 is a matching unit, 115 is a segment table, 116 is a memory access unit 3, 117 is a segment determination unit, 118 is a vector generation unit, and 119 is an external unit. It's memory.

第2図は本発明の一実施例を示すラン検出の詳24は黒
部、25は前行のバッファ、26は処理行のバッファで
ある。
FIG. 2 shows details of run detection according to an embodiment of the present invention. 24 is a black part, 25 is a buffer for the previous line, and 26 is a buffer for a processed line.

第3図は本発明の一実施例を示すセグメントテーブルの
詳細を示す図である。 図において、31ばセグメント
NO,,32はセグメント開始点座標。
FIG. 3 is a diagram showing details of a segment table showing an embodiment of the present invention. In the figure, 31 indicates the segment number, and 32 indicates the segment start point coordinates.

33はセグメント長さ、34は1頃き、35は線幅であ
る。
33 is the segment length, 34 is 1 inch, and 35 is the line width.

まず図面11を光電変換部12で左から右へ。First, the drawing 11 is viewed from left to right using the photoelectric conversion unit 12.

上から下へと、横方向1ラインづつテレビ式走査を行な
い、2値化器13でO(白)と1 (黒)に2値化して
行カウンタ114を使ってバッファメモリA18.八ソ
ファメモリB112に1行づつ連続して格納する。該バ
ッファメモリは整数値が扱えるために1画素あたりnビ
ットもっている。
Television-style scanning is performed horizontally one line at a time from top to bottom, and binarized into O (white) and 1 (black) by the binarizer 13, and then stored in the buffer memory A18 using the line counter 114. The data is continuously stored one row at a time in the eight sofa memory B112. The buffer memory has n bits per pixel because it can handle integer values.

バッファの幅およびピント数nは扱う画像により変える
ことができる。
The width of the buffer and the number of focuses n can be changed depending on the image being handled.

次に、該バッファメモリA18.B112に格納された
2値データをメモリアクセス部19,113で読出すと
ともにラン検出部110にて1 (黒)の部分の1つの
連続をラン(RUN)として検出する。即ちバッファメ
モリに格納された2値データを一方向から検出し、0値
の部分から0より大きい値となる箇所(ランの始まり)
、その逆の箇所(ランの終り)を記録する。マツチング
部114は、該ラン同志の結合を關べるものであるが、
第2の様に前行のバッファ25と処理行のバッファ26
のランを調べる。つまり、始まり、終了の座標が+  
x/+  xλなるランの場合、XZ〜1)のランがあ
るか調べる。区間(x7.x、))にそのようなランが
い(つあるか数えてる。0個の場合には前行に結合した
ランがなく、処理行バッファ26ではじめてランが出現
したことを示す。
Next, the buffer memory A18. The binary data stored in B112 is read out by the memory access units 19 and 113, and the run detection unit 110 detects one series of 1 (black) portions as a run (RUN). In other words, the binary data stored in the buffer memory is detected from one direction, and from the 0 value part to the part where the value is greater than 0 (start of run)
, record the opposite point (end of run). The matching unit 114 is concerned with the combination of the runs,
As shown in the second example, the buffer 25 for the previous line and the buffer 26 for the processed line
Check out the orchid. In other words, the start and end coordinates are +
In the case of a run x/+xλ, check whether there is a run XZ~1). It is counted whether there is such a run in the interval (x7.

K(1!1t(K>O)の場合にはに本のラン(セグメ
ント又は線)が1つのラインに集まってきたことを4示
す。1つのランについて以上の処理が終了したら2次の
セグメント判定部によりランの結合状態のチェックから
、今処理中のランが、どのセグメント(ランの集合体)
に結合しているか判る。ここでセグメントとはランの集
合体であり、ある−定の傾きの線片に相当する。本説明
では、前行バッファ25を走査した時にわかる値、l、
(J21はセのシンと次のランとの平均傾きを示す領き
34と第1行目のランと次行のラン座標差である線幅3
5を持ったセグメントテーブル115を作成する。
In the case of K(1!1t(K>O), it indicates that the book runs (segments or lines) have gathered into one line. When the above processing is completed for one run, the second segment The judgment unit checks the run combination status and determines which segment (collection of runs) the run currently being processed is.
Check whether it is connected to Here, a segment is a collection of runs, and corresponds to a line segment with a certain slope. In this explanation, the values l, which can be found when scanning the previous row buffer 25,
(J21 is the area 34 indicating the average slope between the first line and the next run, and the line width 3 which is the run coordinate difference between the first line and the next line.
A segment table 115 with 5 is created.

つづいて次のランについても同様にセグメントテーブル
115に書込む。セグメントテーブル11ΔXに対して
X、、X2=が大きくはずれたり、線幅が極端に違った
りした場合には同じセグメントに含めない、■他方△X
に対してX7.X力が余りずれず、線幅が略同じ場合は
含めると判定する。
Subsequently, the next run is written in the segment table 115 in the same manner. Segment table 11 If X, , X2= is significantly different from ΔX, or the line width is extremely different, do not include it in the same segment.■ Other ΔX
For X7. If the X force does not deviate much and the line widths are approximately the same, it is determined to be included.

込む。他方同じセグメントに含まないと判定したトチ−
プル115に登録する。次にベクトル発生部118は1
行分のランが全てセグメントとしてセグメントテーブル
115に登録された後1次の条件を満たす場合7セグメ
ントをベクトル化する。
It's crowded. The other side that was determined not to be included in the same segment
Register on Pull 115. Next, the vector generator 118
After all the runs of the rows are registered as segments in the segment table 115, if the first-order condition is satisfied, the seven segments are vectorized.

曲に相当する。) ■′上セグメント下にランがない場合(線の途切に相当
する。) セグメントのベクトル化はセグメントテーブル115の
開始点座標x、y、傾きΔX、長さmから (Xf、Yf)−(X、)’): fはfromの略。
corresponds to a song. ) ■' If there is no run below the upper segment (corresponds to a break in the line), the segment is vectorized from the starting point coordinates x, y, slope ΔX, and length m in the segment table 115 (Xf, Yf) - (X,)'): f is an abbreviation for from.

(X  t、  Y  t)  ←−(x  +m  
・ △x、   y+m):tはtoの略 としてベクトル((Xf、Yf)→0(t、yt)〕を
計算する。
(X t, Y t) ←−(x +m
- Δx, y+m): Calculate the vector ((Xf, Yf)→0(t, yt)), where t is an abbreviation for to.

1行分の以上の処理が終了した後、前行骨バッファ25
に処理中のバ、ソファを移し、処理中バッファには次の
行の2値データを入れて同様手順でベクトルを発生させ
る。
After completing the above processing for one line, the anterior bone buffer 25
The buffer being processed and the sofa are moved to the buffer being processed, the binary data of the next row is put into the buffer being processed, and a vector is generated in the same manner.

(6)発明の詳細 な説明したように1本発明によれば、2値化されたデー
タを速やかにベクトル化(折線近似化)できパターン認
識処理の容易化が図れる。
(6) Detailed Description of the Invention As described above, according to the present invention, binarized data can be quickly vectorized (broken line approximation) and pattern recognition processing can be facilitated.

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

第1図は本発明の一実施例を示す全体ブロック図である
。 第2図は本発明の一実施例を示すラン検出の詳細を示す
図である。 第3図は本発明の一実施例を示すセグメントテーブルの
詳細を示す図である。 記号の説明、11は図面512は光電変換部。 13は2値化器、14ば行カウンタ、15は列カウンタ
、16はデータバス、17はスイッチ、18はバッファ
メモリA、19はメモリアクセス部1 (メモリリード
ライト)、110はラン検出部。 111はメモリアクセス部4,112はバッファメモリ
B、113はメモリアクセス2,114はマツチング部
、115はセグメントテーブル、116はメモリアクセ
ス3,117はセグメント判定部、118はベクトル発
生部、119は外部メモリ。 芹 20 扉3 図
FIG. 1 is an overall block diagram showing one embodiment of the present invention. FIG. 2 is a diagram showing details of run detection according to an embodiment of the present invention. FIG. 3 is a diagram showing details of a segment table showing an embodiment of the present invention. Explanation of symbols: 11 is a drawing 512 is a photoelectric conversion unit. 13 is a binarizer, 14 is a row counter, 15 is a column counter, 16 is a data bus, 17 is a switch, 18 is a buffer memory A, 19 is a memory access section 1 (memory read/write), and 110 is a run detection section. 111 is a memory access unit 4, 112 is a buffer memory B, 113 is a memory access unit 2, 114 is a matching unit, 115 is a segment table, 116 is a memory access unit 3, 117 is a segment determination unit, 118 is a vector generation unit, and 119 is an external unit. memory. Seri 20 Door 3 Figure

Claims (1)

【特許請求の範囲】 線画像を光電変換し、2値化器によりO(白)又は1 
(黒)に2値化するシステムにおいて、該2値化したデ
ータを格納するバッファメモリと。 該2値化データからラン(1の連続)を検出するラン検
出手段と、該検出された行のランに相当する区間に前行
のランが何個あるかを計数するマツチング手段と、該ラ
ンの個数からあるランがどのセグメント(ランの集合体
)に結合しているかを羽べるとともにセグメントテーブ
ルに、セグメント長さ、傾き、線幅とともに当該ランを
格納した後、該ランが当該セグメントに含まれるかどう
か判定し登録するセグメント判定手段と、該登録された
セグメントの中の最上位セグメントと最下位セグメント
の座標関係からベクトルを発生させるベクトル発生手段
から構成されることを特徴とする線画像のベクトル発生
方式。
[Claims] The line image is photoelectrically converted and converted into O (white) or 1 by a binarizer.
In a system that binarizes into (black) data, a buffer memory stores the binarized data. a run detecting means for detecting a run (a series of 1's) from the binarized data; a matching means for counting the number of runs in the previous row in an interval corresponding to the run in the detected row; After determining which segment (collection of runs) a run is connected to based on the number of numbers, and storing the run along with the segment length, slope, and line width in the segment table, the run is connected to the segment. A line image characterized by comprising a segment determining means for determining whether the segment is included and registering it, and a vector generating means for generating a vector from the coordinate relationship between the highest segment and the lowest segment among the registered segments. vector generation method.
JP6396583A 1983-04-12 1983-04-12 Vector generating system of line picture Granted JPS59189469A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6396583A JPS59189469A (en) 1983-04-12 1983-04-12 Vector generating system of line picture

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6396583A JPS59189469A (en) 1983-04-12 1983-04-12 Vector generating system of line picture

Publications (2)

Publication Number Publication Date
JPS59189469A true JPS59189469A (en) 1984-10-27
JPH0423303B2 JPH0423303B2 (en) 1992-04-21

Family

ID=13244514

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6396583A Granted JPS59189469A (en) 1983-04-12 1983-04-12 Vector generating system of line picture

Country Status (1)

Country Link
JP (1) JPS59189469A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6169264A (en) * 1984-06-25 1986-04-09 テクトロニツクス・インコ−ポレイテツド Image encoding device
JPS63261478A (en) * 1987-02-19 1988-10-28 新日本製鐵株式会社 Apparatus and method for simplifying run length data of image scan
US7432610B2 (en) 2001-07-31 2008-10-07 Aloys Wobben Wind power installation with ring generator having a stator with groves to receive a stator winding

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5394724A (en) * 1976-12-20 1978-08-19 Ibm Device for vectoring raster scanning data
JPS5837773A (en) * 1981-08-28 1983-03-05 Fuji Electric Co Ltd Processor for plural patterns

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5394724A (en) * 1976-12-20 1978-08-19 Ibm Device for vectoring raster scanning data
JPS5837773A (en) * 1981-08-28 1983-03-05 Fuji Electric Co Ltd Processor for plural patterns

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6169264A (en) * 1984-06-25 1986-04-09 テクトロニツクス・インコ−ポレイテツド Image encoding device
JPH0436627B2 (en) * 1984-06-25 1992-06-16 Tektronix Inc
JPS63261478A (en) * 1987-02-19 1988-10-28 新日本製鐵株式会社 Apparatus and method for simplifying run length data of image scan
US7432610B2 (en) 2001-07-31 2008-10-07 Aloys Wobben Wind power installation with ring generator having a stator with groves to receive a stator winding
US7436097B2 (en) 2001-07-31 2008-10-14 Aloys Wobben Synchronous machine having a stator with grooves to receive a stator winding, such as a synchronous machine for a wind power installation
US7478777B2 (en) 2001-07-31 2009-01-20 Aloys Wobben Apparatus for producing a stator with grooves to receive a stator winding, such as a stator of a ring generator for a wind power installation

Also Published As

Publication number Publication date
JPH0423303B2 (en) 1992-04-21

Similar Documents

Publication Publication Date Title
FI79202B (en) BILDBEHANDLARE.
JPH0823890B2 (en) Method and apparatus for automatically verifying signature
JPS63261486A (en) Writing style identifying device
JP2670273B2 (en) Image processing device
JPS59189469A (en) Vector generating system of line picture
JPH03126181A (en) Area dividing method for document image
JPS6141029B2 (en)
JPH0750496B2 (en) Image signal processor
JP2548386B2 (en) License plate usage code recognition method
JP3378108B2 (en) Binary image output device
JP2590099B2 (en) Character reading method
JP2722434B2 (en) Optical character reader
JP3022856B1 (en) License plate position extraction method
JP2548385B2 (en) License plate code recognition method
JP3850488B2 (en) Character extractor
JP2674286B2 (en) Feature extraction method
JPH1091717A (en) Bar code recognizing device
JPS61133776A (en) Image data compression device
JP2826229B2 (en) Barcode label scanning position detection method
JPH02125383A (en) Image signal processor
JPS61160180A (en) Discriminating device of character string direction
JPH1040356A (en) Image reader
JP2000003441A (en) Method and device for processing fingerprint image
JPH0469785A (en) Optical information reader
JPH0223488A (en) Picture signal processor