JP2586658B2 - Blur processing circuit - Google Patents

Blur processing circuit

Info

Publication number
JP2586658B2
JP2586658B2 JP1265033A JP26503389A JP2586658B2 JP 2586658 B2 JP2586658 B2 JP 2586658B2 JP 1265033 A JP1265033 A JP 1265033A JP 26503389 A JP26503389 A JP 26503389A JP 2586658 B2 JP2586658 B2 JP 2586658B2
Authority
JP
Japan
Prior art keywords
data
shift
output
sequentially
shift register
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 - Fee Related
Application number
JP1265033A
Other languages
Japanese (ja)
Other versions
JPH03127183A (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.)
NEC Corp
Original Assignee
Nippon Electric Co 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 Nippon Electric Co Ltd filed Critical Nippon Electric Co Ltd
Priority to JP1265033A priority Critical patent/JP2586658B2/en
Publication of JPH03127183A publication Critical patent/JPH03127183A/en
Application granted granted Critical
Publication of JP2586658B2 publication Critical patent/JP2586658B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Image Processing (AREA)

Description

【発明の詳細な説明】 〔産業上の利用分野] 本発明は、例えばキャッシュメモリパタンのボカシを
行うのに好適なボカシ処理回路に関する。
Description: BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a blur processing circuit suitable for blurring a cache memory pattern, for example.

〔従来の技術〕[Conventional technology]

1次元イメージセンサ等の画像読取装置から画像情報
を入力してパターンマッチングの手法で文字の認識を行
うような場合には、厖大なイメージ情報をある程度の量
に減らしてからパターンの比較を行うことが有効であ
る。このような場合に、イメージ情報の量を減少させる
回路としてボカシ処理回路が用いられることがある。通
常の画像からモザイク画像を作成する場合には、所定の
区画ごとにそれぞれを構成する複数の画像情報を1つず
つの画像情報に置き換える操作を行うが、この際にも同
様のボカシ処理回路を利用することができる。
In the case of inputting image information from an image reading device such as a one-dimensional image sensor and performing character recognition by a pattern matching method, reduce the enormous amount of image information to a certain amount before comparing patterns. Is valid. In such a case, a blur processing circuit may be used as a circuit for reducing the amount of image information. When a mosaic image is created from a normal image, an operation of replacing a plurality of pieces of image information constituting each of the predetermined sections with one piece of image information is performed. In this case, a similar blur processing circuit is also used. Can be used.

従来、このようなボカシ処理を行う場合には、イメー
ジ情報に対してソフト的にマスクパターンを設定し、ボ
カシ処理を行うようになっていた。
Conventionally, when such a blurring process is performed, a mask pattern is set softly on image information, and the blurring process is performed.

第3図を用いてこれを説明する。この第3図はある範
囲のイメージ情報(図ではx方向20画素、y方向8画
素)を表わしたものである。このようなイメージ情報に
ついてx方向およびy方向についてそれぞれ5画素ずつ
の5×5のマスク71を設け、この合成25画素について所
定の重み付けを行ってこれを1画素にボカシ処理を行う
ものとする。
This will be described with reference to FIG. FIG. 3 shows a range of image information (20 pixels in the x direction and 8 pixels in the y direction in the figure). For such image information, a 5 × 5 mask 71 of 5 pixels in each of the x direction and the y direction is provided, and a predetermined weighting is applied to the synthesized 25 pixels, and this is subjected to blur processing for one pixel.

第4図は、このマスクのそれぞれの画素を、また第5
図はこれらに対応する重みを表わしたものである。5×
5のマスク71のそれぞれの画素a1、a2、……e4、e5には
それらの位置に応じて重みx11、x12、……x54、x54が付
けられる。
FIG. 4 shows each pixel of this mask, and FIG.
The figure shows the weights corresponding to these. 5x
Each of the pixels a 1, a 2 of 5 masks 71, ...... e 4, the weight x 11 in e 5 according to their position, x 12, ...... x 54, x 54 is attached.

そこで、従来ではまず第3図に示したイメージ情報の
うちの画素a1〜a5を順次読み出して重み付けを行い、次
式(1)によって加算値A1を求めた。
Therefore, conventionally sequentially reads performs weighting the pixel a 1 ~a 5 of the image information shown in FIG. 3 First, determine the additional value A 1 by the following equation (1).

A1=a1x11+a2x12+a3x13+a4x14+a5x15 ……(1) 画素b1〜b5等の重み付けによる加算値A2〜A5は次の
(2)式のようになる。
A 1 = a 1 x 11 + a 2 x 12 + a 3 x 13 + a 4 x 14 + a 5 x 15 ...... (1) pixel b 1 ~b 5 additional value A 2 to A 5 by weight of such the following (2 )

