JP2508075B2 - Image processing device - Google Patents

Image processing device

Info

Publication number
JP2508075B2
JP2508075B2 JP9804187A JP9804187A JP2508075B2 JP 2508075 B2 JP2508075 B2 JP 2508075B2 JP 9804187 A JP9804187 A JP 9804187A JP 9804187 A JP9804187 A JP 9804187A JP 2508075 B2 JP2508075 B2 JP 2508075B2
Authority
JP
Japan
Prior art keywords
window
data
image
address
circuit
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
JP9804187A
Other languages
Japanese (ja)
Other versions
JPS63263578A (en
Inventor
俊道 政木
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.)
Omron Corp
Original Assignee
Omron Tateisi Electronics Co
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 Omron Tateisi Electronics Co filed Critical Omron Tateisi Electronics Co
Priority to JP9804187A priority Critical patent/JP2508075B2/en
Publication of JPS63263578A publication Critical patent/JPS63263578A/en
Application granted granted Critical
Publication of JP2508075B2 publication Critical patent/JP2508075B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Description

【発明の詳細な説明】 <産業上の利用分野> この発明は、移動する物体などを撮像して画像認識す
るための技術に関連し、殊にこの発明は、画像上に所定
のウィンドウを設定して、このウィンドウ内に含まれる
各画素のデータを順次処理してゆくための画像処理装置
に関する。
Description: TECHNICAL FIELD The present invention relates to a technique for capturing an image of a moving object or the like and recognizing the image, and in particular, the present invention sets a predetermined window on the image. In addition, the present invention relates to an image processing device for sequentially processing the data of each pixel included in this window.

<従来の技術> 第9図は従来のこの種画像処理を示しており、画像メ
モリ31,ウィンドウメモリ32,アドレスジェネレータ33,
データプロセッサ34,CPU回路35などから構成されてい
る。画像メモリ31はテレビカメラ36で撮像された物体の
画像を記憶する部分であり、A/D変換器37よりそのビデ
オ信号が与えられる。ウィンドウメモリ32は画像上に設
定するウィンドウを記憶させる部分であり、このウィン
ドウメモリ32の各画素は画像メモリ31の各画素と1:1に
対応している。このウィンドウメモリ32の各画素は1ビ
ット構成となっており、その画素が「1」であれば画像
メモリ31の対応する画素のデータはデータプロセッサ34
で処理されるが、その画素が「0」であれば処理されな
い。
<Prior Art> FIG. 9 shows this kind of conventional image processing, and includes an image memory 31, a window memory 32, an address generator 33,
It is composed of a data processor 34, a CPU circuit 35, and the like. The image memory 31 is a part for storing an image of an object imaged by the television camera 36, and the video signal thereof is given from the A / D converter 37. The window memory 32 is a portion for storing a window to be set on the image, and each pixel of the window memory 32 corresponds to each pixel of the image memory 31 in a 1: 1 relationship. Each pixel of the window memory 32 has a 1-bit configuration. If the pixel is "1", the data of the corresponding pixel of the image memory 31 is the data processor 34.
However, if the pixel is “0”, it is not processed.

従ってウィンドウメモリ32に対しCPU回路35により予
めウィンドウを設定した後、アドレスジェネレータ33に
より画像メモリ31およびウィンドウメモリ32を全アドレ
スにわたりアクセスすれば、データプロセッサ34はウィ
ンドウ内に含まれる画素についてのみデータ処理を実行
することになる。
Therefore, if the window is preset in the window memory 32 by the CPU circuit 35 and then the image memory 31 and the window memory 32 are accessed by the address generator 33 over all addresses, the data processor 34 processes the data only for the pixels included in the window. Will be executed.

上記構成の装置例によれば、例えば静止物体を撮像す
る場合で、その画像が常に画像メモリ上の一定範囲内に
位置するようなときは有効である。
According to the apparatus example having the above configuration, for example, when a still object is imaged and the image is always located within a certain range on the image memory, it is effective.

ところが移動する物体を撮像するような場合で、その
画像を画像メモリ上の一定範囲内に位置決めできない場
合には、ウィンドウの設定位置を固定できず、ウィンド
ウの高速移動が必要となる。
However, when a moving object is imaged and the image cannot be positioned within a certain range on the image memory, the setting position of the window cannot be fixed and the window needs to be moved at high speed.

第10図は、画像平面31上の画像部分38に対する着目範
囲39を示している。
FIG. 10 shows an attention range 39 for the image portion 38 on the image plane 31.

いま矩形状のウィンドウ40はこの画像部分38の現在位
置に対し離れた地点に位置している。このウィンドウ40
により前記着目範囲39の画像処理を行うには、ウィンド
ウ40を図中矢印で示す方向へ移行させつつウィンドウ40
内のデータ処理を繰り返し行うことになる。
Now, the rectangular window 40 is located at a position away from the current position of the image portion 38. This window 40
Therefore, in order to perform the image processing of the attention range 39, the window 40 is moved while moving in the direction indicated by the arrow in the figure.
The data processing inside will be repeated.

