JPH02252071A - Image processor - Google Patents

Image processor

Info

Publication number
JPH02252071A
JPH02252071A JP7189889A JP7189889A JPH02252071A JP H02252071 A JPH02252071 A JP H02252071A JP 7189889 A JP7189889 A JP 7189889A JP 7189889 A JP7189889 A JP 7189889A JP H02252071 A JPH02252071 A JP H02252071A
Authority
JP
Japan
Prior art keywords
image
subject
signal
mask
electronic
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
Application number
JP7189889A
Other languages
Japanese (ja)
Inventor
Yoshiaki Otsu
大津 芳明
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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP7189889A priority Critical patent/JPH02252071A/en
Publication of JPH02252071A publication Critical patent/JPH02252071A/en
Pending legal-status Critical Current

Links

Landscapes

  • Image Processing (AREA)

Abstract

PURPOSE:To accurately measure a subject by converting the level of an inputted image signal by a formed signal and forming an electronic mask in the image. CONSTITUTION:When an image signal is received from an ITV 20 camera, the received signal is binarized by a binarizing circuit 2 and a subject 106 is displayed on a monitor 7. Images other than the subject are masked by electronic masks 100 to 103 in both the horizontal and vertical directions. Then, a measuring emission line 109 is displayed on the image of the monitor 7 and the emission line is moved to the size measuring position of the subject by operator's operation. Then, a measuring circuit 4 is driven and counts up the number of rasters based on the set position of the emission line 109 and the vertical and horizontal sizes of the subject 106 are respectively displayed on a counter display part 5. In such constitution, images to be design side causes such as a noise component other than the subject can be shielded and surely removed from the measuring object, so that the subject can be accurately measured.

Description

