JPS6063688A - Graphic processor - Google Patents

Graphic processor

Info

Publication number
JPS6063688A
JPS6063688A JP17079583A JP17079583A JPS6063688A JP S6063688 A JPS6063688 A JP S6063688A JP 17079583 A JP17079583 A JP 17079583A JP 17079583 A JP17079583 A JP 17079583A JP S6063688 A JPS6063688 A JP S6063688A
Authority
JP
Japan
Prior art keywords
memory
address
storage means
written
data
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
JP17079583A
Other languages
Japanese (ja)
Other versions
JPH0148589B2 (en
Inventor
Shuichi Endo
秀一 遠藤
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 JP17079583A priority Critical patent/JPS6063688A/en
Publication of JPS6063688A publication Critical patent/JPS6063688A/en
Publication of JPH0148589B2 publication Critical patent/JPH0148589B2/ja
Granted legal-status Critical Current

Links

Abstract

PURPOSE:To easily extract features from graphic information for the various directional components of a graph. CONSTITUTION:For example, when data 0-10 are written in a memory 10, read data 0-7 from the memory 10 are written in the addresses 0-7 of a memory 20 by the 1st scanning of Y=0 and X=0-7. The sums 0, 2, 4, ...14 added with the read data 0-7 from the memory 10 and the read data 0-7 from the memory 20 are written in the addresses 0-7 of the memory by the 2nd scanning of Y=1 and X=0-7. The sums 3, 6, ...21, 8 added with read data 1-8 of the memory 10 and read data 2, 4, ...14, 0 of the memory 20 are written in the addresses 1-8 of the memory 20 by the 3rd scanning of Y=2 and X=0-7.

Description

【発明の詳細な説明】 発明の技術分野 本発明は、図形の特徴抽出、認識などを行なう図形処理
装置に関し、特徴抽出の高速化を図ろうとするものであ
る。
DETAILED DESCRIPTION OF THE INVENTION Technical Field of the Invention The present invention relates to a graphic processing device that performs feature extraction and recognition of graphics, and is intended to speed up feature extraction.

従来技術と問題点 図形の特徴抽出、認識などを行なう図形処理装置は、入
力される図形を記憶する大容量記憶装置、この記憶装置
より認識対象矩形領域内の該図形部分を読出して記憶す
る小容量のバッファメモリ、及びバッファメモリより図
形情報を読出して特徴抽出、認識などを行なう図形処理
部より構成されるのが普通である。通常、該バッファメ
モリは、二次元アクセス可能なように、X、Yアドレス
発生器と、書込み読取り可能なRAM (ランダムアク
セスメモリ)からなる。バッファメモリに記憶された図
形は1ビツトずつ読出されて、図形処理部で処理される
Prior Art and Problems A graphics processing device that performs feature extraction and recognition of graphics includes a large-capacity storage device that stores input graphics, and a small storage device that reads out and stores portions of the graphics within a rectangular area to be recognized from this storage device. It is usually composed of a large-capacity buffer memory and a graphic processing section that reads graphic information from the buffer memory and performs feature extraction, recognition, etc. Typically, the buffer memory consists of an X, Y address generator and a readable and writable RAM (Random Access Memory) for two-dimensional access. The graphics stored in the buffer memory are read out bit by bit and processed by the graphics processing section.

図形処理部の特徴抽出回路は各種の特徴量を計数し、認
識回路はその結果により図形の認識を行なう。−例とし
て三角形の一辺を認識する場合を説明するに、前記認識
対象矩形領域内の図形部分を記憶するバッファメモリに
は第1図に示すように三角形が書かれているとする。こ
\で斜線を付したメモリセルはデータ“1” (黒)を
記憶し、残りの斜線を付さないメモリセルはデータ″0
゛(白)を記憶し、“1” (黒)が三角形の辺を表わ
すとする。三角形の一辺はX軸に45°の線とし、黒枠
BF内に該−辺があるか否かをチェ・ツクするには、黒
枠領域内でX軸に45°の方向に連続する黒ドツトの数
がある闇値を越でいるか否かをチェックすればよく、こ
のX軸に45“の方向に連続する黒ドツトの数が特徴量
となる。
The feature extraction circuit of the graphic processing section counts various feature amounts, and the recognition circuit recognizes the graphic based on the results. - To explain the case of recognizing one side of a triangle as an example, assume that a triangle is written as shown in FIG. 1 in the buffer memory that stores the graphic part within the rectangular area to be recognized. The memory cells with diagonal lines here store data “1” (black), and the remaining memory cells without diagonal lines store data “0”.
Assume that ゛ (white) is memorized and ``1'' (black) represents the side of a triangle. One side of the triangle is a line at 45° to the It is sufficient to check whether the number exceeds a certain darkness value, and the number of consecutive black dots in the 45" direction on the X axis becomes the feature quantity.

しかしメモリは一般に横方向あるいは縦方向にアクセス
するのは容易であるが、斜め方向のアクセスは容易では
ない。即ちアドレス発生用にX。
However, while it is generally easy to access memory in the horizontal or vertical direction, it is not easy to access the memory in the diagonal direction. That is, X for address generation.

Yカウンタを設けておくと、Xカウンタを順次+1し、
1ライン(X方向のメモリセル)アクセスし終った所で
Yカウンタを+ILXカウンクを再び最初から順次+1
し、かへる1桑作を繰り返して行けば横方向アクセス(
テレビスキャン型のアクセス)ができ、カウンタのX、
Yを入れ換えて同様操作をすれば縦方向アクセス(90
°回転させたテレビスキャン型アクセス)ができるが、
斜め方向アクセスはX、Yカウンタを同時に所定量増減
させなげればならないから簡単ではない。そこで従来方
法では、X軸に45°の方向でメモリアクセスが困難な
ため、前記特徴量ではなく、別の特Wi量で代用してい
た。しかし三角形などで、特徴量を斜め方向線分に選ぶ
のは極めて自然である。
If a Y counter is provided, the X counter will be incremented by 1 in sequence,
After accessing one line (memory cell in the X direction), increase the Y counter + ILX count by 1 again from the beginning.
Then, if you repeat Kaheru 1 mulberry production, you can access the horizontal direction (
TV scan type access), X on the counter,
If you switch Y and perform the same operation, you can access vertically (90
° rotated TV scan type access), but
Diagonal access is not easy because it requires the X and Y counters to be increased or decreased by a predetermined amount at the same time. Therefore, in the conventional method, since it is difficult to access the memory in the direction of 45 degrees to the X axis, another special Wi amount is used instead of the feature amount. However, for triangles and the like, it is quite natural to select diagonal line segments as the feature.

発明の目的 それ数本発明は、図形情報より容易に該図形の種々の方
向成分に対する特徴抽出が可能な図形処理装置を提供し
ようとするものである。
OBJECTS OF THE INVENTION An object of the present invention is to provide a graphic processing device that can easily extract features for various directional components of a graphic based on graphic information.

発明の構成 本発明の図形処理装置は、図形情報を水平方向アドレス
、垂直方向アドレスの二次元アドレスに従って記1.a
する書き込み読み出し可能な第1の記憶手段、水平アド
レス発生器、垂直゛アドレス発生器、前記水平方向アド
レス、垂直方向アドレス及び定数を入力とする関数発生
器、この関数発生器の出力によりアドレスされ、各エン
トリに特徴量を記憶する読み書き可能な第2の記憶手段
、前記第1の記憶手段より読み出されたデータ及び第2
の記憶手段より読み出された特徴量により特徴抽出演算
を行ない結果を第2の記憶手段に書き込む特徴抽出演算
回路により構成されることを特徴とするが、次に実施例
を参照しながらこれを説明する。
1. Structure of the Invention The graphic processing apparatus of the present invention records graphic information according to two-dimensional addresses of horizontal and vertical addresses. a
a horizontal address generator, a vertical address generator, a function generator whose inputs are the horizontal address, the vertical address and a constant; addressed by the output of the function generator; a readable and writable second storage means for storing feature amounts in each entry, data read from the first storage means and a second
The present invention is characterized in that it is constituted by a feature extraction calculation circuit that performs a feature extraction calculation using the feature quantity read out from the storage means and writes the result into the second storage means. explain.

発明の実施例 第2図は本発明の実施例を示し、10はメモリ(前述の
バッファメモリ相当のもの)で図形データが書き込まれ
、またそれを読出される。WDI&よその書込みデータ
、RDIは読出しデータである。
Embodiment of the Invention FIG. 2 shows an embodiment of the invention, in which reference numeral 10 denotes a memory (equivalent to the buffer memory described above) in which graphic data is written and read out. WDI & other write data, RDI is read data.

メモリ10をアクセスするアドレスはXアドレス発生器
12およびYアドレス発生器14が発生する。X7ドレ
スはメモリのビ・ノドまたはコラムアドレス、Yアドレ
スはワードまたはローアドレスである。X、Xアドレス
発生器12.14はカウンタであって、メモIJ 10
が第1図に示すようGこ8×8メモリセルのものであれ
ばXアドレス発生器12は逐次+1して0〜7を繰り返
し発生し、Yアドレス発生器14はXアドレス発生器1
2のオーバフローパルスを計数し、同様にθ〜7を計数
する。これによりメモリ10はテレビスキャン型にアク
セスされ、Yアドレス発生器14が最大値本例では7に
達し、この状態でXアドレス発生器12が最大値本例で
は7に達したら1回の前面スキャンが終了する。従って
書込みはX、Yアドレス発生器が共に最大値になったと
き停止すればよく、そして読出しも同様である。16は
関数発生器で、Xアドレス、Yアドレス、及び定数Kを
入力し、これらを変、定数とする関数の値を発生ずる。
Addresses for accessing memory 10 are generated by an X address generator 12 and a Y address generator 14. The X7 address is the bit or column address of the memory, and the Y address is the word or row address. X, X address generator 12.14 is a counter, memo IJ 10
As shown in FIG. 1, if G is for an 8×8 memory cell, the
2 overflow pulses are counted, and θ~7 are similarly counted. As a result, the memory 10 is accessed in a television scan type, and when the Y address generator 14 reaches the maximum value, 7 in this example, and in this state, the X address generator 12 reaches the maximum value, 7 in this example, one front scan is performed. ends. Therefore, writing only needs to stop when both the X and Y address generators reach their maximum values, and the same goes for reading. Reference numeral 16 denotes a function generator which inputs an X address, a Y address, and a constant K, and generates a function value by varying these and using the constant.

この関数の値は第2のメモリ20のアドレスとなり、従
って該関数値と丸め処理本例では端数切播てを行なわれ
る。
The value of this function becomes the address of the second memory 20, and is therefore rounded off in this example.

第1メモ1月0は二次元メモリであるが、第2メモリ2
0は一次元メモリである。第3図はこれらのメモリを示
し、二次元メモI710の記憶内容ば0.1.2.・・
・・・・9.10で示している。
The first memo January 0 is a two-dimensional memory, but the second memory 2
0 is one-dimensional memory. FIG. 3 shows these memories, and the memory contents of the two-dimensional memo I710 are 0.1.2.・・・
...It is shown in 9.10.

また第2図で22は特徴抽出演算回路でメモリ20の読
出し書込み機能も備え、メモリ10から読出されたデー
タRDIをメモリ20の関数発生器16が出力するアド
レスに書込むが、その際該メモリ20のアドレスに書込
まれているデータRD2を読出し、該データRD2を用
いて読出しデータRD1に対し所定の特徴抽出演算を行
ない、その結果W D 2をメモリ20の該アドレスに
書込む。特徴抽出演算は本例では加算、即ちRD1+R
D2である。
In FIG. 2, reference numeral 22 denotes a feature extraction arithmetic circuit which also has a read/write function for the memory 20, and writes the data RDI read from the memory 10 to the address output by the function generator 16 of the memory 20. The data RD2 written at the address of memory 20 is read out, a predetermined feature extraction operation is performed on the read data RD1 using the data RD2, and the result W D 2 is written to the address of the memory 20. In this example, the feature extraction operation is addition, that is, RD1+R.
It is D2.

動作を説明するに、関数発生器16が(2X+Y)/2
を発生するとする。これはに=2としてそれをXの係数
とした場合である。X、 Yは前述のように変化し、1
回目のスキャンではy= o。
To explain the operation, the function generator 16 generates (2X+Y)/2
Suppose that occurs. This is the case when 2=2 and it is used as the coefficient of X. X, Y change as mentioned above, 1
In the second scan, y=o.

X−0〜7であるから関数発生器16の出力はO〜7.
2回目のスキャンではY=1.X=O〜7であるから関
数発生器16の出力はやはり0〜7(端数切捨であるか
ら)、3回目のスキャンではY=2.X=0〜7である
から関数発生器16の出力は1〜8であり、以下これに
準し、そして最後のスキャンではY=7.X=O〜7で
あるから関数発生器16の出力は3〜10である。従っ
て本例ではメモリ20は0〜10のアドレスを持てばよ
い。メモリ10に図示のようにデータO〜10が書込ま
れているとすると、1回目のスキャンy=o、x−I=
o〜7ではメモリ20のアドレスO〜7にメモリ]Oか
らの読出しデータ0〜7が書込まれる。2回目のスキャ
ンY=1.X=O〜7ではメモリ20のアドレス0〜7
にメモリ10の読出しデータO〜7とメモリ20の読出
しデータ0〜7の和0,2.4. ・・・・・・14が
書込まれる。
Since X-0 to 7, the output of the function generator 16 is O to 7.
In the second scan, Y=1. Since X=O~7, the output of the function generator 16 is still 0~7 (rounded down), and in the third scan, Y=2. Since X=0 to 7, the output of the function generator 16 is 1 to 8, and the following applies, and in the last scan, Y=7. Since X=O~7, the output of the function generator 16 is 3~10. Therefore, in this example, the memory 20 only needs to have addresses from 0 to 10. Assuming that data O to 10 are written in the memory 10 as shown, the first scan y=o, x-I=
At addresses O-7 of the memory 20, data 0-7 read from the memory]O are written to addresses O-7 of the memory 20. Second scan Y=1. For X=O~7, addresses 0~7 of memory 20
The sum of the read data O to 7 of the memory 10 and the read data 0 to 7 of the memory 20 is 0, 2.4 . ...14 is written.

