JPH09304034A - Lighting control system - Google Patents

Lighting control system

Info

Publication number
JPH09304034A
JPH09304034A JP8144914A JP14491496A JPH09304034A JP H09304034 A JPH09304034 A JP H09304034A JP 8144914 A JP8144914 A JP 8144914A JP 14491496 A JP14491496 A JP 14491496A JP H09304034 A JPH09304034 A JP H09304034A
Authority
JP
Japan
Prior art keywords
image
lighting
illumination
contrast value
lighting control
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
JP8144914A
Other languages
Japanese (ja)
Inventor
Koichi Komatsu
浩一 小松
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.)
Mitutoyo Corp
Mitsutoyo Kiko Co Ltd
Original Assignee
Mitutoyo Corp
Mitsutoyo Kiko Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Mitutoyo Corp, Mitsutoyo Kiko Co Ltd filed Critical Mitutoyo Corp
Priority to JP8144914A priority Critical patent/JPH09304034A/en
Publication of JPH09304034A publication Critical patent/JPH09304034A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To enable setting of the optimum lighting conditions without skill to obtain a higher contrast image by calculating contrast values of an image taken under respective lighting conditions a plurality of times to set light conditions with the highest contrast value. SOLUTION: A detection area on an image of an object to be measured shown on a CRT display is specified by a mouse to be inputted into a CPU 35. The CPU 35 provides a command to a lighting control section 39 to photograph the object to be measured with a CCD camera, while increasing the quantity of illumination light at a specified pitch and performs an A/D conversion 31 of the image taken to be stored into a multi-valued image memory 32 as pixel comprising a number of gray level values. Then, a processing is performed to calculate a contrast value in a specified area from a gray level value pixel unit the altering of the quantity of light ends. The results are stored into a work memory 37. Then, after the end of altering the quantity of light, a contract curve is determined as obtained when the quantity of illumination light is changed. A function higher than second order is plotted to the curve by least square to set lighting conditions to maximize the contrast value.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【発明の属する技術分野】本発明は、撮像手段で撮像さ
れた被測定対象の画像に対して、画像処理を施して形状
測定などの画像計測を行う非接触画像計測装置に関し、
特にエッジ検出時の照明条件を最適に設定するシステム
に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a non-contact image measuring device for performing image processing such as shape measurement by performing image processing on an image of an object to be measured picked up by an image pickup means,
In particular, it relates to a system for optimally setting the illumination condition at the time of edge detection.

【0002】[0002]

【背景技術】従来、この種の非接触画像計測システムで
は、エッジ位置を確実かつ精度良く検出するために、撮
像した画像をモニタに写し出し、この画像を観察しなが
らこの画像のコントラストが高くなるように、作業者が
照明光量や方向等を逐次変更設定していた。この設定が
適していないとエッジ近傍のコントラストが低く、エッ
ジそのものが画像に写らないことがある。また、一旦エ
ッジ検出に最適となるように設定した照明条件であって
も、ランプの経年変化や外乱光の影響により画像のコン
トラストや明るさが時間とともに変化してしまい、一定
の条件下での画像計測は困難であり、常に照明条件を調
節する必要がある。
2. Description of the Related Art Conventionally, in this type of non-contact image measurement system, in order to detect an edge position reliably and accurately, a captured image is displayed on a monitor so that the contrast of this image becomes high while observing this image. In addition, the operator has sequentially changed and set the illumination light amount, the direction, and the like. If this setting is not suitable, the contrast near the edge may be low and the edge itself may not appear in the image. Even under the illumination conditions that are optimally set for edge detection, the contrast and brightness of the image will change over time due to the aging of the lamp and the influence of ambient light, and under certain conditions. Image measurement is difficult and it is necessary to constantly adjust lighting conditions.

【0003】[0003]

【発明が解決しようとする課題】上述したように、コン
トラストが高い画像が得られるように照明の光量や方向
等の照明条件を調節設定する作業は、熟練者の経験が必
要とされ非常に難しくしかも繁雑な作業であった。
As described above, the work of adjusting and setting the illumination conditions such as the light intensity and direction of the illumination so as to obtain an image with high contrast requires a skilled person's experience and is extremely difficult. Moreover, it was a complicated task.

【0004】本発明はこのような問題点を解決するため
になされたもので、コントラストが高い画像が得られる
ように照明条件を調節設定するシステムを提供すること
を目的とする。
The present invention has been made to solve the above problems, and an object of the present invention is to provide a system for adjusting and setting illumination conditions so that an image with high contrast can be obtained.

【0005】[0005]