A2=b1x21+b2x22+b3x23+b4x24+b5x25 A3=c1x31+c2x32+c3x33+c4x34+c5x35 A4=d1x41+d2x42+d3x43+d4x44+d5x45 A5=e1x51+e2x52+e3x53+e4x54+e5x55 ……(2) そこで(1)式で求めた加算値A1を総合計値Aとし
(A=A1)、次いでこの総合計値Aの内容に加算値A2
加算して総合計値Aの値を置き換えた(A=A+A2)。
以下同様にして、総合計値Aの値を加算値A3〜A5の値で
順次置き換え、最終的に総合計値Aを求めて、これをボ
カシ処理用の値として所定のメモリに書き込む処理を行
っていた。
A 2 = b 1 x 21 + b 2 x 22 + b 3 x 23 + b 4 x 24 + b 5 x 25 A 3 = c 1 x 31 + c 2 x 32 + c 3 x 33 + c 4 x 34 + c 5 x 35 A 4 = d 1 x 41 + d 2 x 42 + d 3 x 43 + d 4 x 44 + d 5 x 45 A 5 = e 1 x 51 + e 2 x 52 + e 3 x 53 + e 4 x 54 + e 5 x 55 ...... (2) where (1 ) the added value a 1 was calculated by the formula and the total sum a (a = a 1), then replaces the value of the total sum a by adding the addition value a 2 to the content of the total sum a (a = A + A 2 ).
In the same manner, sequentially replaces the value of the total sum A with the value of the addition value A 3 to A 5, finally obtains a total sum A, writes this in a predetermined memory as the value for the blurring processing Had gone.

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

以上説明したように従来のボカシ処理ではCPU(中央
処理装置)を用いてこのような演算処理を繰り返し行う
ので、特にマクスのサイズが大きくなったりするとボカ
シ処理の演算にかなりの時間を要し、処理速度が遅くな
るという問題があった。また、この演算期間はCPUがボ
カシ処理のために占有されるので、CPUの効率的な活用
を行うことができないという問題もあった。
As described above, in the conventional blur processing, such calculation processing is repeatedly performed using a CPU (Central Processing Unit), so that calculation of the blur processing takes a considerable amount of time, particularly when the size of the max becomes large. There is a problem that the processing speed becomes slow. In addition, there is a problem that the CPU cannot be used efficiently because the CPU is occupied for the blur processing during the calculation period.

そこで本発明の第1の目的は、CPUの介在なしにボカ
シ処理の演算を可能とするボカシ処理回路を提供するこ
とにある。
SUMMARY OF THE INVENTION Accordingly, a first object of the present invention is to provide a blur processing circuit capable of performing a blur processing operation without intervention of a CPU.

本発明の第2の目的は、ボカシ処理のための演算内容
を各種変更することのできるボカシ処理回路を提供する
ことにある。
A second object of the present invention is to provide a blur processing circuit capable of changing various types of calculation for blur processing.

本発明の第3の目的は、ボカシ処理のためのマスクの
サイズを変更することのできるボカシ処理回路を提供す
ることにある。
A third object of the present invention is to provide a blur processing circuit that can change the size of a mask for blur processing.

〔課題を解決するための手段〕[Means for solving the problem]

請求項1記載の発明では、(イ)ボカシ処理の対象と
なるm行n列のデータを格納しシフト動作によって順に
出力される1列分のm個のシウトアウトデータをシフト
インデータとして再入力すると共に、そのとき出力され
るシフトアウトデータがn列をこれよりも少ないp列ず
つに区切った際のp列の中の何番目に位置するかを示す
横方向情報を出力する第1のシフトレジスタ群と、
(ロ)この第1のシフトレジスタ群から順次パラレルに
出力されるシフトアウトデータを横方向情報およびそれ
ぞれの行に対応して予め与えられたパラメータを用いて
数値変換してこれらの総和を求める数値変換手段と、
(ハ)この数値変換手段によって順次数値変換されたデ
ータをpに等しい回数だけ積算する加算器と、(ニ)こ
の加算器の出力をボカシ処理後のデータとしてそれぞれ
nをpで割った数だけ順に蓄える第2のシフトレジスタ
群とをボカシ処理回路に具備させる。
According to the first aspect of the present invention, (a) m rows and n columns of data to be subjected to the blur processing are stored, and one column of m shot-out data sequentially output by the shift operation is re-input as shift-in data. And a first shift for outputting horizontal information indicating the position of the shift-out data to be output at that time in the p-th column when the n-th column is divided into n smaller columns. Registers,
(B) Numerical conversion of shift-out data sequentially output in parallel from the first shift register group using horizontal information and parameters given in advance corresponding to each row, and numerical values for obtaining the sum thereof Conversion means;
(C) an adder for accumulating the data sequentially converted by the numerical conversion means by the number of times equal to p; and (d) an output of the adder which is obtained by dividing n by p as data after the blur processing. The second shift register group sequentially stored is provided in the blur processing circuit.