【発明の詳細な説明】 [産業上の利用分野コ 本発明は、例えば、画像に対して電子マスクを施す画像
処理装置に関するものである。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to, for example, an image processing apparatus that applies an electronic mask to an image.

[従来の技術] 従来、この種の装置は、製品の表面欠陥検査、物体の形
状や長さの測定、粒形物体の数や分布の測定、又は1、
ロボットの視覚機能の物体認識等の画像計測に利用され
ている。
[Prior Art] Conventionally, this type of device has been used to inspect products for surface defects, measure the shape and length of objects, measure the number and distribution of granular objects, or 1.
It is used for image measurement such as object recognition of robot visual function.

例えば、像の検出部であるITVレンズや顕微鏡の対物
レンズ部に対して、光学的マスク(植毛などによる反射
防止処理をしたマスクや光学的反射防止処理をしたマス
ク)を用いて、ノイズとなる映像成分の遮蔽が行われて
いる。又、東芝から出願された特開昭62−23730
7号に開示されている寸法測定装置によれば、画像デー
タがメそり内で複数個の領域に区分され、各領域毎に重
み付は処理(例えば、平滑化処理)がなされている。こ
のようにして、エツジ検出を容易にした高精度な計測を
行うことが開示されている。又、刊行物r Oplus
E 、 Jの1988年6月(pH6〜pi33)に記
載された“富士ビデオセンサによる外観検査の自動化”
の記事によれば、複数個の物体を一画面で受像して寸法
測定を行う場合、最大99のウィンドウ(分割化される
検査領域)を設け、個々のウィンドウ毎に被験体の寸法
測定を行う方法が示されている。
For example, an optical mask (a mask treated with anti-reflection treatment such as flocking or a mask treated with optical anti-reflection treatment) may be used for the ITV lens, which is the image detection section, or the objective lens section of the microscope, to prevent noise. Image components are blocked. Also, Japanese Patent Application Laid-Open No. 62-23730 filed by Toshiba
According to the dimension measuring device disclosed in No. 7, image data is divided into a plurality of regions within the mesh, and weighting processing (for example, smoothing processing) is performed for each region. In this way, it is disclosed that highly accurate measurement with easy edge detection is performed. Also, the publication r Oplus
“Automation of visual inspection using Fuji video sensor” described in June 1988 (pH 6 to pi 33) of E, J.
According to the article, when measuring dimensions by receiving images of multiple objects on one screen, a maximum of 99 windows (divided inspection areas) are set up, and the dimensions of the object are measured for each window. A method is shown.

[発明が解決しようとしている課題] しかしながら、上述した従来例によれば、光学的なマス
クを用いた場合、マスク表面からのフレアの発生、遮蔽
する領域に対応したマスクの変更、又は、微妙な位置合
わせ等が必要とされるため、前述の各種画像計測の多く
の調整時間を費やしたり、治工具が必要となる欠点があ
る。
[Problems to be Solved by the Invention] However, according to the conventional example described above, when an optical mask is used, flare may occur from the mask surface, the mask may be changed to correspond to the area to be shielded, or subtle changes may occur. Since alignment and the like are required, there are disadvantages in that a lot of adjustment time is spent on the various image measurements mentioned above, and jigs and tools are required.

又、光学的なマスクを処さない画像計測においては、ゴ
ースト、フレア、ゴミ、又は、ホコリによる像が、測定
値の誤差の発生原因となったり、欠陥検査での誤動作の
原因となったりする欠点がある。
In addition, image measurement without optical masks has the disadvantage that images caused by ghosts, flares, dust, or dust may cause errors in measurement values or malfunctions during defect inspection. There is.

本発明は上述した従来例の欠点に鑑みてなされたもので
あり、その目的とするところは、画面上のゴミ、ホコリ
、又は、余分な像をマスク像で遮蔽して被験像だけを確
実に測定することで測定誤差を除去すると共に、並行す
る像に対してもマスクを施すことにより個別の測定がで
きる画像切片計測装置を提供する点にある。
The present invention has been made in view of the above-mentioned drawbacks of the conventional example, and its purpose is to block dirt, dust, or extra images on the screen with a mask image to ensure that only the test image is exposed. The object of the present invention is to provide an image slice measuring device that eliminates measurement errors by performing measurements and can perform individual measurements by masking parallel images.

[課題を解決するための手段] 上述した課題を解決し、゛目的を達成するため、本発明
に係わる画像切片計測装置は、画像中の任意の領域に電
子マスクを施す画像処理装置であって、画像を形成する
画像信号のレベルを変換する情報を入力する入力手段と
、前記入力情報に基づいて画像信号のレベルを変換する
信号を生成する生成手段と、入力された画像信号を前記
生成された信号でレベル変換する変換手段とを有し、こ
のようして画像中に電子マスクを形成することを特徴と
する。
[Means for Solving the Problems] In order to solve the above-mentioned problems and achieve the object, an image slice measuring device according to the present invention is an image processing device that applies an electronic mask to an arbitrary region in an image. an input means for inputting information for converting the level of an image signal forming an image; a generating means for generating a signal for converting the level of the image signal based on the input information; and a generating means for generating a signal for converting the level of the image signal based on the input information; The electronic mask is characterized in that it has a conversion means for converting the level of the signal, and thus forms an electronic mask in the image.

[作用] かかる構成によれば、入力手段は画像を形成する画像信
号のレベルを変換する情報を入力し、生成手段はその入
力情報に基づいて画像信号のレベルを変換する信号を生
成し、変換手段は入力された画像信号を生成手段で生成
された信号でレベル変換し、画像中に電子マスクを形成
するようにしている。
[Operation] According to this configuration, the input means inputs information for converting the level of an image signal forming an image, and the generating means generates a signal for converting the level of the image signal based on the input information, and performs the conversion. The means converts the level of the input image signal using the signal generated by the generating means, and forms an electronic mask in the image.

[実施例] 以下に添付図面を参照して本発明に係わる好適な実施例
を詳細に説明する。
[Embodiments] Preferred embodiments of the present invention will be described in detail below with reference to the accompanying drawings.

〈第1実施例〉 第1図は第1実施例の画像切片計測装置の構成を示すブ
ロック図である。図において、1は画像切片計測装置を
示し、この画像切片計測装置1は、ITVカメラ20と
ケーブル30によって接続され、画像信号を入力する。
<First Embodiment> FIG. 1 is a block diagram showing the configuration of an image slice measuring device according to a first embodiment. In the figure, 1 indicates an image slice measuring device, and this image slice measuring device 1 is connected to an ITV camera 20 by a cable 30, and inputs an image signal.

2はTTVカメラ2oから受信した画像信号を2値化す
る2値化回路を示し、3はITVカメラ2oからの映像
中、被験体以外の像を後述する電子マスクによって遮蔽
する電子マスク発生回路を示している。4は被験体の測
定部分の巾をラスクー線(又は、パルス)をカウントす
る計測回路を示し、5は計測回路4で計測されたカウン
ト値を表示するカウンタ表示部を示している。6は電子
マスク発生回路3によってマスクされている像の信号を
復調する復調回路を示し、7は復調回路6で復調された
画像信号に基づいて像を表示するモニタを示している。
2 indicates a binarization circuit that binarizes the image signal received from the TTV camera 2o, and 3 indicates an electronic mask generation circuit that blocks images other than the subject in the video from the ITV camera 2o with an electronic mask, which will be described later. It shows. Reference numeral 4 indicates a measurement circuit that counts the width of the measurement portion of the subject in Lascou lines (or pulses), and 5 indicates a counter display section that displays the count value measured by the measurement circuit 4. Reference numeral 6 indicates a demodulation circuit that demodulates the signal of the image masked by the electronic mask generation circuit 3, and reference numeral 7 indicates a monitor that displays the image based on the image signal demodulated by the demodulation circuit 6.

また、8は本装置全体の動作をROMe中の各種プログ
ラムに基づいて制御するCPUを示している。9は制御
プログラム、エラー処理プログラム、第3図に示される
プログラムに従ってCPU8を動作させるプログラム等
を格納しているROMを示している。10は各種プログ
ラムのワークエリア及びエラー処理時の一時退避エリア
として用いるRAMを示している。
Further, 8 indicates a CPU that controls the operation of the entire apparatus based on various programs in ROMe. A ROM 9 stores a control program, an error processing program, a program for operating the CPU 8 according to the program shown in FIG. 3, and the like. Reference numeral 10 indicates a RAM used as a work area for various programs and a temporary save area during error processing.

次に、上述した画像切片計測装置の構成を更に詳細に説
明する。
Next, the configuration of the above-mentioned image slice measuring device will be explained in more detail.

第2図は第1図に示される装置の回路図である。第2図
によれば、2値化回路2は、ITVカメラ20から受信
した画像信号を所定の閾値と比較して2値データに変換
するコンパレータ201を有している。電子マスク発生
回路3は、ワンショットのトリマー抵抗をダイヤルによ
って自由に変更できるワンショットIC(以下、rIC
Jと称す)401〜44及び2値化回路2で2値化され
た画像信号をIC401〜44によってマスクするAN
Dゲート405,406を有している。
FIG. 2 is a circuit diagram of the device shown in FIG. According to FIG. 2, the binarization circuit 2 includes a comparator 201 that compares the image signal received from the ITV camera 20 with a predetermined threshold value and converts it into binary data. The electronic mask generation circuit 3 uses a one-shot IC (hereinafter referred to as rIC) that can freely change the one-shot trimmer resistance using a dial.
J) 401 to 44 and an AN for masking the image signal binarized by the binarization circuit 2 by the ICs 401 to 44
It has D gates 405 and 406.