【課題を解決するための手段】本発明は、前記目的を達
成するために、被測定対象を照明する照明手段と、この
照明手段により照明された被測定物を撮像する撮像手段
と、この撮像手段により撮像された画像を濃淡値に変換
するAD変換部と、このAD変換部から出力される濃淡
値をマトリックス状に配置された画素の濃淡値として一
時記憶する多値画像メモリと、この多値画像メモリの各
画素とこの画素に隣接する画素との濃淡値の差を自乗合
算してコントラスト値を算出すると共に所定ピッチで照
明条件を変更する照明制御指令を送出するCPUと、こ
の照明制御指令を入力して照明手段を駆動制御する照明
制御部とを備え、前記CPUは、各照明条件下において
前記撮像手段で撮像された画像の前記コントラスト値を
算出すると共にこの処理を複数回行い、最もコントラス
ト値が高い照明条件を設定することを特徴とする。
In order to achieve the above-mentioned object, the present invention provides an illumination means for illuminating an object to be measured, an imaging means for imaging an object to be measured illuminated by this illumination means, and an imaging means for this imaging. An AD converter for converting the image picked up by the means into a gray value, a multivalued image memory for temporarily storing the gray value output from the AD converter as a gray value of pixels arranged in a matrix, and this multivalued image memory. A CPU that calculates the contrast value by squaring the difference in gray value between each pixel of the value image memory and the pixel adjacent to this pixel, and sends an illumination control command for changing the illumination condition at a predetermined pitch, and this illumination control An illumination control unit for inputting a command to drive and control the illumination unit, and the CPU calculates the contrast value of the image captured by the imaging unit under each illumination condition and Processing performed a plurality of times, and sets the highest contrast value lighting conditions.

【0006】また、本発明は上記手段に加え、前記多値
画像メモリに一時記憶された画像をCRTディスプレイ
に表示すると共に任意の領域を指定する領域指定手段を
備えることで構成することも可能である。
In addition to the above means, the present invention can also be configured by including an area designating means for displaying an image temporarily stored in the multivalued image memory on a CRT display and designating an arbitrary area. is there.

【0007】また、本発明は上記手段における前記照明
条件を前記照明手段から照射される照明光量、または前
記照明手段と被測定物との距離または照明手段の設定角
度であることを特徴とするよう構成することも可能であ
る。
Further, the present invention is characterized in that the illumination condition in the above means is an amount of illumination light emitted from the illumination means, a distance between the illumination means and an object to be measured, or a set angle of the illumination means. It is also possible to configure.

【0008】また、本発明は上記手段に加え、各照明条
件下において前記撮像手段で撮像された画像の前記コン
トラスト値を算出すると共にこの処理を複数回行い、最
小自乗法により2次以上の関数をあてはめて最もコント
ラスト値が高い照明条件を設定するように構成すること
も可能である。
In addition to the above-mentioned means, the present invention calculates the contrast value of the image picked up by the image pickup means under each illumination condition, performs this processing a plurality of times, and uses a least square method to calculate a function of quadratic or higher order. Can be applied to set the illumination condition with the highest contrast value.

【0009】また、本発明は上記手段に加え、各照明条
件下において前記撮像手段で撮像された画像の前記コン
トラスト値を算出すると共にこの処理を複数回行い、重
心を算出することにより最もコントラスト値が高い照明
条件を設定するように構成することも可能である。
In addition to the above-mentioned means, the present invention calculates the contrast value of the image picked up by the image pickup means under each illumination condition and performs this processing a plurality of times to calculate the center of gravity, thereby obtaining the most contrast value. It is also possible to set so that a high illumination condition is set.

【0010】本発明は、照明条件を所定ステップで変化
させながら画像を取り込み、各画像のコントラスト値を
算出してコントラスト曲線を求め、これに2次以上の関
数を最小自乗法によりあてはめ、または重心の算出によ
りこのコントラスト値が最大となる照明条件を自動で求
め設定可能である。
According to the present invention, an image is taken in while changing illumination conditions in predetermined steps, a contrast value of each image is calculated to obtain a contrast curve, and a quadratic or higher function is fitted to this by a least square method, or a center of gravity is applied. It is possible to automatically find and set the illumination condition that maximizes the contrast value.

【0011】[0011]

【発明の実施の形態】以下、本発明を用いた好適な実施
の形態について図面を用いて説明する。なお、全図中に
おいて同一符号を付したものは同一構成要素を表わして
いる。図1は、本発明の実施例に係る非接触画像計測シ
ステムの全体構成を示す斜視図である。このシステム
は、非接触画像計測型の三次元測定機1と、この三次元
測定機1を駆動制御すると共に必要なデータ処理を実行
するコンピュータシステム2と、計測結果をプリントア
ウトするプリンタ3とにより構成されている。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Preferred embodiments of the present invention will be described below with reference to the drawings. In all the drawings, components denoted by the same reference numerals represent the same components. FIG. 1 is a perspective view showing the overall configuration of a non-contact image measuring system according to an embodiment of the present invention. This system includes a non-contact image measuring type three-dimensional measuring machine 1, a computer system 2 that drives and controls the three-dimensional measuring machine 1 and executes necessary data processing, and a printer 3 that prints out measurement results. It is configured.

