JPS58200369A - Picture processor - Google Patents

Picture processor

Info

Publication number
JPS58200369A
JPS58200369A JP57082669A JP8266982A JPS58200369A JP S58200369 A JPS58200369 A JP S58200369A JP 57082669 A JP57082669 A JP 57082669A JP 8266982 A JP8266982 A JP 8266982A JP S58200369 A JPS58200369 A JP S58200369A
Authority
JP
Japan
Prior art keywords
data
cumulative sum
storage means
shift register
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
Application number
JP57082669A
Other languages
Japanese (ja)
Other versions
JPH0375914B2 (en
Inventor
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
Toshiba Corp
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 Toshiba Corp, Tokyo Shibaura Electric Co Ltd filed Critical Toshiba Corp
Priority to JP57082669A priority Critical patent/JPS58200369A/en
Priority to US06/494,254 priority patent/US4542527A/en
Priority to EP83302764A priority patent/EP0094824B1/en
Priority to DE8383302764T priority patent/DE3378663D1/en
Publication of JPS58200369A publication Critical patent/JPS58200369A/en
Publication of JPH0375914B2 publication Critical patent/JPH0375914B2/ja
Granted legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis

Abstract

PURPOSE:To prevent an error of the check result of an ununiform picture to be checked by allowing a picture processor which finds the number of pictures to be checked and the total area to find cumulative sum data on a small area consisting of picture elements gradually. CONSTITUTION:Time-series picture data dij obtained by a two-dimentional scan is inputted to the 1st shift register 13 of M picture elements by (n) lines to be delayed successively, and each line output is extracted selectively; and sum data Si,j on (n) picture elements is found gradually from picture data, selected line output data, and data stored in the 2nd register in M-stage constitution, and stored successively in the 2nd shift register 16. The cumulative sum data is found gradually from data stored in a cumulative sum register 23, the input sum data to the shift register 16, and selected tap output data si-m,j of the 2nd shift register 16, and then stored in the cumulative sum register 23 to obtain the cumulative sum data on (m)X(n) picture elements.

Description

【発明の詳細な説明】 〔発明の技術分野□〕   ′     □本i明は画
像中の小領−6特徴を効果的に抽出することの可能橙簡
易で実用性の高い構成の画像処理装置に関する。
[Detailed Description of the Invention] [Technical Field of the Invention] ' This invention relates to an image processing device having a simple and highly practical configuration capable of effectively extracting small area-6 features in an image. .

〔発明の技術゛的背景゛とその問題点〕 □′物体表面
の粒度や傷検査等を行う場合、しばしば上記検査対象を
画像入力し、その画像6一定面積内に含まれる検□査対
象の数や上記検査対象の面積の総和を求めると云う画像
処理が養<利用される。このような画像地理において、
従来一般的にはその処理時間を短くす゛る為畝検査対象
である全領域を複数の小領域に分割し、各小領域内でそ
門ぞれ所定0画像処理が行われている。しかし、このよ
うな処理法は、画像中の検査対象がその画像の全域に亘
って均一に分布している場合には非常に効果的であるが
、例えば第1図に示すように分布の片寄シが越る場合、
どの小領域を検査するかによって問題が生じる。
[Technical background of the invention and its problems] □' When inspecting the particle size or flaws on the surface of an object, the above-mentioned inspection object is often input as an image, and the image 6 includes the inspection object within a certain area. Image processing is used to calculate the number and the total area of the inspection target. In this kind of image geography,
Conventionally, in order to shorten the processing time, the entire area to be inspected for ridges is divided into a plurality of small areas, and predetermined 0 image processing is performed within each small area. However, 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 when the distribution is uneven, as shown in Figure 1, for example, If shi exceeds
The problem arises depending on which subregion is to be inspected.

即ち、第1図に示すように(MXN)画素からなる検査
対象画像1の(mX、)画像からなる小領域2に着目し
、この小領域2内における傷3の数を計数して検査結果
を得るものとすると、上記小領域2の設定位置によって
は第2図(、) (b)に示すように傷3の数が異って
くる。この為、同じ画像1を処理(検査)しているにも
拘らず、その検査結果が合格になる場合と、不合格にな
る場合とが生じ、甚だ具合が悪い。この為、従来にあっ
ては、検査対象が不均一に分布している場合には、対象
画1像1の全域に亘って画像処理することが必要とされ
ていた。
That is, as shown in FIG. 1, focusing on a small area 2 consisting of an (mX,) image of an inspection target image 1 consisting of (MXN) pixels, the number of scratches 3 within this small area 2 is counted and the inspection result is obtained. 2, the number of scratches 3 will vary depending on the setting position of the small area 2, as shown in FIG. 2(,)(b). 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 target is unevenly distributed, it has been 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]