また、復調回路6は、ダイオードによって構成されてい
る。
Moreover, the demodulation circuit 6 is configured by a diode.

ここで、上記マスク方法について説明する。Here, the above masking method will be explained.

第5A図(a)、(b)、(c)、(d)及び第5B図
(a)、(b)、(c)、(d)は第1実施例のマスク
された画像信号の生成手順を説明する図である。第6図
は第1実施例による被験体以外がマスクされた像の一例
を示す図である。第6図において、100〜103はそ
れぞれモニタ7の画面の周辺から自由な巾で設定される
電子マスクを示している。電子マスク100,101は
垂直方向に電子マスクがかけられており、また、電子マ
スク102.103は水平方向に電子マスクがかけられ
ている。また、I C401は電子マスク100.IC
402は電子マスク101、工C403は電子マスク1
03、IC404は電子マスク104に対応している。
5A (a), (b), (c), (d) and 5B (a), (b), (c), (d) are generation of masked image signals of the first embodiment. It is a figure explaining a procedure. FIG. 6 is a diagram showing an example of an image in which parts other than the subject are masked according to the first embodiment. In FIG. 6, numerals 100 to 103 each indicate electronic masks set with a free width from the periphery of the screen of the monitor 7. The electronic masks 100 and 101 are electronically masked in the vertical direction, and the electronic masks 102 and 103 are electronically masked in the horizontal direction. Further, the IC 401 is an electronic mask 100. IC
402 is the electronic mask 101, and C403 is the electronic mask 1.
03, the IC 404 corresponds to the electronic mask 104.

1o6は画像の被験体を示し、100はITVカメラ2
oから送られてくる全体の像を示している。109は計
測用の画像切片法を用いるときの輝線を示し、107は
電子マスク103で遮蔽した被験体以外の像を示し、1
08はゴーストやゴミなどの画像のノイズ成分を示して
いる。
1o6 indicates the subject of the image, 100 indicates the ITV camera 2
It shows the entire image sent from o. Reference numeral 109 indicates a bright line when using the image sectioning method for measurement, 107 indicates an image other than the subject shielded by the electronic mask 103, and 1
08 indicates image noise components such as ghosts and dust.

まず、第5A図(a)、(b)、(c)(d)によって
、垂直同期信号に基づいて電子マスクを発生する方法を
説明する。
First, a method of generating an electronic mask based on a vertical synchronization signal will be explained with reference to FIGS. 5A, (a), (b), (c) and (d).