3回目のスキャンY=2.X=0〜7ではメモリ20の
アドレスト8にメモリ10の読出しデータ1〜8とメモ
リ20の読出しデータ2,4.・・・・・・14.0と
の和3,6.・・・・・・21,8が書込まれる。以下
同様である。
Third scan Y=2. When X=0 to 7, the read data 1 to 8 of the memory 10 and the read data 2, 4 .・・・・・・Sum of 14.0 3,6. ...21,8 is written. The same applies below.

このような処理の結果メモリ20のアドレス0゜1.2
.・・・・・にはメモリ10」二に波線でつないだメモ
リセルの記憶データの和が書込まれ、メモリ10を斜め
(X軸に60°)走査し、その走査線上の記す、aデー
タの和をめたことになる。従ってこの走査線上に画像の
線があれば、メモリ20の当該ア1ルスの記憶データは
大である。例えば線11上にのめ画像の綿があれば、メ
モリ20のアドレス7の記憶データが大で、該メモリ2
0の他ができ、図形認識、処理に有効である。
As a result of such processing, the memory 20 address 0°1.2
.. The sum of the stored data of the memory cells connected by the wavy lines is written into the memory 10, and the memory 10 is scanned diagonally (60 degrees on the X axis), and the a data written on the scanning line is written. This means that we have achieved a peace of mind. Therefore, if there is an image line on this scanning line, the data stored in the memory 20 for that pulse is large. For example, if there is a piece of cotton on the line 11, the data stored at address 7 of the memory 20 is large, and the memory 2
It is effective for figure recognition and processing.

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

