JPH0534711B2 - - Google Patents

Info

Publication number
JPH0534711B2
JPH0534711B2 JP58123008A JP12300883A JPH0534711B2 JP H0534711 B2 JPH0534711 B2 JP H0534711B2 JP 58123008 A JP58123008 A JP 58123008A JP 12300883 A JP12300883 A JP 12300883A JP H0534711 B2 JPH0534711 B2 JP H0534711B2
Authority
JP
Japan
Prior art keywords
data
pixel data
storage means
addition
stages
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 - Lifetime
Application number
JP58123008A
Other languages
Japanese (ja)
Other versions
JPS6015782A (en
Inventor
Shoichi Kojima
Takashi Tsunekawa
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.)
Toshiba Corp
Original Assignee
Tokyo Shibaura 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 Tokyo Shibaura Electric Co Ltd filed Critical Tokyo Shibaura Electric Co Ltd
Priority to JP58123008A priority Critical patent/JPS6015782A/en
Publication of JPS6015782A publication Critical patent/JPS6015782A/en
Publication of JPH0534711B2 publication Critical patent/JPH0534711B2/ja
Granted legal-status Critical Current

Links

Landscapes

  • Image Processing (AREA)
  • Image Analysis (AREA)
  • Complex Calculations (AREA)

Description

【発明の詳細な説明】 〔発明の技術分野〕 本発明は画像中の小領域の特徴を効果的に抽出
することの可能な簡易で実用性の高い構成の画像
処理装置に関する。
DETAILED DESCRIPTION OF THE INVENTION [Technical Field of the Invention] The present invention relates to an image processing device having a simple and highly practical configuration capable of effectively extracting features of small regions in an image.

〔発明の技術的背景とその問題点〕[Technical background of the invention and its problems]

物体表面の粒度や傷検査等を行う場合、しばし
ば上記検査対象を画像入力し、その画像の一定面
積内に含まれる検査対象の数や上記検査対象の面
積の総和を求めると云う画像処理が良く利用され
る。このような画像処理において、従来一般的に
はその処理時間を短くする為に、検査対象である
全領域を複数の小領域に分割し、各小領域内でそ
れぞれ所定の画像処理が行われている。しかし、
このような処理法は、画像中の検査対象がその画
像の全域に亘つて均一に分布している場合には非
常に効果的であるが、例えば第1図に示すように
分布の片寄りが在る場合、どの小領域を検査する
かによつて問題が生じる。
When inspecting the particle size or flaws on the surface of an object, image processing is often used to input an image of the object to be inspected and calculate the number of objects to be inspected within a certain area of the image and the total area of the objects to be inspected. used. Conventionally, in order to shorten the processing time in such image processing, the entire area to be inspected is divided into multiple small areas, and predetermined image processing is performed within each small area. There is. but,
Such a processing method is very effective when the inspection target in the image is uniformly distributed over the entire area of the image, but if the distribution is uneven, as shown in Figure 1, for example, If so, the question arises as to which sub-area is to be inspected.

即ち、第1図に示すように(M×N)画素から
なる検査対象画像1の(m×n)画素からなる小
領域2に着目し、この小領域2内における傷3の
数を計数して検査結果を得るものとすると、上記
小領域2の設定位置によつては第2図a,bに示
すように傷3の数が異つてくる。この為、同じ画
像1を処理(検査)しているにも拘らず、その検
査結果が合格になる場合と、不合格になる場合と
が生じ、甚だ具合が悪い。この為、従来にあつて
は、検査対象が不均一に分布している場合には、
対象画像1の全域に亘つて画像処理することが必
要とされていた。
That is, as shown in FIG. 1, focusing on a small area 2 consisting of (m x n) pixels in an inspection target image 1 consisting of (M x N) pixels, the number of scratches 3 within this small area 2 is counted. If the inspection results are obtained using the same method, the number of scratches 3 will vary depending on the setting position of the small area 2, as shown in FIGS. 2a and 2b. For this reason, even though the same image 1 is being processed (inspected), the inspection result may pass or fail, which is extremely inconvenient. For this reason, conventionally, when the inspection targets are unevenly distributed,
It was necessary to perform image processing over the entire area of the target image 1.

〔発明の目的〕[Purpose of the invention]