第6図中、電子マスク100の垂直方向のマスク巾は、
IC401のワンショットのタイマの時定数とボリウム
(可変抵抗)で変えられる。第5A図(a)に示される
垂直同期信号(15ms ec)のスタートパルスによ
って、上記マスク巾に相当する一定時間tlのゲート信
号が、第5A図(b)の如く生成される。このゲート信
号は、第5A図(C)に示される2値化回路2で2値化
された画像信号(原信号)とANDゲート4o5で論理
和がとられ、第5A図(d)の如く、ゴミの除去された
マスクのかかった画像信号が得られる。このようにして
、画面上の白ゴミの部分は、電子マスクがかけられるこ
とで黒い画面に変化するため、画面上から消去されるこ
とになる。また、この電子マスクにおいては、モニタ7
の画面の周辺から中心に向ってマスク巾が形成されるも
のであり、ゲート信号の発生時間を調整することでその
マスク巾は種々変形可能である。
In FIG. 6, the vertical mask width of the electronic mask 100 is
It can be changed using the time constant and volume (variable resistance) of the one-shot timer of IC401. By the start pulse of the vertical synchronizing signal (15 ms ec) shown in FIG. 5A (a), a gate signal for a constant time tl corresponding to the mask width is generated as shown in FIG. 5A (b). This gate signal is logically summed with the image signal (original signal) binarized by the binarization circuit 2 shown in FIG. 5A (C) and the AND gate 4o5, and as shown in FIG. 5A (d). , a masked image signal with dust removed is obtained. In this way, the white dust on the screen changes to a black screen by applying the electronic mask, and is therefore erased from the screen. In addition, in this electronic mask, the monitor 7
The mask width is formed from the periphery to the center of the screen, and the mask width can be varied in various ways by adjusting the generation time of the gate signal.

同様に、第5B図(a)、(b)、(c)(d)によっ
て、水平同期信号に基づいて電子マスクを発生する方法
を説明する。電子マスク102の水平方向のマスク巾は
、IC404のワンショットのタイマの時定数とボリウ
ム(可変抵抗)で変えられる。第5B図(a)に示され
る水平同期信号(64μ5ec)のスタートパルスによ
って、IC404のフンショット(2)入ると、マスク
巾に相当する一定時間t2のゲート信号が、第5B図(
b)の如く生成される。このゲート信号は、第5B図(
c)に示される2値化回路2で2値化された画像信号(
原信号)とANDゲート405で論理和がとられ、第5
B図(d)の如くゴミの除去された電子マスクのかかっ
た画像信号が得られる。
Similarly, a method of generating an electronic mask based on a horizontal synchronization signal will be explained with reference to FIGS. 5B (a), (b), (c) and (d). The horizontal mask width of the electronic mask 102 can be changed by the time constant and volume (variable resistance) of the one-shot timer of the IC 404. When the start pulse of the horizontal synchronizing signal (64μ5ec) shown in FIG. 5B (a) enters the start shot (2) of the IC 404, the gate signal for a certain period of time t2 corresponding to the mask width is activated as shown in FIG. 5B (
It is generated as shown in b). This gate signal is shown in FIG. 5B (
The image signal binarized by the binarization circuit 2 shown in c) (
original signal) and the AND gate 405, and the fifth
As shown in Fig. B (d), an image signal covered with an electronic mask from which dust has been removed is obtained.

以上説明した方法で水平方向及び垂直方向の電子マスク
100〜103が生成され、ノイズ成分108は画面上
から除かれる。
The electronic masks 100 to 103 in the horizontal and vertical directions are generated by the method described above, and the noise component 108 is removed from the screen.

さらに、垂直方向、水平方向の各計測手順を簡単に述べ
る。
Furthermore, the measurement procedures in the vertical and horizontal directions will be briefly described.

第7A図(a)、(b)、(c)及び第7B図(a)、
(b)、(C)、(d)は第1実施例の計測値のカウン
ト手順を説明する図である。
Figure 7A (a), (b), (c) and Figure 7B (a),
(b), (C), and (d) are diagrams illustrating a procedure for counting measured values in the first embodiment.

まず、第7A図(a)、(b)、(c)によって、垂直
方向の計測値のカウント手順について説明する。
First, the procedure for counting the measured values in the vertical direction will be described with reference to FIGS. 7A, (a), (b), and (c).