第1図はバッファメモリの説明図、第2図は本発明の実
施例を示すブロック図、第3図はメモリスキャン態様を
説明する図である。 図面で10は第1の記憶手段、12は水平方向アドレス
発生器、14は垂直方向アドレス発生器、16は関数発
生器、20は第2の記憶手段、22は特徴抽出演算回路
である。 出願人 富士通株式会社 代理人弁理士 青 柳 稔 −菜1図 01234567 第2図 第・3図
FIG. 1 is an explanatory diagram of a buffer memory, FIG. 2 is a block diagram showing an embodiment of the present invention, and FIG. 3 is a diagram explaining a memory scan mode. In the drawing, 10 is a first storage means, 12 is a horizontal address generator, 14 is a vertical address generator, 16 is a function generator, 20 is a second storage means, and 22 is a feature extraction calculation circuit. Applicant Fujitsu Ltd. Representative Patent Attorney Minoru Aoyagi 1 Figure 01234567 Figures 2 and 3

Claims (1)

【特許請求の範囲】[Claims] 図形情報を水平方向アドレス、垂直方向アドレスの二次
元アドレスに従って記憶する書き込み読み出し可能な第
1の記憶手段、水平アドレス発生器、垂直アドレス発生
器、前記水平方向アドレス、垂直方向アドレス及び定数
を人力とする関数発生器、この関数発生器の出力により
アドレスされ、各エントリに特徴量を記憶する読み書き
可能な第2の記憶手段、前記第1の記憶手段より読み出
されたデータ及び第2の記憶手段より読み出された特@
量により特徴抽出演算を行ない結果を第2の記憶手段に
書き込む特徴抽出演算回路により構成される図形処理装
置。
A first readable/writable storage means for storing graphic information according to two-dimensional addresses of a horizontal address and a vertical address; a horizontal address generator; a vertical address generator; a function generator that performs a function generator, a readable and writable second storage means that is addressed by the output of the function generator and stores a feature amount in each entry, data read from the first storage means and a second storage means. Special @ read from
A graphic processing device comprising a feature extraction calculation circuit that performs a feature extraction calculation based on a quantity and writes the result into a second storage means.
JP17079583A 1983-09-16 1983-09-16 Graphic processor Granted JPS6063688A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP17079583A JPS6063688A (en) 1983-09-16 1983-09-16 Graphic processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP17079583A JPS6063688A (en) 1983-09-16 1983-09-16 Graphic processor