本発明はこのような事情を考慮してなされたも
ので、その目的とするところは、検査対象の不均
一な画像に対しても局所的に簡易に、且つ高速に
誤差のない検査結果を得ることのできる実用性の
高い画像処理装置を提供することにある。
The present invention was made in consideration of these circumstances, and its purpose is to locally easily and quickly obtain error-free inspection results even for non-uniform images of the inspection target. The object of the present invention is to provide a highly practical image processing device that can perform the following tasks.

〔発明の概要〕[Summary of the invention]

本発明は(M×N)画素からなる画像を2次元
走査して得られる時系列な入力画素データを{M
×(n−1)}段遅延すると共に、更にこれをm段
遅延し、上記(n−1)ライン遅延された画素デ
ータと現出力画素データおよびM段の記憶手段に
格納された加算画素データとから(n−1)ライ
ンに亘る各画素列の加算画素データを漸化的に求
めてこれを上記M段の記憶手段に格納し、累積和
レジスタに格納されるデータ、上記処理過程で得
られる(n−1)ラインに亘る画素列の加算画素
データおよび前記m段遅延されたデータ等から上
記累積和レジスタに(m×n)画素からなる小領
域の特徴情報(累積和データ)を漸化的に得るよ
うにしたものである。
The present invention uses time-series input pixel data obtained by two-dimensionally scanning an image consisting of (M×N) pixels.
×(n-1)} stages, and further delayed by m stages, and the pixel data delayed by (n-1) lines, the current output pixel data, and the added pixel data stored in the M-stage storage means are The summation pixel data of each pixel column extending over (n-1) lines is determined recursively from The feature information (cumulative sum data) of a small area consisting of (m×n) pixels is gradually stored in the cumulative sum register from the summed pixel data of the pixel string extending over (n-1) lines and the m-stage delayed data. It was designed to be obtained chemically.

〔発明の効果〕〔Effect of the invention〕

従つて本発明によれば、簡易にして高速に画像
に対する(m×n)画素からなる小領域の累積和
データを漸化的に求めることが可能となる。しか
も、上記小領域位置を画像の全領域に対してそれ
ぞれ設定して、各位置における上記累積和データ
を各々高精度に求めることができる。故に、任意
の小領域から処理対象画像の情報を正確に得るこ
とができ、その実用的利点は絶大である。
Therefore, according to the present invention, it is possible to easily and rapidly obtain the cumulative sum data of a small area consisting of (m×n) pixels for an image in a recursive manner. Moreover, by setting the small area positions for the entire area of the image, the cumulative sum data at each position can be determined with high precision. Therefore, information on the image to be processed can be accurately obtained from any small area, and its practical advantage is enormous.

〔発明の実施例〕[Embodiments of the invention]

以下、図面を参照して本発明の一実施例につき
説明する。
Hereinafter, one embodiment of the present invention will be described with reference to the drawings.

第3図は本装置における演算原理を示すもの
で、1は(M×N)画素からなる処理対象画像、
2は演算処理の対象となる(m×n)画素の小領
域を示している。また4は、上記小画像1を2次
元走査して得られる時系列な画素をそれぞれ示し
ている。また図中5は、上記領域6の(n−1)
ライン分の縦方向の加算データ、つまり縦方向n
画素のデータ和を仮想的に示したものである。
尚、図中6は上記小領域3の最上ラインを除いた
{m×(n−1)}画素からなる部分領域を示して
いる。
Figure 3 shows the principle of operation in this device, where 1 is an image to be processed consisting of (M×N) pixels;
2 indicates a small area of (m×n) pixels to be subjected to arithmetic processing. Further, 4 indicates time-series pixels obtained by two-dimensionally scanning the small image 1. In addition, 5 in the figure is (n-1) of the above region 6.
Vertical addition data for a line, that is, vertical direction n
This is a virtual representation of the sum of pixel data.
Note that 6 in the figure indicates a partial area consisting of {m×(n-1)} pixels excluding the top line of the small area 3.