【0012】三次元測定機1は、次のように構成されて
いる。即ち、架台11上には、ワーク12を載置する測
定テーブル13が装着されており、この測定テーブル1
3は図示しないXおよびY軸駆動機構によってXおよび
Y軸方向に駆動される。架台11の後端部には上方に延
びる支持アーム14が固定されており、この支持アーム
14の上部にZ軸駆動機構を備えたZ軸駆動ユニット1
5が取り付けられている。このZ軸駆動ユニット15内
部には撮像用のCCDカメラ18が測定テーブル13と
対向するように装着されている。このCCDカメラ18
を測定テーブル13に対して垂直な方向に駆動制御可能
である。また、Z軸駆動ユニット15の下端部に被測定
物を照明するためのリング状照明装置19が備えられて
いて、CCDカメラ18とは独立して測定テーブル13
に対して垂直な方向に駆動制御可能である。また、内部
にランプを有する照明光源装置16からグラスファイバ
により光をこのリング状照明装置18に導いている。ま
た、電源装置17は三次元測定機1とこの照明光源装置
16に電源を供給している。このように照明光源装置1
6とこの電源装置17を三次元測定機1から分離するこ
とにより、熱による測定精度への悪影響を防いでいる。
The coordinate measuring machine 1 is configured as follows. That is, a measurement table 13 on which a work 12 is placed is mounted on the gantry 11.
3 is driven in the X and Y axis directions by an X and Y axis drive mechanism (not shown). A support arm 14 extending upward is fixed to a rear end portion of the gantry 11, and a Z-axis drive unit 1 having a Z-axis drive mechanism is provided above the support arm 14.
5 is attached. A CCD camera 18 for image pickup is mounted inside the Z-axis drive unit 15 so as to face the measurement table 13. This CCD camera 18
Can be driven and controlled in a direction perpendicular to the measurement table 13. A ring-shaped illumination device 19 for illuminating the object to be measured is provided at the lower end of the Z-axis drive unit 15, and the measurement table 13 is independent of the CCD camera 18.
The drive can be controlled in a direction perpendicular to. Further, light is guided from the illumination light source device 16 having a lamp inside to the ring-shaped illumination device 18 by a glass fiber. The power supply device 17 supplies power to the coordinate measuring machine 1 and the illumination light source device 16. In this way, the illumination light source device 1
By separating 6 and this power supply device 17 from the coordinate measuring machine 1, the adverse effect on the measurement accuracy due to heat is prevented.

【0013】コンピュータシステム2は、コンピュータ
本体21、キーボード22、ジョイスティックボックス
23、マウス24およびCRTディスプレイ25を備え
て構成されている。コンピュータ本体21は、例えば図
2に示すように構成されている。即ち、CCDカメラ1
8から入力される画像情報は、AD変換部31を介して
多値画像メモリ32に格納される。多値画像メモリ32
に格納された多値画像情報は、表示制御部33を介して
CRTディスプレイ25に表示される。一方、マウス2
4から入力される画像上における位置情報は、I/F3
4を介してCPU35に入力される。CPU35は、プ
ログラムメモリ36に格納されたプログラムに従って画
像処理を実行する。ワークメモリ37は、CPU35で
の各種処理のための作業領域を提供する。また、照明制
御部39へ制御指令を送出して照明光源装置16内部の
ランプ光量やリング状照明装置19の上下方向の位置を
制御する。また、記憶装置38は、計測結果や各種パラ
メータを含む計測動作手順を記憶するもので、ハードデ
ィスク装置等から構成される。
The computer system 2 comprises a computer main body 21, a keyboard 22, a joystick box 23, a mouse 24 and a CRT display 25. The computer main body 21 is configured, for example, as shown in FIG. That is, CCD camera 1
The image information input from 8 is stored in the multi-valued image memory 32 via the AD conversion unit 31. Multi-valued image memory 32
The multi-valued image information stored in is displayed on the CRT display 25 via the display control unit 33. On the other hand, mouse 2
The position information on the image input from 4 is I / F3.
4 is input to the CPU 35. The CPU 35 executes image processing according to the program stored in the program memory 36. The work memory 37 provides a work area for various processes in the CPU 35. Further, a control command is sent to the illumination control unit 39 to control the amount of lamp light inside the illumination light source device 16 and the vertical position of the ring-shaped illumination device 19. The storage device 38 stores a measurement operation procedure including measurement results and various parameters, and is configured by a hard disk device or the like.