まず、モニタ7が、256本のラスター線で一画面を形
成している場合(図中はラスクー線の本数を減らして示
している)、被験体106の画像信号は、第7A図(a
)のように、生成されている。また、垂直方向の輝線1
09の輝線信号は、第7A図(b)のように、生成され
、上記被験体106を含む画像信号によって形成される
フィールドと輝線109の輝線信号によって形成される
フィールドとでANDがとられると、被験体106の垂
直方向の長さは、第7A図(C)に示されるパルス数で
表される1フイールドである。このパルス数は計測回路
4でカウントされ、そのカウント値は縦の長さの単位で
カウント表示部5に表示される。
First, when the monitor 7 forms one screen with 256 raster lines (the number of Rascoux lines is reduced in the figure), the image signal of the subject 106 is as shown in FIG. 7A (a
) is generated. Also, the bright line 1 in the vertical direction
The bright line signal of bright line 109 is generated as shown in FIG. , the vertical length of the subject 106 is one field represented by the number of pulses shown in FIG. 7A (C). This number of pulses is counted by the measuring circuit 4, and the count value is displayed on the count display section 5 in units of vertical length.

また、第7B図(a)、(b)、(C)(d)によって
、水平方向の計測値のカウント手順について説明する。
Further, the procedure for counting the measured values in the horizontal direction will be explained with reference to FIGS. 7B (a), (b), (C) and (d).

ここでは、第7A図(a)の被験体106のフィールド
と、第7B図(a)に示される水平方向の輝線信号10
9によって形成されるフィールドとでANDがとられる
。水平方向においては、第7B図(a)に如く、輝線1
09の輝線信号9は一本のラスター線のみである。この
ようにして、被験体106の横巾を表す信号が、第7B
図(b)のように生成される。この第7B図(b)で表
されるフィールドは、第7B図(C)で表されるパルス
とANDされ、第7B図(d)に示されるパルスが得ら
れる。このパルス数は計測回路4でカウントされ、その
カウント値は横の長さの単位でカウント表示部5に表示
される。
Here, the field of the subject 106 shown in FIG. 7A(a) and the horizontal bright line signal 10 shown in FIG. 7B(a) are shown.
is ANDed with the field formed by 9. In the horizontal direction, as shown in Fig. 7B (a), the emission line 1
The bright line signal 9 of 09 is only one raster line. In this way, the signal representing the width of the subject 106 is
It is generated as shown in Figure (b). The field shown in FIG. 7B(b) is ANDed with the pulse shown in FIG. 7B(C) to obtain the pulse shown in FIG. 7B(d). This number of pulses is counted by the measuring circuit 4, and the count value is displayed on the count display section 5 in units of horizontal length.

次に、第1実施例の画像切片計測方法について説明する
Next, the image slice measuring method of the first embodiment will be explained.

第3図は第1実施例の画像切片計測の動作を説明するフ
ローチャートであり、第4図(a)(b)、(c)、(
d)は第1実施例の画像切片計測にかかる操作の流れを
説明する図である。
FIG. 3 is a flowchart explaining the operation of image section measurement in the first embodiment, and FIG. 4 (a), (b), (c), (
d) is a diagram illustrating the flow of operations related to image slice measurement in the first embodiment.

まず、ITVカメラ20から画像信号が受信されると、
2値化回路2によって画像信号は2値化され、モニタ7
上には、第4図(a)に示されるように被験体106が
映像される(ステップS1)。そして、I C401〜
404のトリマー抵抗がオペレータによって調整され、
第4図(b)のように、水平方向、垂直方向ともに、被
験体以外の像(ノイズ成分)が電子マスク100〜10
3によってマスクされる(ステップS3)。
First, when an image signal is received from the ITV camera 20,
The image signal is binarized by the binarization circuit 2 and displayed on the monitor 7.
At the top, the subject 106 is imaged as shown in FIG. 4(a) (step S1). And IC401~
trimmer resistance of 404 is adjusted by the operator;
As shown in FIG. 4(b), in both the horizontal and vertical directions, images other than the subject (noise components) are
3 (step S3).

次に、モニタ7上の像に測定輝線109が表示され、こ
の測定輝線109は、オペレータの操作によって、第4
図(C)のように、被験体のサイズの測定箇所に移動さ
れる(ステップS4)。そして、オペレータから計測ス
タートの指示で計測回路4が動作し、計測回路4は測定
輝線109の設定された位置に基づいてラスクー線(又
は、パルス)がカウントされ(ステップS6)、第4図
(d)のように、被験体106の縦と横のサイズがそれ
ぞれカウント表示部5に表示される(ステップS7)、
尚、計測スタートは、図示されないスイッチの押下をC
PU8が検出することで実施される。
Next, a measurement bright line 109 is displayed on the image on the monitor 7, and this measurement bright line 109 is changed to the fourth
As shown in Figure (C), the subject is moved to a measurement location for size (step S4). Then, the measurement circuit 4 is operated in response to an instruction from the operator to start measurement, and the measurement circuit 4 counts Lascou lines (or pulses) based on the set position of the measurement bright line 109 (step S6). As shown in d), the vertical and horizontal sizes of the subject 106 are each displayed on the count display section 5 (step S7);
To start the measurement, press the switch (not shown).
This is carried out when the PU8 detects it.