今、ここで、既に(m×n)画素からなる小領
域2の累積和〓i-1,jが求められ、また前記部分領
域6における各列(縦方向)のデータ和Si-n,j
Si-n+1,j〜Si-1,jがそれぞれ求められているものと
する。そして、次に計算すべき小領域2が、右に
1画素分ずれるものとする。この場合、走査によ
つて新しく、(i、j)なる画素のデータdi,jが入
力され、このデータを用いて、その列のn画素分
のデータ和Ti,jが計算される。更にこのデータの
和Ti,jから、最上ラインを除く(n−1)画素分
のデータの和Si,jが計算されることになる。この
計算は、既に求められているその列の(n−1)
画素分のデータの和Si,j-1に、上記入力画素デー
タdi,jを加算することにより行われ、 Ti,j=Si,j-1+di,j として、前記n画素分のデータの和が求められ
る。更に(n−1)画素分のデータの和Si,jは Si,j=Ti,j−di,j-(o-1) =Si,j-1+di,j−di,j-(o-1) として求められる。そして、この新らしく求めら
れた加算データTi,jを、先に求められた小領域2
の累積和〓i-1,jに加え、この先の追加によつて先
の小領域2の最左端列を消去して新たな1画素分
右にシフトした小領域2が設定されることから、
前記部分領域6の最左端列のデータの和Si-n,j
よび小領域2の最左端列・最上行の画素データ
di-n,j-o-1を差し引くことによつて 〓i,j=〓i-1,j+Ti,j−Si-n,j −di-n,j-(o-1) として、新たな小領域2の累積和データが求めら
れる。つまり、画像1の2次元走査によつて、新
たな画素データdi,jが入力される都度、上述した
計算処理を行えば、上記画素位置(i、j)によ
つて規定される(m×n)画素からなる小領域2
の累積和を高速度に逐次求めることができる。
Now, here, the cumulative sum 〓 i-1,j of the small area 2 consisting of (m×n) pixels has already been found, and the data sum S in,j of each column (vertical direction) in the partial area 6,
It is assumed that S i-n+1,j to S i-1,j are respectively determined. It is assumed that the next small area 2 to be calculated is shifted to the right by one pixel. In this case, new pixel data d i,j of (i, j) is input through scanning, and this data is used to calculate the data sum T i,j of n pixels in that column. Further, from this data sum T i,j , a sum S i,j of data for (n-1) pixels excluding the top line is calculated. This calculation is based on (n-1) of the column that has already been found.
This is done by adding the above input pixel data d i,j to the sum of pixel data S i,j-1 , and as T i,j = S i,j-1 + d i,j , the n pixels The sum of the data is calculated. Furthermore, the sum S i,j of data for (n-1) pixels is S i,j = T i,j −d i,j-(o-1) = S i,j-1 +d i,j −d It is determined as i,j-(o-1) . Then, this newly obtained addition data T i,j is applied to the previously obtained small area 2
In addition to the cumulative sum of i-1,j , the leftmost column of the previous small area 2 is erased and a new small area 2 is set by shifting it to the right by one pixel.
Sum S in,j of data in the leftmost column of the partial area 6 and pixel data in the leftmost column and top row of the small area 2
By subtracting d in,jo-1, a new small area 2 is obtained as 〓 i,j =〓 i-1,j +T i,j −S in,j −d in,j-(o-1) The cumulative sum data is obtained. In other words, if the above calculation process is performed each time new pixel data d i,j is input by two-dimensional scanning of image 1, (m ×n) Small area 2 consisting of pixels
The cumulative sum of can be obtained sequentially at high speed.

第4図はこのようにして画像処理を実行する本
発明の実施例装置の概略構成図である。
FIG. 4 is a schematic diagram of an apparatus according to an embodiment of the present invention that executes image processing in this manner.