そして、請求項1記載の発明では、このように第1の
シフトレジスタ群のシフト動作によって出力されるデー
タを数値変換手段で数値変換し、これを加算器で加算す
ることで、CPUを使用することなしにボカシ処理を可能
とする。
According to the first aspect of the present invention, the data output by the shift operation of the first shift register group is numerically converted by the numerical value conversion means and added by the adder, thereby using the CPU. The blur processing can be performed without any problem.

請求項2記載の発明では、(イ)ボカシ処理の対象と
なるm行n列のデータを格納しシフト動作によって順に
出力される1列分のm個のシウトアウトデータをシフト
インデータとして再入力すると共に、そのとき出力され
るシフトアウトデータがn列をこれよりも少ないp列ず
つ区切った際のp列の中の何番目に位置するかを示す横
方向情報を出力する第1のシフトレジスタ群と、(ロ)
この第1のシフトレジスタ群から順次パラレルに出力さ
れるシフトアウトデータを横方向情報およびそれぞれの
行ならびに所定のパラメータに対応したアドレス情報を
用いてこれらを個々に数値変換して総和を求めた数値デ
ータを出力するリード・オンリ・メモリと、(ハ)この
リード・オンリ・メモリによる読み出しのためのパラメ
ータを選択するパラメータ選択手段と、(ニ)リード・
オンリ・メモリから順次読み出されたデータをpに等し
い回数だけ積算する加算器と、(ホ)この加算器の出力
をボカシ処理後のデータとしてそれぞれnをpで割った
数だけ順に蓄える第2のシフトレジスタ群とをボカシ処
理回路に具備させる。
According to the second aspect of the present invention, (a) m rows and n columns of data to be subjected to the blur processing are stored, and one column of m shotout data sequentially output by the shift operation is re-input as shift-in data. And a first shift register for outputting horizontal information indicating the position of the shift-out data to be output at that time in the p-th column when the n-th column is divided into p columns each smaller than this. Group and (b)
The shift-out data sequentially output in parallel from the first shift register group is numerically converted individually using the horizontal information and the address information corresponding to each row and a predetermined parameter, and the numerical value obtained by calculating the sum is obtained. A read-only memory for outputting data, (c) parameter selection means for selecting parameters for reading by the read-only memory, and (d) a read-only memory.
An adder for accumulating the data sequentially read out from the only memory by the number of times equal to p; and (e) a second means for storing the output of the adder as data after the blurring processing by dividing n by p in order. And a shift register group are provided in the blur processing circuit.

そして、請求項2記載の発明では、数値変換のために
リード・オンリ・メモリを用意すると共に数値変換のた
めのパラメータを幾つか用意しておき、これによって用
途別に異なった数値演算の結果を得ることを可能とす
る。
According to the second aspect of the present invention, a read-only memory is prepared for numerical value conversion, and some parameters for numerical value conversion are prepared. To make things possible.

〔実施例〕〔Example〕

以下、実施例につき本発明を詳細に説明する。 Hereinafter, the present invention will be described in detail with reference to examples.

第1図は本発明の一実施例におけるボカシ処理回路の
構成を表わしたものである。このボカシ処理回路は、シ
フトレジスタ部11と、このシフトレジスタ部11の出力を
アドレス情報として入力し数値変換を行うROM(リード
・オンリ・メモリ)12と、数値変換後のデータを加算す
る加算部13と、この加算部13の加算データを格納するレ
ジスタ部14とによって構成されている。
FIG. 1 shows a configuration of a blur processing circuit according to an embodiment of the present invention. This blur processing circuit includes a shift register unit 11, a ROM (read only memory) 12 for inputting an output of the shift register unit 11 as address information and performing numerical conversion, and an adding unit for adding data after the numerical conversion. 13 and a register unit 14 for storing the addition data of the addition unit 13.

このうちシフトレジスタ部11は、m行n列構成でmが
5、nが20のシフトレジスタ16とこれをシフトさせるシ
フト制御部17を備えている。シフトレジスタ16には、ボ
カシ処理の対象となる5行×20列のイメージパターンが
格納されるようになっている。シフト制御部17は、この
シフトレジスタ16にシフト方向信号18とシフト回数信号
19を供給するようになっており、シフト方向が図で左右
どちらであるかの指示と、シフトする回数とを制御する
ようになっている。なお、シフトレジスタ16はゲートア
レイ化することによって、従来大量のIC(集積回路)を
使用していたのを少量の部品で済ますことができるよう
になる。
The shift register unit 11 includes a shift register 16 having m rows and n columns and m = 5 and n = 20, and a shift control unit 17 for shifting the shift register. The shift register 16 stores an image pattern of 5 rows × 20 columns to be processed. The shift control unit 17 supplies the shift register 16 with a shift direction signal 18 and a shift number signal.
19 is supplied, and an instruction as to whether the shift direction is left or right in the figure and the number of shifts are controlled. By forming the shift register 16 into a gate array, a large number of ICs (integrated circuits) conventionally used can be reduced to a small number of components.