Publications (2)

Publication Number Publication Date
JPS6063688A true JPS6063688A (en) 1985-04-12
JPH0148589B2 JPH0148589B2 (en) 1989-10-19

Family

ID=15911492

Family Applications (1)

Application Number Title Priority Date Filing Date
JP17079583A Granted JPS6063688A (en) 1983-09-16 1983-09-16 Graphic processor

Country Status (1)

Country Link
JP (1) JPS6063688A (en)

Also Published As

Publication number Publication date
JPH0148589B2 (en) 1989-10-19

Similar Documents

Publication Publication Date Title
US5319606A (en) Blocked flash write in dynamic RAM devices
CA2145365A1 (en) Method for Accessing Banks of DRAM
US6462747B1 (en) Texture mapping system
KR860001935B1 (en) Dual port type semiconductor memory
JPS6063688A (en) Graphic processor
US5052046A (en) Image processing method and apparatus therefor
JP2903137B2 (en) Nuclear extraction method
JPS58211186A (en) Slit screen display control system
US5539874A (en) Cache memory device for storing image data
CN110059563A (en) A kind of text handling method and device
KR950033862A (en) Interface method and device with RAM
JPS647393Y2 (en)
JPH04153753A (en) Cache memory control system
JPH0195343A (en) Storage
JPS6067990A (en) Picture information processor having density converting function
JP4506256B2 (en) Data storage device, data storage control device, data storage control method, and data storage control program
JP4735008B2 (en) Data storage device, data storage control device, data storage control method, and data storage control program
JP2633251B2 (en) Image memory device
US6559897B2 (en) Method for random access to picture blocks in video pictures
JP3353371B2 (en) Character display device
JPS59219780A (en) Graphic memory access circuit
JPS60577A (en) Processing method of graphic information
CN111696024A (en) FPGA-based infrared image mirroring method and device
JPS59143190A (en) Information processor
AU689633B2 (en) Data representation and access method