画像メモリ等に一時記憶された(M×N)画素
からなる処理対象画像のデータは、図示しない制
御装置等により2次元的にラスタ走査されて順次
時系列に読出され、その系列な入力画素データ
di,jは加算器11に導びかれると共に{M画素×
(n−1)ライン}段の第1の記憶手段であるシ
フトレジスタ12に導びかれる。このシフトレジ
スタ12は、前記画素データのクロツクによつて
データ転送駆動されるもので、1ラインM段から
なるシフトレジスタ12aを(n−1)個縦続に
接続したものとなつている。このシフトレジスタ
12により、前記画素データは1つのシフトレジ
スタ12aを介する都度1ライン分遅延され、つ
まりM画素タイミング遅延されている。そして、
上記シフトレジスタ12を介して遅延された画素
データは、減算器13に導びかれると共に、第2
の記憶手段(シフトレジスタ)14に供給され、
m画素分、遅延されるようになつている。
Data of an image to be processed consisting of (M×N) pixels temporarily stored in an image memory or the like is two-dimensionally raster scanned by a control device (not shown) and sequentially read out in time series, and the series of input pixel data is read out in sequence.
d i,j is led to the adder 11 and is divided into {M pixels×
(n-1) line} stage is guided to the shift register 12, which is the first storage means. This shift register 12 is driven for data transfer by the pixel data clock, and is made up of (n-1) shift registers 12a each having one line and M stages connected in series. With this shift register 12, the pixel data is delayed by one line each time it passes through one shift register 12a, that is, the timing is delayed by M pixels. and,
The pixel data delayed through the shift register 12 is guided to the subtracter 13, and the second
is supplied to the storage means (shift register) 14 of
It is designed to be delayed by m pixels.

ところで、上記減算器13の出力を画像の縦方
向(n−1)画素の加算データとして入力するM
段の第3の記憶手段(シフトレジスタ)15は、
上記加算データを前記画像データの入力タイミン
グに同期して転送し、これを1ライン遅延して出
力する如く構成されている。そして、このシフト
レジスタ15の出力データは前記加算器11に帰
還されている。この加算器11は、上記1ライン
遅延された加算データに現入力画素データを加算
するもので、これによりn画素の縦方向加算デー
タTi,jが求められている。そして、この加算デー
タTi,jは前記減算器13に導かれ、前記(n−1)
ライン遅延された画素データが差引かれ、結局
(n−1)画素の加算データとして前記第3のシ
フトレジスタ15に入力される。つまり、(n−
1)ライン前の画素データが取除かれ、且つ新ら
しい現入力画素データが加算されて、縦方向に1
画素ずれた新たな(n−1)画素の加算データと
してシフトレジスタ15に入力されている。これ
により、シフトレジスタ15には常に新らしい
(n−1)画素の加算データSi,jが漸化的に画素位
置対応して格納されるようになつている。
By the way, M inputs the output of the subtracter 13 as addition data of (n-1) pixels in the vertical direction of the image.
The third storage means (shift register) 15 of the stage is
The added data is transferred in synchronization with the input timing of the image data, delayed by one line, and output. The output data of this shift register 15 is fed back to the adder 11. This adder 11 adds the current input pixel data to the one-line delayed addition data, thereby obtaining vertical addition data T i,j of n pixels. Then, this addition data T i,j is led to the subtracter 13, and the (n-1)
The line-delayed pixel data is subtracted and is finally input to the third shift register 15 as addition data of (n-1) pixels. In other words, (n-
1) The previous pixel data of the line is removed, and the new current input pixel data is added, resulting in 1 row in the vertical direction.
The data is input to the shift register 15 as addition data of new (n-1) pixels shifted by the pixel. As a result, new addition data S i,j of (n-1) pixels are always stored in the shift register 15 in a gradual manner corresponding to the pixel positions.

一方、上記加算器11にて求められたn画素分
の縦方向加算データTi,jは加算器16に導びかれ、
第4の記憶手段である累積和レジスタ17の出力
データに加算されている。またシフトレジスタ1
5のm段目のタツプ出力データは減算器18に導
びかれ、前記加算器16の出力データより差引か
れている。更に減算器19は、上記減算器18の
出力データから前記シフトレジスタ14の出力デ
ータを差引いている。前記累積和レジスタ17
は、これらの加算器16、減算器18,19によ
り求められたデータを現入力データの画素位置
(i、j)を基準位置とする(m×n)画素の累
積和データ〓i,jとしてこれを一時記憶するもので
ある。
On the other hand, the vertical addition data T i,j for n pixels obtained by the adder 11 is led to the adder 16, and
It is added to the output data of the cumulative sum register 17, which is the fourth storage means. Also, shift register 1
The tap output data of the m-th stage of No. 5 is led to a subtracter 18 and subtracted from the output data of the adder 16. Further, a subtracter 19 subtracts the output data of the shift register 14 from the output data of the subtracter 18. The cumulative sum register 17
The data obtained by these adders 16 and subtracters 18 and 19 are expressed as cumulative sum data of (m×n) pixels with the pixel position (i, j) of the current input data as the reference position 〓 i,j This is stored temporarily.