本発明は、画像を2次元走査して得られる時系列な画素
データを(M画素×nライン)の第1の記憶手段に入力
して順次遅延し、これらの各ライン出力を選択的に抽出
して、上記画像データと選択されたライン出力データお
よびM段の第2の記憶手段に格納されたデータとから漸
化的にn画素の加算データを求めて上記M段の第2の記
憶手段に順次格納し、累積和メモリに格納されたデータ
および上記M段の第2の記憶手段への入力加−データ、
更に上記第2の記憶手段の選択されたタップ出力データ
とから上記累積和データを漸化的に求めてこれを累積和
メモリに格納することによって、該累積和メモリに(m
Xn)画素、の累積和データを得るようにしたものであ
る。
The present invention inputs time-series pixel data obtained by two-dimensionally scanning an image into a first storage means (M pixels x n lines), sequentially delays the data, and selectively extracts the output of each of these lines. Then, from the image data, the selected line output data, and the data stored in the second storage means of the M stage, the summation data of n pixels is gradually calculated and the second storage means of the M stage is calculated. data stored in the cumulative sum memory and additional data input to the second storage means of the M stages;
Furthermore, by recursively determining the cumulative sum data from the selected tap output data of the second storage means and storing it in the cumulative sum memory, (m
The cumulative sum data of Xn) pixels is obtained.

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

従って本発明によれば、簡易にして高速に画像に対する
(mXn)画素からなる小領域の累積和データを漸化的
に求めるこりが可能となる。
Therefore, according to the present invention, it is possible to easily and rapidly obtain the cumulative sum data of a small area consisting of (mXn) pixels for an image in a gradual 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.

またこれによシ、濃淡岬像の小領域における濃度和を求
めることも可能となる。故に、任意の小領域から処理対
象画像の情報を正確に得ることができ、その実用的利点
は絶大である。またライン出力の選択およびタップ出力
の選択によって小領域の大きさを任意に可変でき、その
効果も絶大である。
This also makes it possible to obtain the sum of densities in small areas of the shading cape image. Therefore, information on the image to be processed can be accurately obtained from any small area, and its practical advantage is enormous. Furthermore, the size of the small area can be arbitrarily varied by selecting the line output and the tap output, which is extremely effective.

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

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

