JPH0375914B2 - - Google Patents

Info

Publication number
JPH0375914B2
JPH0375914B2 JP57082669A JP8266982A JPH0375914B2 JP H0375914 B2 JPH0375914 B2 JP H0375914B2 JP 57082669 A JP57082669 A JP 57082669A JP 8266982 A JP8266982 A JP 8266982A JP H0375914 B2 JPH0375914 B2 JP H0375914B2
Authority
JP
Japan
Prior art keywords
data
storage means
output data
image
pixels
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
JP57082669A
Other languages
Japanese (ja)
Other versions
JPS58200369A (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
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 JP57082669A priority Critical patent/JPS58200369A/en
Priority to US06/494,254 priority patent/US4542527A/en
Priority to DE8383302764T priority patent/DE3378663D1/en
Priority to EP83302764A priority patent/EP0094824B1/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

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Investigating Materials By The Use Of Optical Means Adapted For Particular Applications (AREA)
  • Image Analysis (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 an (m x n) image of an image to be inspected 1 consisting of (M x N) pixels, the number of scratches 3 within this small area 2 is counted. Assuming that 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 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×n)画素の累積和デ
ータを得るようにしたものである。
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. The cumulative sum data is obtained from the data stored in the cumulative sum memory, the input addition data to the second storage means of the M stages, and the selected tap output data of the second storage means. By recursively obtaining the data and storing it in the cumulative sum memory, cumulative sum data of (m×n) pixels is obtained in the cumulative sum memory.

〔発明の効果〕〔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. This also makes it possible to determine the sum of densities in small areas of a grayscale 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.

第3図は本装置における演算原理を示すもの
で、1(M×N)画素からなる処理対象画像、2
は演算処理の対象となる(m×n)画素の小領域
を示している。また4は、上記画像1を2次元走
査して得られる時系列な画素をそれぞれ示してい
る。また図中5は、上記小領域2のnライン分の
縦方向の加算データ、つまり縦方向n画素のデー
タ和を仮想的に示したものである。
Figure 3 shows the calculation principle of this device.
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 image 1. Further, numeral 5 in the figure hypothetically shows the vertically added data for n lines of the small area 2, that is, the data sum of n vertical pixels.

今、ここで、既に(m×n)画素からなる小領
域2の累積和Si-1,jが求められ、またこの小領域
2における各列(縦方向)のデータ和Si-n,j
Si-n+1,j〜Si-1,jがそれぞれ求められているものと
する。そして、次に計算すべき小領域2が、右に
1画素分ずれるものとする。この場合、走査によ
つて新しく、(i、j)なる画素データdi,jが入力
され、このデータを用いて、その列のn画素分の
データ和が計算される。この計算は、既に求めら
れているその行のデータ和Si,j-1から、1行分上
の画素のデータdi,j-oを差引き、新たに上記デー
タdi,jを加算することにより Si,j=Si,j-1+di,j−di,j-o として求められる。そして、この新らしく求めら
れた加算データSi,jを、先に求められた小領域2
の累積和Si-1,jに加え、この行の追加によつて先
の小領域2の最左端列を消去して新たな1画素分
右にシフトした小領域2が設定されることから、
最左端列のデータ和Si-n,jを差引くことによつて、 Si,j=Si-1,j+Si,j−Si-n,j として、新たな小領域2の累積和データが求めら
れる。つまり、画像1の2次元走査によつて、新
たな画素データdi,jが入力される都度、上述した
計算処理を行えば上記画素位置(i、j)によつ
て規定される(m×n)画素からなる小領域2の
累積和を遂次求めることができる。
Now, the cumulative sum S 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 this small area 2,
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 by scanning, and this data is used to calculate the sum of data for n pixels in that column. This calculation involves subtracting the data d i ,jo of the pixels one row above from the already determined data sum S i,j- 1 for that row, and adding the new data d i,j . Therefore, S i,j = S i,j-1 + d i,j − d i,jo . Then, this newly obtained addition data S i,j is applied to the previously obtained small area 2
In addition to the cumulative sum S i-1,j of ,
By subtracting the data sum S in,j in the leftmost column, the new cumulative sum data of small area 2 is obtained as S i,j = S i-1,j + S i,j −S in,j. Desired. In other words, each time new pixel data d i,j is input by two-dimensional scanning of image 1, if the calculation process described above is performed, the data (m× n) The cumulative sum of the small area 2 consisting of pixels can be successively determined.

ところで、画素データdの入力初期時において
は、画素位置(i、j)によつて規定される(m
×n)画素の小領域2が画像1に対して設定され
ることがない。そして、画素位置(i、j)が
(m、n)となつた時点より始めて上記小領域2
が画像1に対して定まることになる。従つて、そ
れ以前において、画素デーダを得ることのできな
いものについては、仮想的に画素を考え、そのデ
ータを全て零(0)であるとして取扱えば、その
各々について上述した累積和を求めることが可能
となる。そして、(m、n)なる画素のデータが
入力された時点より、累積和データを出力するこ
とによつて、画像1の全領域に亘つて設定された
各小領域2の累積和データをそれぞれ得ることが
可能となる。
By the way, at the initial stage of input of pixel data d, (m
×n) Small area 2 of pixels is never set for image 1. Then, starting from the time when the pixel position (i, j) becomes (m, n), the above-mentioned small area 2
is determined for image 1. Therefore, for those for which pixel data cannot be obtained before then, if we consider the pixels virtually and treat all of their data as zero (0), we can calculate the above-mentioned cumulative sum for each of them. It becomes possible. Then, from the time when the data of pixels (m, n) is input, by outputting the cumulative sum data, the cumulative sum data of each small area 2 set over the entire area of the image 1 is calculated. It becomes possible to obtain.

第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次元的
にラスタ走査されて順次時系列に読出される。こ
の時系列な画素データdi,jは消去セレクタ11を
介して加算器12に導びかれると共に(M画素×
nライン)段の第1のシフトレジスタ13に導び
かれる。このシフトレジスタ13は、前記画素デ
ータのクロツクによつてデータ転送駆動されるも
ので、1ラインM段からなるシフトレジスタ13
aをn個縦続に接続したものとなつている。この
シフトレジスタ13により、前記画素データは1
つのシフトレジスタ13aを介する都度1ライン
分遅延され、つまりM画素タイミング遅延されて
いる。また前記消去セレクタ11は、上記画素デ
ータdi,jの入力に先立つて零(0)データを入力
し、これにより上記シフトレジスタ13を始めと
する後述する各レジスタをそれぞれゼロリセツト
するものである。
The data of the image to be processed, which is temporarily stored in an image memory or the like, is two-dimensionally raster scanned by a control device or the like (not shown) and sequentially read out in time series. This time-series pixel data d i,j is led to the adder 12 via the erasure selector 11 and (M pixels×
(n line) stage first shift register 13. This shift register 13 is driven for data transfer by the clock of the pixel data, and consists of one line and M stages.
n pieces of A are connected in cascade. This shift register 13 allows the pixel data to be 1
Each time it passes through two shift registers 13a, it is delayed by one line, that is, the timing of M pixels is delayed. The erase selector 11 inputs zero (0) data prior to inputting the pixel data d i,j , thereby resetting each register to be described later including the shift register 13 to zero.

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

一方、M段構成された1ライン分に相当する第
2のシフトレジスタ16は、列(縦)方向にn′画
素加算してデータSを順次1ラインに亘つて格納
するものであり、このシフトレジスタ16のデー
タ転送も前記画素データのクロツクによつて制御
駆動されるようになつている。そして、この第2
のシフトレジスタ16の出力データは、縦和レジ
スタ17に一時記憶されたのち、前記加算器12
に与えられる。この加算器12において、この出
力データに現入力画素データdi,jが加算され、そ
の加算データが減算器18に供給されて前記セレ
クタ14で選択されたn′ライン遅延された画素デ
ータが差引かれる。そして、この減算器18の出
力データが縦方向n′画素の加算データSi,jとして
前記シフトレジスタ16に入力される。
On the other hand, the second shift register 16, which is configured in M stages and corresponds to one line, sequentially stores data S over one line by adding n' pixels in the column (vertical) direction. Data transfer in the register 16 is also controlled and driven by the pixel data clock. And this second
The output data of the shift register 16 is temporarily stored in the vertical sum register 17, and then transferred to the adder 12.
given to. In this adder 12, the current input pixel data d i,j is added to this output data, the added data is supplied to a subtracter 18, and the pixel data delayed by n' lines selected by the selector 14 is subtracted. It will be destroyed. Then, the output data of this subtracter 18 is inputted to the shift register 16 as addition data S i,j of n' pixels in the vertical direction.

また、このシフトレジスタ16に入力されるデ
ータSi,jは加算器19に導びかれる。更に、シフ
トレジスタ16に格納されたデータは、横セレク
タ20を介して、レジスタ21にセツトされた値
(m′)に従い、m′段遅延されたタツプ出力として
取出されている。そして、この選択されたタツプ
出力データは減算器22に与えられている。尚、
上記セレクタ20は、処理対象とする小領域2の
横(行)方向の幅を設定するものである。累積和
レジスタ23は、上記減算器22の出力データを
小領域2の累積和データとして格納するもので、
そのデータを出力すると共に前記加算器19に与
えている。この加算器19によつて既に求められ
た累積和データに前記シフトレジスタ16への入
力データである新たな列の縦方向加算データが加
算される。そして、この加算処理されたデータに
対して前記減算器22は、m′画素位置(列)に
遅延された加算データを減算し、新たな、つまり
1画素位置ずれた小領域2の累積和データを求め
ている。そして、このデータが前記累積和レジス
タ23に書込まれて、データ更新が行われる。
Further, data S i,j input to this shift register 16 is guided to an adder 19. Furthermore, the data stored in the shift register 16 is taken out via the horizontal selector 20 as a tap output delayed by m' stages in accordance with the value (m') set in the register 21. This selected tap output data is then provided to a subtracter 22. still,
The selector 20 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.
The data is outputted and also provided to the adder 19. The vertical addition data of a new column, which is the input data to the shift register 16, is added to the cumulative sum data already obtained by the adder 19. Then, the subtracter 22 subtracts the delayed addition data to the m' pixel position (column) from this addition-processed data, and creates new cumulative sum data of the small area 2 shifted by one pixel position. I'm looking for. Then, this data is written into the cumulative sum register 23, and the data is updated.

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

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

以上のように本装置によれば、2次元走査して
時系列に入力される画素データに伴い、そのデー
タ入力画素位置によつて定まる(m′×n′)画素か
らなる小領域の累積和データを順次求めることが
できる。しかも、リアルタイムにその減算処理を
高速に実行することができる。またレジスタ1
5,17に設定するデータによつて画素データの
遅延ライン数、および加算データの遅延画素数を
セレクトすることで、容易に処理対象とする小領
域の大きさを任意に可変することができる。但
し、この大きさの設定はシフトレジスタ13のラ
イン数や1ラインの画素数によつて制限されるこ
とは云うまでもない。従つて、処理の対象とする
画像1の全域に亘つて、それぞれ小領域を設定し
ながら、その小領域における情報を正確に得るこ
とが可能となる。故に従来問題となつた検査対象
の不均一な分布による誤つた検査結果を得ること
がなく、またこのような誤りを防ぐ為に小領域の
設定に工夫を施す等の不具合も全くない。そし
て、従来、全画像領域の検査に(M×N×m×
n)回もの膨大な計算処理を必要とする(m×
n)の連続的な累積和処理の高速演算方式による
リアルタイム化を可能とする。しかも上述したよ
うにハードウエア構成も簡単であり、その実用的
利点が絶大である。また、上述の如く小領域の大
きさを任意設定できるので、処理対象としての画
像への汎用性が非常に高く、柔軟な画像処理を可
能とする。更には、濃淡画像の局所的な濃度和計
算も可能であり、これによつて所謂ムラのある画
像のダイナミツクな2値化処理を行うことが可能
となる。
As described above, according to the present device, along with pixel data input in time series through two-dimensional scanning, the cumulative sum of a small area consisting of (m'×n') pixels determined by the data input pixel position Data can be obtained sequentially. Moreover, the subtraction process can be executed at high speed in real time. Also register 1
By selecting the number of delay lines of pixel data and the number of delay pixels of addition data based on the data set to 5 and 17, the size of the small region to be processed can be easily varied as desired. However, it goes without saying that the setting of this size is limited by the number of lines in the shift register 13 and the number of pixels in one line. Therefore, it is possible to set each small area over the entire area of the image 1 to be processed, and to accurately obtain information on the 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. Conventionally, for inspection of the entire image area (M×N×m×
n) times (m×
n) continuous cumulative sum processing can be performed in real time using a high-speed calculation method. Moreover, as mentioned above, the hardware configuration is simple, and its practical advantages are enormous. Furthermore, since the size of the small area can be arbitrarily set as described above, it is extremely versatile for images to be processed and enables flexible image processing. Furthermore, it is also possible to calculate the local density sum of grayscale images, thereby making it possible to perform dynamic binarization processing of so-called uneven images.

尚、本発明は上記実施例に限定されるものでは
ない。例えばシフトレジスタ13の構成ライン数
nは仕様に応じて定めればよいものである。また
シフトレジスタに代えて、RAMを用い、そのア
ドレスを制御して同様な処理を行うようにしても
よい。更には、画素データに代えて“0”データ
を入力することなく、リセツト信号により各レジ
スタをそれぞれイニシヤライズしてゼロリセツト
することも可能である。また加算、累積和処理
を、並列的に設けた複数の演算回路を用いてそれ
ぞれ同時に行わしめることにより、異なる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 13 may be determined according to specifications. 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 and reset each register to zero using a reset signal, without inputting "0" data instead of pixel data. In addition, by simultaneously performing addition and cumulative sum processing using multiple arithmetic circuits installed in parallel, different m, n
It is also possible to perform image processing on various types of small areas in parallel. In summary, the present invention can be implemented with various modifications without departing from the gist thereof.

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

第1図および第2図a,bは画像処理における
問題点を示す画像と小領域との関係を示す図、第
3図は本発明の処理概念を示す図、第4図は本発
明の一実施例装置の概略構成図である。 11……消去セレクタ、12……加算器、13
……第1のシフトレジスタ、14……縦セレク
タ、16……第2のシフトレジスタ、17……縦
和レジスタ、18……減算器、19……加算器、
20……横セレクタ、22……減算器、23……
累積和レジスタ。
Figure 1 and Figures 2a and 2b are diagrams showing the relationship between an image and a small area showing problems in image processing, Figure 3 is a diagram showing the processing concept of the present invention, and Figure 4 is a diagram showing an example of the present invention. FIG. 1 is a schematic configuration diagram of an example device. 11... Erase selector, 12... Adder, 13
...First shift register, 14...Vertical selector, 16...Second shift register, 17...Vertical sum register, 18...Subtractor, 19...Adder,
20...Horizontal selector, 22...Subtractor, 23...
Cumulative sum register.

Claims (1)

【特許請求の範囲】 1 画像を2次元走査して得られる時系列な画素
データを順次シフト入力して一時記憶すると共
に、nラインのうち任意の1ラインから出力デー
タを出力する(M画素×nライン)段の第1の記
憶手段と、 加算データを順次シフト入力して一時記憶する
と共にM段のタツプのうち任意の1つのタツプか
らタツプ出力データを出力するM段の第2の記憶
手段と、 この第2の記憶手段の最終段の出力データに前
記第1の記憶手段に入力される画素データを加算
すると共に前記第1の記憶手段の出力データを減
算して前記加算データを求める第1の演算手段
と、 累積和データを一時記憶する第3の記憶手段
と、 この第3の記憶手段からの出力データに前記第
2の記憶手段の入力データを加算すると共に前記
第2の記憶手段のタツプ出力データを減算して前
記累積和データを求める第2の演算手段と、 を具備したことを特徴とする画像処理装置。 2 第1乃至第3の記憶手段は、それぞれ時系列
な画像データのクロツクによりデータ転送駆動さ
れるものである特許請求の範囲第1項記載の画像
処理装置。 3 第1の記憶手段は、前記時系列な画素データ
を順次シフト入力して一時記憶する(M画素×n
ライン)段のシフトレジスタと、これらのシフト
レジスタのnラインの出力データのうち、任意の
1ラインの出力データを選択的に取出すセレクタ
とからなるものであることを特徴とする特許請求
の範囲第1項記載の画像処理装置。 4 第2の記憶手段は、前記加算データを順次シ
フト入力して一時記憶するM段のシフトレジスタ
と、このシフトレジスタのM段のタツプ出力デー
タのうち任意の1つのタツプ出力データを選択す
るセレクタとからなるものであることを特徴とす
る特許請求の範囲第1項記載の画像処理装置。
[Claims] 1 Time-series pixel data obtained by two-dimensionally scanning an image is sequentially shifted and input and temporarily stored, and output data is output from any one line among n lines (M pixels x (n lines) stages of first storage means; and M stages of second storage means for sequentially shifting and inputting added data and temporarily storing it, and outputting tap output data from any one of the M stages of taps. and adding the pixel data input to the first storage means to the output data of the final stage of the second storage means and subtracting the output data of the first storage means to obtain the added data. 1 arithmetic means; a third storage means for temporarily storing cumulative sum data; and a third storage means for adding the input data of the second storage means to the output data from the third storage means; an image processing device comprising: second calculation means for subtracting the tap output data to obtain the cumulative sum data. 2. The image processing apparatus according to claim 1, wherein each of the first to third storage means is driven to transfer data by a clock for time-series image data. 3 The first storage means sequentially shifts and inputs the time-series pixel data and temporarily stores it (M pixels×n
Claim 1, characterized in that the device comprises shift registers of (line) stage and a selector for selectively taking out output data of any one line among the n lines of output data of these shift registers. The image processing device according to item 1. 4. The second storage means includes an M-stage shift register that sequentially shifts and inputs the addition data and temporarily stores it, and a selector that selects any one tap output data from the M-stage tap output data of this shift register. An image processing device according to claim 1, characterized in that the image processing device comprises:
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
DE8383302764T DE3378663D1 (en) 1982-05-17 1983-05-16 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

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 JPS58200369A (en) 1983-11-21
JPH0375914B2 true 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)

Families Citing this family (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
JPH0654502B2 (en) * 1986-07-04 1994-07-20 株式会社日立製作所 Image processing method

Also Published As

Publication number Publication date
JPS58200369A (en) 1983-11-21

Similar Documents

Publication Publication Date Title
US4949390A (en) Interconnect verification using serial neighborhood processors
JPS62245484A (en) Automatic inspection method and apparatus for cyclic pattern
JPH0526136B2 (en)
EP0069542B1 (en) Data processing arrangement
EP0094824A2 (en) Image processing device for continuously extracting features of small regions of an image
GB1417721A (en) Detection apparatus
JPH0375914B2 (en)
US6236769B1 (en) Machine vision systems and methods for morphological transformation of an image with zero or other uniform offsets
Cordella et al. An analysis of computational cost in image processing: A case study
EP0547881B1 (en) Method and apparatus for implementing two-dimensional digital filters
JPH11510627A (en) High-speed morphological processing equipment
JPH0534711B2 (en)
EP0267967A1 (en) Image processing apparatus
JPS58200371A (en) Picture processor
JP2710527B2 (en) Inspection equipment for periodic patterns
WO1988008168A2 (en) Interconnect verification using serial neighborhood processors
JP2010218236A (en) Image processing apparatus
JPH07200830A (en) Defect checking device
JPS5927206A (en) Defective pattern detecting method
JP2819916B2 (en) Wiring pattern inspection equipment
JPS58200370A (en) Picture processor
JP2705052B2 (en) Pattern inspection equipment
JP2806436B2 (en) Arithmetic circuit
JP2536183B2 (en) Image processing method and apparatus
JPS62254276A (en) Histogram calculation system