一方、ROM12は外部からモード情報20を入力する他、
シフトレジスタ部11から5ビットのシフトアウトデータ
21と5×5のマクスの横方向情報22とを入力して、これ
らをアドレス情報として数値変換データ23を出力するよ
うになっている。ROM12には、5×5のマスクのそれぞ
れの位置に対応させた重みで各画素を演算した演算結果
が格納されているが、重みの付け方について複数の組が
用意されており、モード情報20によってこのうちの1つ
を選択するようになっている。加算部13は、ROM12から
読み出された数値変換データ23を入力データの一方とし
て入力する加算器25とこの加算値26を登録するレジスタ
27から構成されている。レジスタ27の出力するデータ28
はレジスタ部14に供給される他、加算器25の他方の入力
となる。
On the other hand, the ROM 12 inputs the mode information 20 from the outside,
5-bit shift-out data from shift register section 11
21 and the horizontal direction information 22 of 5 × 5 max are input, and numerical conversion data 23 is output using these as address information. The ROM 12 stores the calculation results obtained by calculating each pixel with the weight corresponding to each position of the 5 × 5 mask. One of them is selected. The adder 13 includes an adder 25 that inputs the numerical conversion data 23 read from the ROM 12 as one of the input data, and a register that registers the added value 26.
Consists of 27. Data 28 output from register 27
Is supplied to the register section 14 and becomes the other input of the adder 25.

レジスタ部14は、直列に配置された4つのレジスタ31
〜34によって構成されており、全体としてシフトレジス
タを成している。このレジスタ部14から出力される格納
データ36がボカシ処理の行われたデータである。この格
納データ36は、図示しないCPU(中央処理装置)のデー
タバスに接続されており、ファームウェアによる読み出
しが可能となっている。
The register unit 14 includes four registers 31 arranged in series.
To 34, and constitutes a shift register as a whole. The stored data 36 output from the register unit 14 is data subjected to the blurring processing. The stored data 36 is connected to a data bus of a CPU (Central Processing Unit), not shown, and can be read by firmware.

第2図は、このような構成のボカシ処理回路の動作を
説明するためのものである。この第2図aに示したタイ
ムT0、T1、……、T25、……は、同図bに示したファー
ムウェアからの起動信号41がアクティブとなったときを
基準とした時間軸を表わしている。この時間軸TはT0
ら開始する。次の時間T1では、リセット信号43、44(第
2図k,n)が発行される。これらのリセット信号43、44
はシフトレジスタ部11のシフト制御部17から出力され
る。このうちのリセット信号43はフリップフロップ回路
で構成されたレジスタ27のリセット端子Rに供給され、
これを初期化する。また、リセット信号44はレジスタ部
14に入力され、4つのレジスタ31〜34をぞれぞれ初期化
する。
FIG. 2 is for explaining the operation of the blur processing circuit having such a configuration. Times T 0 , T 1 ,..., T 25 ,... Shown in FIG. It represents. This time axis T starts from T 0. In the next time T 1, the reset signal 43, 44 (FIG. 2 k, n) is issued. These reset signals 43, 44
Is output from the shift control unit 17 of the shift register unit 11. The reset signal 43 is supplied to the reset terminal R of the register 27 constituted by a flip-flop circuit,
Initialize this. Also, the reset signal 44 is
14 to initialize the four registers 31 to 34, respectively.

なお、シフトレジスタ部11のシフトレジスタ16は、左
右にシフトした場合、これにより1ビットずつパラレル
に出力されるシフトアウトデータ51〜55は、この出力さ
れた側の反対側にシフトインデータとして取り込まれる
ようになっている。すなわち、シフトレジスタ16は同一
方向に20回シフトすると、その格納されているパターン
がオリジナルパターンに復元されることになる。ただ
し、本実施例でシフトレジスタ16のシフト方向はファー
ムウェアによって図で左方向のみに固定しているものと
する。
When the shift register 16 of the shift register section 11 shifts to the left or right, the shift-out data 51 to 55 output in parallel one bit at a time are taken in as shift-in data on the side opposite to the output side. It is supposed to be. That is, when the shift register 16 shifts 20 times in the same direction, the stored pattern is restored to the original pattern. However, in this embodiment, it is assumed that the shift direction of the shift register 16 is fixed only in the left direction in the figure by the firmware.