このように構成された装置によれば、先ずシフ
トレジスタ12,14,15,17を全て“0”
にリセツトしたのち、2次元走査された時系列な
画素データdi,jを入力する。これによりシフトレ
ジスタ12には、上記画素データdi,jが順次格納
されていくことになる。このとき、シフトレジス
タ12から順次読出されるデータは全て零(0)
であるから、最初に入力される1ライン分の画素
データはそのまま順次シフトレジスタ15に格納
されることになる。そして、次の1ライン(第2
ライン)の画素データの入力時には、前記シフト
レジスタ12から読出されるデータが零(0)で
あり、且つシフトレジスタ15からは1ライン前
の同じ行アドレスのデータが読出されるから、シ
フトレジスタ15には、第1および第2ラインの
画素データが行アドレス位置対応して加算された
データがそれぞれ格納されることになる。このよ
うにして、(n−1)ラインの画素データが時系
列に入力されてシフトレジスタ15には、(n−
1)ライン分の画素データがそれぞれ縦方向に加
算されたデータS1,o-1,S2,o-1〜SM,o-1がそれぞれ
格納されることになる。その後、第nライン目の
画素データの入力時からは、前記シフトレジスタ
12から(n−1)ライン遅延された画素データ
が読出されることになる。このとき、加算器11
では、シフトレジスタ15の出力データに、現入
力データdi,jを加算するので、その出力はnライ
ン分、縦方向に加算したデータTi,jとなる。この
データTi,jに対して前記シフトレジスタ12から
の出力データが減算器13にて差引かれるので、
結局この減算器13からシフトレジスタ15に
は、新たな(n−1)画素分の加算データSi,jが Si,j=Si,j-1+di,j−di,j-(o-1) として与えられることになる。つまり、シフトレ
ジスタ15には、(n−1)画素の漸化的加算デ
ータが順次格納されることになる。
According to the device configured in this way, first, all shift registers 12, 14, 15, and 17 are set to "0".
After resetting to , two-dimensionally scanned time-series pixel data d i,j is input. As a result, the pixel data d i,j are sequentially stored in the shift register 12. At this time, all data sequentially read from the shift register 12 is zero (0).
Therefore, one line of pixel data that is first input is sequentially stored in the shift register 15 as is. Then, the next line (second
When inputting pixel data for a line), the data read out from the shift register 12 is zero (0), and data at the same row address one line before is read out from the shift register 15. The data obtained by adding the pixel data of the first and second lines corresponding to the row address positions is stored in each of them. In this way, (n-1) lines of pixel data are inputted in time series to the shift register 15.
1) Data S 1,o-1 , S 2,o-1 to S M,o-1 obtained by adding each line's worth of pixel data in the vertical direction are stored, respectively. Thereafter, from the time when pixel data of the n-th line is input, pixel data delayed by (n-1) lines is read out from the shift register 12. At this time, adder 11
Now, since the current input data d i,j is added to the output data of the shift register 15, the output is data T i,j added vertically for n lines. Since the output data from the shift register 12 is subtracted from this data T i,j by the subtracter 13,
Eventually, the addition data S i,j for new (n-1) pixels is transferred from the subtracter 13 to the shift register 15 as follows: S i,j =S i,j-1 +d i,j −d i,j- It will be given as (o-1) . In other words, the gradual addition data of (n-1) pixels is sequentially stored in the shift register 15.