【0014】次に、このように構成された非接触画像計
測システムにおける最適光量の設定手順について説明す
る。図3は、同システムのエッジ検出のための最適光量
設定処理を示すフローチャート、図4および図5はこの
処理を説明するための照明光量を変化させたときのコン
トラスト値の変化を示すグラフである。
Next, the procedure for setting the optimum light amount in the non-contact image measuring system configured as described above will be described. FIG. 3 is a flowchart showing an optimum light amount setting process for edge detection of the system, and FIGS. 4 and 5 are graphs showing a change in contrast value when the illumination light amount is changed to explain this process. .

【0015】まず、ステップS1において、CRTディ
スプレイ25に表示された被測定物の画像上でエッジ検
出を行いたい部分を含むようにマウス24で例えば矩型
状の領域を指定する。指定可能な領域の形状は特に矩型
状に限られるものではなく、円形状、扇形状でも実施可
能である。また、領域を指定せずに全画像をそのまま利
用することも可能である。
First, in step S1, the mouse 24 designates, for example, a rectangular area so as to include a portion on the image of the object to be measured displayed on the CRT display 25 where edge detection is to be performed. The shape of the region that can be designated is not limited to a rectangular shape, but may be a circular shape or a fan shape. It is also possible to use the entire image as it is without specifying the area.

【0016】次にステップS2において、所定のピッチ
で照明の光量を増加させるように照明制御部39へ制御
指令を送出して照明光量を設定する。より具体的には照
明光源装置16内部のランプに印加する電圧値を所定の
ピッチで増加または減少させることにより照明光量を設
定可能である。
Next, in step S2, a control command is sent to the illumination control unit 39 to increase the illumination light amount at a predetermined pitch, and the illumination light amount is set. More specifically, the amount of illumination light can be set by increasing or decreasing the voltage value applied to the lamp inside the illumination light source device 16 at a predetermined pitch.

【0017】次に、ステップS3において、CCDカメ
ラ18から画像を取り込み多値画像メモリ32に一時記
憶する。この多値画像とはCCDカメラ18のマトリッ
クス状に並んだ多数の画素における0〜255の範囲の
濃淡値から形成されている。
Next, in step S3, the image is taken from the CCD camera 18 and temporarily stored in the multi-valued image memory 32. This multi-valued image is formed from gray values in the range of 0 to 255 in a large number of pixels arranged in a matrix of the CCD camera 18.

【0018】次に、ステップS4において、前記マウス
24で指定した画像上の指定領域内のコントラスト値を
算出する。このコントラスト値の算出方法は種々のもの
があるが、次に示す方法が最も一般的である。例えば図
6の多値画像メモリ32の概念図を用いて説明すると、
Eにおけるコントラスト値SEは、8個の近傍画素A,
B,C,D,E,F,G,H,Iにおける濃淡値a,
b,c,d,e,f,g,h,iを使って例えば次の計
算式で求めることができる。
Next, in step S4, the contrast value in the designated area on the image designated by the mouse 24 is calculated. There are various methods for calculating the contrast value, but the following method is the most general. For example, using the conceptual diagram of the multi-valued image memory 32 in FIG. 6,
The contrast value SE in E is 8 neighboring pixels A,
The gray value a at B, C, D, E, F, G, H, I,
Using b, c, d, e, f, g, h, i, for example, it can be obtained by the following calculation formula.

【0019】 SE=(e−a)2 +(e−b)2 +(e−c)2 +(e−d)2 +(e−f )2 +(e−g)2 +(e−h)2 +(e−i)2 (1)SE = (e−a) 2 + (e−b) 2 + (e−c) 2 + (e−d) 2 + (e−f) 2 + (e−g) 2 + (e− h) 2 + (e-i) 2 (1)

【0020】この(1)の計算をステップS1で指定し
た指定領域内の各画素全てに行い、得られた値を全て合
計する。このようにしてステップS2で設定した照明光
量における指定領域のコントラスト値を求めることがで
きる。また、高速化するために簡易的に例えば次の計算
式を用いても構わない。
The calculation of (1) is performed for all the pixels in the designated area designated in step S1, and all the obtained values are summed up. In this way, it is possible to obtain the contrast value of the designated area in the illumination light amount set in step S2. Further, in order to increase the speed, for example, the following calculation formula may be simply used.

【0021】 SE=(e−b)2 +(e−d)2 +(e−f)2 +(e−h)2 (2)SE = (e−b) 2 + (e−d) 2 + (e−f) 2 + (e−h) 2 (2)

【0022】また、上記計算式(1)(2)以外のいか
なる計算式であっても、コントラスト値を計算可能であ
れば利用可能である。前記ステップS2で設定した照明
光量の情報、例えば照明光量を設定したときに使われた
指令情報等とこの(1)または(2)式により求められ
た指定領域内のコントラスト値とはペアでワークメモリ
37に一時記憶される。
Any calculation formula other than the calculation formulas (1) and (2) can be used as long as the contrast value can be calculated. The information of the illumination light amount set in step S2, for example, the command information used when the illumination light amount is set, and the contrast value in the designated area obtained by the equation (1) or (2) are paired with each other. It is temporarily stored in the memory 37.