<発明が解決しようとする問題点> ところが第9図に示す従来の装置例の場合、ウィンド
ウメモリ32に対するウィンドウの設定は全画素につき1
画素づつ行う必要があるため、ウィンドウ設定に時間が
かかるという欠点がある。しかもウィンドウ内に含まれ
る各画素のデータ処理を行うのに、ウィンドウ外の画素
全てについてもアクセスする必要があるため、特にウィ
ンドウ40を移行させつつデータ処理を行う場合はデータ
処理時間が長くかかるという問題がある。
<Problems to be Solved by the Invention> However, in the case of the conventional apparatus example shown in FIG. 9, the window setting for the window memory 32 is 1 for all pixels.
Since it is necessary to perform pixel by pixel, there is a drawback that it takes time to set the window. Moreover, since it is necessary to access all the pixels outside the window in order to perform the data processing for each pixel included in the window, it is said that the data processing time is long particularly when performing the data processing while moving the window 40. There's a problem.

この発明は、上記問題に着目してなされたものであっ
て、ウィンドウ設定に要するデータ量を少なくしかつウ
ィンドウ内の画素のみをアクセスするよう構成すること
により、ウィンドウの設定並びにデータ処理に要する時
間を短縮化した新規な画像処理装置を提供することを目
的とする。
The present invention has been made in view of the above problems, and reduces the amount of data required for window setting and makes it possible to access only the pixels within the window to reduce the time required for window setting and data processing. It is an object of the present invention to provide a novel image processing device in which the above is shortened.

<問題点を解決するための手段> 上記目的を達成するため、この考案では、画像を記憶
させる画像記憶部と、この記憶画像上に所定のウィンド
ウを移動させつつ設定するウィンドウ設定部と、ウィン
ドウ内に含まれる各画素のデータを処理するデータ処理
部とで画像処理装置を構成している。
<Means for Solving Problems> In order to achieve the above object, in the present invention, an image storage unit for storing an image, a window setting unit for setting a predetermined window on the stored image while moving the window, and a window An image processing device is configured with a data processing unit that processes data of each pixel included in the image processing device.

そして前記ウィンドウ設定部は、ウィンドウの形状を
規定するための形状データを記憶させるウィンド形状記
憶回路と、前記形状データとウィンドウ位置を指定する
ための位置データとからウィンドウ内の各画素のアドレ
スを順次指定するためのアドレスデータを生成するウィ
ンドウアドレス生成回路と、このウィンドウアドレス生
成回路と前記データ処理部とを所定のタイミングで動作
させてウィンドウ内の各画素につき所定のデータ処理を
順次実行させるタイミング回路とを具備させている。
The window setting unit sequentially outputs the address of each pixel in the window from the window shape memory circuit that stores the shape data for defining the shape of the window and the shape data and the position data for specifying the window position. A window address generation circuit that generates address data for designating, and a timing circuit that operates the window address generation circuit and the data processing unit at predetermined timing to sequentially perform predetermined data processing for each pixel in the window. And is equipped with.

<作用> 画像記憶部に入力画像が記憶されると、ウィンドウ設
定部はウィンドウを移動させつつこの画像上に所定のウ
ィンドウを設定すると共に、データ処理部がウィンドウ
内に含まれる各画素のデータを処理してゆく。
<Operation> When the input image is stored in the image storage unit, the window setting unit sets a predetermined window on the image while moving the window, and the data processing unit sets the data of each pixel included in the window. Process it.

この場合にウィンドウ設定部のウィンドウ形状記憶回
路にウィンドウの形状を規定するための形状データを予
め記憶させておき、ウィンドウの設定に際し、この形状
データとウィンドウ位置を指定するための位置データと
をウィンドウアドレス生成回路に与える。そしてこのウ
ィンドウアドレス生成回路ではこれら各データからウィ
ンドウ内の各画素のアドレスを順次指定するためのアド
レスデータを生成してゆく。タイミング回路はこのウィ
ンドウアドレス生成回路とデータ処理部とを所定のタイ
ミングで動作させ、これによりデータ処理部はアドレス
指定されるウィンドウ内の各画素のみを順次データ処理
してゆく。
In this case, the shape data for defining the shape of the window is stored in the window shape memory circuit of the window setting unit in advance, and this shape data and the position data for specifying the window position are set in the window when setting the window. It is given to the address generation circuit. Then, the window address generation circuit generates address data for sequentially designating the address of each pixel in the window from each of these data. The timing circuit operates the window address generation circuit and the data processing section at a predetermined timing, so that the data processing section sequentially processes only the pixels in the addressed window.

この発明では、位置データと形状データとによりウィ
ンドウを移動させつつ画像上へのウィンドウ設定を行う
から、ウィンドウ設定に要するデータ量が少なく、ウィ
ンドウ設定時間が短縮される。またウィンドウアドレス
生成回路はウィンドウ内の画素のみをアクセスするか
ら、データ処理時間が短く、データ処理速度が速くな
る。
According to the present invention, since the window is set on the image while moving the window based on the position data and the shape data, the amount of data required for the window setting is small and the window setting time is shortened. Further, since the window address generation circuit accesses only the pixels within the window, the data processing time is short and the data processing speed is high.