5− 第3図は本装置における演算原理を示すもので、1は(
MXN)画素からなる処理対象画像、2は演算処理の対
象と外る(mXn)画素の小領域を示している。また4
は、上記画像1を、2次元走査して得られる時系列な画
素をそれぞれ示している。また図中5は、上記小領域2
のn247分や縦方向の加算データ、つまシ縦方向n画
素のデータ和を仮想的に示したものである。
5- Figure 3 shows the calculation principle of this device, and 1 is (
The image to be processed is composed of (MXN) pixels, and 2 indicates a small region of (mXn) pixels that are excluded from the arithmetic processing target. Also 4
1 and 2 respectively show time-series pixels obtained by two-dimensionally scanning the above image 1. In addition, 5 in the figure indicates the above-mentioned small area 2.
This is a hypothetical representation of the sum of data for n247 pixels in the vertical direction, addition data in the vertical direction, and data sum of n pixels in the vertical direction.

今、ここで、既に(mX、)画素からなる小領域2の累
積和5i−1,jが求められ、またこの小領域2におけ
る各列(縦方向)のデータ和S、5 1−m、j   i−m+Lj 4 s、−1,jがそ
れぞれ求められているものとする。そして、次に計算す
べき小領域2が、右に1画素分ずれるものとする。この
場合、走査によって新しく、(t、j)なる画素のデー
タdl、jが入力され、このデータを用いて、その列の
n画素分のデータ和が計算される。
Now, the cumulative sum 5i-1,j of the small region 2 consisting of (mX,) pixels has already been found, and the data sum S,5 1-m of each column (vertical direction) in this small region 2, It is assumed that j i-m+Lj 4 s, -1, and 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 dl,j (t,j) is input by scanning, and this data is used to calculate the sum of data for n pixels in that column.

との計算は、既に求められているその行のデータ和Si
 、j−1から、1行分上の画素のデータdt、1−1
を差引き、新たに上記データd12.を加算すること6
一 によシ Si、j=Si、j−1+di、j−di、j−nとし
て求められる。そして、この新らしく求められた加算デ
ータ8t、jを、先に求められた小領域2の累積和S、
1..に加え、この行の追加によって先の小領域2の最
左端列を消去して新た々1画素分右にシフトした小領域
2が設定されることから、最左端列のデータ和S  を
差引くとi−m、j とによって、 $i、j=Si−1.j+Si、j  ”i−m、jと
して、新たな小領域2の累積和データが求められる。つ
まシ、画像1の2次元走査によって、新たな画素データ
d1.3が入力される都度、上述した計算処理を行えば
、上記画素位置(1,j)によって規定される(mXn
)画素からなる小領域2の累積和を逐次求めることがで
きる。
The calculation is based on the already determined data sum Si for that row.
, j-1, pixel data dt, 1-1 one row above
is subtracted, and the above data d12. Adding 6
It is determined as follows: Si, j=Si, j-1+di, j-di, j-n. Then, this newly obtained addition data 8t,j is converted into the previously obtained cumulative sum S of the small area 2,
1. .. In addition, by adding this row, the leftmost column of the previous small area 2 is deleted and a new small area 2 is set that is shifted one pixel to the right, so subtract the data sum S of the leftmost column. and i-m, j, $i, j=Si-1. The new cumulative sum data of small area 2 is obtained as j+Si,j ''i-m,j.Each time new pixel data d1.3 is input by two-dimensional scanning of image 1, the above-mentioned If calculation processing is performed, (mXn
) The cumulative sum of the small area 2 consisting of pixels can be sequentially obtained.

ところで、画像データdの入力初期時におい□、1.′ ては、画素位置(1,j)によって規定される(mXn
)画素の小領域2が画像1に対して設定されることがな
い。そして、画素位置(1,j)が(m、n)と々っ九
時点よシ始めて上記小領域2が画像1に対して定まるこ
とになる。従って、それ以前において、画素データを得
ることのできないものについては、仮想的に画素を考え
、そのデータを全て零(0)であるとして取扱えば、そ
の各々について上述した累積和を求めることが可能とな
る。そして、(m、n)なる画素のデータが入力された
時点よシ、累積和データを出力することによって、画像
1の全領域に亘って設定された各小領域2の累積和デー
タをそれぞれ得るととが可能となる。
By the way, at the initial stage of inputting image data d, □, 1. ' is defined by the pixel position (1,j) (mXn
) Small region 2 of pixels is never set for image 1. Then, the small area 2 is determined for the image 1 only when the pixel position (1, j) reaches nine points (m, n). Therefore, for items for which pixel data cannot be obtained before then, by considering pixels virtually and treating all of that data as zero (0), it is possible to calculate the above-mentioned cumulative sum for each of them. becomes. Then, by outputting the cumulative sum data at the time when the data of pixels (m, n) is input, the cumulative sum data of each small area 2 set over the entire area of the image 1 is obtained. Toto becomes possible.

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

