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

JPS6136678B2 - - Google Patents

Info

Publication number
JPS6136678B2
JPS6136678B2 JP56201968A JP20196881A JPS6136678B2 JP S6136678 B2 JPS6136678 B2 JP S6136678B2 JP 56201968 A JP56201968 A JP 56201968A JP 20196881 A JP20196881 A JP 20196881A JP S6136678 B2 JPS6136678 B2 JP S6136678B2
Authority
JP
Japan
Prior art keywords
multiplication
vector data
binary
string
multiplication processing
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
Application number
JP56201968A
Other languages
Japanese (ja)
Other versions
JPS58103068A (en
Inventor
Takanao Kamei
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 JP56201968A priority Critical patent/JPS58103068A/en
Publication of JPS58103068A publication Critical patent/JPS58103068A/en
Publication of JPS6136678B2 publication Critical patent/JPS6136678B2/ja
Granted legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F15/00Digital computers in general; Data processing equipment in general
    • G06F15/76Architectures of general purpose stored program computers
    • G06F15/80Architectures of general purpose stored program computers comprising an array of processing units with common control, e.g. single instruction multiple data processors
    • G06F15/8053Vector processors

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Theoretical Computer Science (AREA)
  • Computing Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Complex Calculations (AREA)
  • Character Discrimination (AREA)
  • Image Analysis (AREA)

Description

【発明の詳細な説明】 (1) 発明の技術分野 本発明は、ベクトル・データ乗算処理方式、特
に例えば図形認識装置などにおける例えば照合処
理において用いられる所の重みづけされた多値の
標準パターンと入力図形パターンとのマツチング
をとる場合に相当するベクトル・データの乗算を
効率よくするようにしたベクトル・データ乗算処
理方式に関するものである。
Detailed Description of the Invention (1) Technical Field of the Invention The present invention relates to a vector data multiplication processing method, particularly to a weighted multi-value standard pattern used in, for example, matching processing in, for example, a figure recognition device. The present invention relates to a vector data multiplication processing method that efficiently multiplies vector data corresponding to matching with an input graphic pattern.

(2) 技術の背景と問題点 従来から、例えば印刷文字などの図形認識装置
においては、位置ずれの影響を少なくするため
に、多値の標準パターンを辞書メモリ上に格納し
ておき、入力図形パターン(一般に2値の形で検
出される)との照合をとることが行なわれる。
(2) Background and problems of the technology Conventionally, in figure recognition devices such as printed characters, multi-value standard patterns are stored in a dictionary memory in order to reduce the influence of positional deviation, and input figure Matching with a pattern (generally detected in binary form) is performed.

本発明は上記の如き場合にのみ限られるもので
はないが、上記の如き照合処理において多値のエ
レメントよりなる標準パターンと2種のエレメン
トよりなる入力図形パターンとの各エレメント相
互が乗算される形となる。
Although the present invention is not limited to the above case, in the above matching process, each element of a standard pattern made of multivalued elements and an input graphic pattern made of two types of elements are multiplied by each other. becomes.

このような場合、上記エレメントの個数は一般
に大であり、多値の各エレメントを順次乗算して
いたのでは処理時間が大となる。また上記照合処
理などにおいては明らかに照合のとれないものに
ついてはすべてのエレメントについて乗算を行な
わずに途中で打切つて次の標準パターンとの照合
を開始することが望まれるが、多値のエレメント
を順次乗算してゆく方式の場合には、いわばすべ
てのエレメントについての乗算を行なつてみて初
めて上記照合がとれないことが判る形となつて、
途中で打切ることができない。
In such a case, the number of elements is generally large, and if the multivalued elements are sequentially multiplied, the processing time will be long. In addition, in the above matching process, etc., if a match cannot be clearly achieved, it is desirable to stop midway without performing multiplication for all elements and start matching with the next standard pattern. In the case of a method of sequential multiplication, it becomes clear that the above matching cannot be achieved until all elements are multiplied, so to speak.
Cannot be canceled midway.

(3) 発明の目的と構成 本発明は、上記の点を解決することを目的とし
ており、上記標準パターンの場合などにおいて各
エレメントが例えば3ビツト程度で表現できる点
に着目して上記の点を解決することを目的として
いる。そしてそのため、本発明のベクトル・デー
タ乗算処理方式は、乗数または被乗数のいずれか
一方が多値エレメント列で構成されると共に他方
が2値のエレメント列で構成される形となつて乗
算処理が行なわれるベクトル・データ乗算処理方
式において、上記多値のエレメント列で構成され
る側のベクトル・データについて、重みを異にす
る複数個の2値のエレメント列に分解すると共
に、上記2値のエレメント列で構成される側のベ
クトル・データの各エレメントと上記各重みを異
にする2値のエレメント列における各エレメント
とを2値相互の乗算処理によつて処理する2値相
互乗算回路部と該2値相互乗算回路部からの出力
について重みを与えて加算する加算回路部とをも
うけ、各エレメント毎に2値相互の乗算処理を実
行して多値乗算を行なうことを目的としている。
以下図面を参照しつつ説明する。
(3) Object and structure of the invention The present invention aims to solve the above points, and focuses on the fact that in the case of the standard pattern mentioned above, each element can be expressed with, for example, about 3 bits. It aims to solve the problem. Therefore, in the vector data multiplication processing method of the present invention, either the multiplier or the multiplicand is composed of a multi-value element string, and the other is composed of a binary element string, and multiplication processing is performed. In the vector data multiplication processing method, the vector data composed of the above-mentioned multivalued element string is decomposed into a plurality of binary element strings with different weights, and the above-mentioned binary element string is a binary mutual multiplication circuit unit that processes each element of the vector data on the side consisting of the above and each element in the binary element string having different weights by mutual binary multiplication processing; The purpose of the present invention is to include an addition circuit section that weights and adds outputs from the value mutual multiplication circuit section, and performs multivalue multiplication processing by performing binary mutual multiplication processing for each element.
This will be explained below with reference to the drawings.

(4) 発明の実施例 第1図は本発明による乗算処理の一実施例につ
いて概念的に説明する説明図、第2図は本発明の
一実施例を示す。
(4) Embodiments of the Invention FIG. 1 is an explanatory diagram conceptually explaining an embodiment of multiplication processing according to the present invention, and FIG. 2 shows an embodiment of the present invention.

第1図において、1は入力図形パターンに対応
するベクトル・データ、2は標準パターンに対応
するベクトル・データを示している。そして、図
示の如く、ベクトル・データ2の各エレメントが
多値データであるとする。
In FIG. 1, 1 indicates vector data corresponding to an input graphic pattern, and 2 indicates vector data corresponding to a standard pattern. As shown in the figure, it is assumed that each element of vector data 2 is multivalued data.

このようなテータ1と2とについて各エレメン
ト相互で乗算を行なう場合には、最も単純に考え
れば多値乗算を第1図A図示の場合25回行なうこ
とが必要となる。
When multiplication is performed between each element for such theta 1 and 2, in the simplest case, it is necessary to perform multi-value multiplication 25 times in the case shown in FIG. 1A.

これに対して、本発明の場合には、第1図B図
示の如く、第1図A図示のベクトル・データ2に
ついて、各エレメントを、重み「4」をもつエレ
メント・データ列3,4と重み「2」をもつエレ
メント・データ列3,2と重み「1」をもつエレ
メント・データ列3,1とに分解する。そして、
最初にベクトル・データ1とエレメント・データ
列3,4との各エレメント相互の乗算を行ない、
次いでベクトル・データ1とエレメント・データ
列3,2との各エレメント相互の乗算を行ない、
そしてベクトル・データ1とエレメント・データ
列3,1との各エレメント相互の乗算を行なうよ
うにする。そして重みを異にする乗算結果を加算
する。勿論このとき必要に応じて各エレメント毎
に別々に加算することもできる。
On the other hand, in the case of the present invention, as shown in FIG. 1B, each element of vector data 2 shown in FIG. It is decomposed into element data strings 3, 2 with a weight of "2" and element data strings 3, 1 with a weight of "1". and,
First, each element of vector data 1 and element data strings 3 and 4 is multiplied,
Next, each element of vector data 1 and element data strings 3 and 2 is multiplied,
Then, each element of vector data 1 and element data strings 3 and 1 is multiplied with each other. Then, the multiplication results with different weights are added. Of course, at this time, it is also possible to add separately for each element if necessary.

このようにすることによつて、各エレメント列
は1ビツトのものとなり、2値相互の乗算処理は
単にアンド回路を通過せしめれば足りることから
回路構成が大幅に簡単となる。また、上記照合処
理の場合では、重み「4」をもつエレメント・デ
ータ列3,4について乗算が終了した段階で照合
の度合いを大略知ることができ、乗算打切りなど
の処置をとることが容易となる。更に1回の乗算
処理に8ビツトずつ処理してゆくとすれば、25個
のエレメント・データは各エレメント・データが
1ビツトであるために4回分をもつて処理するこ
とができ、第1図B図示の場合には、 4〔回〕×3=12〔回〕 の乗算処理にて乗算を済ませることが可能とな
る。
By doing this, each element string has 1 bit, and the multiplication process of binary values can be performed simply by passing the bits through an AND circuit, which greatly simplifies the circuit configuration. In addition, in the case of the above matching process, the degree of matching can be roughly known at the stage when the multiplication is completed for the element data strings 3 and 4 with weight "4", and it is easy to take measures such as canceling the multiplication. Become. Furthermore, if we process 8 bits at a time for each multiplication process, the 25 element data can be processed 4 times since each element data is 1 bit, as shown in Figure 1. In the case shown in figure B, it is possible to complete the multiplication in 4 times x 3 = 12 times.

第2図は本発明の一実施例を示している。図中
の符号1,3,4,3,2,3,1は第1図に対
応し4はアンド回路、5はROMであつてアンド
回路4からの1バイト分の出力のうち論理「1」
をもつビツトに対応して重み「4」又は「2」又
は「1」を与えるようにする多値出力発生回路に
対応するもの、6は多値加算回路、7はレジスタ
を表わしている。
FIG. 2 shows an embodiment of the invention. The symbols 1, 3, 4, 3, 2, 3, 1 in the figure correspond to those in FIG. 1, 4 is an AND circuit, and 5 is a ROM. ”
6 represents a multi-value adder circuit, and 7 represents a register.

最初にエレメント・データ列3,4から、例え
ば左上からラスタ状に右下に向う順に、1バイト
分のビツト列「00100001」が抽出されてアンド回
路4に供給される。一方ベクトル・データ1にお
いても同様に1バイト分のビツト列「10101011」
が抽出されてアンド回路4に供給される。
First, a one-byte bit string "00100001" is extracted from the element data strings 3 and 4, for example, in order from the upper left to the lower right in a raster pattern, and is supplied to the AND circuit 4. On the other hand, in vector data 1, the bit string for 1 byte is "10101011".
is extracted and supplied to the AND circuit 4.

これらが各エレメント毎にアンド論理がとられ
て、ビツト列「00100001」となつてROM5に導
びかれる。
These bits are subjected to AND logic for each element, and are led to the ROM 5 as a bit string "00100001".

ROM5は、このとき論理「1」に対して重み
「4」を加え、多値データ列「00400004」を加算
回路6に出力する。最初にはレジスタ7の内容は
零であるために、加算回路6による加算結果は、
値「8」となり、レジスタ7に保持される。以下
同様に3回分の処理がエレメント・データ列3,
4について行なわれる。
At this time, the ROM 5 adds a weight of "4" to the logic "1" and outputs the multi-value data string "00400004" to the addition circuit 6. Initially, the contents of register 7 are zero, so the addition result by adder circuit 6 is
The value becomes "8" and is held in register 7. Similarly, three times of processing is performed for element data string 3,
4 will be carried out.

次いでエレメント・データ列3,2について同
様にROMから重み「2」を加えたデータ列が出
力される。そしてレジスタ7中の対応するエレメ
ントの値と加算されて、レジスタ7にセツトされ
る。エレメント・データ列3,1についても同様
である。そして最終的にレジスタ7上に乗算結果
が得られる形となる。なおレジスタ7の内容は随
時抽出できるようにされ、上述の乗算処理打切り
を行なうべきか否かの判断を行ない得るようにさ
れる。
Next, a data string with a weight of "2" added to the element data strings 3 and 2 is outputted from the ROM in the same manner. Then, it is added to the value of the corresponding element in register 7 and set in register 7. The same applies to element data strings 3 and 1. Finally, the multiplication result is obtained on the register 7. Note that the contents of the register 7 can be extracted at any time, so that it can be determined whether or not to terminate the multiplication process as described above.

なお上記説明において、ベクトル・データの一
方が最初から2値のエレメントをもつものとして
説明した。しかし、本発明はこれに限られるもの
ではなく、多値のエレメント列相互の乗算におい
ても、必要に応じて2値相互の乗算に変換して行
ない得ることは言うまでもない。また、必要に応
じて各エレメント毎に乗算結果を分離して出力す
るようにレジスタ7を用意することも自由であ
る。
In the above description, it is assumed that one of the vector data has binary elements from the beginning. However, the present invention is not limited to this, and it goes without saying that multivalued element arrays can be multiplied together by converting into binary multiplication if necessary. Further, it is also possible to provide the register 7 so as to separate and output the multiplication results for each element as necessary.

(5) 発明の効果 以上説明した如く、本発明によれば、回路構成
が簡単となると共に、演算時間が小となる。そし
て特に上述の照合処理の場合などに用いる際に
は、演算を早期に打切るか否かの判断を行なうこ
とが可能となつて、処理速度を向上することが可
能となる。
(5) Effects of the Invention As explained above, according to the present invention, the circuit configuration is simplified and the calculation time is reduced. Particularly when used in the above-mentioned verification process, it becomes possible to determine whether or not to terminate the calculation at an early stage, thereby making it possible to improve the processing speed.

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

第1図は本発明による乗算処理の一実施例につ
いて概念的に説明する説明図、第2図は本発明の
一実施例を示す。 図中、1,2は夫々ベクトル・データ、3はエ
レメント・データ列、4はアンド回路、5は
ROMで重みを与えるもの、6は加算回路、7は
レジスタを表わす。
FIG. 1 is an explanatory diagram conceptually explaining an embodiment of multiplication processing according to the present invention, and FIG. 2 shows an embodiment of the present invention. In the figure, 1 and 2 are vector data, 3 is an element data string, 4 is an AND circuit, and 5 is
The ROM gives weight, 6 represents an adder circuit, and 7 represents a register.

Claims (1)

【特許請求の範囲】[Claims] 1 乗数または複乗数のいずれか一方が多値のエ
レメント列で構成されると共に他方が2値のエレ
メント列で構成される形となつて乗算処理が行な
われるベクトル・データ乗算処理方式において、
上記多値のエレメント列で構成される側のベクト
ル・データについて、重みを異にする複数個の2
値のエレメント列に分解すると共に、上記2値の
エレメント列で構成される側のベクトル・データ
の各エレメントと上記各重みを異にする2値のエ
レメント列における各エレメントとを2値相互の
乗算処理によつて処理する2値相互乗算処理回路
部と該2値相互乗算回路部からの出力について重
みを与えて加算する加算回路部とをもうけ、各エ
レメント毎に2値相互の乗算処理を実行して多値
乗算を行なうことを特徴とするベクトル・データ
乗算処理方式。
1. In a vector data multiplication processing method in which multiplication processing is performed with either a multiplier or a multiplier made up of a multi-valued element string and the other made up of a binary element string,
Regarding the vector data on the side composed of the above multivalued element string, two or more vector data with different weights are
In addition to decomposing into an element string of values, each element of the vector data on the side composed of the above binary element string and each element in the above binary element string with different weights are multiplied by each other. A binary mutual multiplication processing circuit section that performs processing and an addition circuit section that weights and adds the outputs from the binary mutual multiplication circuit section, and performs binary mutual multiplication processing for each element. A vector data multiplication processing method characterized by performing multi-value multiplication.
JP56201968A 1981-12-15 1981-12-15 Vector data multiplication processing system Granted JPS58103068A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP56201968A JPS58103068A (en) 1981-12-15 1981-12-15 Vector data multiplication processing system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP56201968A JPS58103068A (en) 1981-12-15 1981-12-15 Vector data multiplication processing system

Publications (2)

Publication Number Publication Date
JPS58103068A JPS58103068A (en) 1983-06-18
JPS6136678B2 true JPS6136678B2 (en) 1986-08-19

Family

ID=16449744

Family Applications (1)

Application Number Title Priority Date Filing Date
JP56201968A Granted JPS58103068A (en) 1981-12-15 1981-12-15 Vector data multiplication processing system

Country Status (1)

Country Link
JP (1) JPS58103068A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0664694U (en) * 1993-02-24 1994-09-13 株式会社共栄商会 Ball receiving device for pachinko machines

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0664694U (en) * 1993-02-24 1994-09-13 株式会社共栄商会 Ball receiving device for pachinko machines

Also Published As

Publication number Publication date
JPS58103068A (en) 1983-06-18

Similar Documents

Publication Publication Date Title
Li et al. Highly efficient forward and backward propagation of convolutional neural networks for pixelwise classification
US4153897A (en) Method and device for detecting the similarity between standard and unknown patterns
Perez et al. Learning visual reasoning without strong priors
JP2015210709A (en) Arithmetic processing unit
JPH0334082A (en) Computational network for character recognition
CN110287969A (en) Moore text image binarization system based on graph residual attention network
Kamal et al. A generalized pipeline array
Agranat et al. A CCD based neural network integrated circuit with 64K analog programmable synapses
JPS6136678B2 (en)
Caruso A local selection algorithm for switching function minimization
US4325056A (en) BCD To binary converter
You et al. Network model for invariant object recognition
CN107038451B (en) Network learning method and training method suitable for gray scale picture
JPH08339360A (en) Learning system applying neural network
CN121996525A (en) A Software Defect Prediction Method and System Based on Deep Ensemble Learning
CN106980869B (en) Network learning method and training method suitable for black and white picture
JPH03268183A (en) Pattern matching circuit
US5958001A (en) Output-processing circuit for a neural network and method of using same
JPS5930317B2 (en) pattern
Porter et al. Evolving network architectures with custom computers for multi-spectral feature identification
JPH0318965A (en) Learning system for neural net
Garcia et al. An extended Hamming neural network for non binary pattern recognition
JPS59161783A (en) Pattern matching method
JPH02181863A (en) learning machine
JPS622329B2 (en)