<実施例> 第1図はこの発明の一実施例にかかる画像処理装置1
の概略構成を示している。同図の装置は、画像メモリ2,
ウィンドウアドレス生成回路3,ウィンドウ形状記憶回路
4,タイミングジェネレータ5,データプロセッサ6,CPU回
路7などから構成されており、前記画像メモリ2にはテ
レビカメラ8およびA/D変換器9を含む撮像系が接続さ
れている。
<Embodiment> FIG. 1 shows an image processing apparatus 1 according to an embodiment of the present invention.
1 shows a schematic configuration of the embodiment. The device shown in FIG.
Window address generation circuit 3, window shape memory circuit
4, a timing generator 5, a data processor 6, a CPU circuit 7, etc., and an image pickup system including a television camera 8 and an A / D converter 9 is connected to the image memory 2.

このテレビカメラ8は移動する物体などを撮像し、そ
のビデオ信号をA/D変換器9へ出力する。A/D変換器9は
このビデオ信号をディジタル信号に変換して、これを画
像メモリ2へ与える。
The television camera 8 images a moving object and outputs the video signal to the A / D converter 9. The A / D converter 9 converts this video signal into a digital signal and supplies it to the image memory 2.

画像メモリ2はこの入力画像を記憶するためのもの
で、この記憶画像に対し所定形状のウィンドウが設定さ
れて、ウィンドウ内の各画素データがデータプロセッサ
6により処理される。前記のウィンドウ設定にはウィン
ドウアドレス生成回路3,ウィンドウ形状記憶回路4,タイ
ミングジェネレータ5および,CPU回路7が関与してお
り、CPU回路7はウィンドウ形状記憶回路4に対しウィ
ンドウの形状を規定するための形状データを、またウィ
ンドウアドレス生成回路3に対しウィンドウ位置を指定
するための位置データを、それぞれ与える。
The image memory 2 is for storing this input image. A window of a predetermined shape is set for this stored image, and each pixel data in the window is processed by the data processor 6. The window address generation circuit 3, the window shape memory circuit 4, the timing generator 5, and the CPU circuit 7 are involved in the window setting, and the CPU circuit 7 defines the window shape for the window shape memory circuit 4. And the position data for designating the window position to the window address generation circuit 3.

ウィンドウ形状記憶回路4は前記形状データを記憶
し、またウィンドウアドレス生成回路3はこの形状デー
タと前記位置データとからウィンドウ内に含まれる各画
素のアドレスを順次指定するためのアドレスデータを生
成して画像メモリ2に与える。
The window shape storage circuit 4 stores the shape data, and the window address generation circuit 3 generates address data for sequentially designating addresses of pixels included in the window from the shape data and the position data. It is given to the image memory 2.

タイミングジェネレータ5はCPU回路7より開始信号
を受けると、ウィンドウ形状記憶回路4,ウィンドウアド
レス生成回路3および,データプロセッサ6を所定のタ
イミングで動作させる。これによりデータプロセッサ6
は、指定されたアドレスにかかる各画素のデータを画像
メモリ2より取り込んで順次処理してゆく。
When the timing generator 5 receives the start signal from the CPU circuit 7, it operates the window shape memory circuit 4, the window address generation circuit 3, and the data processor 6 at a predetermined timing. As a result, the data processor 6
Takes in the data of each pixel associated with the specified address from the image memory 2 and processes them sequentially.

第2図は、第1図の装置例の動作手順を示している。 FIG. 2 shows an operation procedure of the apparatus example of FIG.

同図のスタート時点でテレビカメラ8が移動する物体
などを撮像すると、そのビデオ信号がA/D変換器9に与
えられてアナログ−ディジタル変換される。このディジ
タル信号はステップ1(図中「ST1」で示す)で画像メ
モリ2に与えられ、この入力画像が画像メモリ2に記憶
される。
When the television camera 8 captures an image of a moving object or the like at the start point in the figure, the video signal is given to the A / D converter 9 and converted from analog to digital. This digital signal is given to the image memory 2 in step 1 (indicated by "ST1" in the figure), and this input image is stored in the image memory 2.

つぎのステップ2でCPU回路7はウィンドウ形状記憶
回路4へ形状データを与えてウィンドウの形状を記憶さ
せ、またウィンドウアドレス生成回路3へ位置データを
与えてウィンドウ位置を指定する。つぎにステップ3で
CPU回路7がタイミングジェネレータ5へ開始信号を出
力すると、タイミングジェネレータ5は所定のタイミン
グでウィンドウアドレス生成回路3およびデータプロセ
ッサ6を動作させる。すなわちウィンドウアドレス生成
回路3はウィンドウ内に含まれる画素のアドレスを指定
するためのアドレスデータを生成し、データプロセッサ
6はそのアドレスに対応する画像メモリ2のウィンドウ
内の画素データを取り込んで所定のデータ処理を実行す
る(ステップ4)。
In the next step 2, the CPU circuit 7 gives shape data to the window shape storage circuit 4 to store the shape of the window, and also gives position data to the window address generation circuit 3 to specify the window position. Then in step 3
When the CPU circuit 7 outputs a start signal to the timing generator 5, the timing generator 5 operates the window address generation circuit 3 and the data processor 6 at a predetermined timing. That is, the window address generation circuit 3 generates address data for designating the address of the pixel included in the window, and the data processor 6 fetches the pixel data in the window of the image memory 2 corresponding to the address to obtain predetermined data. The process is executed (step 4).