以上説明したように第1実施例によれば、画像切片法な
どの画像計測において、被験体像以外のノイズ成分、即
ち、ゴミ、ホコリなど誤計測の原因となる像を遮蔽して
、計測対象から確実に除去することができるので正確な
被験体の測定が可能になる。
As explained above, according to the first embodiment, in image measurement such as the image sectioning method, noise components other than the subject image, that is, images that cause erroneous measurements such as dirt and dust, are blocked and the measurement target is Since the sample can be reliably removed from the sample, accurate measurement of the subject becomes possible.

また、電子回路を用いることで、コストが低減されると
ともに、位置合せ等の調整の手間が省ける。又、外乱光
や反射光などがTVレンズに入って起こるフレアなども
、撮像管の後処理において電子回路で行うので除去でき
る。
Furthermore, by using an electronic circuit, costs are reduced and the effort of adjustments such as alignment can be saved. In addition, flare caused by disturbance light or reflected light entering the TV lens can be removed by using an electronic circuit during post-processing of the image pickup tube.

ここで、複数個の被験体を測定する場合の説明を付は加
える。
Here, an explanation is added when measuring multiple subjects.

第8図、第9図は複数個の被験体の測定手順を説明する
図である。第8図、第9図中、像107が被験体106
と同様の測定対象の被験体とする。モニタ7上に被験体
106及び107の像が映されている場合、第8図また
は第9図のように、測定する方の被験体から電子マスク
で遮蔽し、その被験体に対して輝線109を位置合わせ
し、測定を行えば良い。次の被験体に対しても同様に測
定を行うことによって、複数個の被験体に対する確実な
測定が可能となる。尚、電子マスクは、複数の発生が可
能である。この場合には、輝線が複数個の被験体にかか
る場合に有効であり、現時点で測定に関係のない被験体
は電子マスクで遮蔽すれば良い。
FIGS. 8 and 9 are diagrams for explaining the measurement procedure for a plurality of subjects. In FIGS. 8 and 9, the image 107 is the subject 106.
The subject to be measured is the same as that of . When the images of subjects 106 and 107 are displayed on the monitor 7, as shown in FIG. 8 or 9, the subject to be measured is shielded with an electronic mask, and the bright line 109 is All you have to do is align and measure. By performing the measurement on the next subject in the same manner, reliable measurement on a plurality of subjects becomes possible. Note that a plurality of electronic masks can be generated. In this case, it is effective when the bright line is applied to a plurality of subjects, and subjects who are not currently involved in the measurement may be shielded with an electronic mask.

このように、多数個の被験体を測定する場合、被験像以
外を遮蔽していく方法により、次々と電子マスクを発生
させることで多数個の被験体の測定が可能になる。
In this way, when measuring a large number of subjects, it becomes possible to measure a large number of subjects by generating electronic masks one after another by shielding images other than the subject image.

く第2実施例〉 次、電子マスクをモニタ7上の自由な位置に発生させる
ことのできる第2実施例について説明する。
Second Embodiment Next, a second embodiment in which an electronic mask can be generated at any position on the monitor 7 will be described.

第10図は電子マスクのサイズを変更したときの一例を
示す図である。この例では、被験体112の右下の位置
にノイズ成分108が存在しておリ、このノイズ成分1
08の位置に電子マスクのスポットマスクを発生させ、
サイズを調整することにより、矩形の電子マスク113
を形成できる。
FIG. 10 is a diagram showing an example of changing the size of the electronic mask. In this example, a noise component 108 exists at the lower right position of the subject 112, and this noise component 1
Generate a spot mask of the electronic mask at position 08,
By adjusting the size, a rectangular electronic mask 113
can be formed.

このように、第2実施例によれば、電子マスクの量が可
変なのでノイズ成分の位置と大きさに関係なく任意の部
分が自由に遮蔽できる。
In this way, according to the second embodiment, since the amount of the electronic mask is variable, any part can be freely shielded regardless of the position and size of the noise component.

く第3実施例〉 次に、ランダムな位置に表示されている物体から一つの
物体を被験体として測定する第3の実施例について説明
する。
Third Example> Next, a third example will be described in which one object is measured as a subject among objects displayed at random positions.