一方、累積和レジスタ17には、画素データの
入力に伴つて、画素データd1,1が加算器11,1
6および減算器18,19を介して格納され、m
画素目のデータが入力されるまで、そのデータが
順次累積される。そして、その後は、m画素前の
データが順次減算されたm画素の累積和が格納さ
れる。そして第2ラインから第(n−1)ライン
の入力時まで、その累積処理が繰返えされる。そ
の後、第nラインのデータの入力時には、既にシ
フトレジスタ15には、各縦方向n−1画素の加
算データSがそれぞれ格納されており、且つ、シ
フトレジスタ14を介して遅延出力が得られるこ
とから、上記第nラインの第m画素の入力時にお
いて、累積和レジスタ17には(m×n)画素か
らなる第1の小領域の累積和〓i,jが求められるこ
とになる。つまり各縦方向加算データTi,jに従つ
て、その累積値である小領域2の累積和データが
求められることになる。その後、画素データが入
力される都度、減算器18にて一画素前の縦方向
(n−1)画素の加算データSが減算されると共
に、減算器19にてm画素(n−1)行前の画素
データが減算されるので、前述したように、 〓i,j=〓i-1,j+Ti,j−Si-n,j −di-n,j-(o-1) として、1画素分ずれた小領域の累積和データ〓
i,jが順次求められ、累積和レジスタ17に格納さ
れて出力されることになる。
On the other hand, in the cumulative sum register 17, pixel data d1,1 is sent to the adders 11,1 as the pixel data is input.
6 and subtractors 18, 19, m
The data is sequentially accumulated until the data for the pixel is input. After that, the cumulative sum of m pixels from which the data of m pixels before is sequentially subtracted is stored. Then, the accumulation process is repeated from the second line to the input of the (n-1)th line. Thereafter, when data for the n-th line is input, the shift register 15 has already stored the addition data S of each n-1 pixel in the vertical direction, and a delayed output can be obtained via the shift register 14. Therefore, when the m-th pixel of the n-th line is input, the cumulative sum 〓 i,j of the first small area consisting of (m×n) pixels is calculated in the cumulative sum register 17. In other words, the cumulative sum data of the small region 2, which is the cumulative value, is determined according to each vertical addition data T i,j . Thereafter, each time pixel data is input, the subtracter 18 subtracts the summation data S of the previous (n-1) pixels in the vertical direction, and the subtracter 19 subtracts m pixels (n-1) rows. Since the previous pixel data is subtracted, as mentioned above, 〓 i,j =〓 i-1,j +T i,j −S in,j −d in,j-(o-1) , one pixel Cumulative sum data of separated small areas〓
i and j are sequentially obtained, stored in the cumulative sum register 17, and output.

以上のように本装置によれば、2次元走査して
時系列に入力される画素データに伴い、そのデー
タ入力画素位置によつて定まる(m×n)画素か
らなる小領域の累積和データを順次求めることが
できる。しかも、リアルタイムにその演算処理を
高速に実行することができる。従つて、処理の対
象とする画像1の全域に亘つて、それぞれ小領域
を1画素ずつずらし乍ら設定して、その小領域に
おける情報を正確に得ることが可能となる。故に
従来問題となつた検査対象の不均一な分布による
誤つた検査結果を得ることがなく、またこのよう
な誤りを防ぐ為に小領域の設定に工夫を施す等の
不具合も全くない。そして、従来、全画像領域の
検査に(M×N×m×n)回もの膨大な計算処理
を必要とする(m×n)の連続的な累積和処理
の、高速演算方式によるリアルタイム化を可能と
する。しかも上述したように(n−1)ライン
分、およびm画素分の遅延処理を行うだけでハー
ドウエア構成も簡単であり、その実用的利点が絶
大である。また、上述の如く小領域の大きさを任
意制定できるので、処理対象としての画像への汎
用性が非常に高く、柔軟な画像処理を可能とす
る。更には濃淡画像を処理対象とする場合には、
その局所的な濃度和計算が可能であり、これによ
つて所謂ムラのある画像のダイナミツクな2値化
処理を行い得る。
As described above, according to the present device, along with pixel data inputted in time series through two-dimensional scanning, cumulative sum data of a small area consisting of (m×n) pixels determined by the data input pixel position is calculated. They can be found sequentially. Moreover, the arithmetic processing can be performed at high speed in real time. Therefore, it is possible to set each small area by shifting one pixel over the entire area of the image 1 to be processed, and to accurately obtain information in that small area. Therefore, there is no possibility of obtaining erroneous inspection results due to non-uniform distribution of inspection objects, which has been a problem in the past, and there is no problem such as the need to take measures to set small areas in order to prevent such errors. Furthermore, the continuous cumulative sum processing (m x n), which conventionally requires an enormous amount of calculation processing (M x N x m x n) times to inspect the entire image area, has been realized in real time using a high-speed calculation method. possible. Furthermore, as described above, the hardware configuration is simple by only performing delay processing for (n-1) lines and m pixels, and its practical advantages are enormous. Further, as described above, since the size of the small area can be set arbitrarily, it is highly versatile in processing images as processing targets, and enables flexible image processing. Furthermore, when processing a grayscale image,
It is possible to calculate the local density sum, and thereby dynamic binarization processing of so-called uneven images can be performed.

