JPH03148780A - Picture processor - Google Patents

Picture processor

Info

Publication number
JPH03148780A
JPH03148780A JP1288095A JP28809589A JPH03148780A JP H03148780 A JPH03148780 A JP H03148780A JP 1288095 A JP1288095 A JP 1288095A JP 28809589 A JP28809589 A JP 28809589A JP H03148780 A JPH03148780 A JP H03148780A
Authority
JP
Japan
Prior art keywords
filter
output
fifo
stages
memory
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.)
Pending
Application number
JP1288095A
Other languages
Japanese (ja)
Inventor
Keiichi Akagawa
圭一 赤川
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.)
Nikon Corp
Original Assignee
Nikon Corp
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 Nikon Corp filed Critical Nikon Corp
Priority to JP1288095A priority Critical patent/JPH03148780A/en
Publication of JPH03148780A publication Critical patent/JPH03148780A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To make the scale of a circuit smaller and to reduce cost by making each number of memory stages of a FIFO to be the stages number subtracting the number of rows of a space filter from the number of horizontal picture elements, and specifying the connection of the FIFO memory and a filter calcula tion part. CONSTITUTION:A filter calculation part is equipped with nine coefficient registers 6-14, nine multipliers 15, eight D flip-flops (D-FF) 17, a D-FF 18 for setting initial value, and nine adders 16. And, FIFO memories 3,4,5, when the number of horizontal picture elements of an increment data is H, consists of (H-M)=(H-3) steps which is less than H for the number of rows M=3 of the space filter. In such a case, the output of the FIFO memory 3 is inputted to three of the multipliers 15 of the row closest to an output terminal 2, the output of the FIFO memory 4 is inputted to the three multipliers 15 of the next row, and the output of the final step FIFO 5 is inputted to three of the multipliers 15 of the row which is furthest away from an output terminal 2. Thus, the circuit constitution can be simplified, and the cost can be reduced at the same time.

Description

【発明の詳細な説明】 [産業上の利用分野] 本発明は、画像データに空間フィルタの演算処理を施す
画像処理装置関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to an image processing device that performs spatial filter calculation processing on image data.