第2図aに示したタイムT2〜T6においては、同図cに
示したようにシフト回数信号19がそれぞれ1回ずつ発生
する。シフトレジスタ16に図示のようにa1〜a20、b1〜b
20、c1〜c20、d1〜d20、e1〜e20のデータが格納されて
いたとすると、まずタイムT2においてシフトアウトデー
タ51〜55(第2図e〜i)は、(a1,b1,c1,d1,e1)とな
る。このデータ(a1,b1,c1,d1,e1)は、5×5のマスク
の横方向情報22(第2図d)と共にROM12のアドレス情
報となる。ROM12は、このデータ(a1,b1,c1,d1,e1)に
ついての先の(1)式に示す演算を行ったときの値をア
ドレスに対応するデータとして出力する。この5ビット
の数値変換データ23はデータa1′として出力される(第
2図j)。
At times T 2 to T 6 shown in FIG. 2A, the shift number signal 19 is generated once each as shown in FIG. 2C. A 1 to a 20 , b 1 to b as shown in the shift register 16.
20, if c 1 to c 20, d 1 to d 20, data of e 1 to e 20 are to have been stored, first shift-out data in a time T 2 51 to 55 (Fig. 2 E to I) is ( a 1 , b 1 , c 1 , d 1 , e 1 ). The data (a 1 , b 1 , c 1 , d 1 , e 1 ) becomes the address information of the ROM 12 together with the lateral information 22 (FIG. 2d) of the 5 × 5 mask. The ROM 12 outputs, as data corresponding to the address, a value obtained by performing the operation shown in the above equation (1) on the data (a 1 , b 1 , c 1 , d 1 , e 1 ). The 5-bit numerical conversion data 23 is output as data a 1 '(FIG. 2j).

同様にして、タイムT3〜T6においても、順次シフトア
ウトデータ51〜55がデータ(a2,b2,c2,d2,e2)、(a3,b
3,c3,d3,e3)、(a4,b4,c4,d4,e4)および(a5,b5,c5,d
5,e5)として出力され、ROM12に供給される。そして、R
OM12からはこれらタイムT3〜T6において数値変換データ
23としてデータa2′、……、a5′が順に出力されること
になる。これらは先の(2)式で示した式の演算結果に
基づくものである。
Similarly, at times T 3 to T 6 , the sequential shift-out data 51 to 55 sequentially include data (a 2 , b 2 , c 2 , d 2 , e 2 ), (a 3 , b
3, c 3, d 3, e 3), (a 4, b 4, c 4, d 4, e 4) and (a 5, b 5, c 5, d
5 , e 5 ) and supplied to the ROM 12. And R
Numeric conversion data in these time T 3 through T 6 from OM12
23, data a 2 ′,..., A 5 ′ are sequentially output. These are based on the calculation result of the expression shown in the above expression (2).

タイムT2〜T6においてROM12から出力される数値変換
データ23は加算部13内の加算器25に入力され、レジスタ
27の出力するデータ28と加算される。これによる加算値
26は、シフト制御部17から出力されレジスタ27のクロッ
ク入力端子に供給される格納クロック57(第2図l)に
よって、このレジスタ27に順次格納される。レジスタ27
から出力されるデータ28を、第2図mに示したようにf
11、f12、f13、f14、f15のように表わすものとする。す
ると、タイムT2におけるデータf11、データa1′とな
る。次のタイムT3におけるデータf12はこのデータf11
データa2′を加算したものとなる。同様にして、データ
f13はデータf12にデータa3′を加算したものであり、デ
ータf14はデータf13にデータa4′を加算したものであ
り、データf15はデータf14にデータa5′を加算したもの
である。
Numeric conversion data 23 in the time T 2 through T 6 output from ROM12 are input to the adder 25 in the addition section 13, a register
It is added to the data 28 output by 27. Addition value by this
26 is sequentially stored in the register 27 by a storage clock 57 (FIG. 2L) output from the shift control unit 17 and supplied to the clock input terminal of the register 27. Register 27
The data 28 output from the
11, f 12, f 13, and represent as f 14, f 15. Then, the data f 11 in the time T 2, the data a 1 '. Data f 12 at the next time T 3 is obtained by adding the data a 2 'to the data f 11. Similarly, the data
f 13 is' is obtained by adding the data f 14 is data a 4 to the data f 13 'data a 3 to data f 12 is obtained by adding the data f 15 is the data a 5' to the data f 14 It is the sum.

実施例ではマスクのサイズが5行×5列に設定されて
いる。このため、シフトが5回行われたタイムT7におい
てシフト制御部17から最終データ格納クロック58(第2
図o)が出力されると、これをクロック入力とする4つ
のレジスタ31〜34のうちの最初のレジスタ31がデータ28
を第1マスクボカシ処理結果値g1として格納する(第2
図p)。
In the embodiment, the size of the mask is set to 5 rows × 5 columns. Therefore, the final in the time T 7 the shift is performed five times from the shift control unit 17 data storage clock 58 (second
When FIG. O) is output, the first register 31 of the four registers 31 to 34 which use this as a clock input stores data 28
The stored first as a mask blurring processing result value g 1 (second
Figure p).