尚、本発明は上記実施例に限定されるものでは
ない。例えばシフトレジスタ12の構成ライン数
nは仕様に応じて定めればよいものである。また
シフトレジスタに代えてRAMを用い、この
RAMのアクセスを制御して同様な処理を行うよ
うにしてもよい。また加算、累積和処理を、並列
的に設けた複数の演算回路を用いてそれぞれ同時
に行わしめることにより、異なるm,nの多種小
領域に対する画像処理を並列的に行わしめること
も可能である。以上要するに本発明はその要旨を
逸脱しない範囲で種々変形して実施することがで
きる。
Note that the present invention is not limited to the above embodiments. For example, the number n of constituent lines of the shift register 12 may be determined according to specifications. In addition, RAM is used instead of a shift register, and this
Similar processing may be performed by controlling access to RAM. Furthermore, by performing the addition and cumulative sum processing simultaneously using a plurality of arithmetic circuits provided in parallel, it is also possible to perform image processing on various small areas of different m and n in parallel. In summary, the present invention can be implemented with various modifications without departing from the gist thereof.

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

第1図および第2図a,bは画像処理における
問題点を説明する為の画像と小領域との関係を示
す図、第3図は本発明の処理概念を示す図、第4
図は本発明の一実施例装置の概略構成図である。 11……加算器、12……第1のシフトレジス
タ、13……減算器、14……第2のシフトレジ
スタ、15……第3のシフトレジスタ、16……
加算器、17……累積和レジスタ、18,19…
…減算器。
Figures 1 and 2 a and b are diagrams showing the relationship between images and small areas to explain problems in image processing, Figure 3 is a diagram showing the processing concept of the present invention, and Figure 4
The figure is a schematic configuration diagram of an apparatus according to an embodiment of the present invention. 11...Adder, 12...First shift register, 13...Subtractor, 14...Second shift register, 15...Third shift register, 16...
Adder, 17... Cumulative sum register, 18, 19...
...Subtractor.

Claims (1)

