JPS63244277A - Image area measuring instrument - Google Patents
Image area measuring instrumentInfo
- Publication number
- JPS63244277A JPS63244277A JP62078178A JP7817887A JPS63244277A JP S63244277 A JPS63244277 A JP S63244277A JP 62078178 A JP62078178 A JP 62078178A JP 7817887 A JP7817887 A JP 7817887A JP S63244277 A JPS63244277 A JP S63244277A
- Authority
- JP
- Japan
- Prior art keywords
- area
- image
- sampling
- circuit
- data
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000005070 sampling Methods 0.000 claims abstract description 85
- 238000003860 storage Methods 0.000 claims description 11
- 238000001514 detection method Methods 0.000 claims description 4
- 238000013075 data extraction Methods 0.000 description 8
- 238000010586 diagram Methods 0.000 description 8
- 230000015654 memory Effects 0.000 description 8
- 238000000926 separation method Methods 0.000 description 8
- 238000005259 measurement Methods 0.000 description 4
- 230000000052 comparative effect Effects 0.000 description 3
- 230000000694 effects Effects 0.000 description 2
- 239000000284 extract Substances 0.000 description 2
- 238000000605 extraction Methods 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 230000009977 dual effect Effects 0.000 description 1
- 230000005484 gravity Effects 0.000 description 1
- 238000003384 imaging method Methods 0.000 description 1
- 238000012423 maintenance Methods 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 238000000691 measurement method Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000005457 optimization Methods 0.000 description 1
- 230000004044 response Effects 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
Landscapes
- Image Analysis (AREA)
Abstract
Description
【発明の詳細な説明】
良咀辺旦句
[産業上の利用分野]
本発明は、サンプリングエリア毎に画像の面積を計測す
る画像面積計測装置に関する。Detailed Description of the Invention [Field of Industrial Application] The present invention relates to an image area measuring device that measures the area of an image for each sampling area.
[従来の技術]
従来、画像の代表特性値として優れた画像面積に着目し
、画像の認識やパターンマツチング等を行なう画像処理
装置において、テレビカメラ等によって撮像された画像
の面積の計測が行なわれている。即ち、視認し得る対象
から抽出される代表特性(1m (例えば、周長、重心
、最大角、面積等)のうち、面積は、人間の直感に最も
よく適合しているので、画像認識等においてどこにポイ
ントを置くかを画像を見ながら決定する場合、その結果
を最もよく数値化することができるのである。従って、
画像面積を用いれば、特徴抽出を行なうエリアをマンツ
ーマンで選択でき、各種の作業、例えば撮像した対象の
良・不良の判断等のティーチングなどを容易に行うこと
ができる。[Prior Art] Conventionally, an image processing device that performs image recognition, pattern matching, etc. focuses on the image area, which is excellent as a representative characteristic value of an image, and measures the area of an image captured by a television camera or the like. It is. In other words, among the representative characteristics (1 m (e.g., circumference, center of gravity, maximum angle, area, etc.) extracted from visible objects), area is the most suitable for human intuition, so it is used in image recognition, etc. The results can be best quantified if you decide where to place the points while looking at the image.
By using the image area, areas for feature extraction can be selected on a one-on-one basis, and various tasks such as teaching, such as determining whether an imaged object is good or bad, can be easily performed.
こうした目的のために用いられる面積計測装置では、一
画面中に存在する複数の対象を分離して計測したり、撮
像された対象の特徴を好適に捕らえることを目的として
、ひとつの画面中に更にいくつかのサンプリングエリア
を設定するのが一般的である。即ち、画像面積の計測は
これらあサンプリングエリア毎に行なわれるのである。Area measuring devices used for these purposes are designed to separate and measure multiple objects existing in one screen, or to capture the characteristics of the imaged object appropriately. It is common to set up several sampling areas. That is, the measurement of the image area is performed for each of these sampling areas.
[発明が解決しようとする問題点]
しかしながら、対象の特徴を効率よくまた精度よく捕ら
えようとして、一画面に多数のサンプリングエリアを設
定すると、面積計測の速度が格段に遅くなるという問題
があった。例えばN個のサンプリングエリアが設定され
ているとき、サンプリングエリア毎の画像の面積の計測
をソフトウェアにより処理する構成とすると、第9図に
示すように、ひとつのサンプリングエリア毎に、サンプ
リングエリア内であるか否かの判断(ステップS1)、
その画素がアクティブであるか否かの判断(ステップS
2)、面積のカウントアツプの処理(ステップS3)、
総ての処理が完了したか否かの判断(ステップS4)が
必要となる。従つて、ひとつのサンプリングエリアに関
する上記の処理に時間t1だけ要するものとすると、全
体では時間T=NXtlの時間が必要となってしまう。[Problems to be solved by the invention] However, in order to efficiently and accurately capture the characteristics of a target, there is a problem in that when a large number of sampling areas are set on one screen, the speed of area measurement becomes significantly slower. . For example, if N sampling areas are set and the area of the image for each sampling area is measured using software, as shown in Figure 9, Judging whether there is one (step S1),
Determining whether the pixel is active (step S
2), area count up processing (step S3),
It is necessary to determine whether all processing has been completed (step S4). Therefore, assuming that the above processing regarding one sampling area requires time t1, the total time T=NXtl is required.
この結果、サンプリングエリア毎の面積の計測に長時間
を要し、リアルタイムでの計測ができないばかりか、作
業性が低下するという問題を招致する。As a result, it takes a long time to measure the area of each sampling area, which not only makes it impossible to measure in real time, but also reduces work efficiency.
本発明の画像面積計a!ll装置は上記問題点を解決し
、複数のサンプリングエリア毎の画像面積の計測を高速
に行なうことを目的としてなされた。Image area meter a! of the present invention! The II device was developed with the aim of solving the above problems and measuring the image area of each of a plurality of sampling areas at high speed.
及匪ΩI成
かかる目的を達成する本発明の構成について以下説明す
る。The structure of the present invention that achieves the above object will be described below.
E問題点を解決するための手段]
二次元画像に対して設定された複数のサンプリングエリ
ア内の画像の面積をサンプリングエリア毎に計測する本
発明の画像面積計測装置は、前記二次元画像内において
予め設定された二以上のサンプリングエリアの位置に関
する情報を記憶するエリア情報記憶回路と、
前記二次元画像の一走査線内において、走査位置が前記
設定されたサンプリングエリア内にあることを、前記記
憶された情報に基づいて検出するサンプリングエリア検
出回路と、
前記二次元画像の走査に従つて、走査位置に対応した前
記サンプリングエリアに存在する画像の面積を走査線毎
に計測する線内面積計測回路と、該計測された面積をサ
ンプリングエリア毎に積算するエリア内面積算出回路と
を備える。Means for Solving Problem E] The image area measuring device of the present invention, which measures the area of an image within a plurality of sampling areas set for a two-dimensional image for each sampling area, an area information storage circuit that stores information regarding the positions of two or more preset sampling areas; and an area information storage circuit that stores information regarding the positions of two or more preset sampling areas; a sampling area detection circuit that detects the area based on the information obtained by scanning the two-dimensional image; and an in-line area measuring circuit that measures the area of the image existing in the sampling area corresponding to the scanning position for each scanning line as the two-dimensional image is scanned. and an in-area area calculation circuit that integrates the measured area for each sampling area.
ここで、エリア情報記憶回路とは、二次元画像内におい
て予め設定された二以上のサンプリングエリアの情報を
記憶する半導体のメモリ、磁気的な記憶装置、光記憶装
置等をいう。また、サンプリングエリアの位置に関する
情報としては、例えば二次元画像の走査位置の一点一点
に対して記憶されたサンプリングエリアの番号等でもよ
いし、−走査線内におけるサンプリングエリア開始の情
報とサンプリングエリア終了の情報であってもよい。こ
うした情報は、予めマイクロコンピュータ等によってエ
リア情報記憶回路に書き込んでもよいし、ディップスイ
ッチ等によフて設定するよう構成してもよい。こうした
サンプリングエリアの設定は、任意の形状により行える
よう構成してもよいし、予め定められた所定の形状、例
えば矩形・円形あるいは多角形等としてなされるものと
してもよい。Here, the area information storage circuit refers to a semiconductor memory, a magnetic storage device, an optical storage device, etc. that stores information on two or more preset sampling areas within a two-dimensional image. Further, the information regarding the position of the sampling area may be, for example, a sampling area number stored for each scanning position of the two-dimensional image, or - information on the start of the sampling area within the scanning line and sampling It may also be information about the end of the area. Such information may be written in advance into the area information storage circuit by a microcomputer or the like, or may be configured to be set by a dip switch or the like. The sampling area may be set in any shape, or may be set in a predetermined shape, such as a rectangle, circle, or polygon.
サンプリングエリア検出回路とは、設定されたサンプリ
ングエリア内を走査しているとき、これを検出する回路
であって、エリア情報記憶回路に記憶された位置に関す
る情報を読み出して、これと走査位置とを比較し、設定
されたサンプリングエリア内であるか否かを判別する構
成等を考えることができる。The sampling area detection circuit is a circuit that detects when a set sampling area is being scanned, reads out information regarding the position stored in the area information storage circuit, and compares this with the scanning position. It is possible to consider a configuration that compares and determines whether or not it is within a set sampling area.
線内面積計測回路とは、二次元画像の走査位置に対応し
たサンプリングエリアに存在する画像の面積を、走査線
毎に計測する回路であって、画像が画業の集合として表
されている場合には、走査線毎に画業数をカウントする
カウンタにより実現することができる。こうしたカウン
タ等の構成は、ひとつでも良いし、サンプリングエリア
の数に応じた個数用意することも差し支えない。The in-line area measuring circuit is a circuit that measures the area of the image existing in the sampling area corresponding to the scanning position of the two-dimensional image for each scanning line. can be realized by a counter that counts the number of strokes for each scanning line. The number of such counters may be one, or the number of counters may be provided in accordance with the number of sampling areas.
エリア情報記憶回路とは、線内面積計測回路によって計
測された面積をサンプリングエリア全体に亘って積算す
る回路であって、サンプリングエリア毎にカウンタが設
けられている場合には、このカウンタを走査線毎にクリ
アせず、サンプリングエリア内である限り継続してカウ
ントするよう構成したり、サンプリングエリアの数より
少ない数のカウンタを用いる場合には、走査線内のサン
プリングエリア毎にカウント値をメモリ等に退避し、後
でこれを積算する構成としてもよい。The area information storage circuit is a circuit that integrates the area measured by the in-line area measuring circuit over the entire sampling area, and if a counter is provided for each sampling area, this counter is If you configure the system so that it continues counting as long as it is within the sampling area without clearing it every time, or if you use a smaller number of counters than the number of sampling areas, you can save the count value for each sampling area in the scanning line to memory, etc. The configuration may be such that the data is saved to 1 and then integrated later.
尚、こうして求められたサンプリングエリア毎の画像の
面積は、例えばプリンタやディスプレイ等に表示しても
よく、あるいはシーケンサやホストコンピュータ等へデ
ータとして出力する構成としてもよい。The area of the image for each sampling area obtained in this way may be displayed on a printer, a display, etc., or may be output as data to a sequencer, host computer, etc.
[作用]
上記構成を有する本発明の画像面積計測装置は、サンプ
リングエリア内の画像の面積を計測する装置であり、エ
リア情報記憶回路に記憶された二以上のサンプリングエ
リアの位置に関する情報に基づいて、現在の走査位置が
設定されたサンプリングエリア内にある場合には、これ
をサンプリングエリア検出回路により検出する。走査位
置がサンプリングエリア内にあるときは、線内面積計測
回路により、画像の面積を走査線毎に計測し、更にエリ
ア内面積算出回路により、走査線毎に計測されたサンプ
リングエリア内の画像の面積を積算する。従って、二次
元画像の−ないし二以上の走査が終了すると、サンプリ
ングエリア毎の画像の面積の計測は完了する。[Function] The image area measuring device of the present invention having the above configuration is a device that measures the area of an image within a sampling area, based on information regarding the positions of two or more sampling areas stored in the area information storage circuit. , if the current scanning position is within the set sampling area, this is detected by the sampling area detection circuit. When the scanning position is within the sampling area, the in-line area measuring circuit measures the area of the image for each scanning line, and the in-area area calculation circuit calculates the area of the image within the sampling area measured for each scanning line. Accumulate the area. Therefore, when one or more scans of the two-dimensional image are completed, the measurement of the area of the image for each sampling area is completed.
[実施例]
以上説明した本発明の構成・作用を一層明らかにするた
めに、以下本発明の画像面積計測装置の好適な実施例に
ついて説明する。第1図は、この画像面積計測装置の概
略構成図である。[Example] In order to further clarify the configuration and operation of the present invention described above, preferred embodiments of the image area measuring device of the present invention will be described below. FIG. 1 is a schematic configuration diagram of this image area measuring device.
図示するように、この画像面積計測装置は、撮像手段と
してのテレビカメラ1からの信号を人力し、撮像された
画像内に設定されたサンプリングエリア内の画像の面積
を計測し、これを端末機2に表示・出力するよう構成さ
れている。その内部には、同期分離回路3、画像データ
抽出回路5、二値化回路6、垂直座標カウンタ7、水平
座標カウンタ8、N個の面積カウント回路10および論
理演算回路20が備えられている。As shown in the figure, this image area measuring device manually receives a signal from a television camera 1 as an imaging means, measures the area of the image within a sampling area set within the captured image, and transmits the signal to a terminal. It is configured to display and output on 2. Inside thereof, a synchronization separation circuit 3, an image data extraction circuit 5, a binarization circuit 6, a vertical coordinate counter 7, a horizontal coordinate counter 8, N area counting circuits 10, and a logic operation circuit 20 are provided.
テレビカメラ1は、CCD等の固体撮像素子を用いたも
のであり、−フレーム当り水平方向に512ドツトの、
垂直方向に495ラインの分解能を有する。このテレビ
カメラ1からの画像信号はまず同期分離回路3と画像デ
ータ抽出回路5に人力される。The television camera 1 uses a solid-state image sensor such as a CCD, and has 512 horizontal dots per frame.
It has a resolution of 495 lines in the vertical direction. The image signal from the television camera 1 is first input manually to a synchronization separation circuit 3 and an image data extraction circuit 5.
画像データ抽出回路5は、人力された画像信号から画像
データを取り出す回路であり、テレビ受像器に必須の回
路として周知のものなので内部の構成についての説明は
省略する。画像データ抽出回路5は、−水平走査線を5
12ドツトのデータに分離して抽出し、各ドツト毎にそ
の濃度に応じたアナログ信号を二値化回路6に出力する
。二値化回路6は、濃度情報を含むこのアナログ信号を
所定の闇値と比較し二値化された信号に変換するもので
ある。本実施例では、二値化のための闇値は予め設定さ
れた値としたが、サンプリングエリア毎に最適の闇値を
用いて二値化するよう構成してもよい。この二値化回路
6の出力は、画像の有無を表すドツトデータとしてN個
の面積カウント回路100ドツトデータ入力端子DDに
出力されている。また、画像データ抽出回路5は、51
2ドツトの各データについて一つのパルス信号を、水平
座標カウンタ8のカウント入力端子Cinと面積カウン
ト回路10のドツトイネイブル端子DEとに出力する。The image data extraction circuit 5 is a circuit that extracts image data from a manually inputted image signal, and is well known as an essential circuit for television receivers, so a description of its internal configuration will be omitted. The image data extraction circuit 5 extracts 5 -horizontal scanning lines.
The data is separated and extracted into 12 dots, and an analog signal corresponding to the density of each dot is output to the binarization circuit 6. The binarization circuit 6 compares this analog signal containing density information with a predetermined darkness value and converts it into a binarized signal. In this embodiment, the darkness value for binarization is a preset value, but the binarization may be performed using the optimum darkness value for each sampling area. The output of the binarization circuit 6 is output as dot data representing the presence or absence of an image to N area count circuits 100 dot data input terminals DD. Further, the image data extraction circuit 5 includes 51
One pulse signal for each data of two dots is output to the count input terminal Cin of the horizontal coordinate counter 8 and the dot enable terminal DE of the area counting circuit 10.
同期分離回路3は画像信号に含まれる垂直同期信号(画
像スタート信号)と水平同期信号とを画像データから分
離するものであり、この回路の構成も周知のもの、なの
で説明は省略する。この同期分離回路3からは、画像ス
タート信号が垂直座標カウンタ7のリセット端子RES
ETに出力され、一方、水平同期信号が垂直座標カラン
タフのカウント入力端子Cinと水平座標カウンタ8の
リセット端子RESETとに出力される。The synchronization separation circuit 3 separates a vertical synchronization signal (image start signal) and a horizontal synchronization signal included in the image signal from the image data, and the configuration of this circuit is also well known, so a description thereof will be omitted. An image start signal is sent from the synchronization separation circuit 3 to the reset terminal RES of the vertical coordinate counter 7.
ET, while a horizontal synchronizing signal is output to the count input terminal Cin of the vertical coordinate counter 8 and the reset terminal RESET of the horizontal coordinate counter 8.
従って、垂直座標カウンタ7は同期分離回路3の出力す
る画像スタート信号によりリセ・ントされてカウントを
開始し、同期分離回路3の出力する水平同期信号によっ
て一フレームに495だけカウントアツプされる。これ
に対して、水平座標カウンタ8は同期分離回路3の出力
する水平同期信号によりリセットされてカウントを開始
し、画像データ抽出回路4の出力するパルス信号により
一水平走査において512だけカウントアツプされる。Therefore, the vertical coordinate counter 7 is reset and starts counting by the image start signal output from the sync separation circuit 3, and is incremented by 495 per frame by the horizontal sync signal output from the sync separation circuit 3. On the other hand, the horizontal coordinate counter 8 is reset by the horizontal synchronization signal output from the synchronization separation circuit 3 and starts counting, and is incremented by 512 in one horizontal scan by the pulse signal output from the image data extraction circuit 4. .
これら両方ウンタ7,8の各カウント出力は、各面積カ
ウント回路10に出力されている。N個の面積カウント
回路10は、サンプリングエリアの数Nに応じて設けら
れたものであり、上述した各信号の外、バスを介して論
理演算回路20からのアクセスを受ける。論理演算回路
20は、周知のCPU31.ROM32.RAM33お
よび人出力ボート35を、コモンバス36により相互に
接続した構成と されている。CPU31は、人出力ボ
ート35を介して接続された端末機2のキーボードから
、サンプリングエリアの設定用のデータ等を読み込むと
共に、各サンプリングエリア内の画像面積の計測値を端
末機2のディスプレイに表示する。Each count output of both these counters 7 and 8 is outputted to each area counting circuit 10. The N area counting circuits 10 are provided in accordance with the number N of sampling areas, and receive access from the logic operation circuit 20 via the bus in addition to the above-mentioned signals. The logic operation circuit 20 includes a well-known CPU 31. ROM32. The RAM 33 and the human output boat 35 are interconnected by a common bus 36. The CPU 31 reads data for setting the sampling area from the keyboard of the terminal device 2 connected via the human output boat 35, and displays the measured value of the image area in each sampling area on the display of the terminal device 2. do.
次に、面積カウント回路10の構成とその働きについて
説明する。面積カウント回路1oは、総て同一の構成を
有し、第2図に示すように、ビギンデータ保持メモリ4
1、エンドデータ保持メモリ43、二つのコンパレータ
45および46、二人カアンドゲート48、三人力アン
ドゲー)50及びカウンタ52を備える。ビギンデータ
保持メモリ41とエンドデータ保持メモリ43とは、デ
ュアルポートRAMとして構成されており、バス36を
介して論理演算回路20によって、垂直座標データAY
に対応したアドレスに、水平走査線内のサンプリングエ
リアの開始情報と終了情報とに対応したデータが各々書
き込まれる。書き込まれたこのビギンデータ、エンドデ
ータは、垂直座標カウンタ7からのカウント出力をアド
レスデータとしてアクセスされ、読み出される。ビギン
データおよびエンドデータは、サンプリングエリアに対
して、第3図に示すように、水平走査線内の何ドツト目
かという情報であり、両データ間の領域がサンプリング
エリアとして指定されることになる。Next, the configuration and function of the area counting circuit 10 will be explained. The area counting circuits 1o all have the same configuration, and as shown in FIG.
1, an end data holding memory 43, two comparators 45 and 46, a two-person AND gate 48, a three-person AND game) 50, and a counter 52. The beginning data holding memory 41 and the end data holding memory 43 are configured as dual port RAMs, and the vertical coordinate data AY
Data corresponding to the start information and end information of the sampling area in the horizontal scanning line are respectively written to the addresses corresponding to . The written beginning data and end data are accessed and read using the count output from the vertical coordinate counter 7 as address data. As shown in Figure 3, the beginning data and end data are information about the number of dots in the horizontal scanning line with respect to the sampling area, and the area between both data is designated as the sampling area. .
ビギンデータ保持メモリ41及びエンドデータ保持メモ
リ43から読み出された各データは、コンパレータ45
,46の一方の比較人力Aに入力される。これらのコン
パレータ45.46の他方の比較人力Bには、水平座標
カウンタの出力である水平座標データAXが人力されて
おり、コンパレータ45.46により、両データの比較
がなされる。コンパレータ45は、比較人力Bが比較人
力Aより大きいとき、即ち水平座標データAXがビギン
データより大きくなったとき、その出力端子A<Bをハ
イレベルとし、コンパレータ46は、逆に水平座標デー
タAXがエンドデータより小さなとき、その出力端子A
>Bをハイレベルとする。Each data read from the beginning data holding memory 41 and the end data holding memory 43 is transferred to the comparator 45.
, 46 is inputted to one comparative human power A. Horizontal coordinate data AX, which is the output of the horizontal coordinate counter, is input to the comparison input B of the other of these comparators 45 and 46, and both data are compared by the comparators 45 and 46. The comparator 45 sets its output terminal A<B to a high level when the comparative human power B is larger than the comparative human power A, that is, when the horizontal coordinate data AX becomes larger than the beginning data, and the comparator 46 conversely sets the output terminal A<B to the horizontal coordinate data AX is smaller than the end data, its output terminal A
>B is set to high level.
従って、両出力を二人力とするアンドゲート48の出力
は、第4図のタイミングチャートに示すように、水平座
標データAXがビギンデータより大きくエンドデータよ
り小さいときハイレベルとなる。この二人カアンドゲー
ト48の出力は、三人カアンドゲート50の一人力に接
続されている。Therefore, the output of the AND gate 48, which operates both outputs by two people, becomes high level when the horizontal coordinate data AX is greater than the beginning data and smaller than the end data, as shown in the timing chart of FIG. The output of this two-man AND gate 48 is connected to the one-man power of the three-man AND gate 50.
一方、この三入力アンドゲートの他の入力端子には、画
像データ抽出回路5の出力するドツトイネイブル信号D
Eと、二値化回路6の出力するドツトデータDDとが人
力されている。二値化回路6のドツトデータDDは、画
像が存在する区間のみハイレベルとなり、ドツトイネイ
ブル信号DEは、画累毎にオン・オフを繰り返す。従っ
て、第4図に示すように、三人力アンドゲー)50の出
力は、ビギンデータからエンドデータまでの領域でかつ
画像の存在する区間のみにおいて、ドツトイネイブル信
号DEに応じてオン・オフする。On the other hand, the other input terminal of this three-input AND gate is connected to a dot enable signal D output from the image data extraction circuit 5.
E and the dot data DD output from the binarization circuit 6 are manually generated. The dot data DD of the binarization circuit 6 is at a high level only in the section where an image exists, and the dot enable signal DE is repeatedly turned on and off for each image. Therefore, as shown in FIG. 4, the output of the three-man power game 50 is turned on and off in accordance with the dot enable signal DE only in the region from the beginning data to the end data and in the section where the image exists.
このオン・オフ信号は、カウンタ52のクロック人力C
LKに接続されており、カウンタδ2は、この入力信号
に応じてカウントアツプする。カウンタ52のカウント
データは、バス36を介してCPtJ31により読み出
される。尚、CPU31は、カウンタのクリア端子CL
Rをアクセスすることにより、カウンタ52を自由に零
クリアすることができる。This on/off signal is the clock C of the counter 52.
The counter δ2 counts up in response to this input signal. The count data of the counter 52 is read out by the CPtJ 31 via the bus 36. Note that the CPU 31 uses a counter clear terminal CL.
By accessing R, the counter 52 can be freely cleared to zero.
以上説明した構成の面積カウント回路10は、そのひと
つひとつがサンプリングエリアに対応しており、例えば
第5図に示すように、各種形状のサンプリングエリアを
指定する場合、各サンプリングエリアの水平走査線毎の
ビギンデータとエンドデータとが、予め論理演算回路2
0のCPU31によって、サンプリングエリアに対応し
た面積カウント回路10の両メモリ41.43の所定の
エリアに書き込まれる。こうしたデータb書込処理はよ
く知られているので、説明は省略する。Each of the area counting circuits 10 configured as described above corresponds to a sampling area. For example, as shown in FIG. 5, when specifying sampling areas of various shapes, each horizontal scanning line of each sampling area is The beginning data and the end data are stored in advance in the logic operation circuit 2.
0 CPU 31 writes into predetermined areas of both memories 41 and 43 of the area counting circuit 10 corresponding to the sampling area. Since such data b writing processing is well known, its explanation will be omitted.
以上説明した本実施例の画像面積計測装置によれば、テ
レビカメラlによって撮像された二次元画像の走査が開
始されると、走査位置がサンプリングエリア内であると
き、そのサンプリングエリアに対応した面積カウント回
路10が作動し、画像の存在する画素の数を回路内のカ
ウンタ52によってカウントする。従って、二次元画像
の走査が終了すると、各面積カウント回路10内のカウ
ンタ52には、サンプリングエリア内の画像の面積に対
応した画素数がカウントされている。CPU31は、こ
のカウントデータをバス36を介して読み取り、これを
面積に換算して端末機2に表示する。According to the image area measuring device of the present embodiment described above, when the scanning of the two-dimensional image captured by the television camera l is started, when the scanning position is within the sampling area, the area corresponding to the sampling area is The counting circuit 10 is activated and the number of pixels present in the image is counted by a counter 52 within the circuit. Therefore, when scanning of the two-dimensional image is completed, the counter 52 in each area counting circuit 10 counts the number of pixels corresponding to the area of the image within the sampling area. The CPU 31 reads this count data via the bus 36, converts it into an area, and displays it on the terminal 2.
この結果、サンプリングエリア毎の画像の面積を直ちに
知ることができ、画像認識における特徴抽出の作業を短
時間にかつ容易に行なうことができる。また、本実施例
の画像面積計測装置は、任意形状のサンプリングエリア
を設定することができ、特徴を最も良く代表する形状で
画像面積の計測が行なえるようサンプリングエリアを設
定することができる。しかも、面積計測の時間はサンプ
リングエリアの形状・個数によらず一定かつ高速なので
、サンプリングエリアの設定等に特別の配慮を必要とせ
ず、作業性の向上にも資している。As a result, the area of the image for each sampling area can be immediately known, and feature extraction work in image recognition can be performed easily and in a short time. Furthermore, the image area measuring device of this embodiment can set a sampling area of any shape, and can set the sampling area so that the image area can be measured in a shape that best represents the characteristics. Moreover, since the area measurement time is constant and fast regardless of the shape and number of sampling areas, no special consideration is required for setting the sampling area, and this contributes to improved workability.
また、本実施例の画像面積計測装置は、ハードウェアの
局所的な最適化が図られているので、高速性を実現しな
がら、構成も極めて簡略なものとなっている。In addition, since the image area measuring device of this embodiment has local optimization of the hardware, the configuration is extremely simple while achieving high speed.
次に本発明の第二の実施例について説明する。Next, a second embodiment of the present invention will be described.
第6図は、第二実施例において採用された面積カウント
回路100の構成を示すブロック図である。FIG. 6 is a block diagram showing the configuration of the area counting circuit 100 employed in the second embodiment.
第二実施例の画像面積計測装置は、面積カウント回路1
00の構成を除いて他は第一実施例の構成と同一である
。The image area measuring device of the second embodiment includes an area counting circuit 1
Except for the configuration of 00, the configuration is the same as that of the first embodiment.
本実施例では、サンプリングエリアの設定は、第7図に
示すように矩形に限られており、論理演算回路20によ
るサンプリングエリアのビギンデータ、エンドデータの
書き込みは、矩形の領域の対角、即ちサンプリングエリ
アの走査に対して開始点SOの座標と終了点SEの座標
としてなされることになる。このために、面積カウント
回路100は、第6図に示すように、4つのコンパレー
タ102.104,106,108と、垂直座標。In this embodiment, the setting of the sampling area is limited to a rectangle as shown in FIG. The scanning of the sampling area is performed using the coordinates of the starting point SO and the coordinates of the ending point SE. To this end, the area counting circuit 100 includes four comparators 102, 104, 106, 108 and a vertical coordinate, as shown in FIG.
水平座標の各々のビギンデータとエンドデータとを保持
するメモリ112,114.’l16.118と、4つ
のコンパレータ102ないし108の出力のアンドを取
る四人カアンドゲート120と、この凹入カアンドゲー
ト120の出力信号、ドツトデータDD及びドツトイネ
イブル信号DEの論°理積をとる三入力アンドゲート1
25と、カウンタ130とを備えて構成されている。従
って、開始点SOと終了点SEとを対角とする矩形内部
では、四人カアンドゲート120の出力がアクティブと
なり、このサンプリングエリア内で画像の存在する画素
の数がカウントされる。Memories 112, 114 . that hold beginning data and end data for each horizontal coordinate. 118, a four-man AND gate 120 which ANDs the outputs of the four comparators 102 to 108, and the output signal of this recessed AND gate 120, the dot data DD, and the dot enable signal DE. Take three input AND gate 1
25 and a counter 130. Therefore, within the rectangle having the starting point SO and the ending point SE as diagonals, the output of the four-man AND gate 120 becomes active, and the number of pixels in which the image exists within this sampling area is counted.
以上説明した第二実施例によれば、第一実施例とほぼ同
様の効果を奏するほか、サンプリングエリアの形状が矩
形に限られるものの、サンプリングエリアに関する情報
が極めて少なくて済むという利点がある。この結果、装
置・構成が簡略になる上、論理演算回路20からのデー
タの設定に要する時間が短くなり、作業性を一層向上さ
せることができるというメリットが得られる。The second embodiment described above provides substantially the same effects as the first embodiment, and has the advantage that, although the shape of the sampling area is limited to a rectangle, very little information regarding the sampling area is required. As a result, the device and configuration are simplified, and the time required to set data from the logical operation circuit 20 is shortened, which provides the advantage of further improving workability.
次に、本発明の第三の実施例について説明する。Next, a third embodiment of the present invention will be described.
第三実施例の画像面積計測装置は、第一、第二実施例の
装置と較べて面積カウント回路200の構成のみ異なり
、他の装置構成は同一である。本実施例の画像面積計測
装置の面積カウント回路200は、第8図に示すように
、垂直座標指定回路210と水平座標指定回路220と
複数の二人カアンドゲート225とカウント回路230
とからなる。The image area measuring device of the third embodiment differs from the devices of the first and second embodiments only in the configuration of the area counting circuit 200, and the other device configurations are the same. As shown in FIG. 8, the area counting circuit 200 of the image area measuring device of this embodiment includes a vertical coordinate designating circuit 210, a horizontal coordinate designating circuit 220, a plurality of two-person gates 225, and a counting circuit 230.
It consists of.
垂直座標指定回路210は、垂直座標カウンタ7の出力
に応じて垂直座標の一定の範囲毎に出力を排他的に選択
するものであり、ゲートアレイやRAM、ROM等によ
り構成することができる。The vertical coordinate designation circuit 210 exclusively selects an output for each fixed range of vertical coordinates according to the output of the vertical coordinate counter 7, and can be constructed from a gate array, RAM, ROM, or the like.
本実施例では垂直座標の495ドツトに亘って少なくと
も16の範囲が指定できるよう構成されている。一方、
水平座標指定回路220は、水平座標カウンタ8の出力
に応じて水平座標の一定の範囲毎に出力を排他的に選択
するものであり、垂直座標指定回路210と同様に構成
することができる。本実施例では水平座標の512ドツ
トに亘って少なくとも16の範囲が指定できるよう構成
されている。従って、垂直座標指定回路210および水
平座標指定回路220からの出力は、共に16本になっ
ている。In this embodiment, at least 16 ranges can be specified over 495 dots on the vertical coordinate. on the other hand,
The horizontal coordinate designation circuit 220 exclusively selects an output for each fixed range of horizontal coordinates according to the output of the horizontal coordinate counter 8, and can be configured similarly to the vertical coordinate designation circuit 210. In this embodiment, at least 16 ranges can be designated over 512 dots on the horizontal coordinate. Therefore, the outputs from the vertical coordinate designation circuit 210 and the horizontal coordinate designation circuit 220 are both 16.
これら各16の信号線は、16個の二人カアンドゲート
225の入力、に互いに接続されている。Each of these 16 signal lines is connected to the inputs of 16 two-person gates 225.
従って、−フレーム内の走査においである位置が指定さ
れたとき、その位置を含む範囲の指定に対応した二人カ
アンドゲート226の出力がアクティブとなる。二人カ
アンドゲート22δの各出力はカウント回路230に人
力されいる。カウント回路230内部には、二人カアン
ドゲート225の出力毎に、ドツトデータDD、 ド
ツトイネイブル信号DEおよびアンドゲート225の出
力信号の論理積をとるアンドゲートとこのアンドゲート
の出力によりカウントされるカウンタとが設けられてお
り、他の実施例と同様に、サンプリングエリア毎の画像
の面積に対応した画素数をカウントする。Therefore, when a certain position is designated during scanning within a -frame, the output of the two-person gate 226 corresponding to the designation of the range including that position becomes active. Each output of the two-man AND gate 22δ is input to a counting circuit 230. Inside the count circuit 230, there is an AND gate that takes the logical product of the dot data DD, the dot enable signal DE, and the output signal of the AND gate 225 for each output of the two-man AND gate 225, and a counter that is counted by the output of this AND gate. As in the other embodiments, the number of pixels corresponding to the area of the image in each sampling area is counted.
以上説明した構成を有する本実施例の画像面積計測装置
によれば、第二実施例と同様、画像面積の計測を行なう
サンプリングエリアの形状が矩形に限られるものの、簡
易な構成により、サンプリングエリア毎の画像の面積を
計測することができる。According to the image area measuring device of this embodiment having the configuration described above, although the shape of the sampling area for measuring the image area is limited to a rectangle as in the second embodiment, the simple configuration allows The area of the image can be measured.
以上本発明のいくつかの実施例について説明したが、本
発明はこうした実施例に同等限定されるものではなく、
サンプリングエリア毎に異なる二値化レベルで二値化を
行なう構成と組み合わせて画像の特徴を表す代表特性値
としての画像面積の計測を一層精緻に行なう構成など、
本発明の要旨を逸脱しない範囲において、種々なる態様
で実施し得ることは勿論である。Although several embodiments of the present invention have been described above, the present invention is not limited to these embodiments.
In combination with a configuration in which binarization is performed at different binarization levels for each sampling area, the image area can be more precisely measured as a representative characteristic value representing the characteristics of the image.
It goes without saying that the invention can be implemented in various ways without departing from the gist of the invention.
凡咀辺舅果
以上詳述したように、本発明の画像面積計測装置によれ
ば、極めて高速にサンプリングエリア毎の画像の面積を
計測することができるという優れた効果を奏する。この
結果、画像の特徴を最適に捉える画像面積の計測を、極
めて迅速に行なうことができ、画像認識の作業性を格段
に改善することができる。また、装置・構成がいたずら
に複雑化することがないので、製造工数・コストの低減
を図ることができ、更には、信頼性・メンチナンス性の
向上を図ることができる。As described in detail above, the image area measuring device of the present invention has the excellent effect of being able to measure the area of an image for each sampling area at extremely high speed. As a result, the image area that optimally captures the characteristics of the image can be measured extremely quickly, and the workability of image recognition can be significantly improved. Furthermore, since the device and configuration do not become unnecessarily complicated, manufacturing man-hours and costs can be reduced, and reliability and maintenance performance can be improved.
第1図は本発明第一実施例としての画像面積計測装置の
概略構成図、第2図は同じくその面積力゛ラント回路1
0の構成を示すブロック図、第3図はサンプリングエリ
アの形状とビギンデータ◆エンドデータとの関係を示す
説明図、第4図は面積カウント回路10の動作の一例を
示すタイミングチャート、第5図はサンプリングエリア
の設定の一例を示す説明図、第6図は第二実施例の面積
カウント回路100の構成を示すブロック図、第7図は
第二実施例におけるサンプリングエリアとビギンデータ
・エンドデータとの関係を示す説明図、第8図は第三実
施例の面積カウント回路200の構成を示すブロック図
、第9図は従来の面積計測の手法を説明するフローチャ
ート、である。
1 ・・・ テレビカメラ
2 ・・・ 端末機
3 ・・・ 同期分離回路
5 ・・・ 画像データ抽出回路
6 ・・・ 二値化回路
7 ・・・ 垂直座標カウンタ
8 ・・・ 水平座標カウンタ
10 ・・・ 面積カウント回路
20 ・・・ 論理演算回路FIG. 1 is a schematic configuration diagram of an image area measuring device according to the first embodiment of the present invention, and FIG.
3 is an explanatory diagram showing the relationship between the shape of the sampling area and begin data◆end data, FIG. 4 is a timing chart showing an example of the operation of the area counting circuit 10, and FIG. is an explanatory diagram showing an example of setting the sampling area, FIG. 6 is a block diagram showing the configuration of the area counting circuit 100 of the second embodiment, and FIG. 7 is a diagram showing the sampling area, beginning data, and end data in the second embodiment. FIG. 8 is a block diagram showing the configuration of the area counting circuit 200 of the third embodiment, and FIG. 9 is a flowchart illustrating the conventional area measurement method. 1 ... Television camera 2 ... Terminal 3 ... Synchronization separation circuit 5 ... Image data extraction circuit 6 ... Binarization circuit 7 ... Vertical coordinate counter 8 ... Horizontal coordinate counter 10 ... Area counting circuit 20 ... Logical operation circuit
Claims (1)
エリア内の画像の面積をサンプリングエリア毎に計測す
る画像面積計測装置であって、前記二次元画像内におい
て予め設定された二以上のサンプリングエリアの位置に
関する情報を記憶するエリア情報記憶回路と、 前記二次元画像の一走査線内において、走査位置が前記
設定されたサンプリングエリア内にあることを、前記記
憶された情報に基づいて検出するサンプリングエリア検
出回路と、 前記二次元画像の走査に従って、走査位置に対応した前
記サンプリングエリアに存在する画像の面積を走査線毎
に計測する線内面積計測回路と、該計測された面積をサ
ンプリングエリア毎に積算するエリア内面積算出回路と を備えた画像面積計測装置。[Scope of Claims] 1. An image area measuring device that measures the area of an image within a plurality of sampling areas set for a two-dimensional image for each sampling area, the device comprising: an area information storage circuit that stores information regarding positions of two or more sampling areas; and an area information storage circuit that stores information regarding positions of two or more sampling areas; a sampling area detection circuit that detects the area based on the scanning line; An image area measuring device comprising an area calculation circuit that integrates the area for each sampling area.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP62078178A JPS63244277A (en) | 1987-03-31 | 1987-03-31 | Image area measuring instrument |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP62078178A JPS63244277A (en) | 1987-03-31 | 1987-03-31 | Image area measuring instrument |
Publications (1)
Publication Number | Publication Date |
---|---|
JPS63244277A true JPS63244277A (en) | 1988-10-11 |
Family
ID=13654709
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP62078178A Pending JPS63244277A (en) | 1987-03-31 | 1987-03-31 | Image area measuring instrument |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPS63244277A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH0199184A (en) * | 1987-10-13 | 1989-04-18 | Omron Tateisi Electron Co | Image processor |
JP2006309505A (en) * | 2005-04-28 | 2006-11-09 | Dainippon Printing Co Ltd | Terminal unit, program, and document for electronic pen |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS5499529A (en) * | 1978-01-17 | 1979-08-06 | Nec Corp | Pattern recognizer |
-
1987
- 1987-03-31 JP JP62078178A patent/JPS63244277A/en active Pending
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS5499529A (en) * | 1978-01-17 | 1979-08-06 | Nec Corp | Pattern recognizer |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH0199184A (en) * | 1987-10-13 | 1989-04-18 | Omron Tateisi Electron Co | Image processor |
JP2006309505A (en) * | 2005-04-28 | 2006-11-09 | Dainippon Printing Co Ltd | Terminal unit, program, and document for electronic pen |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8254643B2 (en) | Image processing method and device for object recognition | |
JPH023229B2 (en) | ||
JP2003302470A (en) | Pedestrian detection device and pedestrian detection method | |
US20030117516A1 (en) | Monitoring system apparatus and processing method | |
JP5264457B2 (en) | Object detection device | |
JPS63244277A (en) | Image area measuring instrument | |
US20040062418A1 (en) | Vehicle-onboard driving lane recognizing apparatus | |
JPH1063818A (en) | Object detecting device | |
JPH057363A (en) | Picture monitoring device | |
EP0380090B1 (en) | Image processing system | |
JPH11196320A (en) | Moving image processor, its method and computer readable storage medium | |
JPH11112966A (en) | Moving object detector, moving object detection method and computer-readable storage medium thereof | |
CN113168683A (en) | Image processing device, processor chip, electronic equipment | |
US20090152359A1 (en) | Methods and Apparatus for Signals Exhibiting Improved Signal to Noise Ratio in Image Bar Code Scanning | |
US4750210A (en) | Method and apparatus for finding objects within a visual display | |
JPH11166904A (en) | Image processor of moving object | |
JPH0199174A (en) | Shape recognizing device | |
JPH09245166A (en) | Pattern matching device | |
JPH05165970A (en) | Image processing device | |
JPH08194825A (en) | Contour information extraction device | |
JPH0520560A (en) | Fire point detector | |
JPS6365347A (en) | Singular point detecting method by image processing | |
JPH0312788A (en) | Traveling object detecting device | |
JPS62145489A (en) | Picture recognition device | |
JPH02189697A (en) | Pattern recognizing device |