【0023】次にステップS5において、光量変更が全
て終了したかどうかチェックして、終了していないとき
はステップS2に戻り、終了したときはステップS6へ
進む。
Next, in step S5, it is checked whether or not the change of the light amount is all completed. If not completed, the process returns to step S2, and if completed, the process proceeds to step S6.

【0024】次にステップS6において、ここまでの処
理で得られる情報から図4に示すようなグラフが得られ
る。次に最小自乗法により2次以上の次数の関数をこの
グラフにあてはめる。例えば図5のような2次関数をあ
てはめることができる。ここであてはめた関数の極大値
における照明光量が最もコントラスト値の高い画像を得
るための照明光量である。
Next, in step S6, a graph as shown in FIG. 4 is obtained from the information obtained by the processing so far. Next, a function of degree 2 or higher is applied to this graph by the method of least squares. For example, a quadratic function as shown in FIG. 5 can be applied. The illumination light amount at the maximum value of the fitted function is the illumination light amount for obtaining the image with the highest contrast value.

【0025】また、2次以上の関数を使う以外にもこの
グラフにおける重心計算を行うことでも極大値の位置を
特定することができ、この位置における照明光量を容易
に求めることができる。従って、次のステップS7にお
いて、最適光量としてここで求めた照明光量を設定する
ことができる。
The position of the maximum value can be specified by calculating the center of gravity in this graph in addition to using the function of the second or higher order, and the amount of illumination light at this position can be easily obtained. Therefore, in the next step S7, the illumination light amount obtained here can be set as the optimum light amount.

【0026】以上、照明光量を暗から明に向かって所定
のピッチで徐々に変化させて最適な照明光量を求めた
が、逆に明から暗に向かって照明光量を変化させても同
様に最適な照明光量値を求めることができる。また、こ
の両方を組み合わせることも可能である。その場合、照
明光量を暗から明に向かって変化させるときの所定ピッ
チを粗くして、だいたいの最適な照明光量を求めてお
き、続いてこの照明光量近傍において前記所定ピッチを
細かくして明から暗に向かって照明光量を変化させて最
適な照明光量を求めるようにすることも可能である。ま
た、リング状照明装置19等の照明装置を動かして被測
定物12との距離を変化させることにより照明光量を変
化させたのと同様な効果が得られる。
As described above, the optimum amount of illumination light was obtained by gradually changing the amount of illumination light from dark to light at a predetermined pitch, but conversely, even if the amount of illumination light is changed from light to dark, it is also optimal. It is possible to obtain various illumination light amount values. It is also possible to combine both. In that case, the predetermined pitch when changing the illumination light amount from dark to light is made coarse, and the most suitable illumination light amount is obtained in advance, and then the predetermined pitch is made finer in the vicinity of this illumination light amount. It is also possible to change the illumination light amount toward darkness to obtain the optimum illumination light amount. Further, the same effect as changing the amount of illumination light can be obtained by moving the illumination device such as the ring-shaped illumination device 19 to change the distance to the DUT 12.

【0027】以上、本発明について好適な実施例を挙げ
て説明したが、本発明は、この実施例に限られるもので
はなく、本発明の要旨を逸脱しない範囲での変更が可能
である。例えば、上記実施例では、照明光量の調節設定
に限って説明したが、これに代えて照明装置の高さ位置
の調節設定を行うように構成可能である。この場合、照
明光量を一定にしておくと共に照明装置の高さ位置を所
定ピッチで移動させる度に指定領域内のコントラスト値
を算出して図4と同様のグラフを得ることができる。従
って同様に最もコントラスト値が高くなるように照明装
置の高さ位置を決定することが可能である。
Although the present invention has been described above with reference to the preferred embodiments, the present invention is not limited to these embodiments, and modifications can be made without departing from the gist of the present invention. For example, in the above-described embodiment, the adjustment setting of the illumination light amount is limited, but instead of this, the height position of the illumination device may be adjusted and set. In this case, it is possible to obtain the same graph as in FIG. 4 by keeping the illumination light amount constant and calculating the contrast value in the designated area every time the height position of the illumination device is moved at a predetermined pitch. Therefore, it is possible to determine the height position of the illuminating device so that the contrast value becomes the highest as well.