第11図〜第15図は第3実施例による被験体の測定方
法を説明する図である。第11図において、120〜1
23はモニタ7の画面中にランダムに並ぶ測定対象外の
物体の像を示し、118は像120〜123に囲まれて
表示されている被験体を示している。この被験体118
の縦、横のサイズを測定する場合には、まず、第12図
のように、局所的な電子マスク114が被験体118に
かけられ、この後に、全体の像は、第13図に示される
ように、インバータ(図示しない)により白レベルに反
転されて表示される。そして第13図に示される像と第
11図に示される像とのANDがとられ、第14図のよ
うに、被験体118のみを白レベルの像として抽出する
。以降は、上述の各実施例と同様に、白レベルに判定さ
れた被験体118の測定位置に輝線109が移動され、
縦、横の径がそれぞれ測定される。
FIGS. 11 to 15 are diagrams illustrating a method for measuring a subject according to the third embodiment. In Figure 11, 120-1
Reference numeral 23 indicates images of objects not to be measured that are arranged randomly on the screen of the monitor 7, and reference numeral 118 indicates a subject displayed surrounded by images 120 to 123. This subject 118
When measuring the vertical and horizontal sizes of the object, a local electronic mask 114 is first applied to the subject 118 as shown in FIG. 12, and then the entire image is measured as shown in FIG. Then, the image is inverted to white level by an inverter (not shown) and displayed. Then, the image shown in FIG. 13 and the image shown in FIG. 11 are ANDed, and only the subject 118 is extracted as a white level image as shown in FIG. 14. Thereafter, similarly to each of the above embodiments, the bright line 109 is moved to the measurement position of the subject 118 determined to be at the white level,
The vertical and horizontal diameters are each measured.

以上説明したように第3実施例によれば、ランダムに並
ぶ物体において、被験体以外の物体を1回の電子マスク
によって遮蔽できない場合でも、局所的な電子マスクで
被験体に該当する物体を抽出するようにしてノイズ成分
(被験体以外の物体)を除去することによって、被験体
を確実に測定することができる。勿論、ランダムに並ぶ
複数の物体を測定する場合には、次々と局所的な電子マ
スクを移動させながら物体の測定を行えば良い。
As explained above, according to the third embodiment, even if objects other than the subject cannot be shielded by one electronic mask among randomly arranged objects, the object corresponding to the subject is extracted using a local electronic mask. By removing noise components (objects other than the subject) in this manner, the subject can be reliably measured. Of course, when measuring a plurality of randomly arranged objects, it is sufficient to measure the objects while sequentially moving the local electronic mask.

[発明の効果] 以上説明したように本発明によれば、画像切片法などの
画像計測において、被験体像以外のノイズ成分、即ち、
ゴミ、ホコリなど誤計測の原因となる像を遮蔽して、計
測対象から確実に除去することができるので正確な被験
体の測定が可能になる。
[Effects of the Invention] As explained above, according to the present invention, in image measurement such as the image section method, noise components other than the subject image, that is,
It is possible to block images of dirt and dust that may cause measurement errors and reliably remove them from the measurement target, making it possible to accurately measure the target.

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