これと同時に、このタイムT7ではリセット信号43によ
ってレジスタ27が初期化される。そして、以上タイムT2
〜T6において行われた第1マスクボカシ処理と同様の処
理がタイムT8〜T12においても行われる。そして、タイ
ムT13に最終データ格納クロック58が再び出力される
と、データf25が第2マスクボカシ処理結果g2としてレ
ジスタ31に格納される。このとき、レジスタ31に格納さ
れていた。第1マスクボカシ処理結果値g1は次段のレジ
スタ32にシウトする(第2図q)。
At the same time, the register 27 is initialized by a reset signal 43 in the time T 7. And more than time T 2
First mask blurring process similar conducted in through T 6 is also performed in the time T 8 through T 12. When the final data storage clock 58 to the time T 13 is output again, the data f 25 is stored in the second register 31 as a mask blurring processing result g 2. At this time, it was stored in the register 31. First mask blurring processing result value g 1 is Shiuto the next register 32 (FIG. 2 q).

以下同様にして、タイムT13〜T18において第3マスク
ボカシ処理が行われ、タイムT19〜T24において第4マス
クボカシ処理が行われる。そして、データf35が第3マ
スクボカシ処理結果g3として、またデータf45が第4マ
スクボカシ処理結果g4として、それぞれレジスタ部14に
入力されることになる。このようにしてレジスタ34(第
2図s)に第1マスクボカシ処理結果値g1が、レジスタ
33(第2図r)に第2マスクボカシ処理結果g2が、レジ
スタ32に第3マスクボカシ処理結果値g3が、更にレジス
タ31に第4マスクボガシ処理結果値g4がそれぞれ格納さ
れたタイムT25に、このボカシ処理回路の処理はすべて
終了する。
In the same manner, the third mask blurring at the time T 13 through T 18 is performed, the fourth mask blurring process is performed in the time T 19 through T 24. Then, as the data f 35 is the third mask blurring processing result g 3, and as the data f 45 is fourth mask blurring processing result g 4, will be respectively input to the register unit 14. Thus the register 34 first mask blurring processing result value g 1 (second drawing s) in the register
33 time second mask blurring processing result g 2 (second FIG r), the third mask blurring processing result value g 3 in register 32, which further fourth Masukubogashi processing result value g 4 in register 31 are stored respectively to T 25, to end all processing of the blurring processing circuit.

そこでシフト制御部17は、このタイムT25時点で終了
割込信号61(第2図t)を発行し、図示しないCPUに対
してボカシ処理の終了を通知する。CPUはこの終了割込
信号61を受けると、レジスタ部14内の4つのレジスタ31
〜34の内容を読み出し、ボカシ処理結果を引き取ること
になる。
So the shift control unit 17 issues a termination interrupt signal 61 at this time T 25 (FIG. 2 t), and notifies the completion of the blurring process with respect to a CPU (not shown). When the CPU receives this end interrupt signal 61, the four registers 31 in the register section 14
34 are read, and the result of the blur processing is taken.

このように実施例のボカシ処理回路では、a1〜a20、b
1〜b20、c1〜c20、d1〜d20、e1〜e20の100個のデータを
5×5のマスクを用いてg1〜g4の4個のデータにボカシ
を施すことができ、しかも起動信号41をシフト制御部17
にセットすることによってCPUに全く関係なく処理させ
ることができる。
Thus, in the blur processing circuit of the embodiment, a 1 to a 20 , b
100 data of 1 to b 20 , c 1 to c 20 , d 1 to d 20 , and e 1 to e 20 are blurred to four data of g 1 to g 4 using a 5 × 5 mask. And the start signal 41 is transmitted to the shift control unit 17.
By setting to, processing can be performed irrespective of the CPU.

以上説明した実施例ではリセット信号43の出力される
周期を固定したが、これを変化させることでシフト方向
におけるマスクのサイズを変化させることができる。ま
た、シフトアウトデータ21を構成するビット数を可変し
て、これに対応する演算をROM12で行うようにすれば、
シフト方向と直交する方向におけるマスクのサイズを変
化させることができる。
In the embodiment described above, the output period of the reset signal 43 is fixed, but by changing this, the size of the mask in the shift direction can be changed. Also, by changing the number of bits constituting the shift-out data 21 and performing the corresponding operation in the ROM 12,
The size of the mask in a direction orthogonal to the shift direction can be changed.

またこの実施例では、シフトレジスタ16の一方から出
力されるパラレルデータが他方から入力されるように構
成したので、同一のイメージデータを異なったマスクに
よって処理することが可能になる。
In this embodiment, since the parallel data output from one of the shift registers 16 is input from the other, the same image data can be processed with different masks.

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

