JPH03282977A - Image processor - Google Patents
Image processorInfo
- Publication number
- JPH03282977A JPH03282977A JP8546090A JP8546090A JPH03282977A JP H03282977 A JPH03282977 A JP H03282977A JP 8546090 A JP8546090 A JP 8546090A JP 8546090 A JP8546090 A JP 8546090A JP H03282977 A JPH03282977 A JP H03282977A
- Authority
- JP
- Japan
- Prior art keywords
- data
- calculation target
- memory
- signal
- image
- 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
Links
Landscapes
- Image Processing (AREA)
Abstract
Description
【発明の詳細な説明】
(産業上の利用分野)
本発明は、画像データを2次元コンボリューション処理
する画像処理装置に関する。DETAILED DESCRIPTION OF THE INVENTION (Field of Industrial Application) The present invention relates to an image processing device that performs two-dimensional convolution processing on image data.
(従来の技術)
画像データを2次元コンボリューション処理する画像処
理装置は、コンピュータグラッフィクの画像を扱うもの
ではなく、写真画像の如き自然画像を扱う装置であり、
具体的には例えば写真画像の輪郭のぼけを除去するエツ
ジ強調処理等を行う際に用いられる。(Prior Art) An image processing device that performs two-dimensional convolution processing on image data is not a device that handles computer graphic images, but a device that handles natural images such as photographic images.
Specifically, it is used, for example, when performing edge enhancement processing to remove blurred outlines of photographic images.
この種の画像処理装置では、画像データをN×N個の演
算対象点からなるブロックごとに画像メモリに格納し、
またコンボリューション係数データを係数メモリに格納
し、全ての演算対象点の画像データと全てのコンボリュ
ーション係数データとを用いてコンボリューション処理
を行うように構成される。In this type of image processing device, image data is stored in an image memory in blocks each consisting of N×N calculation target points.
Further, the convolution coefficient data is stored in a coefficient memory, and the convolution process is performed using the image data of all calculation target points and all the convolution coefficient data.
(発明が解決しようとする課題)
上述した従来の画像処理装置では、演算の対象となるN
XNマトリクス内の全ての点に対してコンボリューショ
ン処理を行っているので、処理に長時間を要するという
問題点がある。(Problem to be solved by the invention) In the conventional image processing device described above, N
Since convolution processing is performed on all points in the XN matrix, there is a problem in that the processing takes a long time.
本発明は、このような従来の問題点に鑑みなされたもの
で、その目的は、演算の必要性の高い点の画像データを
選択的にコンボリューション処理をすることのできる画
像処理装置を提供することにある。The present invention has been made in view of such conventional problems, and its purpose is to provide an image processing device that can selectively perform convolution processing on image data at points where calculation is highly necessary. There is a particular thing.
(課題を解決するための手段)
前記目的を達成するために、本発明の画像処理装置は次
の如き構成を有する。(Means for Solving the Problems) In order to achieve the above object, an image processing apparatus of the present invention has the following configuration.
即ち、本発明の画像処理装置は、2次元コンボリューシ
ョン処理される画像データが複数の演算対象点データに
細分化されて格納される画像メモリと; 前記演算対象
点データに対応したコンボリューション係数データが格
納される係数メモリと; を備えた画像処理装置におい
て; 演算の順序を示す信号を出力するカウンタであっ
て、その信号を読出アドレス信号として前記係数メモリ
にも出力するシーケンスカウンタと; 前記画像データ
の演算対象点が予め格納されるメモリであって、前記シ
ーケンスカウンタの出力信号を受けて対応する演算対象
点が読み出されそれが読出アドレス信号として前記画像
メモリに出力される演算対象点メモリと; を備えたこ
とを特徴とするものである。That is, the image processing device of the present invention comprises: an image memory in which image data subjected to two-dimensional convolution processing is segmented into a plurality of calculation target point data and stored; and convolution coefficient data corresponding to the calculation target point data. an image processing device comprising: a coefficient memory in which is stored; a sequence counter that outputs a signal indicating the order of calculations and also outputs the signal to the coefficient memory as a read address signal; A calculation target point memory in which a calculation target point of data is stored in advance, and in which a corresponding calculation target point is read out in response to an output signal of the sequence counter and is outputted to the image memory as a read address signal. It is characterized by having the following features.
(作 用)
次に、前記の如く構成される本発明の画像処理装置の作
用を説明する。(Function) Next, the function of the image processing apparatus of the present invention configured as described above will be explained.
本発明では、シーケンスカウンタの出力が示す順序に従
って対応する演算対象点データとコンボリューション係
数データが読み出され、コンボリューション処理される
。In the present invention, corresponding calculation target point data and convolution coefficient data are read out according to the order indicated by the output of the sequence counter, and subjected to convolution processing.
即ち、画像メモリ内の演算対象点データの全てについて
コンボリューション処理するのではなく、演算の必要性
の高い点のデータのみを選択的にコンボリューション処
理するのである。In other words, the convolution process is not performed on all of the calculation target point data in the image memory, but only the data of points that are highly necessary for calculation are selectively subjected to the convolution process.
その結果、処理時間を大幅に短縮できる。As a result, processing time can be significantly reduced.
(実 施 例) 以下、本発明の実施例を図面を参照して説明する。(Example) Embodiments of the present invention will be described below with reference to the drawings.
第1図は本発明の一実施例に係る画像処理装置を示す、
第1図において、この画像処理装置は、従来装置におけ
る画像メモリ6と係数メモリ9の前段に、シーケンスカ
ウンタ1と演算対象点メモリたるROM3とを配置し、
さらに制御信号5を付加したものである。FIG. 1 shows an image processing device according to an embodiment of the present invention.
In FIG. 1, this image processing device has a sequence counter 1 and a ROM 3 serving as a calculation target point memory placed before the image memory 6 and coefficient memory 9 in the conventional device.
Furthermore, a control signal 5 is added.
画像メモリ6には、画像データ7がNXN個の演算対象
点からなる演算対象ブロックごとに格納される。また、
係数メモリ9には各演算対象点データに対応したコンボ
リューション係数データlOが格納される。これらから
は後述するようにして演算対象点データ8、コンボリュ
ーション係数データ11が読み出される。演算対象点デ
ータ8とコンボリューション係数データ11は乗算器1
2にて乗算操作を受け、その乗算結果13は累算器14
にて累算操作され、処理結果I5が出力される。In the image memory 6, image data 7 is stored for each calculation target block consisting of NXN calculation target points. Also,
The coefficient memory 9 stores convolution coefficient data lO corresponding to each calculation target point data. From these, calculation target point data 8 and convolution coefficient data 11 are read out as will be described later. The calculation target point data 8 and the convolution coefficient data 11 are provided by the multiplier 1.
2, the multiplication result 13 is sent to the accumulator 14.
An accumulation operation is performed at , and a processing result I5 is output.
以下、本発明に係る部分について説明する。シーケンス
カウンタ1は、演算の順序を示す信号(順序信号)2を
発生する回路である0発生した順序信号2は読出アドレ
ス信号としてROM3と係数メモリ9に与えられる。そ
の結果、係数メモリ9の出力たるコンボリューション係
数データ11は、演算の順序に従って読み出される。Hereinafter, parts related to the present invention will be explained. The sequence counter 1 is a circuit that generates a signal (sequence signal) 2 indicating the order of operations.The generated sequence signal 2 is applied to the ROM 3 and the coefficient memory 9 as a read address signal. As a result, the convolution coefficient data 11 that is the output of the coefficient memory 9 is read out in accordance with the order of calculations.
一方、ROM3には、画像データの演算対象点のうち演
算に必要な演算対象点が格納され、順序信号2が示すア
ドレスに格納される演算対象点が読み出され、それが読
出アドレス信号4として画像メモリ6に与えられる。そ
の結果、画像メモリ6からは演算対象ブロック内の演算
に必要な演算対象点データ8のみが読み出され出力され
る。具体例を第2図を参照して説明する。On the other hand, the ROM 3 stores the calculation target points necessary for the calculation among the calculation target points of the image data, and the calculation target points stored at the address indicated by the order signal 2 are read out and are read out as the read address signal 4. The image is applied to the image memory 6. As a result, only the calculation target point data 8 necessary for the calculation in the calculation target block is read out from the image memory 6 and output. A specific example will be explained with reference to FIG.
第2図(a>は画像メモリ6の1つの演算対象ブロック
を示す、この演算対象ブロックは、X座標とY座標が共
にO〜6である7×7個の演算対象点からなっていると
する。図中○印の部分は演算に必要な演算対象点を示し
、図中無印の部分は対象外であることを示す。そして、
○卵内の数値(1〜21>は演算の順序を示し、この演
算対象ブロックでは第1回目では演算対象点(X、Y)
=(3’、3)のデータが用いられ、第21回目では演
算対象点(X、Y)= (3,6)のデータが用いられ
ることを示している。即ち、この演算対象ブロックでは
、49個の演算対象点のうち21個の演算対象点のデー
タのみが読み出され演算に供されるのである。FIG. 2 (a> shows one calculation target block in the image memory 6. This calculation target block consists of 7 x 7 calculation target points whose X and Y coordinates are both O to 6. The circle-marked part in the figure indicates the calculation target point necessary for the calculation, and the unmarked part in the figure indicates that it is not the target point.And,
○The numbers in the egg (1 to 21> indicate the order of calculation, and in this calculation target block, the first calculation target point (X, Y)
This shows that the data of = (3', 3) is used, and in the 21st time, the data of the calculation target point (X, Y) = (3, 6) is used. That is, in this calculation target block, only data of 21 calculation target points out of 49 calculation target points are read out and subjected to calculation.
第2図(b)は第2図(a)に示す演算対象ブロックの
データを読み出すためのROM3の内容を示す。図示す
るように、このROM3では、O〜20までの各アドレ
スは順序信号2の内容たる演算の順序(1〜21)と1
対1に対応し、その演算の順序に対応した演算対象点を
特定するY座標の値とX座標の値が設定され、また終了
フラグが設定される0例えば、演算の順序「1」に対応
するアドレス「0」では、Y=3.X=3が設定される
。これにより、画像メモリ6では、演算の順序「1」で
は、演算対象点(X、Y)= (3,3)のデータが読
み出される。なお、コンボリューション係数データ11
は、演算対象点データ8と1対1に対応しているので、
係数メモリ9では画像メモリ6と同様に演算に必要なデ
ータのみが読み出されることになる。FIG. 2(b) shows the contents of the ROM 3 for reading data of the block to be calculated shown in FIG. 2(a). As shown in the figure, in this ROM 3, each address from 0 to 20 corresponds to the order of operations (1 to 21), which is the content of the order signal 2.
Corresponding to pair 1, the Y-coordinate value and X-coordinate value that specify the calculation target point corresponding to the calculation order are set, and the end flag is set to 0. For example, corresponding to the calculation order "1" At address "0", Y=3. X=3 is set. As a result, in the image memory 6, data at the calculation target point (X, Y)=(3, 3) is read out in the calculation order "1". In addition, convolution coefficient data 11
has a one-to-one correspondence with the calculation target point data 8, so
In the coefficient memory 9, like the image memory 6, only data necessary for calculation is read out.
また、終了フラグは、当該演算対象ブロックにおける演
算の順序が1番!&後である順序番号「21」に対応す
るアドレス「20」のみが′I”に設定され、他は全て
′0゛′に設定される。従って、アドレス「20」の内
容が読み出されたときは、終了フラグ1”が読み出され
、これが制御信号5としてシーケンスカウンタ1と累算
器14に与えられる。Also, the end flag indicates that the order of the calculation in the block to be calculated is the highest! & Later, only the address “20” corresponding to the sequence number “21” is set to ``I'', and all others are set to ``0゛''. Therefore, the contents of address "20" are read out. At this time, the end flag 1'' is read out and given as a control signal 5 to the sequence counter 1 and the accumulator 14.
シーケンスカウンタ1では、制御信号5の入力により1
ブロック分の演算対象点の読み出しが終了したことを知
り、次のブロックに対する順序信号2の出力動作等に移
行する。一方、累算器I4では、制御信号5の入力によ
り11072分の演算終了を知り、処理結果15を出力
する。In the sequence counter 1, the input of the control signal 5 causes the sequence counter to become 1.
Knowing that the reading of the calculation target points for the block has been completed, the process proceeds to the output operation of the order signal 2 for the next block. On the other hand, the accumulator I4 learns from the input of the control signal 5 that the calculation for 11072 minutes has ended, and outputs the processing result 15.
(発明の効果)
以上説明したように、本発明の画像処理装置によれば、
演算の順序に従って演算対象点データ及びコンボリュー
ション係数データを読み出せるようにしたので、演算の
必要性の高い点のデータのみを選択的にコンボリューシ
ョン処理することができ、処理時間の大幅な短縮化が可
能となる効果がある。(Effects of the Invention) As explained above, according to the image processing device of the present invention,
Since the calculation target point data and convolution coefficient data can be read out according to the order of calculation, it is possible to selectively perform convolution processing only on the data of points that require calculation, significantly reducing processing time. This has the effect of making it possible.
第1図は本発明の一実施例に係る画像処理装置の構成ブ
ロック図、第2図はROMと画像メモリの関係説明図で
ある。
1・・・・・・シーケンスカウンタ、 3・・・・・・
ROM、6・・・・・・画像メモリ、 7・・・・・・
画像データ、 9・・・・・係数メモリ、 12・・・
・・・乗算器、 14・・・・・・累算器。FIG. 1 is a block diagram of the configuration of an image processing apparatus according to an embodiment of the present invention, and FIG. 2 is an explanatory diagram of the relationship between a ROM and an image memory. 1...Sequence counter, 3...
ROM, 6... Image memory, 7...
Image data, 9...Coefficient memory, 12...
...multiplier, 14...accumulator.
Claims (1)
の演算対象点データに細分化されて格納される画像メモ
リと;前記演算対象点データに対応したコンボリューシ
ョン係数データが格納される係数メモリと;を備えた画
像処理装置において;演算の順序を示す信号を出力する
カウンタであって、その信号を読出アドレス信号として
前記係数メモリにも出力するシーケンスカウンタと;前
記画像データの演算対象点が予め格納されるメモリであ
って、前記シーケンスカウンタの出力信号を受けて対応
する演算対象点が読み出されそれが読出アドレス信号と
して前記画像メモリに出力される演算対象点メモリと;
を備えたことを特徴とする画像処理装置。An image memory in which image data subjected to two-dimensional convolution processing is divided into a plurality of calculation target point data and stored; and a coefficient memory in which convolution coefficient data corresponding to the calculation target point data is stored. In an image processing apparatus; a counter that outputs a signal indicating the order of calculations, and a sequence counter that also outputs the signal as a read address signal to the coefficient memory; and a sequence counter in which calculation target points of the image data are stored in advance. a calculation target point memory, which receives an output signal from the sequence counter, reads out a corresponding calculation target point, and outputs it to the image memory as a read address signal;
An image processing device comprising:
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2085460A JP2652973B2 (en) | 1990-03-30 | 1990-03-30 | Image processing device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2085460A JP2652973B2 (en) | 1990-03-30 | 1990-03-30 | Image processing device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH03282977A true JPH03282977A (en) | 1991-12-13 |
| JP2652973B2 JP2652973B2 (en) | 1997-09-10 |
Family
ID=13859494
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2085460A Expired - Lifetime JP2652973B2 (en) | 1990-03-30 | 1990-03-30 | Image processing device |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP2652973B2 (en) |
Citations (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS61140213A (en) * | 1984-12-12 | 1986-06-27 | Nec Corp | Two-dimensional digital filter |
-
1990
- 1990-03-30 JP JP2085460A patent/JP2652973B2/en not_active Expired - Lifetime
Patent Citations (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS61140213A (en) * | 1984-12-12 | 1986-06-27 | Nec Corp | Two-dimensional digital filter |
Also Published As
| Publication number | Publication date |
|---|---|
| JP2652973B2 (en) | 1997-09-10 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JPH0756892A (en) | Calculator with vector calculator with mask | |
| US4812836A (en) | Picture processing apparatus | |
| JPH03282977A (en) | Image processor | |
| JPH04106652A (en) | Exceptional treatment system | |
| JPH02271483A (en) | Image processor | |
| JP2793374B2 (en) | Image data processing device | |
| JPS61233869A (en) | Picture processor | |
| JP3115428B2 (en) | Pipeline control method | |
| JPS6368985A (en) | Face painting system | |
| JPS61133440A (en) | Data processing unit | |
| JPS6312077A (en) | Grid description system | |
| JPH0353322A (en) | Information processor | |
| JPH01140195A (en) | Graphic image copy control device | |
| JPH0612261A (en) | Interrupt control circuit | |
| JPS63118839A (en) | Advance control system for instruction address of instruction processor | |
| JPS62115562A (en) | DMA controller | |
| JPH0236423A (en) | Saving/restoring register address generation circuit | |
| JPS58109932A (en) | Comparison and arithmetic device for electronic computer | |
| JPH0444174A (en) | Simulation method | |
| JPH04259080A (en) | Pipeline type arithmetic device | |
| JPH02214986A (en) | Picture arithmetic device | |
| JPH0223476A (en) | Filtering processor | |
| JPH06259317A (en) | Data processor | |
| JPS58181179A (en) | Extracting device of picture feature | |
| JPS57106963A (en) | Data processing system |