【0028】また、照明装置の高さ位置に代えて照明装
置の角度についも同様に調節設定可能である。また、照
明光量、照明装置の高さ位置、照明装置の角度のうちい
ずれかを組み合わせるかあるいは全てを用いて構成する
ことも可能である。また、照明装置が個別に点灯指定可
能な照明部材を複数有する場合は、これらの照明部材の
うち任意の1つまたは複数を点灯させて、そのときのコ
ントラスト値を算出して、最もコントラスト値が高かっ
た時の照明部材の点灯パターンに設定するように構成す
ることも可能である。
Further, instead of the height position of the lighting device, the angle of the lighting device can be similarly adjusted and set. Further, it is possible to combine any one of the amount of illumination light, the height position of the illuminating device, and the angle of the illuminating device, or use all of them. In addition, when the lighting device has a plurality of lighting members that can be individually designated to be turned on, one or more of these lighting members are turned on, the contrast value at that time is calculated, and the most contrast value is calculated. It is also possible to set the lighting pattern of the illumination member when it is high.

【0029】[0029]

【発明の効果】本発明によれば、熟練者でなくとも高い
コントラスト画像を得るための最適な照明条件の設定が
可能である。また、ランプの経年変化や外乱光が変化し
ても、常に照明条件を自動的に最適に設定することがで
き、照明の光量不足または過多に伴う画像のコントラス
ト低下を補うことができる。
According to the present invention, even an unskilled person can set optimum illumination conditions for obtaining a high-contrast image. Further, even if the lamp is aged or the ambient light is changed, the illumination condition can be automatically and optimally set, and it is possible to compensate for the image contrast reduction due to the insufficient or excessive light amount of the illumination.

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

【図1】本発明に係る非接触画像計測システムの全体構
成を示す斜視図である。
FIG. 1 is a perspective view showing an overall configuration of a non-contact image measuring system according to the present invention.

【図2】本発明に係るコンピュータシステムのブロック
図である。
FIG. 2 is a block diagram of a computer system according to the present invention.

【図3】本発明に係る照明光量の最適化の手順を示すフ
ローである。
FIG. 3 is a flowchart showing a procedure of optimizing an illumination light amount according to the present invention.

【図4】照明光量を変化させたときの指定領域内のコン
トラスト値である。
FIG. 4 is a contrast value in a designated area when the amount of illumination light is changed.

【図5】図4のグラフにあてはめられた2次関数であ
る。
5 is a quadratic function fitted to the graph of FIG.

【図6】本発明に係る多値画像メモリの概念図である。FIG. 6 is a conceptual diagram of a multi-valued image memory according to the present invention.

【符号の説明】[Explanation of symbols]

1 非接触画像計測型の三次元測定機 2 コンピュータシステム 3 プリンタ 11 架台 12 ワーク 13 測定テーブル 14 支持アーム 15 Z軸駆動ユニット 16 照明光源装置 17 電源装置 18 CCDカメラ 19 リング状照明装置 21 コンピュータ本体 22 キーボード 23 ジョイスティックボックス 24 マウス 25 CRTディスプレイ 1 Non-contact image measuring 3D measuring machine 2 Computer system 3 Printer 11 Frame 12 Workpiece 13 Measuring table 14 Support arm 15 Z-axis drive unit 16 Illumination light source device 17 Power supply device 18 CCD camera 19 Ring-shaped illumination device 21 Computer body 22 Keyboard 23 Joystick Box 24 Mouse 25 CRT Display

Claims (7)