画像メモリ等に一時記憶された処理対象画像のデータは
、図示しない制御装置等によシ2次元的にラスク走査さ
れて順次時系列に読出される。この時系列な画素データ
dt、jは消去セレクタ11を介して加算器12に導び
かれると共に(M画素×nライン)段の第1のシフトレ
ジスタ13に導びかれる。このシフトレジスタ13は、
前記画素データのクロ、りによってデータ転送駆動され
るもので、1ラインM段からなるシフトレジスタ13&
をn個縦続に接続したものとなっている。このシフトレ
ジスタ13によシ、前記画素データは1つのシフトレジ
スタ13&を介する都度1ライン分遅延され、つまシM
画素タイミング遅延されている。また前記消去セレクタ
11は、上記画素データdl、jの入力に先立って零(
0)データを入力し、これによシ上記シフトレジスタ1
3を始めとする後述する各レジスタをそれぞれゼロリセ
ットするものである。
The data of the image to be processed, which is temporarily stored in an image memory or the like, is two-dimensionally scanned by a control device (not shown) and sequentially read out in time series. This time-series pixel data dt,j is led to the adder 12 via the erase selector 11, and also to the first shift register 13 of (M pixels×n lines) stages. This shift register 13 is
The data transfer is driven by the clocking of the pixel data, and the shift register 13 &
n pieces are connected in cascade. Through this shift register 13, the pixel data is delayed by one line each time it passes through one shift register 13&;
Pixel timing has been delayed. Further, the erase selector 11 selects zero (0) prior to inputting the pixel data dl,j.
0) Input the data and use it to shift register 1 above.
3 and other registers to be described later are reset to zero.

しかして、縦セレクタ14は、レジスタ15に設定され
た定数n′に従って、前記第1のレジスタ13の各2イ
ン出力を選択的に抽出しておシ、これによってn′ライ
ン遅延された画素データが取出されている。このセレク
タ14は、1ライン遅延からnライン遅延した画素デー
タを選択するもので、これによシ後述するように処理対
象とする小領域2の列方向の大きさn′が定−〇− められるようになっている。
Thus, the vertical selector 14 selectively extracts each 2-in output of the first register 13 according to the constant n' set in the register 15, and thereby the pixel data delayed by n' lines. has been taken out. This selector 14 selects pixel data delayed from one line to n lines, and as described later, the column direction size n' of the small area 2 to be processed is determined. It is now possible to

一方、M段構成された1ライン分に相当する第2のシフ
トレジスタ16は、列(縦)方向にn1画素加算してな
るデータSを順次1ラインに亘って格納するものであり
、このシフトレジスタ16のデータ転送も前記画素デー
タのクロックによって制御駆動されるようになっている
On the other hand, the second shift register 16 corresponding to one line and configured in M stages sequentially stores data S obtained by adding n1 pixels in the column (vertical) direction over one line. Data transfer of the register 16 is also controlled and driven by the clock of the pixel data.

そして、この第2のシフトレジスタ16の出力データは
、縦和レジスタ17に一時記憶されたのち、前記加算器
12に与えられる。この加算器12において、この出力
データに現入力画素データdi、jが加算され、その加
算データが減算器18に供給されて前記セレクタ14で
選択されたn′ライン遅延された画素データが差引かれ
る。そして、この減算器18の出力データが、縦方向n
′画素の加算データS19.として前記シフトレジスタ
16に入力される。
The output data of the second shift register 16 is temporarily stored in the vertical sum register 17 and then applied to the adder 12. In this adder 12, the current input pixel data di, j is added to this output data, and the added data is supplied to a subtracter 18, where the pixel data delayed by n' lines selected by the selector 14 is subtracted. . Then, the output data of this subtracter 18 is
'Pixel addition data S19. The signal is input to the shift register 16 as a signal.