ウィンドウ内の全画素が同様にアクセスされてデータ
処理が完了すると、ステップ5の判定が“YES"となり、
データプロセッサ6はウィンドウ内のデータ処理結果を
CPU回路7へ出力する(ステップ6)。CPU回路7ではこ
のデータ処理結果に基づき前記ウィンドウが画像の着目
範囲に対応位置するか否かを判断する。もしウィンドウ
が着目範囲に対応位置しないときは、ステップ7の判定
は“NO"となってステップ8へ進み、CPU回路7はこのウ
ィンドウを所定の順路に沿って移動させるためのつぎの
位置データをウィンドウアドレス生成回路3へ出力す
る。
When all the pixels in the window are similarly accessed and the data processing is completed, the determination in step 5 becomes “YES”,
The data processor 6 displays the data processing result in the window
Output to the CPU circuit 7 (step 6). Based on the data processing result, the CPU circuit 7 determines whether or not the window corresponds to the focused area of the image. If the window does not correspond to the range of interest, the determination at step 7 is "NO" and the process proceeds to step 8, and the CPU circuit 7 obtains the next position data for moving this window along a predetermined route. Output to the window address generation circuit 3.

以下、ステップ3以下の同様の手順が繰り返し実行さ
れ、その結果ステップ7の判定が“YES"になると、ステ
ップ9へ進み、CPU回路7はデータプロセッサ6による
データ処理結果に基づき所定の認識処理を実行して、そ
の認識結果を外部へ出力する。
Thereafter, the same procedure from step 3 onward is repeatedly executed, and when the result of the determination in step 7 is “YES”, the process proceeds to step 9, where the CPU circuit 7 performs a predetermined recognition process based on the data processing result by the data processor 6. Execute and output the recognition result to the outside.

第3図は、画像平面10上で矩形状のウィンドウ11が所
定の順路に沿って移動する状況を示している。同図中、
dX,dYはウィンドウ11の形状を規定するための形状デー
タ(この場合ウィンドウ11のX方向およびY方向の幅)
であり、(x0,y0)(x1,y1)・・・・(xi,yi)・・・
・(xn-1,yn-1)はウィンドウ11の位置を指定するため
の位置データ(この場合ウィンドウ11の左上角部の座
標)である。またW0,W1,・・・・,Wi,・・・・,Wn-1
前記位置データが与えられたときのウィンドウ11の各位
置を示しており、ウィンドウ11をこの順路で移動させる
ことにより、画像の着目範囲12が探索されることにな
る。
FIG. 3 shows a situation where the rectangular window 11 moves on the image plane 10 along a predetermined route. In the figure,
dX and dY are shape data for defining the shape of the window 11 (in this case, the width of the window 11 in the X and Y directions)
And (x 0 , y 0 ) (x 1 , y 1 ) ・ ・ ・ ・ (x i , y i ) ・ ・ ・
(X n-1 , y n-1 ) is position data (in this case, the coordinates of the upper left corner of the window 11) for specifying the position of the window 11. Also, W 0 , W 1 , ..., W i , ..., W n-1 indicate the respective positions of the window 11 when the position data is given, and the window 11 is set in this route. By moving, the attention range 12 of the image is searched.

第4図はこの探索手順を示しており、まずステップ11
でiをゼロに初期設定した後、つぎのステップ12で最初
のウィンドウ位置W0におけるウィンドウ11内の輝度の累
積値 が求められる。この輝度の累積値 はウィンドウ11内に画像の着目範囲12が位置するかどう
かを判断するためのものである。つぎのステップ13はi
が最終値nに達したか否かを判断しており、この場合そ
の判定は“NO"であるから、ステップ14へ進み、ここで
前記の累積値 値がしきい値Cより大きいか否かを判断する。もしステ
ップ14の判定が“YES"のときは、ウィンドウ11内に画像
の着目範囲12が位置すると判断されるが、もしステップ
14の判定が“NO"のときはiを1加算してウィンドウ11
をつぎの位置W1に進め(ステップ15)、その位置でのウ
ィンドウ11内の輝度の累積値 を求めることになる。
FIG. 4 shows this search procedure. First, step 11
After initializing i to zero with, the next step 12 is the cumulative value of the brightness in the window 11 at the first window position W 0 . Is required. Cumulative value of this brightness Is for determining whether the attention area 12 of the image is located within the window 11. The next step 13 is i
Has reached the final value n. In this case, since the determination is "NO", the routine proceeds to step 14, where the cumulative value It is determined whether the value is larger than the threshold value C. If the determination in step 14 is "YES", it is determined that the attention area 12 of the image is located in the window 11, but if the step
When the judgment in 14 is "NO", i is incremented by 1 and the window 11
To the next position W 1 (step 15), and the cumulative value of the brightness in the window 11 at that position Will be required.

同様の手順は、ステップ13または14の判定が“YES"に
なるまで繰り返されるが、もしステップ14の判定が“YE
S"になることなくステップ13の判定が“YES"になったと
きは、画像平面10上に着目範囲12は存在しなかったと判
断されることになる。
The same procedure is repeated until the determination in step 13 or 14 becomes “YES”, but if the determination in step 14 is “YE
When the determination in step 13 is “YES” without becoming “S”, it is determined that the attention range 12 does not exist on the image plane 10.