【特許請求の範囲】 1 (M×N)画素(M、N:任意の整数)から
なる画像を2次元走査して得られる時系列な入力
画素データを{M×(n−1)}段(n≦N:整
数)遅延する第1の記憶手段と、この{M×(n
−1)}段遅延された前記入力画素データを更に
m段(m≦M:整数)遅延する第2の記憶手段
と、与えられた加算画素データをM段遅延する第
3の記憶手段と、このM段遅延された加算画素デ
ータに前記入力画素データを加算すると共に前記
第1の記憶手段による{M×(n−1)}段遅延さ
れた入力画素データを減算して新たな加算画素デ
ータを生成して前記第3の記憶手段に与える第1
の演算手段と、与えられた累積和データを一時記
憶する第4の記憶手段と、この第4の記憶手段に
一時記憶された累積和データに前記第3の記憶手
段によりM段遅延された加算画素データおよび前
記入力画素データを加算した加算データを得ると
共に、この加算データから前記第3の記憶手段の
m段目のタツプ出力であるm段遅延された加算画
素データおよび前記第2の記憶手段によりm段遅
延された入力画素データをそれぞれ減算して新た
な累積和データを生成して前記第4の記憶手段に
与える第2の演算手段とを具備し、前記(M×
N)画素からなる画像中の(m×n)画素からな
る小領域の特徴情報を得ることを特徴とする画像
処理装置。 2 第1乃至第4の記憶手段は、それぞれ時系列
な入力画素データのクロツクに同期してデータ転
送駆動されるシフトレジスタにより構成されるも
のである特許請求の範囲第1項記載の画像処理装
置。 3 第1および第2の演算手段は、第3の記憶手
段によりM段遅延された加算画素データと入力画
素データとの加算データを共通に求め、この加算
データをそれぞれ利用して所定の演算処理を実行
するものである特許請求の範囲第1項記載の画像
処理装置。
[Claims] Time-series input pixel data obtained by two-dimensionally scanning an image consisting of 1 (M×N) pixels (M, N: arbitrary integers) is divided into {M×(n-1)} stages. (n≦N: integer) first storage means that delays and this {M×(n
-1)} second storage means for further delaying the input pixel data delayed by m stages (m≦M: integer); and third storage means for delaying the given addition pixel data by M stages; The input pixel data is added to this added pixel data delayed by M stages, and the input pixel data delayed by {M×(n-1)} stages by the first storage means is subtracted to generate new added pixel data. the first to generate and provide to the third storage means
a calculation means, a fourth storage means for temporarily storing the given cumulative sum data, and an addition that is delayed by M stages by the third storage means to the cumulative sum data temporarily stored in the fourth storage means. Addition data is obtained by adding pixel data and the input pixel data, and from this addition data, m-stage delayed addition pixel data that is the m-th stage tap output of the third storage means and the second storage means are obtained. and a second calculation means that subtracts the input pixel data delayed by m stages respectively to generate new cumulative sum data and provide it to the fourth storage means,
N) An image processing device characterized by obtaining characteristic information of a small area made up of (m×n) pixels in an image made up of pixels. 2. The image processing apparatus according to claim 1, wherein each of the first to fourth storage means is constituted by a shift register driven to transfer data in synchronization with a clock of time-series input pixel data. . 3 The first and second calculation means commonly obtain addition data of the addition pixel data delayed by M stages by the third storage means and the input pixel data, and perform predetermined calculation processing using each of the addition data. An image processing apparatus according to claim 1, wherein the image processing apparatus executes the following.
JP58123008A 1983-07-06 1983-07-06 Picture processor Granted JPS6015782A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP58123008A JPS6015782A (en) 1983-07-06 1983-07-06 Picture processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP58123008A JPS6015782A (en) 1983-07-06 1983-07-06 Picture processor

Publications (2)

Publication Number Publication Date
JPS6015782A JPS6015782A (en) 1985-01-26
JPH0534711B2 true JPH0534711B2 (en) 1993-05-24

Family

ID=14849961

Family Applications (1)

Application Number Title Priority Date Filing Date
JP58123008A Granted JPS6015782A (en) 1983-07-06 1983-07-06 Picture processor

Country Status (1)

Country Link
JP (1) JPS6015782A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07154140A (en) * 1993-11-30 1995-06-16 Nec Kansai Ltd Voltage controlled oscillation circuit

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07154140A (en) * 1993-11-30 1995-06-16 Nec Kansai Ltd Voltage controlled oscillation circuit

Also Published As

Publication number Publication date
JPS6015782A (en) 1985-01-26

Similar Documents

Publication Publication Date Title
US4949390A (en) Interconnect verification using serial neighborhood processors
US4481664A (en) Process for inspecting objects showing patterns with dimensional tolerances and reject criteria varying with the locations of said patterns and apparatus and circuits for carrying out said process
EP0206713A2 (en) Coarse flaw detector for printed circuit board inspection
EP0094824B1 (en) Image processing device for continuously extracting features of small regions of an image
US6643412B1 (en) Method and apparatus for high speed convolution
US5781667A (en) Apparatus for high speed morphological processing
JPH0534711B2 (en)
EP0267967B1 (en) Image processing apparatus
EP0547881A1 (en) Method and apparatus for implementing two-dimensional digital filters
JPH0375914B2 (en)
JPH06508703A (en) filter
JPS58200371A (en) Picture processor
WO1988008168A2 (en) Interconnect verification using serial neighborhood processors
JPH0332723B2 (en)
JP2010218236A (en) Image processing apparatus
JPH05281155A (en) Inspection apparatus for defect of pattern
JPS58200370A (en) Picture processor
Pratt et al. Review of machine vision architectures
JP2962148B2 (en) Image processing device
JP2001175852A (en) Method and device for convolution processing
West et al. Hardware for high speed boundary encoding from large line scanned images
JP2806436B2 (en) Arithmetic circuit
JPS6083181A (en) Two-dimensional matching circuit
GB2171574A (en) Image contraction and dilation
JPS62254276A (en) Histogram calculation system