また、このシフトレジスタ16に入力されるデータJ、
jは加算器19に導びかれる。更に、シフトレジスタ1
6に格納されたデータは、横10− セレクタ20を介して、レジスタ21にセットされた値
(m′)に従い、m′段遅延されたタップ出力として取
出されている。そして、この選択されたタ、ゾ州カデー
タは減算器22に与えられている。尚、上記セレクタ2
0は、処理対象とする小領域2の横(行)方向の幅を設
定するものである。累積和レジスタ23′は、上記減算
器22の出力データを小領域2の累積和データとして格
納するもので、そのデータを出力すると共に前記加算器
19に与えている。この加算器19によって既に求めら
れた累積和データに前記シ7トレ、ジスタ16への入力
データである新たな列の縦方向加算データが加算される
。そして、この加算処理されたデータに対して前記減算
器22は、m′画素位置(列)遅延された加算データを
減算し、新たな、つまシ1画素位置ずれた小領域2の累
積和デ〒りを求めている。
Furthermore, data J input to this shift register 16,
j is led to an adder 19. Furthermore, shift register 1
The data stored in 6 is taken out as a tap output delayed by m' steps in accordance with the value (m') set in the register 21 via the horizontal 10-selector 20. The selected data is then provided to the subtracter 22. In addition, the above selector 2
0 is used to set the width in the horizontal (row) direction of the small area 2 to be processed. The cumulative sum register 23' stores the output data of the subtracter 22 as cumulative sum data of the small area 2, and outputs the data and supplies it to the adder 19. The vertical addition data of a new column, which is the input data to the register 16, is added to the cumulative sum data already determined by the adder 19. Then, the subtracter 22 subtracts the added data delayed by m' pixel positions (columns) from this added data, and creates a new cumulative sum value of the small area 2 shifted by one pixel position. I'm looking for relief.

そして、このデータが前記累積和レジスタ23に書込ま
れて、データ更新が行われる。
Then, this data is written into the cumulative sum register 23, and the data is updated.

このように構成された装置によれば、先ずシフトレジス
タ13.16が全て@0″にクリアされたのち、2次元
走査された時系列な画素データd i 、」が入力され
る。そして、シフトレジスタ13には、上記画素データ
d i、iが順次格納されていくことになる。このとき
、シフトレジスタ13から順次読出されるデータは全て
零(0)であるから、最初に入力される1ライン分の画
素データはそのまま順次シフトレジスタ16に格納され
ることになる。そして、次の1ライン(第2ライン)の
画素データの入力時には、前記シフトレジスタ13から
読出されるデータが零(0)であシ、且つシフトレジス
タ16からは1ライン前の同じ行アドレスのデータが読
出されるから、シフトレジスタ16には、第1および第
2ラインの画素データが行アドレス位置対応して加算さ
れたデータがそれぞれ格納されることになる。このよう
にして、シフトレジスタ16には n1247分の画素
データがそれぞれ縦方向に加算されたデータS1.nl
、S2.nl−8M、nlがそれぞれ格納されることに
なる。その後、(n’+i)ラインの画素データの入力
時からはシフトレジスタ13からn′ライン遅延された
画素データが順次読出され、減算器18に与えられるの
で、シフトレジスタ16には前述したように 81、j″5Lj−1+di、j  ’i、j−n’ 
    ”なる縦方向にn′画素漸化的に加算したデー
タが順次格納されることになる。
According to the device configured in this manner, first, the shift registers 13 and 16 are all cleared to @0'', and then the two-dimensionally scanned time-series pixel data d i is input. Then, the pixel data d i and i are sequentially stored in the shift register 13 . At this time, since all of the data sequentially read out from the shift register 13 is zero (0), the pixel data for one line input first is sequentially stored in the shift register 16 as is. When inputting pixel data for the next line (second line), the data read from the shift register 13 is zero (0), and the data from the shift register 16 is read from the same row address one line before. Since the data is read out, the shift register 16 stores data obtained by adding the pixel data of the first and second lines corresponding to the row address positions. In this way, the shift register 16 stores data S1.n1247 pieces of pixel data added in the vertical direction. nl
, S2. nl-8M and nl will be stored respectively. Thereafter, from the time when the pixel data of the (n'+i) line is input, the pixel data delayed by n' lines is sequentially read out from the shift register 13 and given to the subtracter 18. 81,j″5Lj-1+di,j'i,j-n'
The data obtained by incrementally adding n' pixels in the vertical direction will be stored sequentially.

一方、累積和レジスタ23には、画素データの入力時に
は、画素データd11.が格納され、m/画素のデータ
が入力されるまで、そのデータが順次累積される。そし
て、その後は、m′画素前のデータが順次減算されたm
′7画素累積和が格納される。そして第22インから第
n、′ラインの入力時まで、その累積処理が繰返えされ
る@その後、第(n’+ 1 )ラインのデータの入力
時には、既にシフトレジスタ16には、各縦方向n′7
画素加算データ8がそれぞれ格納されていることから、
上記第(n’+1 )ラインの第m′画素の入力時にお
いて、累積和レジスタ23には(mXn)画素からなる
第1の小領域の累積和が求13− められることになる。つまり各縦方向加算データ8i、
jに従って、その系積値である小領域2の累積和データ
が求められることになる。その後、画素データが入力さ
れる都度、減算器22にて一画素前の縦方向加算データ
Sが減算され、前述したように St+j=St−1+j +Siej−8t−mcjと
して、1画素分ずれた小領域の累積和データSi、jが
順次求められ、累積和レジスタ23に格納されて出力さ
れることになる。
On the other hand, when pixel data is input to the cumulative sum register 23, pixel data d11. is stored and the data is accumulated sequentially until m/pixel data is input. After that, data from m' pixels before is sequentially subtracted m
'7 pixel cumulative sum is stored. Then, the accumulation process is repeated from the 22nd input to the input of the n'th line. n'7
Since pixel addition data 8 is stored respectively,
When the m'th pixel of the (n'+1)th line is input, the cumulative sum of the first small area consisting of (mXn) pixels is determined in the cumulative sum register 23. In other words, each vertical addition data 8i,
According to j, the cumulative sum data of the small region 2, which is the product value, is obtained. Thereafter, each time pixel data is input, the vertical addition data S of one pixel before is subtracted in the subtracter 22, and as described above, St+j=St-1+j +Siej-8t-mcj, which is a small value shifted by one pixel. The cumulative sum data Si, j of the area is sequentially obtained, stored in the cumulative sum register 23, and output.