第5図は、前記ステップ12で累積値 を算出するのに用いられる回路構成例を示しており、画
像メモリ2,ウィンドウアドレス生成回路3,ウィンドウ形
状記憶回路4,タイミングジェネレータ5,データプロセッ
サ6を含んでいる。ウィンドウアドレス生成回路3は、
X位置レジスタ15、Y位置レジスタ16,Xアドレスカウン
タ17,Yアドレスカウンタ18により構成され、前記X位置
レジスタ15およびY位置レジスタ16にはウィンドウ位置
を指定するための位置データ(xi,yi)がセットされ
る。またウィンドウ形状記憶回路4はX幅レジスタ19,Y
幅レジスタ20,Xコンパレータ21,Yコンパレータ22,X幅カ
ウンタ23,Y幅カウンタ24により構成され、X幅レジスタ
19およびY幅レジスタ20にはウィンドウ形状を規定する
ための形状データdX,dYがセットされる。これらの回路
は図示しないCPU回路によりその動作が制御される。
Fig. 5 shows the cumulative value in step 12 above. 2 shows an example of a circuit configuration used to calculate the image data, and includes an image memory 2, a window address generation circuit 3, a window shape memory circuit 4, a timing generator 5, and a data processor 6. The window address generation circuit 3
It is composed of an X position register 15, a Y position register 16, an X address counter 17, and a Y address counter 18. The X position register 15 and the Y position register 16 have position data (x i , y i) for designating a window position. ) Is set. Further, the window shape memory circuit 4 has an X width register 19, Y
Width register 20, X comparator 21, Y comparator 22, X width counter 23, Y width counter 24
The shape data dX and dY for defining the window shape are set in the 19 and Y width register 20. The operation of these circuits is controlled by a CPU circuit (not shown).

第6図は上記回路のタイミングチャートを示してお
り、以下同図に基づき第5図の回路動作を詳細に説明す
る。
FIG. 6 shows a timing chart of the above circuit, and the circuit operation of FIG. 5 will be described in detail below with reference to FIG.

まずCPU回路は、ウィンドウ形状記憶回路4のX幅レ
ジスタ19およびY幅レジスタ20に対しラッチパルスdi,d
jを適時与えることで、データバス25を通じて各レジス
タ19,20にウィンドウの形状データdX,dYを記憶させる。
同様にしてウィンドウアドレス生成回路3のX位置レジ
スタ15およびY位置レジスタ16にはラッチパルスiw,jw
によってウィンドウの位置データxi,yiがセットされ
る。なおここでは説明を簡易化するため、前記位置デー
タdX,dYはdX=2,dY=2として以下の回路動作を説明す
る。
First, the CPU circuit outputs latch pulses d i , d to the X width register 19 and the Y width register 20 of the window shape memory circuit 4.
By appropriately supplying j , the window shape data dX and dY are stored in the registers 19 and 20 through the data bus 25.
Similarly, latch pulses i w , j w are applied to the X position register 15 and the Y position register 16 of the window address generation circuit 3.
Sets the window position data x i , y i . In order to simplify the description, the following circuit operation will be described assuming that the position data dX and dY are dX = 2 and dY = 2.

つぎにCPU回路は開始信号SGMをタイミングジェネレー
タ5へ与えてこの回路を起動する。まずステート1でX
アドレスカウンタ17およびYアドレスカウンタ18に初期
値として位置データxi,yiがロードされ、またX幅カウ
ンタ23およびY幅カウンタ24にはそれぞれ「1」がロー
ドされる。そのためにタイミングジェネレータ5のセッ
トアップ出力SPiSPjは「0」となり、インクリメントパ
ルスCPiCPjが立ち上がる。ウィンドウアドレス生成回路
3では、前記Xアドレスカウンタ17およびYアドレスカ
ウンタ18にロードされた位置データxi,yiが画像メモリ
2に対しアドレスデータとして与えられる。またウィン
ドウ形状記憶回路4では、Xコンパレータ21がX幅レジ
スタ19の内容A(この場合A=2)とX幅カウンタ23の
内容B(この場合B=1)とを大小比較し、またYコン
パレータ22がY幅レジスタ20の内容A′(この場合A′
=2)とY幅カウンタ大小比較する。その結果、A>B,
A′>B′であるから、各コンパレータ21,22の比較信号
AGiAGjは「0」である。
Next, the CPU circuit applies the start signal SGM to the timing generator 5 to activate this circuit. First in State 1 X
Position data x i , y i are loaded as initial values into the address counter 17 and Y address counter 18, and “1” is loaded into the X width counter 23 and Y width counter 24, respectively. Therefore, the setup output SP i SP j of the timing generator 5 becomes “0”, and the increment pulse CP i CP j rises. In the window address generation circuit 3, the position data x i , y i loaded in the X address counter 17 and the Y address counter 18 are given to the image memory 2 as address data. In the window shape memory circuit 4, the X comparator 21 compares the content A of the X width register 19 (A = 2 in this case) with the content B of the X width counter 23 (B = 1 in this case), and the Y comparator. 22 is the content A'of the Y width register 20 (in this case A '
= 2) and the size of the Y width counter are compared. As a result, A> B,
Since A '>B', the comparison signals of the comparators 21 and 22
AG i AG j is “0”.