[従来の技術1 従来、CCDカメラ等で撮像された画像データの輪郭強
調等に用いられる空間フィルタとして、例えば第4図に
示すものが知られている。
[Prior Art 1] Conventionally, as a spatial filter used for contour enhancement of image data captured by a CCD camera or the like, for example, the filter shown in FIG. 4 is known.

第4図は3行3列の空間フィルタ(一般的にはM行M列
となる)を構成する画像処理装置を示したもので、入力
端子1から入力した画像データは水平画素数をHとする
と、まず縦接続されたメモリ段数(H+3)のFIFO
メモリ(Fitst InFirst O++t Me
mory)3. 4. 5の最初のFIFOメモリに入
力される。FIFOメモリ3,4,5に続いてはフィル
タ演算部100が設けられる。
Figure 4 shows an image processing device that configures a spatial filter with 3 rows and 3 columns (generally M rows and M columns), and image data input from input terminal 1 has a horizontal pixel count of H. Then, first, the number of vertically connected memory stages (H+3) is FIFO.
Memory (Fitst InFirst O++t Me
mory)3. 4. 5 is input to the first FIFO memory. Following the FIFO memories 3, 4, and 5, a filter calculation section 100 is provided.

フィルタ演算部100には、第5図に示すように、3行
3列の空間フィルタにおける各フィルタ位置での係数C
0゜、 Cot、  ・・・・eC2□を設定する9個
の係数設定器6〜14と、入力画像データと係数設定器
6〜14の係数との積を算出する9個の乗算器15が設
けられる。更に乗算器15の各出力は、9個のDFF1
7と加算器16により順次加算され、最終的に出力端子
2から9個の画像データと係数の積和をフィルタ演算値
として得られる。
As shown in FIG.
0°, Cot, . . . nine coefficient setters 6 to 14 that set eC2□, and nine multipliers 15 that calculate the product of the input image data and the coefficients of the coefficient setters 6 to 14. provided. Furthermore, each output of the multiplier 15 is connected to nine DFF1
7 and an adder 16, and finally the sum of products of nine image data and coefficients is obtained from the output terminal 2 as a filter calculation value.

具体的には、任意の画像データ入力時点での第5図に示
した空間フィルタの係数位置に対する画像データの振り
一分は状態は第6図に示すようになる。−即ち、空間フ
ィルタの中央の斜線部に位置する画像データ(基準デー
タ)がフィルタ演算の対象となっており、この中心に位
置する画像データに対し、その周囲に隣接して存在する
8つの画像データがフィルタ演算に使用され、各画像デ
ータと対応する係数の積和として中心の画像データに関
するフィルタ演算値が求められる。
Specifically, the distribution of image data with respect to the coefficient position of the spatial filter shown in FIG. 5 at the time of inputting arbitrary image data results in a state as shown in FIG. 6. - That is, the image data (reference data) located in the hatched area in the center of the spatial filter is the target of filter calculation, and the eight images that exist adjacent to the image data located in the center are The data is used in a filter operation, and a filter operation value for the central image data is determined as the sum of products of each image data and the corresponding coefficient.

このような空間フィルタの演算は、第7図に示すように
、メモリ内に配列された水平画素数Hの画像データに対
し、第5図の係数を設定した3行3列の空間フィルタを
画像データ毎に順次シフトし、フィルタ中心に位置した
画像データのフィルタ演算値を求めて行くことと等価で
ある。
As shown in FIG. 7, such a spatial filter calculation is performed by applying a spatial filter of 3 rows and 3 columns with the coefficients shown in FIG. This is equivalent to sequentially shifting each data and finding the filter calculation value of the image data located at the center of the filter.

[発明が解決しようとする課題] しかしながら、このような空間フィルタを構成する従来
の画像処理装置にあっては、FIFOメモリとして画像
データの水平画素数HにM行M列空間フィルタの行数M
個分、例えばM=3個分のメモリ段数が必要であり、F
IFOメモリの回路構成が複雑になる問題があった。
[Problems to be Solved by the Invention] However, in a conventional image processing device that configures such a spatial filter, the number of horizontal pixels H of image data as a FIFO memory is equal to the number M of rows of the spatial filter in M rows and M columns.
For example, M = 3 memory stages are required, and F
There was a problem that the circuit configuration of the IFO memory became complicated.

即ち、画像処理で扱う画像データの水平垂直サイズは2
のべき乗とするのが一般的であり、例えば、垂直方向2
048画素、水平方向2048画素の画像とする。一方
、FIFOとしては、例えば2048段でメモリ段数が
可変なもの市販されているが、水平画素数Hに3段加え
た2051段のFIFOメモリとしなければならないた
め、2048段のFIFOメモリを使っても−3段分足
らない。そこで3段分のD−フリップフロップをFIF
Oメモリの後に別回路として付は加える必要があり、そ
の分だけ回路規模が大きくなるという問題点があった。
In other words, the horizontal and vertical size of image data handled in image processing is 2.
For example, in the vertical direction 2
The image has 048 pixels and 2048 pixels in the horizontal direction. On the other hand, FIFOs with a variable number of memory stages, such as 2048 stages, are commercially available, but since the FIFO memory must have 2051 stages, which is 3 stages added to the horizontal pixel number H, it is necessary to use a 2048 stage FIFO memory. It's also -3 steps short. Therefore, three stages of D-flip-flops are
Since it is necessary to add a separate circuit after the O memory, there is a problem in that the circuit scale increases accordingly.

本発明は、このような従来の問題点に鑑みてなされたも
ので、水平方向の画素数よりも短い段数のFIFOメモ
リにより画像処理用の空間フィルタを構成できる画像処
理装置を提供することを目的とする。
The present invention has been made in view of such conventional problems, and an object of the present invention is to provide an image processing device that can configure a spatial filter for image processing using a FIFO memory with a number of stages shorter than the number of pixels in the horizontal direction. shall be.

[課題を解決するための手段] まず本発明は、メモリに格納された水平画素数Hの画像
データを順次読出してM段に縦接続されたFIFOメモ
リに入力し、該M段のFIFOメモリの各段の並列出力
をM行M列の空間フィルタを構成するフィルタ演算部に
行単位に出力し、該フィルタ演算部でM行M列の各フィ
ルタ位置に設定している係数と該係数位置に入力した画
像データとの積の総和としてフィルタ中心に位置する画
像データのフィルタ演算値を順次算出する画像処理装置
を対象とする。
[Means for Solving the Problems] First, the present invention sequentially reads out image data of H horizontal pixels stored in a memory and inputs it to FIFO memories vertically connected in M stages. The parallel outputs of each stage are output row by row to a filter calculation section that constitutes a spatial filter of M rows and M columns, and the filter calculation section outputs the coefficients set at each filter position of M rows and M columns and the coefficient position. The present invention is directed to an image processing apparatus that sequentially calculates a filter calculation value of image data located at the center of the filter as the sum of products with input image data.

このような画像処理装置につき本発明にあっては、FI
FOメモリの各メモリ段数を水平画素数Hがら空間フィ
ルタの行数Mを差し引いた段数(H−M)とし、第1段
目のF I FOメモリの出力を前記フィルタ演算部の
出力端子に最も近い行の演算部に入力接続すると共に最
終の第M番目のFIFOメモリの出力を前記フィルタ演
算部の出力端子に最も遠い演算部に入力接続するように
M段のFIFOメモリの出力を前記フィルタ演算部に入
力接続したものである。
In the present invention, for such an image processing device, the FI
The number of memory stages of the FO memory is defined as the number of stages (HM - M) obtained by subtracting the number of rows of the spatial filter from the number of horizontal pixels H, and the output of the first stage FI FO memory is connected to the output terminal of the filter calculation section. The output of the M-stage FIFO memory is connected to the calculation unit in the filter calculation unit in the filter calculation unit so that the output of the final M-th FIFO memory is connected to the calculation unit in the nearest row, and the output terminal of the final M-th FIFO memory is connected to the calculation unit furthest from the output terminal of the filter calculation unit. The input is connected to the section.

[作用] このような構成を備えた本発明の画像処理装置によれば
、従来、水平画素数Hに空間フィルタの行数Mを加えた
(l(+M)段のF I FOメモリを必要としたもの
が、本発明にあっては、水平画素数Hがら空間フィルタ
の行数Mを差し引いた(H−M)段のFIFOメモリと
することができ、そのため従来に比ベメモリ段数を1つ
のFIFOで(2XM)段少なくでき、且つ、2のべき
乗数の段数をもつ市販のFIFOメモリ、例えば段数2
048のFIFOメモリであっても、本発明にあっては
、水平画素数H=2048に対し例えばM=3段少なく
てよいことから、そのまま市販のFIFOメモリを使用
でき、回路構成の簡略化と同時にコストダウンできる。
[Function] According to the image processing device of the present invention having such a configuration, conventionally, an F I FO memory of (l(+M) stages), which is the number of horizontal pixels H plus the number of rows of the spatial filter M, is required. However, in the present invention, it is possible to create a FIFO memory with (HM-M) stages, which is the number of horizontal pixels H minus the number of spatial filter rows M. Therefore, compared to the conventional method, the number of memory stages is one FIFO A commercially available FIFO memory that can reduce the number of stages by (2
In the present invention, even if the FIFO memory is 0.048, the number of horizontal pixels H = 2048, M = 3 stages may be reduced, for example, so a commercially available FIFO memory can be used as is, and the circuit configuration can be simplified. At the same time, costs can be reduced.

[実施例] 第1図は本発明の一実施例を示した実施例構成図であり
、3行3列の空間フィルタを構成した場合を例にとって
いる。
[Embodiment] FIG. 1 is a block diagram showing an embodiment of the present invention, taking as an example a case where a spatial filter is arranged in three rows and three columns.

第1図において、3.4.5は入力端子1に対し縦接続
されたFIFOメモリであり、FIFOメモリ3.4.
5は加増データの水平画素数をHとすると、空間フィル
タの行数M=3だけ少ない(H−M)= (H−3)段
で構成される。
In FIG. 1, 3.4.5 is a FIFO memory vertically connected to input terminal 1, and FIFO memory 3.4.
5 is composed of (HM-M)=(H-3) stages, where the number of horizontal pixels of the additional data is H, the number of rows of the spatial filter is M=3.

FIFOメモリ3.4.5に続いてはフィルタ演算部1
00が設けられ、係数C。O=C22を設定する9個の
係数レジスタ6〜14、画像データと係数との積を求め
る9個の乗算器15、乗算器15の積の9つの総和を算
出する8個のDフリップフロップ(以下rD−FFJと
いう)17、初期値設定用D−FF18及び9個の加算
器16を備える。
Following the FIFO memory 3.4.5 is the filter calculation unit 1.
00 is provided and the coefficient C. Nine coefficient registers 6 to 14 that set O=C22, nine multipliers 15 that calculate the product of image data and the coefficient, and eight D flip-flops that calculate the nine sums of the products of the multipliers 15 ( (hereinafter referred to as rD-FFJ) 17, a D-FF 18 for initial value setting, and nine adders 16.

入力端子1から入力した画像データは、FIFOメモリ
3.4,5の順に送られる。
Image data input from input terminal 1 is sent to FIFO memories 3, 4 and 5 in this order.

第4図の従来構成と異なるのは、FIFOメモリ3の出
力は出力端子2に最も近い行の3つの乗算器13に入力
し、FIFOメモリ4の出力は次の行の3つの乗算器1
5に入力し、最終段のFIFO5の出力は出力端子2か
ら最も遠い行の3つの乗算器15に入力する点である。
The difference from the conventional configuration shown in FIG. 4 is that the output of the FIFO memory 3 is input to the three multipliers 13 in the row closest to the output terminal 2, and the output of the FIFO memory 4 is input to the three multipliers 13 in the next row.
5, and the output of the final stage FIFO 5 is input to the three multipliers 15 in the row farthest from the output terminal 2.

従って、フィルタ演算部100の出力端子2からは、係
数レジスタ6.7.8の係数数C。ae  C。1w 
 CO2とFIFOメモリ5の出力との積と、係数レジ
スタ9.io、iiの係数Cto、  C1t、  C
,2とFIFOメモリ14の出力との積と、係数レジス
タ12.13.14の係数C2゜、  C2゜、 C2
゜とFIFOメモリ3の出力との積との和が出力される
Therefore, from the output terminal 2 of the filter calculation unit 100, the number of coefficients C of the coefficient register 6.7.8 is output. ae C. 1w
The product of CO2 and the output of the FIFO memory 5 and the coefficient register 9. Coefficients Cto, C1t, C of io, ii
, 2 and the output of the FIFO memory 14 and the coefficient C2°, C2°, C2 of the coefficient register 12.13.14
The sum of the product of ° and the output of the FIFO memory 3 is output.

同様にして一般的なM行M列の空間フィルタの場合は、
水平画素数Hよりフィルタ行数M分だけ少ないメモリ段
数(H−M)のFIFOメモリをM段に縦接続し、入力
した信号をFIFO−1〜M−1の順に通す。そして、
1番目のF I FO−oの出力を出力端子2に最も近
い行の乗算器に入力し、2番目のF IFO−lの出力
を次の行の乗算器に入力し、3番目のFIFO−2の出
力を更に次の行の乗算器へと順々に入力していくように
接続構成する。
Similarly, in the case of a general spatial filter with M rows and M columns,
FIFO memories having a number of memory stages (HM-M) smaller by the number of filter rows M than the number of horizontal pixels H are vertically connected in M stages, and input signals are passed through the FIFOs in the order of FIFO-1 to M-1. and,
The output of the first FIFO-o is input to the multiplier on the row closest to output terminal 2, the output of the second FIFO-l is input to the multiplier on the next row, and the output of the second FIFO-1 is input to the multiplier on the next row. The connection structure is such that the output of No. 2 is further sequentially input to the multiplier on the next row.

そして係数Co、 o 〜C0,61−1は最後のFI
FO−(M−l)の出力と乗算し、係数Ct−o”C+
And the coefficient Co, o ~ C0, 61-1 is the last FI
Multiply by the output of FO-(M-l) and get the coefficient Ct-o”C+
.

トlは最後から2番目のFIFO−(N−2)の出力と
乗算し、以下同様にして、最後の行の係数CM−l、 
0− CM−l、 M−lは第1番目のF I FO=
0の出力と乗算され、最終的に全ての加算結果としてM
XM項の積和が計算できる。
The coefficient CM-l of the last row is multiplied by the output of the second-to-last FIFO-(N-2), and in the same manner, the coefficient CM-l of the last row is
0- CM-l, M-l is the first FIFO=
is multiplied by the output of 0, and finally M as the result of all additions
The sum of products of XM terms can be calculated.

このような本発明の構成により、空間フィルタに必要な
FIFOメモリの段数は(H−M)となり、従来の(H
+M)よりも2M段分だけ少なくなる。
With this configuration of the present invention, the number of FIFO memory stages required for the spatial filter is (HM-M), which is compared to the conventional (H-M).
+M) by 2M stages.

次の本発明により実現される空間フィルタの機能を説明
する。
The following describes the function of the spatial filter realized by the present invention.

あるクロックの時点(N)において第1図の出力端子2
に出力される信号OUT (N)は、入力信号IN(N
)と9つの係数Call〜C22で表される。 まず、
FIFOメモリ3. 4. 5のNの時点での出力FO
(N)、Fl (N)、F2 (N)は、FIFOメモ
リ3.4.5の長さが(H−3)であるので、 FO(N) =IN (N−H+3)    川(1)
Fl (N)=IN (N−2xH+6)   −・−
(2)F2 (N)=IN (N−3XH+9)   
−・・(3)となる。また、出力端子2からD−FF1
7を1個さかのぼるごとに1クロック戻るので、出力信
号OUT (N)は、 OUT (N) ・F2 (N−lf) x COO+F2 (N−7)
  x c旧十F2(トロ)  xCO2+H(N−5
) x Clo十Fl(N−4)  XC11+FI(
N−3)  XC12+FO(N−2)XC20+FO
(N−1)  XC21+FO(N)   XC22・
・・ (4) となる。
At a certain clock time (N), the output terminal 2 in FIG.
The signal OUT (N) output to the input signal IN (N
) and nine coefficients Call to C22. first,
FIFO memory 3. 4. Output FO at time N of 5
(N), Fl (N), F2 (N), since the length of FIFO memory 3.4.5 is (H-3), FO(N) = IN (N-H+3) River (1)
Fl (N)=IN (N-2xH+6) −・−
(2) F2 (N)=IN (N-3XH+9)
-...(3). Also, from output terminal 2 to D-FF1
Every time you go back 7, you go back one clock, so the output signal OUT (N) is OUT (N) ・F2 (N-lf) x COO+F2 (N-7)
x c Old 10F2 (Toro) xCO2+H (N-5
) x Clo ten Fl (N-4) XC11+FI (
N-3) XC12+FO (N-2)XC20+FO
(N-1) XC21+FO(N) XC22・
... (4) becomes.

この第(4)式に前記第(1)(2)(3)式を代入す
ると、 oUT (N) =IN (N−3x N+1) x 
COO+IN (ト3 X N+2) x clll+
IN (N−3X N+3) X C12+IN (N
−2X 111) X CIO十IN(N−2XH+2
)XC11+IN(N−2X旧4)XCO2+夏N (
N−1+1) x e?o+IN (N−11+2) 
x C21+IN (N−H+3) X C22・・・
(5)となる。
Substituting the above equations (1), (2), and (3) into this equation (4), oUT (N) = IN (N-3x N+1) x
COO+IN (To3 x N+2) x cllll+
IN (N-3X N+3) X C12+IN (N
-2X 111) X CIO ten IN (N-2XH+2
)XC11+IN (N-2X old 4)XCO2+Summer N (
N-1+1) x e? o+IN (N-11+2)
x C21+IN (NH+3) X C22...
(5) becomes.

よって、OUT (N)は(N−2XH+2)の時点の
入力画像をフィルタ中心とする3×3の9個の値と係数
Call−C22との積和になって右り、空間フィルタ
が構成されていることが証明される。
Therefore, OUT (N) is the sum of products of nine values of 3 x 3 with the input image at time (N-2XH+2) as the filter center and the coefficient Call-C22, and a spatial filter is constructed. It is proven that

即ち、第1図のフィルタ演算部100による空間フィル
タの係数C。o−czzの分布は第2図のようになり、
ある入力時点(N)での各フィルタ位置に対する画像デ
ータの分布は前記第(5)式に基づき第3図に示すよう
になり、斜線部で示すフィルタ中心に位置する画像デー
タ(2H−2)のフィルタ演算値が前記(5)式から求
められることを意味している。尚、第3図では入力時点
(N)は省略している。
That is, the coefficient C of the spatial filter by the filter calculation unit 100 in FIG. The distribution of o-czz is as shown in Figure 2,
The distribution of image data for each filter position at a certain input time point (N) is as shown in FIG. 3 based on the above equation (5), and the image data (2H-2) located at the center of the filter is shown by the diagonal line. This means that the filter calculation value of is obtained from the above equation (5). Note that the input time point (N) is omitted in FIG.

一方、第4図に示した従来装置についてFIFOメモリ
3. 4. 5のメモリ段数を(N+3)段として同様
の計算を行なうと、出力OUT−(N)は、 0υT (N) =lN (N−3X H−ll) C
OD+IN (N−3x ト10) COI+IN(ト
3 xH−9)CO2+IN(N−2xト11)CIO
+IN(N−lt xH−lll)CII+IN(N−
j! xH−9)C12+IN(N−F11) C20
+IN (N−F111) C21+IN (N−H−
9) C22・・−(6) となり、(N−2XH−10)の時点の入力画像をフィ
ルタ中心とする積和になっている。
On the other hand, regarding the conventional device shown in FIG. 4, the FIFO memory 3. 4. If the same calculation is performed with the number of memory stages of 5 as (N+3) stages, the output OUT-(N) will be 0υT (N) = lN (N-3X H-ll) C
OD+IN (N-3x 10) COI+IN (3xH-9) CO2+IN (N-2x 11) CIO
+IN(N-lt xH-lll) CII+IN(N-
j! xH-9) C12+IN(N-F11) C20
+IN (N-F111) C21+IN (N-H-
9) C22...-(6) This is a sum of products with the input image at time (N-2XH-10) as the center of the filter.

勿論、一般的に表現されるM行M列の空間フィルタの場
合も同様に証明することができる。
Of course, the same proof can be applied to the generally expressed spatial filter with M rows and M columns.

第1図の動作を説明すると、入力端子1から入力した画
像データはFIFOメモリ3に入力する。
To explain the operation shown in FIG. 1, image data input from the input terminal 1 is input to the FIFO memory 3.

FIFOメモリ3の段数は水平画素数Hより3段少ない
(N−3)段であるので、(N−3)クロック後にFI
FOメモリ3から画像データが出る。
The number of stages of the FIFO memory 3 is (N-3) stages, which is three stages less than the number of horizontal pixels H, so the FIFO memory 3 is processed after (N-3) clocks.
Image data is output from FO memory 3.

FIFOメモリ3の出力はFIFOメモリ4に入力され
る。FIFOメモリ4も(N−3)段なので、さらに(
N−3)クロック後にFIFOメモリ4から画像データ
が出力される。FIFOメモリ4の出力はFIFOメモ
リ5に入力される。FIFOメモリ5も(N−3)段な
ので、さらに(N−3)クロック後にFIFOメモリ5
から画像データが出力される。
The output of FIFO memory 3 is input to FIFO memory 4. FIFO memory 4 also has (N-3) stages, so
N-3) Image data is output from the FIFO memory 4 after a clock. The output of FIFO memory 4 is input to FIFO memory 5. The FIFO memory 5 also has (N-3) stages, so after another (N-3) clock, the FIFO memory 5
Image data is output from.

よって、第(1)式、第(2)式、第(3)式に示され
るFO(N)、Fl (N)、F2 (N)が、各FI
FOメモリ3. 4. 5の出力となる。
Therefore, FO (N), Fl (N), and F2 (N) shown in equations (1), (2), and (3) are
FO memory 3. 4. The output will be 5.

D−FF18は、初期値を入れるレジスタであり、通常
、Oを入力しておく。よってFIFOメモリ5の出力F
2(N)と係数レジスタ6の係数Cooの積がD−FF
17に入る。
The D-FF 18 is a register into which an initial value is input, and normally O is input therein. Therefore, the output F of FIFO memory 5
The product of 2(N) and the coefficient Coo of coefficient register 6 is D-FF.
Enter 17.

′次のクロックではF 2 (N) X CooとF2
(N+1)XCOIの和が次のD−FF17に入り、そ
の次のクロックではF2 (N+2)XCO2の和が加
えられる。この段階で、 F2(N)  XCllO+F2(N+1)  XCO
l+F2(N+2)  XCO2が第1行目の左から3
個目のD−FF17に入っている。さらに、次のクロッ
クから3クロック後に、FIFOメモリ4の出力F1と
係数ctn、c比 C12の積が計算され、 Fl(N+3) XCIO+F1(N+4) XC11
+Fl(N+5) XC12がさらに加算され、第2行
目の右端となる最初から6個目のD−FF17に入る。
'In the next clock, F 2 (N) X Coo and F2
The sum of (N+1)XCOI enters the next D-FF 17, and the sum of F2 (N+2)XCO2 is added at the next clock. At this stage, F2(N) XCllO+F2(N+1) XCO
l+F2(N+2) XCO2 is 3 from the left on the first row
It is included in the second D-FF17. Furthermore, three clocks after the next clock, the product of the output F1 of the FIFO memory 4, the coefficient ctn, and the c ratio C12 is calculated, and Fl(N+3) XCIO+F1(N+4) XC11
+Fl(N+5)

さらに3クロック後には、 FO(N+6) XC208FO(N+7)  XC2
1+FO(N+8)  XC22が加えられる。よって
出力OUT (N)は、以上の式の(N+8)をNに置
き換えると前記第(4)式、第(5)式で示されるよう
になる。
After 3 more clocks, FO(N+6) XC208FO(N+7) XC2
1+FO(N+8) XC22 is added. Therefore, the output OUT (N) is expressed by the above-mentioned equations (4) and (5) by replacing (N+8) with N in the above equations.

よって、この構成で3X3の空間フィルタが実現できる
。勿論、(H−M)段のFIFOメモリがM個縦接続し
、MxM個の乗算器、係数レジスタ、加算器、D−フリ
ップフロップによってM×Mの空間フィルタを構成した
場合も同じである。
Therefore, a 3×3 spatial filter can be realized with this configuration. Of course, the same applies to the case where M FIFO memories of (HM) stages are connected in series and an M×M spatial filter is configured by M×M multipliers, coefficient registers, adders, and D-flip-flops.

[発明の効果] 以上説明したように本発明によれば、水平画素数よりも
少ない段数のFIFOメモリを用いて空間フィルタを構
成できるので、従来に比べて回路規模を少なくできる。
[Effects of the Invention] As described above, according to the present invention, a spatial filter can be configured using FIFO memories with fewer stages than the number of horizontal pixels, so the circuit scale can be reduced compared to the conventional one.

特に空間フィルタのサイズがM行M列のときには、水平
画素数よりもM段少ないFIFOメモリで構成できるの
で、空間フィルタのサイズが大きくなるほど回路規模を
少なくすることによるサイズ、コスト面での効果が大き
くなる。
In particular, when the size of the spatial filter is M rows and M columns, it can be configured with M stages less FIFO memory than the number of horizontal pixels, so the larger the size of the spatial filter, the more effective it is in terms of size and cost by reducing the circuit scale. growing.

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

第1図は本発明の一実施例を示したブロック図:第2図
は本発明の空間フィルタの係数分布の説明図; 第3図は本発明の空間フィルタの画像データ振り分は説
明図: 第4図は従来装置のブロック図: 第5図は従来装置の空間フィルタの係数分説明図:第6
図は従来装置の空間フィルタの画像データ振り分は説明
図: 第7図はメモリ画像データの空間フィルタによる演算処
理を模式的に示した説明図である。 1二人力端子 2:出力端子 3.4.5:FIFOメモリ 6〜14:係数レジスタ
Fig. 1 is a block diagram showing an embodiment of the present invention; Fig. 2 is an explanatory diagram of the coefficient distribution of the spatial filter of the present invention; Fig. 3 is an explanatory diagram of the distribution of image data of the spatial filter of the present invention: Figure 4 is a block diagram of the conventional device; Figure 5 is an explanatory diagram of the spatial filter coefficients of the conventional device; Figure 6
The figure is an explanatory diagram of the distribution of image data by a spatial filter in a conventional device. FIG. 7 is an explanatory diagram schematically showing arithmetic processing of memory image data by a spatial filter. 1 Two-power terminal 2: Output terminal 3.4.5: FIFO memory 6-14: Coefficient register

Claims (1)

【特許請求の範囲】[Claims] メモリに格納された水平画素数Hの画像データを順次読
出してM段に縦接続されたFIFOメモリに入力し、該
M段のFIFOメモリの各段の並列出力をM行M列の空
間フィルタを構成するフィルタ演算部に行単位に入力し
、該フィルタ演算部でM行M列の各フィルタ位置に設定
した係数と該係数位置に入力した画素データとの積の総
和としてフィルタ中心に位置する画像データのフィルタ
演算値を順次算出する画像処理装置に於いて、前記FI
FOの各メモリ段数を水平画素数Hから前記空間フィル
タの行数Mを差し引いた段数(H−M)とし、第1段目
のFIFOメモリの出力を前記フィルタ演算部の出力端
子に最も近い行の演算部に入力接続すると共に最終の第
M番目のFIFOメモリの出力を前記フィルタ演算部の
出力端子に最も遠い行の演算部に入力接続するようにM
段のFIFOメモリの各出力を前記フィルタ演算部に入
力接続したことを特徴とする画像処理装置。
The image data with H horizontal pixels stored in the memory is sequentially read out and input into M stages of vertically connected FIFO memories, and the parallel outputs of each stage of the M stages of FIFO memories are passed through a spatial filter with M rows and M columns. An image located at the center of the filter as the sum of the products of the coefficients input row by row to the constituent filter calculation section and set at each filter position in M rows and M columns in the filter calculation section and the pixel data input to the coefficient position. In an image processing device that sequentially calculates filter calculation values of data, the FI
The number of memory stages of each FO is set as the number of stages (HM - M) obtained by subtracting the number of rows M of the spatial filter from the number H of horizontal pixels, and the output of the first stage FIFO memory is set to the row closest to the output terminal of the filter calculation section. M such that the output of the final M-th FIFO memory is input connected to the calculation unit in the row furthest from the output terminal of the filter calculation unit.
An image processing apparatus characterized in that each output of each stage of FIFO memory is connected as an input to the filter calculation section.
JP1288095A 1989-11-06 1989-11-06 Picture processor Pending JPH03148780A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1288095A JPH03148780A (en) 1989-11-06 1989-11-06 Picture processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1288095A JPH03148780A (en) 1989-11-06 1989-11-06 Picture processor

Publications (1)

Publication Number Publication Date
JPH03148780A true JPH03148780A (en) 1991-06-25

Family

ID=17725729

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1288095A Pending JPH03148780A (en) 1989-11-06 1989-11-06 Picture processor

Country Status (1)

Country Link
JP (1) JPH03148780A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10022919B2 (en) 2011-12-09 2018-07-17 Ticona Llc Method for impregnating fiber rovings

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10022919B2 (en) 2011-12-09 2018-07-17 Ticona Llc Method for impregnating fiber rovings

Similar Documents

Publication Publication Date Title
US4550437A (en) Apparatus for parallel processing of local image data
EP0444368B1 (en) Digital Filtering with SIMD-processor
EP0150060A2 (en) Multifunctional image processor
US5600582A (en) Programmable horizontal line filter implemented with synchronous vector processor
JPS61241877A (en) Space product sum arithmetic unit
US5163100A (en) Image processing circuit with reduced number of contact pads
EP0450260B1 (en) Digital signal filter circuit
US5668895A (en) Digital filter for image processing
EP0713291B1 (en) Signal processing apparatus
JPH03148780A (en) Picture processor
JPH0566043B2 (en)
JPH05135169A (en) Two-dimensional spatial filter circuit
JP3639014B2 (en) Signal processing device
US4987557A (en) System for calculation of sum of products by repetitive input of data
JPS60119116A (en) Two-dimensional arithmetic unit for calculating sum of products
JPS58163061A (en) Parallel picture processor
CS269263B1 (en) Method of image's digital filtering and connection for realization of this method
JP2922451B2 (en) Signal processing device
JPH0418683A (en) Picture filtering device
JP2945013B2 (en) Spatial filter image processing device
JPH03251966A (en) Data processor, image processor, shift register, look-up table circuit, arithmetic circuit, and image processing system
JPS62221076A (en) Picture processor
JP2000020705A (en) Parallel image processing processor
LEE et al. A sliced first-quadrant second-order two-dimensional digital filter chip set for modular filter implementation
JPH0616293B2 (en) Image processing device