第1図は第1実施例の画像切片計測装置の構成を示すブ
ロック図、 第2図は第1図に示される装置の回路図、第3図は第1
実施例の画像切片計測の動作を説明するフローチャート
、 第4図(a)、(b)、(C)、(d)は第1実施例の
画像切片計測にかかる操作の流れを説明する図、 第5A図(a)、(b)、(c)、(d)及び第5B図
(a)、(b)、(C)、(d)は第1実施例の電子マ
スクのかけられた画像信号の生成手順を説明する図、 第6図は第1実施例による被験体以外に電子マスクのか
けられた像の一例を示す図、 第7A図(a)、(b)、(c)及び第7B図(a)、
(b)、(C)、−(d)は第1実施例の計測値のカウ
ント手順を説明する図、 第8図、第9図は複数個の被験体の測定手順を説明する
図、 第10図は電子マスクのサイズを変更したときの一例を
示す図、 第11図〜第15図は第3実施例による被験体の測定方
法を説明する図である。 図中、1・・・画像切片計測装置、2・・・2値化回路
、3・・・電子マスク回路、4・・・計測回路、5・・
・カウンタ回路、6・・・復調回路、7・・・モニタ、
8・・・CPU、9−ROM、10−RAM120・ 
ITVカメラ、30・・・ケーブル、100〜103,
113.114・・・電子マスク、106,112,1
18・・・被験体、107,120〜123・・・像、
108・・・ノイズ成分、109・・・輝線、201・
・・コンパレータ、401〜404−IC,405,4
06・・・AND回路である。
FIG. 1 is a block diagram showing the configuration of the image slice measuring device of the first embodiment, FIG. 2 is a circuit diagram of the device shown in FIG. 1, and FIG.
Flowchart explaining the operation of image section measurement in the embodiment; FIGS. Figure 5A (a), (b), (c), (d) and Figure 5B (a), (b), (C), (d) are images with the electronic mask of the first embodiment applied. A diagram explaining the signal generation procedure, FIG. 6 is a diagram showing an example of an image of an object other than the subject covered with an electronic mask according to the first embodiment, and FIG. 7A (a), (b), (c) and Figure 7B(a),
(b), (C), -(d) are diagrams explaining the procedure for counting measured values in the first embodiment; Figures 8 and 9 are diagrams explaining the procedure for measuring multiple subjects; FIG. 10 is a diagram showing an example of changing the size of the electronic mask, and FIGS. 11 to 15 are diagrams illustrating a method for measuring a subject according to the third embodiment. In the figure, 1... Image section measuring device, 2... Binarization circuit, 3... Electronic mask circuit, 4... Measurement circuit, 5...
・Counter circuit, 6... demodulation circuit, 7... monitor,
8...CPU, 9-ROM, 10-RAM120・
ITV camera, 30...cable, 100-103,
113.114...electronic mask, 106,112,1
18...Subject, 107,120-123...Image,
108... Noise component, 109... Bright line, 201...
... Comparator, 401-404-IC, 405, 4
06...AND circuit.

Claims (1)

【特許請求の範囲】 画像中の任意の領域に電子マスクを施す画像処理装置で
あつて、 画像を形成する画像信号のレベルを変換する情報を入力
する入力手段と、 前記入力情報に基づいて画像信号のレベルを変換する信
号を生成する生成手段と、 入力された画像信号を前記生成された信号でレベル変換
する変換手段とを有し、 このようして画像中に電子マスクを形成することを特徴
とする画像処理装置。
[Scope of Claims] An image processing device that applies an electronic mask to an arbitrary region in an image, comprising: input means for inputting information for converting the level of an image signal forming an image; The method includes a generating means for generating a signal for converting the level of a signal, and a converting means for converting the level of an input image signal using the generated signal, and thus forms an electronic mask in an image. Characteristic image processing device.
JP7189889A 1989-03-27 1989-03-27 Image processor Pending JPH02252071A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP7189889A JPH02252071A (en) 1989-03-27 1989-03-27 Image processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP7189889A JPH02252071A (en) 1989-03-27 1989-03-27 Image processor

Publications (1)

Publication Number Publication Date
JPH02252071A true JPH02252071A (en) 1990-10-09

Family

ID=13473814

Family Applications (1)

Application Number Title Priority Date Filing Date
JP7189889A Pending JPH02252071A (en) 1989-03-27 1989-03-27 Image processor

Country Status (1)

Country Link
JP (1) JPH02252071A (en)

Similar Documents

Publication Publication Date Title
JPH0736001B2 (en) Bottle defect inspection method
JP3185559B2 (en) Surface defect inspection equipment
JP3189588B2 (en) Surface defect inspection equipment
KR101146081B1 (en) Detection of macro-defects using micro-inspection inputs
JP2002148195A (en) Surface inspection apparatus and surface inspection method
JPH08145906A (en) Method and equipment for inspection of defect of surface to be inspected
JPH02252071A (en) Image processor
JP3433333B2 (en) Defect inspection method
JPH0711414B2 (en) Glass bottle uneven thickness inspection method
JP3202089B2 (en) Surface defect inspection method for periodic patterns
JPH11352073A (en) Foreign matter inspection method and apparatus thereof
JP2997306B2 (en) Method and apparatus for detecting pattern position using transmitted illumination
JP2638121B2 (en) Surface defect inspection equipment
JP2911619B2 (en) Surface defect inspection method and apparatus for periodic pattern
JP2660560B2 (en) Defect inspection method
JPH0735699A (en) Method and apparatus for detecting surface defect
JPH03100424A (en) Automatic indicator reading device
JPH0645845Y2 (en) Automatic surface smoothness inspection device
JPH01210807A (en) Automatic inspecting device for smoothness of paint film
JP3487963B2 (en) Inspection method for transparent objects
JP2001319221A (en) Method and device for inspection
JPH0777495A (en) Pattern inspection method
JP3474619B2 (en) Double reflection inspection method
JP4516674B2 (en) Method and apparatus for inspecting periodic pattern unevenness
JPH01307647A (en) Inspecting method for periodic pattern