ステート2〜4ではタイミングジェネレータ5の各出
力信号は変化せず、その間に画像メモリ2がアクセスさ
れてデータプロセッサ6に入る画素データY(xi,yi
が確定する。もしステート3で比較信号AGiAGjがともに
「1」ならばステート12へ移行するが、この場合はとも
に「0」であるので、ステート4へ移行することにな
る。
In the states 2 to 4, the respective output signals of the timing generator 5 do not change, and the image memory 2 is accessed during that time and the pixel data Y (x i , y i ) is entered into the data processor 6.
Is confirmed. If the comparison signals AG i AG j are both "1" in state 3, the state shifts to state 12, but in this case both are "0", the state shifts to state 4.

ステート5ではXアドレスカウンタ17がインクリメン
トされ、Yアドレスカウンタ18の内容は保持されたまま
となる。すなわちXアドレスカウンタ17はアドレスデー
タとしてxi+1を、またYアドレスカウンタ18はアドレ
スデータとしてyiを、それぞれ画像メモリ2へ与える。
またX幅カウンタ23がインクリメントされて「2」とな
り、Y幅カウンタ24の内容は保持されたままとなる。そ
のためにタイミングジェネレータ5はセットアップ出力
SPiSPjが「1」となり、またインクリメントパルスCPi
が立ち上がり、インクリメントパルスCPjは「0」のま
まとなる。さらにステート5の始めにデータ入力信号IN
Dが立ち上がることによって、画素データY(xi,yi)が
データプロセッサ6にロードされる。
In state 5, the X address counter 17 is incremented and the contents of the Y address counter 18 are retained. That is, the X address counter 17 gives x i +1 as the address data and the Y address counter 18 gives y i as the address data to the image memory 2.
Further, the X width counter 23 is incremented to "2", and the contents of the Y width counter 24 are retained. Therefore, the timing generator 5 outputs the setup output.
SP i SP j becomes “1” and increment pulse CP i
Rises and the increment pulse CP j remains “0”. Furthermore, at the beginning of state 5, the data input signal IN
When D rises, the pixel data Y (x i , y i ) is loaded into the data processor 6.

ステート6〜8ではタイミングジェネレータ5の各出
力信号は変化せず、その間に画像メモリ2がアクセスさ
れてデータプロセッサ6に入る画素データY(xi+1,
yi)が確定する。またX幅カウンタ23の内容Bが
「2」、X幅レジスタ19の内容Aが「2」であるから、
Xコンパレータ21のA>Bにかかる比較信号AGi
「1」となるが、Y幅カウンタ24の内容B′が「1」、
Y幅レジスタ20の内容A′が「2」であるから、A′>
B′にかかる比較信号AGjは「0」のままであり、ステ
ート7からステート8へ移行する。
In the states 6 to 8, the output signals of the timing generator 5 do not change, and the image memory 2 is accessed during that time to enter the pixel data Y (x i +1,
y i ) is fixed. Since the content B of the X width counter 23 is "2" and the content A of the X width register 19 is "2",
The comparison signal AG i applied to A> B of the X comparator 21 is “1”, but the content B ′ of the Y width counter 24 is “1”,
Since the content A'of the Y width register 20 is "2", A '>
The comparison signal AG j related to B ′ remains “0”, and the state 7 shifts to the state 8.

ステート9ではXアドレスカウンタ17には初期値xi
ロードされ、Yアドレスカウンタ18の内容はyi+1にイ
ンクリメントされる。すなわちXアドレスカウンタ17は
アドレスデータとしてxiを、またYアドレスカウンタ18
はアドレスデータとしてyi+1を、それぞれ画像メモリ
2へ与える。またX幅カウンタ23には「1」がロードさ
れ、Y幅カウンタ24の内容は「2」にインクリメントさ
れる。そのためにタイミングジェネレータ5のセットア
ップ出力SPiは「0」、セットアップ出力SPjは「1」と
なり、またインクリメントパルスCPi,CPjがともに立ち
上がる。さらにステート9の始めにデータ入力信号IND
が立ち上がることによって、画素データY(xi+1,yi
がデータプロセッサ6の内容に加算される。
In state 9, the initial value x i is loaded into the X address counter 17, and the content of the Y address counter 18 is incremented to y i +1. That is, the X address counter 17 uses x i as the address data, and the Y address counter 18
Gives y i +1 as the address data to the image memory 2, respectively. Further, "1" is loaded into the X width counter 23, and the content of the Y width counter 24 is incremented to "2". Therefore, the setup output SP i of the timing generator 5 becomes “0”, the setup output SP j becomes “1”, and the increment pulses CP i and CP j both rise. Furthermore, at the beginning of state 9, the data input signal IND
Rises, the pixel data Y (x i +1, y i )
Is added to the contents of the data processor 6.

つぎのステート10,11では、Y幅カウンタ24の内容
B′が「2」となるので、Yコンパレータ22のA′>
B′にかかる比較信号AGjは「1」となり、またタイミ
ングジェネレータ5のセットアップ出力SPjは「0」と
なる。一方Xコンパレータ21のA>Bにかかる比較信号
AGiは「1」となる。もしステート11で前記比較信号AGi
AGjがともに「1」ならばステート12へ移行するが、こ
の場合比較信号AGiは「0」であるからステート8に戻
る。
In the next states 10 and 11, since the content B'of the Y width counter 24 becomes "2", A '> of the Y comparator 22>
The comparison signal AG j applied to B ′ becomes “1”, and the setup output SP j of the timing generator 5 becomes “0”. On the other hand, the comparison signal for A> B of the X comparator 21
AG i becomes “1”. If in state 11 the comparison signal AG i
If both AG j are "1", the state shifts to the state 12, but since the comparison signal AG i is "0" in this case, the state returns to the state 8.

つぎにステート9ではXアドレスカウンタ17がxi+1
にインクリメントされ、Yアドレスカウンタ18の内容は
yi+1に保持される。すなわちXアドレスカウンタ17は
アドレスデータとしてxi+1を、またYアドレスカウン
タ18はアドレスデータとしてyi+1を、それぞれ画像メ
モリ2へ与える。またX幅カウンタ23がインクリメント
されて「2」となり、Y幅カウンタ24の内容は「2」に
保持される。そのためにタイミングジェネレータ5のセ
ットアップ出力SPiは「1」となり、またインクリメン
トパルスCPiは立ち上がり、インクリメントパルスCPj
「0」のままとなる。さらにステート9の始めにデータ
入力信号INDが立ち上がることによって、確立した画素
データY(xi+1,yi+1)がデータプロセッサ6の内容
に加算される。
Next, in state 9, the X address counter 17 displays x i +1
The contents of the Y address counter 18 are incremented to
held at y i +1. That is, the X address counter 17 gives x i +1 as the address data and the Y address counter 18 gives y i +1 as the address data to the image memory 2. Further, the X width counter 23 is incremented to "2", and the content of the Y width counter 24 is held at "2". Therefore, the setup output SP i of the timing generator 5 becomes “1”, the increment pulse CP i rises, and the increment pulse CP j remains “0”. By data input signal IND rises further the beginning of a state 9, established pixel data Y (x i + 1, y i +1) is added to the contents of the data processor 6.

ステート10,11ではX幅カウンタ23およびY幅カウン
タ24はともに「2」となり、Xコンパレータ21およびY
コンパレータ22の比較信号AGiAGjは「1」となる。そし
てステート11で比較信号AGi,AGjがともに「1」である
ので、ステート12へ移行し、このステート12では画素デ
ータY(xi+1,yi+1)が確定する。ステート13ではデ
ータ入力信号INDが立ち上がることにより、最終の画素
データY(xi+1,yi+1)がデータプロセッサ6の内容
に加算される。
In the states 10 and 11, the X width counter 23 and the Y width counter 24 both become "2", and the X comparator 21 and the Y comparator
The comparison signal AG i AG j of the comparator 22 becomes “1”. The comparison signal AG i in state 11, since AG j are both "1", the process proceeds to state 12, in the state 12 pixel data Y (x i + 1, y i +1) is determined. By state 13, the data input signal IND rises, the final pixel data Y (x i + 1, y i +1) is added to the contents of the data processor 6.

ステート14ではタイミングジェネレータ5の出力信号
は変化せず、ステート15でCPU回路に対し終了信号ENDを
出力して累積値 の算出処理の終了を知らせる。そしてCPU回路はこの終
了信号ENDを受け取った後、データプロセッサ6をアク
セスすることにより、累積値 を求めることができる。
In state 14, the output signal of timing generator 5 does not change, and in state 15, the end signal END is output to the CPU circuit and the accumulated value Notify the end of the calculation process of. After receiving the end signal END, the CPU circuit accesses the data processor 6 to calculate the accumulated value. Can be requested.

なお上記実施例では、ウィンドウ形状はdX=dY=2の
矩形状であるが、この発明はこれに限らず、第7図に示
すような任意形状のウィンドウ11であっても適用実施で
きる。同図においては形状データdX,dYのうち、ウィン
ドウ11のX方向の幅dXはウィンドウのY幅位置Yiで決ま
る関数dX(Yi)として表されている。この場合は第8図
に示す如く、X幅レジスタ19およびY幅レジスタ20に予
め形状データdX,dYをセットしておき、X幅レジスタ19
にはY幅カウンタ24の内容を与えて対応する形状データ
dXを取り出すように構成するものである。
In the above embodiment, the window shape is a rectangular shape of dX = dY = 2, but the present invention is not limited to this, and the window 11 having an arbitrary shape as shown in FIG. 7 can be applied and implemented. In the figure, of the shape data dX and dY, the width dX of the window 11 in the X direction is represented as a function dX (Y i ) determined by the Y width position Y i of the window. In this case, as shown in FIG. 8, the shape data dX and dY are set in advance in the X width register 19 and the Y width register 20, and the X width register 19 is set.
Is given the contents of the Y width counter 24 and the corresponding shape data
It is configured to take out dX.

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

第1図はこの発明の一実施例にかかる画像処理装置の概
略構成を示すブロック図、第2図は第1図の装置例の動
作手順を示すフローチャート、第3図は画像平面上での
ウィンドウの移動状況を示す説明図、第4図はウィンド
ウによる着目範囲の探索手順を示すフローチャート、第
5図はこの発明の具体的な回路構成例を示すブロック
図、第6図は第5図の回路の動作を示すタイミングチャ
ート、第7図はウィンドウの他の形状例を示す説明図、
第8図は第7図のウィンドウ形状についての回路構成例
を示すブロック図、第9図は従来の装置例を示すブロッ
ク図、第10図は従来の装置例による着目範囲の探索方法
を示す説明図である。 1……画像処理装置、2……画像メモリ 3……ウィンドウアドレス生成回路 4……ウィンドウ形状記憶回路 5……タイミングジェネレータ 7……CPU回路
FIG. 1 is a block diagram showing a schematic configuration of an image processing apparatus according to an embodiment of the present invention, FIG. 2 is a flowchart showing an operation procedure of the apparatus example of FIG. 1, and FIG. 3 is a window on an image plane. FIG. 4 is a flow chart showing a procedure for searching a range of interest by a window, FIG. 5 is a block diagram showing a concrete circuit configuration example of the present invention, and FIG. 6 is a circuit shown in FIG. Is a timing chart showing the operation of FIG. 7, FIG. 7 is an explanatory view showing another example of the shape of the window,
FIG. 8 is a block diagram showing an example of the circuit configuration for the window shape of FIG. 7, FIG. 9 is a block diagram showing an example of a conventional device, and FIG. 10 is an explanation showing a method of searching a range of interest by the example of a conventional device. It is a figure. 1 ... Image processing device, 2 ... Image memory 3 ... Window address generation circuit 4 ... Window shape memory circuit 5 ... Timing generator 7 ... CPU circuit

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】画像を記憶させる画像記憶部と、この記憶
画像上に所定のウィンドウを移動させつつ設定するウィ
ンドウ設定部と、ウィンドウ内に含まれる各画素のデー
タを処理するデータ処理部とから成る画像処理装置であ
って、 前記ウィンドウ設定部は、 ウィンドウの形状を規定するための形状データを記憶さ
せるウィンド形状記憶回路と、 前記形状データとウィンドウ位置を指定するための位置
データとからウィンドウ内の各画素のアドレスを順次指
定するためのアドレスデータを生成するウィンドウアド
レス生成回路と、 このウィンドウアドレス生成回路と前記データ処理部と
を所定のタイミングで動作させてウィンドウ内の各画素
につき所定のデータ処理を順次実行させるタイミング回
路とを具備して成る画像処理装置。
1. An image storage unit for storing an image, a window setting unit for setting a predetermined window while moving the stored image on the stored image, and a data processing unit for processing data of each pixel included in the window. In the image processing device, the window setting unit includes a window shape storage circuit that stores shape data for defining a shape of the window, and the shape data and position data for designating a window position within the window. Of the window address generating circuit for generating address data for sequentially designating the address of each pixel, and the window address generating circuit and the data processing section are operated at a predetermined timing to obtain predetermined data for each pixel in the window. An image processing apparatus comprising a timing circuit for sequentially executing processing.
JP9804187A 1987-04-21 1987-04-21 Image processing device Expired - Lifetime JP2508075B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP9804187A JP2508075B2 (en) 1987-04-21 1987-04-21 Image processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP9804187A JP2508075B2 (en) 1987-04-21 1987-04-21 Image processing device

Publications (2)

Publication Number Publication Date
JPS63263578A JPS63263578A (en) 1988-10-31
JP2508075B2 true JP2508075B2 (en) 1996-06-19

Family

ID=14209012

Family Applications (1)

Application Number Title Priority Date Filing Date
JP9804187A Expired - Lifetime JP2508075B2 (en) 1987-04-21 1987-04-21 Image processing device

Country Status (1)

Country Link
JP (1) JP2508075B2 (en)

Also Published As

Publication number Publication date
JPS63263578A (en) 1988-10-31

Similar Documents

Publication Publication Date Title
JP4096513B2 (en) Image processing inspection apparatus and inspection method
JP2508075B2 (en) Image processing device
JPH08237536A (en) Device and method for tracking object
JPH08125844A (en) Image processing method and image processing system using the method
JPH10336506A (en) Image-processing system, system and method for tracking and storage medium
JP2667885B2 (en) Automatic tracking device for moving objects
JPH08194825A (en) Outline information extracting device
JPH0620051A (en) Pattern recognizing system
US20220392207A1 (en) Information processing apparatus, information processing method, and non-transitory computer-readable storage medium
JPH0467233B2 (en)
JPS61117673A (en) System for picture data transfer processing
JPH05303624A (en) Device for following pictures
CN113989385A (en) Vehicle-mounted camera internal and external parameter calibration method and vehicle-mounted terminal
JPH11195122A (en) Template matching method and its device
JP2861053B2 (en) Image processing device
JPH10187967A (en) Template matching method and device
JPH10126653A (en) Television camera device
JPS62256180A (en) Picture processing method
JP2659784B2 (en) Image processing device
JPH05143739A (en) Image processor
JPH04307680A (en) Image processor
JP2002092614A (en) Device and method for processing image
JPH087113A (en) Feature amount extracting method for image
JPH0830789A (en) Image storage device
JPH05334429A (en) Image processor

Legal Events

Date Code Title Description
EXPY Cancellation because of completion of term
FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080416

Year of fee payment: 12