以上のように本装置によれば、2次元走査して時系列に
入力される画素データに伴い、そのデータ入力画素位置
によって定まる( m’X n’)画素からなる小領域
の累積和データを順次求めることができる。しかも、リ
アルタイムにその演算処理を高速に実行することができ
る。またレジスタ15.17/に設定するデータによっ
て画素データの遅延ライン数、および加算データの遅延
画素数をセレクトすることで、容易に処理対象とする小
領域の大きさを任意に可変する14− ことができる。但し、この大きさの設定はシフトレジス
ター3のライン数や1ラインの画素数によって制限され
ることは云うまでもない。従って、処理の対象とする画
像Iの全域に亘って、それぞれ小領域を設定しながら、
その小領域における情報を正確に得ることが可能と々る
。故に従来問題となった検査対象の不均一な分布による
誤った検査結果を得ることがなく、またこのような誤シ
を防ぐ為に小領域の設定に工夫を施す等の不具合も全く
ない。そして、従来、全画像領域の検査に(M X N
 X m X n )回もの膨大な計算処理を必要とす
る(mXn ”)の連続的な累積和処理の高速演算方式
によるリアルタイム化を可能とする。しかも上:述した
ようにハードウェア構成も簡単であシ、その実用的利点
が絶大である。また、上述の如く小領域の大きさを任意
設定できるので、処理□対象としての画像1 への汎用性が非常に高く、柔軟な画像処理を可能とする
。更には、濃淡画像の局所的外濃度和□計算も可能であ
シ、これによって新組ムラのする画像のダイナミ、りな
2値化処理を行うことが可能となる。
As described above, according to the present device, along with pixel data that is input in time series through two-dimensional scanning, cumulative sum data of a small area consisting of (m'X n') pixels determined by the data input pixel position is calculated. It can be found sequentially. Furthermore, the arithmetic processing can be performed at high speed in real time. In addition, by selecting the number of delay lines of pixel data and the number of delay pixels of addition data according to the data set in register 15.17/, the size of the small area to be processed can be easily varied arbitrarily14-. I can do it. However, it goes without saying that the setting of this size is limited by the number of lines in the shift register 3 and the number of pixels in one line. Therefore, while setting each small area over the entire area of the image I to be processed,
It is possible to accurately obtain information in that small area. Therefore, there is no possibility of obtaining erroneous inspection results due to non-uniform distribution of the inspection object, which has been a problem in the past, and there is no problem such as having to take measures to set small areas in order to prevent such errors. Conventionally, for inspection of the entire image area (M x N
This enables real-time continuous cumulative sum processing (mXn ''), which requires an enormous amount of calculation processing (X m This has great practical advantages.Also, as mentioned above, the size of the small area can be arbitrarily set, so it is very versatile and can be used for flexible image processing. Furthermore, it is also possible to calculate the local extra-density sum □ of a grayscale image, which makes it possible to perform dynamic and linear binarization processing on images with new set unevenness.

尚、本発明祉上記実施例に限定されるものではない。例
えばシフトレジスタ1sの構成ライン数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 1s may be determined according to specifications.

またシフトレジスタに代えて、RAMを用い、そのアド
レスを制御して同様な処理を行うようにしてもよい。更
には、画素データに代えて′″0#0#データすること
なく、リセット信号により各レジスタをそれぞれイニシ
ャライズしてゼ算すセ、トすることも可能である。また
加算。
Further, instead of the shift register, a RAM may be used and the address thereof may be controlled to perform similar processing. Furthermore, it is also possible to initialize each register with a reset signal and set it to zero without using ``0#0#'' data instead of pixel data.Also, it is possible to perform addition.

累積和処理を、並列的に設けた複数の演算回路を用い□
てそれ゛ぞれ同時に行わしめることにょシ、異なるm、
Hの多種小領域に対する画像処理を並列的に行わしめる
ことも可能である。以上要すするに本発明はその要旨を
逸脱しない範囲で種々変形して実施することができる。
Cumulative sum processing is performed using multiple arithmetic circuits installed in parallel□
The different m,
It is also possible to perform image processing on various small regions of H 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図(、) (b)は画像処理における
問題点を示す画像と小領域との関係を示す図、第3図は
本発明の処理概念を示す図、第4図は本発明の一実施例
装置の概略構成図である。 11・・・消去セレクタ、12・・・加算器、1 g・
・・第1のシフトレジスタ、14・・・縦セレクタ、1
6・・・第2のシフトレジスタ、17・・・緩和レジス
タ、18・・・減算器、19・・・加算器、20・・・
横セレクタ、22・・・減算器、23・・・累積和レジ
スタ。 出願人代理人 弁理士 鈴 江 武 彦−’1.7・− 1!1図 第3図
Figures 1 and 2 (,) (b) are diagrams showing the relationship between images and small areas showing problems in image processing, Figure 3 is a diagram showing the processing concept of the present invention, and Figure 4 is a diagram of the present invention. 1 is a schematic configuration diagram of an apparatus according to an embodiment of the invention. 11... Erase selector, 12... Adder, 1 g.
...First shift register, 14...Vertical selector, 1
6... Second shift register, 17... Relaxation register, 18... Subtractor, 19... Adder, 20...
Horizontal selector, 22... subtractor, 23... cumulative sum register. Applicant's agent Patent attorney Takehiko Suzue-'1.7・- 1!1 Figure 3

Claims (2)

【特許請求の範囲】[Claims] (1)画像を2次元走査して得られる時系列な画素デー
タを一時記憶する(M画素×nライン)段の第1の記憶
手段と、この第1の記憶手段の各ライン出力を選択的に
取出す第1のセレクタと、加算データを一時記憶するM
手段の第2の記憶手段と、この第2の記憶手段の出力デ
ータに前記第1の記憶手段に入力する画像データを加算
すると共に前記第1のセレクタで選択されたデータを減
算して上記加算データを求めて前記第2の記憶手段に入
力する第1の演算回路と前記第2の記憶手段のタップ出
力を選択的に取゛出す第2のセレクタと、累積和データ
を一時記憶する第3の記憶手段と、この第3の記憶手段
の出力データに前記第2の記憶手段の入”カデータを加
算すると共に前記第2のセレクタで選択されたデータを
減算して上記累積和“データを求めて前記第3の記憶手
段に入力する第2′の演算回路メを具備しんことをIF
!f9とする画像処理′装置0
(1) A first storage means in a stage (M pixels x n lines) that temporarily stores time-series pixel data obtained by two-dimensionally scanning an image, and selectively outputs each line of this first storage means. The first selector to retrieve the data and M to temporarily store the added data.
a second storage means of the means; and adding the image data input to the first storage means to the output data of the second storage means and subtracting the data selected by the first selector. a first arithmetic circuit that obtains data and inputs it to the second storage means; a second selector that selectively takes out the tap output of the second storage means; and a third circuit that temporarily stores cumulative sum data. and the input data of the second storage means are added to the output data of the third storage means, and the data selected by the second selector is subtracted to obtain the cumulative sum data. IF
! Image processing unit 0 for f9
(2)第1乃至第3の記憶手段は、それぞれ時系列な画
素データのクロ□ツクによシデータ転送駆動されるもの
である特許請求の範囲第1i記載の両画像処理装置。 
    ”
(2) The image processing apparatus according to claim 1i, wherein each of the first to third storage means is driven to transfer data by a clock of time-series pixel data.
JP57082669A 1982-05-17 1982-05-17 Picture processor Granted JPS58200369A (en)

Priority Applications (4)

Application Number Priority Date Filing Date Title
JP57082669A JPS58200369A (en) 1982-05-17 1982-05-17 Picture processor
US06/494,254 US4542527A (en) 1982-05-17 1983-05-13 Image processing device for continuously extracting features of small regions of an image
EP83302764A EP0094824B1 (en) 1982-05-17 1983-05-16 Image processing device for continuously extracting features of small regions of an image
DE8383302764T DE3378663D1 (en) 1982-05-17 1983-05-16 Image processing device for continuously extracting features of small regions of an image

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP57082669A JPS58200369A (en) 1982-05-17 1982-05-17 Picture processor

Publications (2)

Publication Number Publication Date
JPS58200369A true JPS58200369A (en) 1983-11-21
JPH0375914B2 JPH0375914B2 (en) 1991-12-03

Family

ID=13780830

Family Applications (1)

Application Number Title Priority Date Filing Date
JP57082669A Granted JPS58200369A (en) 1982-05-17 1982-05-17 Picture processor

Country Status (1)

Country Link
JP (1) JPS58200369A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6277682A (en) * 1985-09-30 1987-04-09 Hitachi Ltd Signal processor
JPS6314278A (en) * 1986-07-04 1988-01-21 Hitachi Ltd Processing system for picture with variable constant parameter size

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6277682A (en) * 1985-09-30 1987-04-09 Hitachi Ltd Signal processor
JPS6314278A (en) * 1986-07-04 1988-01-21 Hitachi Ltd Processing system for picture with variable constant parameter size

Also Published As

Publication number Publication date
JPH0375914B2 (en) 1991-12-03

Similar Documents

Publication Publication Date Title
US4949390A (en) Interconnect verification using serial neighborhood processors
US4969198A (en) System for automatic inspection of periodic patterns
EP0243639B1 (en) System for automatic inspection of periodic patterns
US4747157A (en) Spatial product sum calculating unit
Dom et al. The P300: A system for automatic patterned wafer inspection
US6643412B1 (en) Method and apparatus for high speed convolution
JPS58200369A (en) Picture processor
EP0094824A2 (en) Image processing device for continuously extracting features of small regions of an image
US5199082A (en) Method of detecting an amplitude transient in a field of elements having a multivalent amplitude distribution, device suitable for performing the method, and video system including the device
JPS6015782A (en) Picture processor
JPH06508703A (en) filter
JPS58200371A (en) Picture processor
Heriansyah et al. Segmentation of PCB Image Into Simple Generic Patterns Using Mathematical Morphology and Windowing Technique
JPH0332723B2 (en)
JPH05281155A (en) Inspection apparatus for defect of pattern
EP0418949B1 (en) Method of detecting an amplitude transient in a field of elements having a multivalent amplitude distribution, device suitable for performing the method, and video system including the device
JPH07175932A (en) Image processor
JPS58200370A (en) Picture processor
JP2819916B2 (en) Wiring pattern inspection equipment
JPS61153768A (en) High-speed aligning device
JPH03177980A (en) Arithmetic circuit
JPS58163061A (en) Parallel picture processor
JP2001175852A (en) Method and device for convolution processing
JPS61153763A (en) High speed local parallel correlator
JPS61239147A (en) Split inspecting method by image processing