以上説明したように請求項1記載の発明によれば、第
1のシフトレジスタ群にセットされたm行n列のボカシ
処理の対象となるデータよりもマトリックスサイズの小
さなm行n列のデータを用いて数値変換を行い、これを
pに等しい数だけ順に加算してm行p列についての総和
を求め、これを順次第2のシフトレジスタ群のそれぞれ
のシフトレジスタにセットしてボカシ処理後のデータと
して蓄えることにした。したがって、CPUに負担をかけ
ずに画像処理が高速化するばかりでなく、ボカシ処理の
対象となるデータのサイズが大きくても数値変換手段以
降の回路構成を小型化することができる。
As described above, according to the first aspect of the present invention, the data of m rows and n columns having a matrix size smaller than the data to be subjected to the m-row and n-column blur processing set in the first shift register group is stored. , And sequentially add the same to the number equal to p to obtain the sum of m rows and p columns. The sum is sequentially set in each shift register of the second shift register group, and after the blur processing, I decided to store it as data. Therefore, not only is the image processing speeded up without imposing a burden on the CPU, but also the circuit configuration after the numerical value conversion means can be downsized even if the size of the data to be blurred is large.

また、請求項2記載の発明によれば、第1のシフトレ
ジスタ群にセットされたm行n列のボカシ処理の対象と
なるデータよりもマトリックスサイズの小さなm行p列
のデータに対してリード・オンリ・メモリを用いて数値
変換を行うことにしたので、ボカシ処理の対象となるデ
ータのサイが大きくてもリード・オンリ・メモリを小型
化することができる。また、リード・オンリ・メモリを
使用するので、個々の演算処理が不要であり、ボカシ処
理が高速化する。更に、数値変換のためのパラメータを
選択できるようにしたので、各種の処理にそれぞれ適し
たボカシ処理を行うことができるようになる。
According to the second aspect of the present invention, data of m rows and p columns having a matrix size smaller than that of m rows and n columns of data to be subjected to the blur processing set in the first shift register group is read. Since the numerical conversion is performed using the only memory, the read only memory can be downsized even if the size of the data to be blurred is large. Further, since a read-only memory is used, individual arithmetic processing is not required, and the speed of the blur processing is increased. Furthermore, since parameters for numerical conversion can be selected, it is possible to perform blur processing suitable for various types of processing.

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

第1図および第2図は本発明の一実施例を説明するため
のもので、このうち第1図はボカシ処理回路の構成を表
わした概略構成図、第2図はこの回路の動作を示すタイ
ミング図、第3図はイメージ情報とマスクとの関係を示
す説明図、第4図は画像情報の各画素の配置を示す説明
図、第5図はこれらの画素に対応した重みを表わした説
明図である。 11……シフトレジスタ部、12……ROM、 13……加算部、14……レジスタ部、 16……シフトレジスタ、 17……シフト制御部、20……モード情報、 21……シフトアウトデータ、25……加算器、 27……レジスタ、31〜34……レジスタ、 71……マスク。
1 and 2 are diagrams for explaining an embodiment of the present invention. FIG. 1 is a schematic diagram showing the configuration of a blur processing circuit, and FIG. 2 shows the operation of this circuit. FIG. 3 is an explanatory diagram showing the relationship between image information and a mask, FIG. 4 is an explanatory diagram showing the arrangement of each pixel in image information, and FIG. 5 is an explanatory diagram showing weights corresponding to these pixels. FIG. 11 shift register section, 12 ROM, 13 adder section, 14 register section, 16 shift register, 17 shift control section, 20 mode information, 21 shift-out data, 25: Adder, 27: Register, 31 to 34: Register, 71: Mask.