【特許請求の範囲】[Claims] 【請求項1】 被測定対象を照明する照明手段と、 この照明手段により照明された被測定物を撮像する撮像
手段と、 この撮像手段により撮像された画像を濃淡値に変換する
AD変換部と、 このAD変換部から出力される濃淡値をマトリックス状
に配置された画素の濃淡値として一時記憶する多値画像
メモリと、 この多値画像メモリの各画素とこの画素に隣接する画素
との濃淡値の差を自乗合算してコントラスト値を算出す
ると共に所定ピッチで照明条件を変更する照明制御指令
を送出するCPUと、 この照明制御指令を入力して照明手段を駆動制御する照
明制御部とを備え、 前記CPUは、各照明条件下において前記撮像手段で撮
像された画像の前記コントラスト値を算出すると共にこ
の処理を複数回行い、最もコントラスト値が高い照明条
件を設定することを特徴とする照明制御システム。
1. An illuminating means for illuminating an object to be measured, an image capturing means for capturing an image of an object to be measured illuminated by the illuminating means, and an AD conversion section for converting an image captured by the image capturing means into a gray value. A multivalued image memory for temporarily storing the grayscale values output from the AD conversion unit as the grayscale values of pixels arranged in a matrix, and the grayscale of each pixel of the multivalued image memory and a pixel adjacent to this pixel. A CPU that sends a lighting control command that changes a lighting condition at a predetermined pitch by calculating a contrast value by squaring the difference between the values, and a lighting control unit that inputs the lighting control command to drive and control the lighting means. The CPU calculates the contrast value of the image picked up by the image pickup means under each illumination condition and performs this process a plurality of times to obtain the illumination with the highest contrast value. A lighting control system characterized by setting conditions.
【請求項2】 被測定対象を照明する照明手段と、 この照明手段により照明された被測定物を撮像する撮像
手段と、 この撮像手段により撮像された画像を濃淡値に変換する
AD変換部と、 このAD変換部から出力される濃淡値をマトリックス状
に配置された画素の濃淡値として一時記憶する多値画像
メモリと、 この多値画像メモリに一時記憶された画像をCRTディ
スプレイに表示すると共に任意の領域を指定する領域指
定手段と、 この指定された領域内の各画素とこの画素に隣接する画
素との濃淡値の差を自乗合算してコントラスト値を算出
すると共に所定ピッチで照明条件を変更する照明制御指
令を送出するCPUと、 この照明制御指令を入力して照明手段を駆動制御する照
明制御部とを備え、 前記CPUは、各照明条件下において前記撮像手段で撮
像された画像の前記コントラスト値を算出すると共にこ
の処理を複数回行い、最もコントラスト値が高い照明条
件を設定することを特徴とする照明制御システム。
2. An illuminating means for illuminating an object to be measured, an image capturing means for capturing an image of an object to be measured illuminated by the illuminating means, and an AD conversion section for converting an image captured by the image capturing means into a gray value. A multivalued image memory for temporarily storing the grayscale values output from the AD converter as the grayscale values of pixels arranged in a matrix, and displaying the image temporarily stored in the multivalued image memory on a CRT display. An area designating means for designating an arbitrary area, and a contrast value is calculated by squaring the difference in gray value between each pixel in the designated area and a pixel adjacent to this pixel, and an illumination condition is set at a predetermined pitch. A CPU for sending a lighting control command to be changed and a lighting control unit for driving and controlling the lighting means by inputting the lighting control command are provided, and the CPU is under each lighting condition. Lighting control system, wherein a serial performed a plurality of times this process to calculate the contrast value of the image captured by the imaging means, for setting the highest contrast value lighting conditions.
【請求項3】 請求項1および2において、前記照明条
件は前記照明手段から照射される照明光量であることを
特徴とする照明制御システム。
3. The illumination control system according to claim 1, wherein the illumination condition is an amount of illumination light emitted from the illumination means.
【請求項4】 請求項1および2において、前記照明条
件は前記照明手段と被測定物との距離であることを特徴
とする照明制御システム。
4. The illumination control system according to claim 1, wherein the illumination condition is a distance between the illumination means and an object to be measured.
【請求項5】 請求項1および2において、前記照明条
件は照明手段の設定角度であることを特徴とする照明制
御システム。
5. The lighting control system according to claim 1, wherein the lighting condition is a set angle of a lighting unit.
【請求項6】 請求項1および2において、前記CPU
は、各照明条件下において前記撮像手段で撮像された画
像の前記コントラスト値を算出すると共にこの処理を複
数回行い、最小自乗法により2次以上の関数をあてはめ
て最もコントラスト値が高い照明条件を設定することを
特徴とする照明制御システム。
6. The CPU according to claim 1,
Calculates the contrast value of the image picked up by the image pickup means under each lighting condition, performs this processing a plurality of times, and applies a quadratic or higher function by the least square method to determine the lighting condition with the highest contrast value. Lighting control system characterized by setting.
【請求項7】 請求項1および2において、前記CPU
は、各照明条件下において前記撮像手段で撮像された画
像の前記コントラスト値を算出すると共にこの処理を複
数回行い、重心を算出することにより最もコントラスト
値が高い照明条件を設定することを特徴とする照明制御
システム。
7. The CPU according to claim 1 or 2,
Is characterized by calculating the contrast value of the image picked up by the image pickup means under each lighting condition and performing this process a plurality of times to set the lighting condition having the highest contrast value by calculating the center of gravity. Lighting control system.
JP8144914A 1996-05-15 1996-05-15 Lighting control system Pending JPH09304034A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP8144914A JPH09304034A (en) 1996-05-15 1996-05-15 Lighting control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP8144914A JPH09304034A (en) 1996-05-15 1996-05-15 Lighting control system

Publications (1)

Publication Number Publication Date
JPH09304034A true JPH09304034A (en) 1997-11-28

Family

ID=15373201

Family Applications (1)

Application Number Title Priority Date Filing Date
JP8144914A Pending JPH09304034A (en) 1996-05-15 1996-05-15 Lighting control system

Country Status (1)

Country Link
JP (1) JPH09304034A (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH1062134A (en) * 1996-08-22 1998-03-06 Matsushita Electric Ind Co Ltd Illumination adjustment method for recognition inspection
KR100495120B1 (en) * 2002-09-26 2005-06-14 (주) 인텍플러스 Apparatus and method for a fast capturing a scan image
JP2007127431A (en) * 2005-11-01 2007-05-24 Fuji Xerox Co Ltd Method and apparatus for detecting end position
EP2078923A1 (en) * 2008-01-11 2009-07-15 Mitutoyo Corporation Illumination light quantity setting method and image measuring Instrument
US7567292B2 (en) 2003-03-12 2009-07-28 Nec Corporation Portable terminal device and method and program for varying light illuminance used therein
JP2011095263A (en) * 2009-10-29 2011-05-12 Mitsutoyo Corp Autofocus video tool for accurate dimensional inspection and method therefor
JP2013057561A (en) * 2011-09-07 2013-03-28 Shibuya Kogyo Co Ltd Method for setting preset value for lighting of article recognition device, and article recognition device
KR101383883B1 (en) * 2008-11-19 2014-04-11 삼성테크윈 주식회사 Lighting brightness for control method
JP2015011364A (en) * 2013-06-26 2015-01-19 富士通株式会社 Illumination adjustment apparatus, illumination adjustment method, and illumination adjustment program

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0634366A (en) * 1992-07-14 1994-02-08 Mitsutoyo Corp Focusing sensing method, and method and device for contactless measurement of displacement using it
JPH07220058A (en) * 1991-07-12 1995-08-18 Omron Corp Method and device for supporting illumination condition setting

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07220058A (en) * 1991-07-12 1995-08-18 Omron Corp Method and device for supporting illumination condition setting
JPH0634366A (en) * 1992-07-14 1994-02-08 Mitsutoyo Corp Focusing sensing method, and method and device for contactless measurement of displacement using it

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH1062134A (en) * 1996-08-22 1998-03-06 Matsushita Electric Ind Co Ltd Illumination adjustment method for recognition inspection
KR100495120B1 (en) * 2002-09-26 2005-06-14 (주) 인텍플러스 Apparatus and method for a fast capturing a scan image
US7567292B2 (en) 2003-03-12 2009-07-28 Nec Corporation Portable terminal device and method and program for varying light illuminance used therein
JP2007127431A (en) * 2005-11-01 2007-05-24 Fuji Xerox Co Ltd Method and apparatus for detecting end position
EP2078923A1 (en) * 2008-01-11 2009-07-15 Mitutoyo Corporation Illumination light quantity setting method and image measuring Instrument
JP2009168510A (en) * 2008-01-11 2009-07-30 Mitsutoyo Corp Method for setting amount of illumination light in image measuring apparatus
US8008610B2 (en) 2008-01-11 2011-08-30 Mitutoyo Corporation Illumination light quantity setting method in image measuring instrument
KR101383883B1 (en) * 2008-11-19 2014-04-11 삼성테크윈 주식회사 Lighting brightness for control method
JP2011095263A (en) * 2009-10-29 2011-05-12 Mitsutoyo Corp Autofocus video tool for accurate dimensional inspection and method therefor
JP2013057561A (en) * 2011-09-07 2013-03-28 Shibuya Kogyo Co Ltd Method for setting preset value for lighting of article recognition device, and article recognition device
JP2015011364A (en) * 2013-06-26 2015-01-19 富士通株式会社 Illumination adjustment apparatus, illumination adjustment method, and illumination adjustment program

Similar Documents

Publication Publication Date Title
US10482592B2 (en) Shape measuring device, structured object manufacturing system, shape measuring method, structured object manufacturing method, shape measuring program, and recording medium
CN103105671B (en) Amplifying observation device
JP5665333B2 (en) Information processing apparatus and information processing apparatus control method
JP6161262B2 (en) LED lighting method and apparatus for image measuring machine
CN101013028A (en) Image processing method and image processor
US7254262B2 (en) Method of optimizing target quantities for optical precision measurement and apparatus therefor
JP2017110991A (en) Measurement system, measurement method, robot control method, robot, robot system, and picking device
US9122048B2 (en) Image processing apparatus and image processing program
JPH11503086A (en) Engraving error detection method and device
JP2014190890A (en) Hardness testing machine and hardness testing method
JPH09304034A (en) Lighting control system
US20100103257A1 (en) System and method for correcting an image
JP6977634B2 (en) Visual inspection equipment, visual inspection methods and programs
CN111928930A (en) 3D visual detection system based on structured light imaging
JP2014153149A (en) Shape measurement device, structure manufacturing system, shape measurement method and program
JP2893078B2 (en) Shading correction method and device
CN115308223A (en) Detection method and system suitable for surface defects of various types of metals
JP2014126381A (en) Shape measurement device, structure fabrication system, shape measurement method, structure fabrication method and shape measurement program
EP2635890B1 (en) Method for automatically adjusting the levels of illumination sources in an optical measurement machine
JP2002286422A (en) Displacement sensor
JP3673076B2 (en) Focus adjustment device for imaging equipment
JP2009058377A (en) Inspection apparatus
JPH1133962A (en) Calibration of three-dimensional position sensor for robot
JP2006208187A (en) Shape quality decision device and method
JP7356802B2 (en) projection device