Claims (2)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】ボカシ処理の対象となるm行n列のデータ
を格納しシフト動作によって順に出力される1列分のm
個のシウトアウトデータをシフトインデータとして再入
力すると共に、そのとき出力されるシフトアウトデータ
がn列をこれよりも少ないp列ずつに区切った際のp列
の中の何番目に位置するかを示す横方向情報を出力する
第1のシフトレジスタ群と、 この第1のシフトレジスタ群から順次パラレルに出力さ
れる前記シフトアウトデータを前記横方向情報およびそ
れそれの行に対応して予め与えられたパラメータを用い
て数値変換してこれらの総和を求める数値変換手段と、 この数値変換手段によって順次数値変換されたデータを
前記pに等しい回数だけ順に加算する加算器と、 この加算器の出力をボカシ処理後のデータとしてそれそ
れ前記nを前記pで割った数だけ順に蓄える第2のシフ
トレジスタ群 とを具備することを特徴とするボカシ処理回路。
1. An apparatus for storing m rows and n columns of data to be subjected to blur processing and outputting m data for one column sequentially output by a shift operation.
Number of shout-out data are re-input as shift-in data, and the number of the shift-out data output at that time in the p-th column when the n-th column is divided into p columns each smaller than this A first shift register group that outputs horizontal information indicating the following, and the shift-out data sequentially output in parallel from the first shift register group is given in advance in correspondence with the horizontal information and a row thereof. Numerical conversion means for performing numerical conversion using the obtained parameters to obtain the sum of these, an adder for sequentially adding the data which has been numerically converted by the numerical conversion means by the number of times equal to p, and an output of the adder And a second shift register group for sequentially storing the n as the data after the blur processing by the number obtained by dividing the n by the p. Processing circuit.
【請求項2】ボカシ処理の対象となるm行n列のデータ
を格納しシフト動作によって順に出力される1列分のm
個のシフトアウトデータをシフトインデータとして再入
力すると共に、そのとき出力されるシフトアウトデータ
がn列をこれよりも少ないp列ずつに区切った際のp列
の中の何番目に位置するかを示す横方向情報を出力する
第1のシフトレジスタ群と、 この第1のシフトレジスタ群から順次パラレルに出力さ
れる前記シフトアウトデータを前記横方向情報とそれぞ
れの行ならびに所定のパラメータに対応したアドレス情
報を用いてこれらを個々に数値変換して総和を求めた数
値データを出力するリード・オンリ・メモリと、 このリード・オンリ・メモリによる読み出しのためのパ
ラメータを選択するパラメータ選択手段と、 前記リード・オンリ・メモリから順次読み出されたデー
タを前記pに等しい回数だけ順に加算する加算器と、 この加算器の出力をボカシ処理後のデータとしてそれぞ
れ前記nを前記pで割った数だけ順に蓄える第2のシフ
トレジスタ群 とを具備することを特徴とするボカシ処理回路。
2. The m-row data for one column which is stored in m rows and n columns and is sequentially output by a shift operation.
Number of shift-out data are re-input as shift-in data, and the number of the shift-out data output at that time in the p-th column when the n-th column is divided into p columns each smaller than this A first shift register group for outputting horizontal information indicating the following, and the shift-out data sequentially output in parallel from the first shift register group correspond to the horizontal information and respective rows and predetermined parameters. A read-only memory for outputting numerical data obtained by individually converting the numbers into numerical values using the address information, a parameter selecting means for selecting parameters for reading by the read-only memory, An adder for sequentially adding data sequentially read from the read-only memory by the number of times equal to p, A second shift register group for sequentially storing the output of the arithmetic unit as the data after the blur processing by the number obtained by dividing the n by the p.
JP1265033A 1989-10-13 1989-10-13 Blur processing circuit Expired - Fee Related JP2586658B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1265033A JP2586658B2 (en) 1989-10-13 1989-10-13 Blur processing circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1265033A JP2586658B2 (en) 1989-10-13 1989-10-13 Blur processing circuit

Publications (2)

Publication Number Publication Date
JPH03127183A JPH03127183A (en) 1991-05-30
JP2586658B2 true JP2586658B2 (en) 1997-03-05

Family

ID=17411657

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1265033A Expired - Fee Related JP2586658B2 (en) 1989-10-13 1989-10-13 Blur processing circuit

Country Status (1)

Country Link
JP (1) JP2586658B2 (en)

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6122833A (en) * 1984-07-10 1986-01-31 三菱電機株式会社 Dust collection case of cleaner
JPS6324350A (en) * 1986-03-18 1988-02-01 Mitsubishi Electric Corp Office business analyzing system
JPS63170788A (en) * 1987-01-09 1988-07-14 Agency Of Ind Science & Technol Image processor

Also Published As

Publication number Publication date
JPH03127183A (en) 1991-05-30

Similar Documents

Publication Publication Date Title
EP0607988B1 (en) Program controlled processor
US20080028013A1 (en) Two-dimensional fast fourier transform calculation method and apparatus
JPS6024985B2 (en) Data processing method
US5268853A (en) Orthogonal transformation processor for compressing information
EP0143533A2 (en) Image data expanding and/or contracting method and apparatus
JPS63167967A (en) Digital signal processing integrated circuit
JP6532334B2 (en) Parallel computing device, image processing device and parallel computing method
US5577182A (en) Image processing apparatus
US5400154A (en) Hybrid interpolation and non-interpolation method and apparatus for image enlarging and contracting
JP2586658B2 (en) Blur processing circuit
US4949282A (en) Device for calculating the moments of image data
US5359549A (en) Orthogonal transformation processor for compressing information
CN114648444A (en) Vector up-sampling calculation method and device applied to neural network data processing
US4805228A (en) Cellular logic processor
JPS6057593B2 (en) Character pattern processing method
JP3305406B2 (en) Program-controlled processor
JP7293157B2 (en) Image processing device
US6195463B1 (en) Multiresolution image processing and storage on a single chip
JPS6143752B2 (en)
JP2790911B2 (en) Orthogonal transform operation unit
JPH079572B2 (en) Vertical / horizontal conversion device for pattern data
JPH07264395A (en) Image reducing device
CN118260517A (en) Matrix transposition method based on x86 processor
JP2976418B2 (en) Pattern matching processing device
JPH0411283A (en) Patter converting device

Legal Events

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