JP3241093B2 - Shape measuring device - Google Patents

Shape measuring device

Info

Publication number
JP3241093B2
JP3241093B2 JP12341492A JP12341492A JP3241093B2 JP 3241093 B2 JP3241093 B2 JP 3241093B2 JP 12341492 A JP12341492 A JP 12341492A JP 12341492 A JP12341492 A JP 12341492A JP 3241093 B2 JP3241093 B2 JP 3241093B2
Authority
JP
Japan
Prior art keywords
signal
light
measured
dimensional ccd
ccd sensor
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP12341492A
Other languages
Japanese (ja)
Other versions
JPH05312534A (en
Inventor
任晤 岸田
国良 岩田
元寿 今藤
秀一 砂原
昌男 川瀬
修 小関
和則 樋口
新 山本
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tokai Rika Co Ltd
Toyota Motor Corp
Toyota Central R&D Labs Inc
Original Assignee
Tokai Rika Co Ltd
Toyota Motor Corp
Toyota Central R&D Labs 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 Tokai Rika Co Ltd, Toyota Motor Corp, Toyota Central R&D Labs Inc filed Critical Tokai Rika Co Ltd
Priority to JP12341492A priority Critical patent/JP3241093B2/en
Publication of JPH05312534A publication Critical patent/JPH05312534A/en
Application granted granted Critical
Publication of JP3241093B2 publication Critical patent/JP3241093B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Length Measuring Devices By Optical Means (AREA)

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【産業上の利用分野】本発明は、形状測定装置にかか
り、特に、スリット光を被測定面に照射し被測定面から
の反射光を受光することにより被測定面の形状を測定す
る形状測定装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a shape measuring device, and more particularly to a shape measuring device for measuring the shape of a surface to be measured by irradiating a slit light to the surface to be measured and receiving light reflected from the surface to be measured. Related to the device.

【0002】[0002]

【従来の技術】従来より、非接触にて被測定面の凸凹等
の形状を三角測量法を用いて測定する形状測定装置があ
る(特公昭50−36374号公報、特開昭56−13
8204号公報、特開昭57−22508号公報、特開
昭58−52508号公報等)。
2. Description of the Related Art Conventionally, there is a shape measuring apparatus for measuring the shape of a surface to be measured, such as unevenness, in a non-contact manner by using a triangulation method (Japanese Patent Publication No. 50-36374, Japanese Patent Application Laid-Open No.
No. 8204, JP-A-57-22508, JP-A-58-52508, etc.).

【0003】これらの形状測定装置は、スリット状の光
ビーム(以下、スリット光線という)を被測定面へ照射
し、その照射した光の光軸と所定の角度をもって設けら
れたセンサにおける被測定面の反射光の受光位置によっ
て表面形状等を測定する。詳細には図4に示すように、
形状測定装置12は、半導体レーザー50等の光源、コ
リメートレンズ52及びロッドレンズ54等の拡散レン
ズを備えた光源装置62と、受光レンズ56及び2次元
CCDセンサ40等の受光素子を備えた受光装置と、2
次元CCDセンサ40に接続された演算回路10とから
構成される。上記拡散レンズにはロッドレンズ54の他
にシリンドリカルレンズを用いることができる。また、
受光素子には、1次元CCDセンサ等を用いることがで
きる。
These shape measuring devices irradiate a slit-shaped light beam (hereinafter, referred to as a slit light beam) to a surface to be measured, and the surface to be measured in a sensor provided at a predetermined angle with the optical axis of the irradiated light. The surface shape and the like are measured according to the position where the reflected light is received. Specifically, as shown in FIG.
The shape measuring device 12 includes a light source device 62 including a light source such as a semiconductor laser 50, a diffusion lens such as a collimating lens 52 and a rod lens 54, and a light receiving device including a light receiving lens 56 and a light receiving element such as a two-dimensional CCD sensor 40. And 2
And an arithmetic circuit 10 connected to the three-dimensional CCD sensor 40. In addition to the rod lens 54, a cylindrical lens can be used as the diffusion lens. Also,
As the light receiving element, a one-dimensional CCD sensor or the like can be used.

【0004】この形状測定装置12によれば、半導体レ
ーザー50の射出側には、球面レンズで構成されたコリ
メートレンズ52が配設されており、半導体レーザー5
0から射出されるレーザービームがコリメートレンズ5
2により被測定面に集束される。コリメートレンズ52
の射出側にはロッドレンズ54が配設されており、コリ
メートレンズ52から射出されたレーザービームは、ロ
ッドレンズ54に照射される。ロッドレンズ54は、円
柱形状で入射されたレーザービームは円周方向にのみス
リット状に発散される。また、シリンドリカルレンズは
同一の断面凹部(または、凸部)が一方向に連続した柱
状になっており、入射されたレーザービームは断面凹部
が連続した方向と交差するスリット状に発散される。ロ
ッドレンズ54の射出側には被測定面60Aが位置して
おり、ロッドレンズ54から射出されたスリット状のレ
ーザービームが被測定面60Aに向かって照射される。
According to the shape measuring device 12, a collimating lens 52 composed of a spherical lens is disposed on the emission side of the semiconductor laser 50.
Laser beam emitted from 0 is collimated lens 5
2 focuses on the surface to be measured. Collimating lens 52
A rod lens 54 is disposed on the emission side of the laser beam, and the laser beam emitted from the collimator lens 52 is applied to the rod lens 54. In the rod lens 54, the laser beam incident in a cylindrical shape is diverged in a slit shape only in the circumferential direction. Further, the cylindrical lens has the same cross section concave (or convex) section in a column shape continuous in one direction, and the incident laser beam diverges in a slit shape intersecting the direction in which the cross section concave section continues. The measurement surface 60A is located on the emission side of the rod lens 54, and a slit-shaped laser beam emitted from the rod lens 54 is irradiated toward the measurement surface 60A.

【0005】ロッドレンズ54によってスリット状に発
散されたスリット光線は被測定面60Aに照射され、こ
のスリット状に発散された光線と被測定面60Aとの交
点が輝く、すなわち、被測定面60Aの形状に応じた形
状に照明される。被測定面60Aに照射されたスリット
光線は、受光レンズ56を介して、2次元CCDセンサ
40に結像される。従って、この2次元CCDセンサ4
0上には、被測定面60A上の輝線の光の像(以下、ス
リット像という)が結像される。また、この2次元CC
Dセンサ40は、照射されたレーザービームの位置及び
光強度に応じた電気信号を演算回路10に出力するよう
になっている。
The slit light beam diverged in the form of a slit by the rod lens 54 is applied to the surface to be measured 60A, and the intersection between the light beam diverged in a slit shape and the surface to be measured 60A shines. It is illuminated in a shape corresponding to the shape. The slit light beam applied to the surface to be measured 60A is imaged on the two-dimensional CCD sensor 40 via the light receiving lens 56. Therefore, this two-dimensional CCD sensor 4
An image of light of a bright line on the measured surface 60A (hereinafter, referred to as a slit image) is formed on 0. Also, this two-dimensional CC
The D sensor 40 outputs an electric signal corresponding to the position and light intensity of the irradiated laser beam to the arithmetic circuit 10.

【0006】上記受光装置の光軸は光源装置62の光軸
と所定の角度θをもって取り付けられている。このた
め、被測定面60Aが光源装置62の光軸方向に段差が
ある場合には、被測定面60A上の光点の位置は、段差
に応じて光源装置62の光軸方向に変位することにな
り、2次元CCDセンサ40上でのスリット像64は、
図5(1)に示したように、光軸方向の段差が測定方向
(図5紙面水平方向)の変位となって現れることにな
る。この2次元CCDセンサ40の図5紙面水平方向に
対応する任意のライン(走査線)59A、59Bの出力
信号は、図5(2)、(3)に示したようになる。2次
元CCDセンサ40は、このような信号を演算回路10
に出力する。この出力信号の振幅が大きい部位がライン
上のスリット部分になる。すなわち、出力信号の振幅が
大きい部位がラインとスリット像との交点(光点)位置
に対応する。この位置の偏差を求めることによって、求
めたライン間の段差を求めることができる。
[0006] The optical axis of the light receiving device is attached to the optical axis of the light source device 62 at a predetermined angle θ. Therefore, when the measured surface 60A has a step in the optical axis direction of the light source device 62, the position of the light spot on the measured surface 60A is displaced in the optical axis direction of the light source device 62 according to the step. And the slit image 64 on the two-dimensional CCD sensor 40 is
As shown in FIG. 5A, a step in the optical axis direction appears as a displacement in the measurement direction (horizontal direction in FIG. 5). The output signals of arbitrary lines (scanning lines) 59A and 59B corresponding to the horizontal direction of the paper of FIG. 5 of the two-dimensional CCD sensor 40 are as shown in FIGS. 5 (2) and (3). The two-dimensional CCD sensor 40 outputs such a signal to the arithmetic circuit 10.
Output to A portion where the amplitude of the output signal is large is a slit portion on the line. That is, the portion where the amplitude of the output signal is large corresponds to the position of the intersection (light spot) between the line and the slit image. By determining the deviation of this position, the step between the determined lines can be determined.

【0007】従って、演算回路10は、入力された信号
に基づいて、上記2次元CCDセンサ40上の全てのラ
インとスリット像64との交点位置(光点位置)を求め
ることによって、2次元CCDセンサ40上におけるス
リット像64の位置を求め、求めた位置の各々の偏差を
求めて、被測定面60Aの段差を求める。この段差を2
次元CCDセンサ40の全てに亘って求めることによっ
て測定対象物60の形状を測定することができる。
Accordingly, the arithmetic circuit 10 determines the intersection (light spot position) between all the lines on the two-dimensional CCD sensor 40 and the slit image 64 based on the input signal, thereby obtaining the two-dimensional CCD. The position of the slit image 64 on the sensor 40 is obtained, the deviation of each of the obtained positions is obtained, and the step of the measured surface 60A is obtained. This step is 2
The shape of the measurement target 60 can be measured by obtaining the shape over the entirety of the dimensional CCD sensor 40.

【0008】被測定面60A上に照射されるスリット光
線は所定の幅を有しかつ、このスリット光線の幅方向が
測定方向に対応するため、上記2次元CCDセンサ40
上のラインとスリット像64との光点位置はスリット像
の幅による範囲となり、位置を特定する分解能が低くな
る。この分解能を向上させるためには、スリット像の幅
によって定まる光点の位置範囲を特定する必要がある。
この光点位置は、以下の式(1)に示したように、2次
元CCDセンサ40の任意のラインから出力される信号
の加重平均によって求めることができる。すなわち、任
意のラインにおけるスリット像の位置範囲から位置を特
定する場合、2次元CCDセンサ40に照射された各位
置における光量を重みとして位置の加重平均を求める
(図6(1)参照)。これにより、2次元CCDセンサ
40上の光点がずれても、高い分解能で光点の位置を求
めることができる。
The two-dimensional CCD sensor 40 has a predetermined width of the slit light beam irradiated on the surface 60A to be measured, and the width direction of the slit light beam corresponds to the measurement direction.
The position of the light spot between the upper line and the slit image 64 is a range depending on the width of the slit image, and the resolution for specifying the position is low. In order to improve the resolution, it is necessary to specify the position range of the light spot determined by the width of the slit image.
This light spot position can be obtained by a weighted average of signals output from an arbitrary line of the two-dimensional CCD sensor 40 as shown in the following equation (1). That is, when the position is specified from the position range of the slit image in an arbitrary line, a weighted average of the positions is obtained using the light amount at each position irradiated on the two-dimensional CCD sensor 40 as a weight (see FIG. 6A). Thus, even if the light spot on the two-dimensional CCD sensor 40 shifts, the position of the light spot can be obtained with high resolution.

【0009】[0009]

【数1】 (Equation 1)

【0010】但し、i=0、1、・・・ Za:光点位置 Zi :2次元CCDセンサにおける位置 Ii :位置Zi に照射された光量。Here, i = 0, 1,... Za: light spot position Zi: position in the two-dimensional CCD sensor Ii: light quantity irradiated to the position Zi.

【0011】なお、予め測定対象物60の基準面に対応
する2次元CCDセンサ40上の所定の位置を基準位置
と定めると、被測定面60Aの基準位置からの変位に応
じて2次元CCDセンサ40上に像点の変位となって表
れるので、2次元CCDセンサ40上のスリット像位置
に応じて出力される信号に基づいて求めたスリット像6
4の位置と予め設定された基準の光点位置との偏差を求
めることによって、基準面からの被測定面の変位を求め
ることができる。
If a predetermined position on the two-dimensional CCD sensor 40 corresponding to the reference plane of the measuring object 60 is determined in advance as a reference position, the two-dimensional CCD sensor is moved in accordance with the displacement of the measured surface 60A from the reference position. Since it appears as a displacement of the image point on the slit 40, the slit image 6 obtained based on the signal output according to the slit image position on the two-dimensional CCD sensor 40
By calculating the deviation between the position of No. 4 and the preset reference light spot position, the displacement of the measured surface from the reference surface can be obtained.

【0012】しかしながら、上記加重平均法によって光
点位置を求める方法では、被測定面60A上の表面粗さ
や表面の傷、表面反射率等の影響を受け易くなる。すな
わち、被測定面60A上に傷がある場合には、その傷部
における光ビームの乱反射が増加し、結果として図2
(1)に示したように傷部の光量値が大きくなる。この
ため、この出力信号を加重平均すると、傷部に対応する
位置の重みが大きくなり光点位置が2次元CCDセンサ
40上のスリット像の幅の中心位置よりずれて求められ
る。これによって、傷のある部位と傷のない部位との偏
差をとって段差を求めるとばらつきが生じ、適正な測定
値を得ることができないことがある。
However, in the method of obtaining the light spot position by the above-mentioned weighted average method, the light spot position is easily affected by surface roughness, surface scratches, surface reflectance, etc. on the surface 60A to be measured. That is, when there is a flaw on the surface to be measured 60A, diffuse reflection of the light beam at the flaw increases, and as a result, FIG.
As shown in (1), the light amount value of the flaw increases. Therefore, when this output signal is weighted and averaged, the weight of the position corresponding to the flaw is increased, and the position of the light spot is determined to be shifted from the center position of the width of the slit image on the two-dimensional CCD sensor 40. As a result, when a difference between a damaged part and a non-flawed part is calculated to obtain a step, variation occurs, and an appropriate measurement value may not be obtained.

【0013】また、表面の状態が均一でなく、光ビーム
の反射が方向性を有しているような被測定面60Aを測
定する場合には、同一の光量を照射しても2次元CCD
センサ40に照射される光量が一定にならずに、光量の
分布が偏ってしまうため、上記と同様に求める光点位置
がずれてしまう。
When measuring the surface to be measured 60A in which the surface condition is not uniform and the reflection of the light beam has directivity, a two-dimensional CCD is used even if the same light amount is applied.
Since the distribution of the light amount is not uniform but the light amount irradiated on the sensor 40 is not constant, the light spot position to be obtained is shifted as described above.

【0014】上記問題を解決するために、2次元CCD
センサ40から出力される信号を直流分再生回路(クラ
ンパ)によってクランピングして加重平均により位置を
求めるクランプ法が考えられる。この場合には、2次元
CCDセンサ40の出力信号に直流分を加えて、この信
号波形の最小部を所定のレベル、例えば0Vに一致させ
る。上記の方法では、被測定面の全面に均一な乱反射光
が照射されて信号波形の最小部が変動する場合は有効で
あるが、光量の分布が偏った場合や傷等によるノイズの
影響を除去することができない。更に、信号波形の最小
部を所定のレベルにしても、信号波形の最大部にノイズ
が含まれているため、出力信号のSN比が低下し、測定
誤差が生じることがある。
To solve the above problem, a two-dimensional CCD
A clamp method is conceivable in which a signal output from the sensor 40 is clamped by a DC component reproducing circuit (clamper) to obtain a position by a weighted average. In this case, a DC component is added to the output signal of the two-dimensional CCD sensor 40, and the minimum part of this signal waveform is made equal to a predetermined level, for example, 0V. The above method is effective when the entire surface of the surface to be measured is uniformly scattered and the minimum part of the signal waveform fluctuates. However, the effect of noise due to uneven distribution of the light amount or scratches is removed. Can not do it. Furthermore, even if the minimum part of the signal waveform is set to a predetermined level, noise is included in the maximum part of the signal waveform, so that the S / N ratio of the output signal is reduced and a measurement error may occur.

【0015】また、上記の他の方法として、所定のしき
い値Io以上の光ビームが2次元CCDセンサに照射さ
れた位置についてのみ単純な平均を行うことによって光
点を求める平均法が考えられる。この場合には、2次元
CCDセンサの出力信号及びしきい値Io信号をコンパ
レータに入力し、しきい値Io以上でハイレベルになる
信号を出力させ、カウンタを用いて出力信号の立ち上が
り、立ち下がりの時点のカウンタ値を2次元CCDセン
サ上の位置Zb、Zcとする(図6(2)参照)。そし
て、求めた位置Zb、Zcの中心値Zdを、2次元CC
Dセンサ40上におけるスリット像64とラインとの交
点の光点位置として求める。
As another method described above, an averaging method in which a light spot is obtained by performing a simple averaging only at a position where a light beam having a predetermined threshold value Io or more is irradiated on a two-dimensional CCD sensor is considered. . In this case, the output signal of the two-dimensional CCD sensor and the threshold value Io signal are input to the comparator, a signal which becomes high level when the threshold value Io or more is output, and the rising and falling of the output signal is obtained by using the counter. Let the counter values at the time point be positions Zb and Zc on the two-dimensional CCD sensor (see FIG. 6 (2)). Then, the center value Zd of the obtained positions Zb and Zc is represented by a two-dimensional CC.
It is determined as the light spot position at the intersection of the slit image 64 and the line on the D sensor 40.

【0016】しかしながら、上記のようにして求めた中
心位置はカウンタのクロック幅で決定されるため、クロ
ック幅またはクロック幅の1/2より高い分解能を得る
ことができない。この分解能を高くするためには高速の
カウンタを用いなければならない。
However, since the center position obtained as described above is determined by the clock width of the counter, a resolution higher than the clock width or 1/2 of the clock width cannot be obtained. In order to increase the resolution, a high-speed counter must be used.

【0017】[0017]

【発明が解決しようとする課題】本発明は、上記事実を
考慮して、スリット光を照射することによって被測定面
の形状を測定する形状測定装置において、被測定面の表
面の粗さや反射等の状態に拘わらず高分解能で光点位置
を特定することができる形状測定装置の提供を目的とす
る。
SUMMARY OF THE INVENTION The present invention provides a shape measuring apparatus for measuring the shape of a surface to be measured by irradiating slit light in consideration of the above facts. It is an object of the present invention to provide a shape measuring device capable of specifying a light spot position with high resolution irrespective of the state.

【0018】[0018]

【課題を解決するための手段】上記目的を達成するため
に請求項1記載の発明は、被測定面へスリット光を照射
する照射手段と、被測定面で反射された光を受光しかつ
受光位置に応じた光強度信号を出力する位置検出手段
と、受光した光の幅方向の受光位置に応じた光強度が予
め定められた基準値以上のときハイレベルになる比較信
号を出力する比較手段と、前記比較信号を左右対称でか
つ中心を含む領域の大きさが最大になるように波形整形
した整形信号を出力する波形整形手段と、前記整形信号
の光強度に対応する値を重みとして前記整形信号の受光
位置に対応する値の加重平均を演算する加重平均演算手
段と、を備えている。
In order to achieve the above object, the invention according to claim 1 comprises an irradiating means for irradiating slit light to a surface to be measured, a light receiving means for receiving light reflected by the surface to be measured and receiving the light. Position detecting means for outputting a light intensity signal corresponding to the position, and comparing means for outputting a comparison signal which becomes high when the light intensity corresponding to the light receiving position in the width direction of the received light is equal to or higher than a predetermined reference value When a waveform shaping means for the magnitude of the realm comprising a symmetrical at and around the comparison signal and outputs a shaped signal waveform shaping so as to maximize the value corresponding to the light intensity of the shaped signal as the weight Weighted average calculating means for calculating a weighted average of values corresponding to light receiving positions of the shaping signal.

【0019】請求項2記載の発明は、被測定面へスリッ
ト光を照射する照射手段と、被測定面で反射された光を
受光しかつ受光位置に応じた光強度信号を出力する位置
検出手段と、受光した光の幅方向の受光位置に応じた光
強度が、予め定められた基準値以上のときハイレベルに
なる比較信号を出力する比較手段と、前記比較信号を左
右対称でかつ中心を含む領域の大きさが最大になるよう
に波形整形した整形信号を出力する波形整形手段と、前
記光強度信号と、前記整形信号との何れか一方を出力す
る切換手段と、前記切換手段から出力された信号の光強
度に対応する値を重みとして該信号の受光位置に対応す
る値の加重平均を演算する加重平均演算手段と、を備え
ている。
According to a second aspect of the present invention, there is provided an irradiation means for irradiating slit light to a surface to be measured, and a position detecting means for receiving light reflected on the surface to be measured and outputting a light intensity signal corresponding to a light receiving position. And comparison means for outputting a comparison signal that becomes a high level when the light intensity according to the light receiving position in the width direction of the received light is equal to or greater than a predetermined reference value, and the comparison signal is left-right symmetric and centered. a waveform shaping means for outputting a shaping signal magnitude of realm is waveform-shaped to maximize containing, said light intensity signal, and switching means for outputting either one of the adjusting signal from said switching means And a weighted average calculating means for calculating a weighted average of values corresponding to the light receiving positions of the signal using a value corresponding to the light intensity of the output signal as a weight.

【0020】[0020]

【作用】請求項1に記載の発明によれば、被測定面には
照射手段によってスリット光が照射される。位置検出手
段は、被測定面で反射された光を受光しかつ受光位置に
応じた光強度信号を出力する。比較手段は、受光した光
の幅方向の受光位置に応じた光強度が、予め定められた
基準値以上のときハイレベルになる比較信号を出力す
る。波形整形手段は、比較信号が左右対称でかつ中心を
含む領域が最大になるように波形を整形した整形信号を
出力する。このような整形信号としては、立ち上がり勾
配と立ち下がり勾配とが逆の略台形波形や、ガウス分布
の波形がある。加重平均演算手段は、整形信号の光強度
に対応する値を重みとして整形信号の受光位置に対応す
る値の加重平均を演算し、位置検出手段が受光した光の
幅方向の中心位置を求める。このように、左右対称かつ
中心を含む領域の重みを重くして加重平均するため、被
測定面に傷等がある場合や被測定面の表面状態が一様で
ない場合でも、受光した光の中心を含む領域の重みを重
くして中心位置を高い分解能で求めることができる。従
って、被測定面における乱反射の影響による検出位置の
ずれを防止することができる。さらに、上記整形信号は
基準値以上のときハイレベルにしてノイズを除去してい
るため、クランパによってクランピングされた信号のよ
うに、SN比が低下することなく、中心位置を精度よく
求めることができる。
According to the present invention, the surface to be measured is irradiated with the slit light by the irradiation means. The position detection means receives the light reflected on the surface to be measured and outputs a light intensity signal corresponding to the light receiving position. The comparing means outputs a comparison signal which becomes a high level when the light intensity corresponding to the light receiving position in the width direction of the received light is equal to or higher than a predetermined reference value. The waveform shaping means outputs a shaped signal whose waveform is shaped such that the comparison signal is bilaterally symmetric and the region including the center is maximized. Such shaped signals include a substantially trapezoidal waveform in which the rising gradient and the falling gradient are opposite, and a Gaussian distribution waveform. The weighted average calculating means calculates a weighted average of the values corresponding to the light receiving positions of the shaping signal using the value corresponding to the light intensity of the shaping signal as a weight, and obtains the center position in the width direction of the light received by the position detecting means. As described above, since the weight of the region including the center which is symmetrical and including the center is weighted and weighted, the center of the received light is obtained even when the surface to be measured has a flaw or the surface condition is not uniform. The center position can be obtained with high resolution by increasing the weight of the region including. Therefore, it is possible to prevent the detection position from being shifted due to the influence of irregular reflection on the surface to be measured. Further, since the shaped signal is set to a high level when the signal is equal to or higher than the reference value to remove noise, it is possible to accurately determine the center position without lowering the SN ratio unlike a signal clamped by a clamper. it can.

【0021】上記で説明したように、位置検出手段から
出力される信号を整形しているため、処理時間が長くな
る場合がある。また、被測定面の表面の状態によって
は、信号波形を整形する必要がない場合もある。
As described above, since the signal output from the position detecting means is shaped, the processing time may be long. Also, depending on the state of the surface to be measured, it may not be necessary to shape the signal waveform.

【0022】そこで、請求項2に記載した発明の切換手
段は、光強度信号と、整形信号との何れか一方を出力す
る。加重平均演算手段は、切換手段から出力された信号
の光強度に対応する値を重みとして受光位置に対応する
加重平均を演算する。これによって、光強度信号に対応
する値をそのまま重みとして光強度信号の受光位置に対
応する値を演算するか、整形信号の光強度信号に対応す
る値を重みとして整形信号の受光位置に対応する値を演
算するかを切換手段によって切り換えることができる。
従って、被測定面の表面の状態による影響が少ない場合
や短い時間で処理したい場合は、加重平均手段に入力さ
れる信号を光強度信号に切り換えることにより、処理時
間が長くなることなく、中心位置を求めることができ
る。また、高い分解能の測定が必要な場合には、整形信
号が加重平均手段に入力されるように切り換えることに
よって実現できる。従って、被測定面の表面の状態に応
じて最適な処理時間で処理することができる。
Therefore, the switching means of the present invention outputs one of a light intensity signal and a shaping signal. The weighted average calculating means calculates a weighted average corresponding to the light receiving position using a value corresponding to the light intensity of the signal output from the switching means as a weight. Thereby, the value corresponding to the light receiving position of the light intensity signal is calculated using the value corresponding to the light intensity signal as it is as a weight, or the value corresponding to the light intensity signal of the shaping signal is used as the weight to correspond to the light receiving position of the shaping signal. Whether to calculate the value can be switched by the switching means.
Therefore, when the influence of the surface condition of the surface to be measured is small or when it is desired to perform processing in a short time, the signal input to the weighted averaging means is switched to the light intensity signal so that the processing time is not increased and the center position is not increased. Can be requested. When high-resolution measurement is required, it can be realized by switching so that the shaped signal is input to the weighted averaging means. Therefore, processing can be performed in an optimum processing time according to the state of the surface of the surface to be measured.

【0023】[0023]

【実施例】以下、図面を参照して、本発明の実施例を詳
細に説明する。本実施例は、照射手段としての光源装置
62から射出されたスリット光線が被測定面60Aで反
射することによって得られるスリット像の光強度及び位
置を、位置検出手段としての2次元CCDセンサ40に
より検出するようにしたものである。なお、本実施例に
おける、2次元CCDセンサ40上の位置は、2次元C
CDセンサ40に所定の周期(水平及び垂直)の同期型
センサを用い、この水平同期信号HD、及び垂直同期信
号VDの立ち上がり(立ち下がり)からの経過した時刻
に2次元CCDセンサ40上の位置を対応させることに
よって特定することができる。また、本実施例に利用し
た形状測定装置12は、図4に示した従来例と略同様の
ため、同一部分には同一符号を付して詳細な説明は省略
する。
Embodiments of the present invention will be described below in detail with reference to the drawings. In the present embodiment, the light intensity and the position of the slit image obtained by the reflection of the slit light beam emitted from the light source device 62 as the irradiation means on the surface to be measured 60A are determined by the two-dimensional CCD sensor 40 as the position detection means. This is to detect. In the present embodiment, the position on the two-dimensional CCD sensor 40 is
A synchronous sensor having a predetermined cycle (horizontal and vertical) is used as the CD sensor 40, and the position on the two-dimensional CCD sensor 40 is determined at the time when the horizontal synchronizing signal HD and the vertical synchronizing signal VD rise (fall). Can be specified. Further, the shape measuring device 12 used in the present embodiment is substantially the same as the conventional example shown in FIG. 4, and therefore, the same portions are denoted by the same reference characters and detailed description is omitted.

【0024】図1に示したように、演算回路10は、増
幅回路(AMP)32を備えており、増幅回路32の入
力端は2次元CCDセンサ40に接続されている。増幅
回路32は2次元CCDセンサ40から出力された信号
を所定の増幅率で増幅して出力する。増幅回路32の出
力端は切換手段としてのスイッチ14の一方の入力端及
び比較手段としてのコンパレータ(CMP)18の一方
の入力端に接続されている。コンパレータ18の他方の
入力端には比較の基準となるしきい値の電圧(Vth)が
入力されるように接続されている。このしきい値の電圧
Vthは、予めノイズによる2次元CCDセンサ40の出
力値を越えた値を定めることが好ましい。コンパレータ
18の出力端は所定の時定数の充放電回路から構成され
た波形成形手段としての整形回路16の入力端に接続さ
れている。整形回路16の出力端はスイッチ14の他方
の入力端に接続されている。スイッチ14の出力端はア
ナログデジタル変換器(A/D)34の入力端に接続さ
れており、アナログデジタル変換器34の出力端は荷重
平均演算手段としての加重平均回路20に接続されてい
る。
As shown in FIG. 1, the arithmetic circuit 10 includes an amplifier circuit (AMP) 32, and an input terminal of the amplifier circuit 32 is connected to the two-dimensional CCD sensor 40. The amplification circuit 32 amplifies the signal output from the two-dimensional CCD sensor 40 at a predetermined amplification rate and outputs the signal. The output terminal of the amplifier circuit 32 is connected to one input terminal of the switch 14 as switching means and one input terminal of a comparator (CMP) 18 as comparison means. The other input terminal of the comparator 18 is connected so that a threshold voltage (Vth) serving as a reference for comparison is input. It is preferable that the threshold voltage Vth be determined in advance so as to exceed the output value of the two-dimensional CCD sensor 40 due to noise. An output terminal of the comparator 18 is connected to an input terminal of a shaping circuit 16 as a waveform shaping means constituted by a charging / discharging circuit having a predetermined time constant. The output terminal of the shaping circuit 16 is connected to the other input terminal of the switch 14. An output terminal of the switch 14 is connected to an input terminal of an analog / digital converter (A / D) 34, and an output terminal of the analog / digital converter 34 is connected to a weighted average circuit 20 as a weighted average calculating means.

【0025】加重平均回路20は、中央演算処理装置
(CPU)30、ランダムアクセスメモリ(RAM)2
8及びリードオンリーメモリ(ROM)26を備えたマ
イクロコンピュータで構成されており、これらはバス2
4によって接続されデータ及びコマンドが相互にやりと
りが可能になっている。また、加重平均回路20は、外
部の装置との入出力を行なう入出力回路(以下、I/
O)22を備えており、I/O22はバス24に接続さ
れている。I/O22には、信号線42の一方が接続さ
れており、信号線42の他方はスイッチ14の切り換え
を検出する切換センサ15に接続されている。この切換
センサ15には、スイッチ14の状態に応じた信号、例
えば、スイッチ14が増幅回路32とアナログデジタル
変換器34とを接続した通過側Fの状態のときローレベ
ル、整形回路16とアナログデジタル変換器34とを接
続した補正側Eの状態のときハイレベルの何れかの信号
を出力する(図1参照)。また、I/O22には、出力
装置36が接続されており、加重平均回路20で求めた
位置を表示、印刷または他の演算装置に出力可能になっ
ている。
The weighted average circuit 20 includes a central processing unit (CPU) 30, a random access memory (RAM) 2
8 and a microcomputer having a read-only memory (ROM) 26.
4 and the data and commands can be exchanged with each other. The weighted average circuit 20 includes an input / output circuit (hereinafter referred to as an I / O circuit) for performing input / output with an external device.
O) 22, and the I / O 22 is connected to the bus 24. One of the signal lines 42 is connected to the I / O 22, and the other of the signal lines 42 is connected to the switching sensor 15 that detects switching of the switch 14. The switching sensor 15 has a signal corresponding to the state of the switch 14, for example, a low level when the switch 14 is in the state of the passing side F where the amplifier circuit 32 and the analog-to-digital converter 34 are connected, and the shaping circuit 16 and the analog-digital In the state of the correction side E connected to the converter 34, any signal of a high level is output (see FIG. 1). An output device 36 is connected to the I / O 22 so that the position obtained by the weighted average circuit 20 can be displayed, printed, or output to another arithmetic device.

【0026】以下、本実施例の作用を説明する。半導体
レーザー50からレーザービームが射出されると、コリ
メートレンズ52及びロッドレンズ54を介して被測定
面60Aに照射される。ロッドレンズ54から射出され
るレーザービームは、スリット状に発散され、被測定面
60Aには、スリット状のレーザービーム(スリット光
線)が照射される。被測定面60Aに照射されたスリッ
ト光線の輝線は、受光レンズ56により集光され2次元
CCDセンサ40上に、被測定面60Aの段差に応じた
スリット像64として結像される。2次元CCDセンサ
40はスリット像64の位置及び光強度に応じた検出信
号を演算回路10へ出力する(図4参照)。
The operation of this embodiment will be described below. When a laser beam is emitted from the semiconductor laser 50, the laser beam is applied to the measured surface 60A via the collimating lens 52 and the rod lens 54. The laser beam emitted from the rod lens 54 is diverged in a slit shape, and the measured surface 60A is irradiated with a slit-shaped laser beam (slit beam). The bright line of the slit light beam applied to the measured surface 60A is condensed by the light receiving lens 56 and formed on the two-dimensional CCD sensor 40 as a slit image 64 corresponding to the step of the measured surface 60A. The two-dimensional CCD sensor 40 outputs a detection signal corresponding to the position of the slit image 64 and the light intensity to the arithmetic circuit 10 (see FIG. 4).

【0027】演算回路10に入力されるスリット像64
の検出信号は、増幅回路32によって所定の増幅率で増
幅されてコンパレータ18に入力される。コンパレータ
18は、2つの入力信号、すなわち、増幅回路32の出
力信号としきい値電圧Vthの信号とを比較して、増幅回
路32の出力信号がしきい値電圧Vth以上のレベルのと
きにハイレベルの信号を出力しかつしきい値電圧Vth未
満のレベルのときローレベルの信号を出力する(図2
(2)参照)。コンパレータ18から出力された信号
は、整形回路16によって所定の時定数に応じて波形整
形される。すなわち、整形回路16では、コンパレータ
18から出力される信号のレベルがローレベルからハイ
レベルになるときは所定の時定数に応じて充電され、ハ
イレベルからローレベルになるときはこれを放電する。
これにより、整形回路16は、コンパレータ18から出
力される信号のレベルがローレベルからハイレベルにな
るときは徐々にレベルが増加する信号を出力し、ハイレ
ベルからローレベルになるときは徐々にレベルが減少す
る信号を出力する。従って、整形回路16から出力され
る信号は、時定数に応じて整形した滑らかな信号になる
(図2(3)参照)。
The slit image 64 input to the arithmetic circuit 10
Is amplified at a predetermined amplification rate by the amplifier circuit 32 and input to the comparator 18. The comparator 18 compares two input signals, that is, the output signal of the amplifier circuit 32 and the signal of the threshold voltage Vth, and when the output signal of the amplifier circuit 32 is at a level higher than the threshold voltage Vth, 2 and outputs a low level signal when the level is lower than the threshold voltage Vth (FIG. 2).
(See (2)). The waveform of the signal output from the comparator 18 is shaped by the shaping circuit 16 according to a predetermined time constant. That is, the shaping circuit 16 is charged according to a predetermined time constant when the level of the signal output from the comparator 18 changes from a low level to a high level, and discharges the signal when the level changes from a high level to a low level.
Accordingly, the shaping circuit 16 outputs a signal whose level gradually increases when the level of the signal output from the comparator 18 changes from low level to high level, and gradually increases the level when the level changes from high level to low level. Is output. Therefore, the signal output from the shaping circuit 16 becomes a smooth signal shaped according to the time constant (see FIG. 2 (3)).

【0028】整形回路16から出力される信号は、アナ
ログデジタル変換器34によって所定の時間でサンプリ
ングされたアナログ信号に応じた値のデジタル信号に変
換される。アナログデジタル変換器34で変換されたデ
ジタル信号は加重平均回路20に入力される。
The signal output from the shaping circuit 16 is converted by the analog-to-digital converter 34 into a digital signal having a value corresponding to the analog signal sampled at a predetermined time. The digital signal converted by the analog-to-digital converter 34 is input to the weighted average circuit 20.

【0029】加重平均回路20は、詳細は後述するが2
次元CCDセンサ40の1ライン(走査線)分の入力さ
れた信号に基づいて加重平均を行うことによって1ライ
ン上のスリット像64の幅の中心位置(加重中心値)を
求める。この中心位置を全てのラインについて求め、ス
リット像の中心位置の偏差を求める。この偏差は被測定
面の段差に対応するため、ラインの位置と偏差とにより
被測定面の形状を求めることができる。
The weighted averaging circuit 20 will be described in detail later.
The center position (weighted center value) of the width of the slit image 64 on one line is obtained by performing weighted averaging based on the input signals for one line (scanning line) of the dimensional CCD sensor 40. This center position is obtained for all the lines, and the deviation of the center position of the slit image is obtained. Since this deviation corresponds to a step on the surface to be measured, the shape of the surface to be measured can be obtained from the position and deviation of the line.

【0030】次に、加重平均回路20の作動について図
3に示したフローチャートを参照して説明する。
Next, the operation of the weighted average circuit 20 will be described with reference to the flowchart shown in FIG.

【0031】先ず、ステップ102では、本ルーチンで
使用される変数の初期値を設定する。すなわち、フラグ
Flagをリセットし、カウンタ値としてi、jに1をセッ
トする。また、Io =0、遅延時間Tth、変数Ts 、最
大サンプリング回数imax を取り込む。
First, at step 102, initial values of variables used in this routine are set. That is, the flag
The flag is reset and i and j are set to 1 as counter values. Also, Io = 0, delay time Tth, variable Ts, and maximum sampling number imax are taken in.

【0032】なお、フラグFlagは、整形回路16とアナ
ログデジタル変換器34とが接続状態にあると共に、整
形回路16から出力される信号が所定の時定数で定まる
時間を経過した状態がセット(Flag=1)、そうでない
場合がリセット(Flag=0)に対応する。カウンタ値
i、jは、2次元CCDセンサ40の水平同期信号(H
D)の立ち上がり(または立ち下がり)からの経過時間
を所定時間でサンプリングしたサンプル回数である。こ
のサンプリング時間を2次元CCDセンサ40の1CC
D素子(ピクセル)に対応するように換算することによ
って、2次元CCDセンサ40上のピクセル毎の位置に
対応させることができる。
The flag is set to a state in which the shaping circuit 16 and the analog-to-digital converter 34 are in a connected state and a signal output from the shaping circuit 16 has passed a time determined by a predetermined time constant. = 1), otherwise corresponds to reset (Flag = 0). The counter values i and j are the horizontal synchronization signals (H
This is the number of samples obtained by sampling the elapsed time from the rise (or fall) of D) at a predetermined time. This sampling time is set to 1 CC of the two-dimensional CCD sensor 40.
By converting to correspond to the D element (pixel), it is possible to correspond to the position of each pixel on the two-dimensional CCD sensor 40.

【0033】また、遅延時間Tthは、整形回路16の時
定数で定まる立ち上がり信号の到達遅延時間を表してい
る。変数Ts は、立ち上がり時刻を示す変数である。最
大測定サンプリング回数imax は、水平同期信号の周期
(1ライン)を上記所定時間でサンプリングした回数で
ある。なお、2次元CCDセンサ40の1ピクセルに時
間を対応させ1ラインが有するCCD素子の数を換算す
ることによって、2次元CCDセンサ40の1ライン上
のCCD素子の総和を用いることができる。
The delay time Tth represents the arrival delay time of the rising signal determined by the time constant of the shaping circuit 16. The variable Ts is a variable indicating the rising time. The maximum measurement sampling number imax is the number of times the period (one line) of the horizontal synchronizing signal is sampled for the above-mentioned predetermined time. It is to be noted that the total sum of the CCD elements on one line of the two-dimensional CCD sensor 40 can be used by converting the number of CCD elements on one line according to the time corresponding to one pixel of the two-dimensional CCD sensor 40.

【0034】次のステップ104では、入力される信号
の2次元CCDセンサ40の1ラインについて時刻Ti
及び時刻Tiのときの光量Ijを記憶し、ステップ10
6へ進む。次のステップ106では、現在のカウンタ値
i,jの時刻Ti及び光量Ijを取り込み、ステップ1
08へ進む。
In the next step 104, the time Ti is set for one line of the two-dimensional CCD sensor 40 of the input signal.
And the light amount Ij at the time Ti is stored, and
Proceed to 6. In the next step 106, the time Ti and the light quantity Ij of the current counter values i and j are fetched, and
Proceed to 08.

【0035】ステップ108では、現在のカウンタ値
i,jに対する時刻Tiの光量Ijが0を越えかつ前回
の光量Ij-1 が0か否かを判断することによって、現在
の時刻Tiが立ち上がり時刻か否かを判断する。立ち上
がり時刻の場合は、ステップ110において現在取り込
んだ時刻Tiを立ち上がり時刻を表す変数Tsにセット
し、ステップ112へ進む。
In step 108, it is determined whether or not the light quantity Ij at the time Ti with respect to the current counter values i and j exceeds 0 and the previous light quantity Ij -1 is 0. It is determined whether or not. In the case of the rising time, the time Ti currently captured in step 110 is set as a variable Ts representing the rising time, and the process proceeds to step 112.

【0036】ステップ112では、操作者がスイッチ1
4を切り換えた後に切換センサ15から出力される信号
によってスイッチ14の状態が補正側Eか通過側Fかを
判断する。すなわち、アナログデジタル変換器34に入
力された信号が直接増幅回路32から出力された信号
か、増幅回路32から出力された信号が整形回路16を
介して出力された信号か否かを判断する。通過側Fの場
合にはステップ114へ進み、加重平均回路20によっ
て入力された信号をそのまま加重平均する。
In step 112, the operator operates switch 1
After switching 4, the switch 14 determines whether the state of the switch 14 is the correction side E or the passing side F based on a signal output from the switching sensor 15. That is, it is determined whether the signal input to the analog-to-digital converter 34 is a signal output directly from the amplifier circuit 32 or a signal output from the amplifier circuit 32 is a signal output via the shaping circuit 16. In the case of the passing side F, the process proceeds to step 114, where the signal input by the weighted averaging circuit 20 is directly weighted and averaged.

【0037】すなわち、ステップ114では、S=S+
Ijを演算することによって現在のカウンタ値iに対す
る時刻までの光量Iの総和を演算し、ステップ116へ
進む。次のステップ116では、T=T+Ij・Tiを
演算することによって時刻Tに光量Iで重み付けされた
総和を演算する。
That is, in step 114, S = S +
By calculating Ij, the total sum of the light amounts I up to the time with respect to the current counter value i is calculated. In the next step 116, the total sum weighted by the light quantity I at time T is calculated by calculating T = T + Ij · Ti.

【0038】上記演算が終了するとステップ118にお
いて、メモリされたデータが終了したか否かを判断する
ことによって1ラインについて上記処理が終了したか否
かを判断し、終了でない場合にはステップ120におい
て、i及びjを1インクリメントし、ステップ106へ
戻り、上記の処理を繰り返す。
When the above operation is completed, in step 118, it is determined whether or not the above processing has been completed for one line by determining whether or not the stored data has been completed. , I and j are incremented by 1, and the process returns to step 106 to repeat the above processing.

【0039】1ラインの処理が終了すると、ステップ1
22において、上記求めた各総和からTc=T/Sを演
算することによって時間についての加重平均値Tcを求
める。求めた値Tcを2次元CCDセンサ40上に対応
する位置に換算する。これにより、2次元CCDセンサ
40上の位置を求めることができる。
When the processing of one line is completed, step 1
At 22, a weighted average value Tc with respect to time is obtained by calculating Tc = T / S from the respective sums obtained above. The obtained value Tc is converted into a position corresponding to the position on the two-dimensional CCD sensor 40. Thereby, the position on the two-dimensional CCD sensor 40 can be obtained.

【0040】一方、ステップ112において、スイッチ
14が補正側Eと判断された場合にはステップ124へ
進む。
On the other hand, if it is determined in step 112 that the switch 14 is on the correction side E, the process proceeds to step 124.

【0041】ステップ124では、Ti−Ts>Tthか
否かを判断することによって立ち上がり時刻Tsから整
形回路16の時定数で定まる遅延時間Tthを経過したか
否かを判断する。遅延時間Tthを経過していない場合に
はステップ114へ進み、上記と同様に各総和を求め
る。経過した場合にはステップ126において、フラグ
Flag=1か否かを判断することによりスイッチ14がセ
ットか否かを判断する。フラグFlagがセットの場合に
は、スイッチ14が補正側Eであると共に、整形回路1
6から出力される信号が既に遅延時間Tthを経過した状
態であるため、ステップ114へ進み、上記と同様に各
総和を求める。フラグFlagがリセットの場合には、スイ
ッチ14が補正側Eであると共に、整形回路16から出
力される信号が遅延時間Tthを経過した当初の状態であ
るため、ステップ128において、j=j+Tthを演算
すると共に演算されたカウントの光量Ijを読み取る。
読み取りが終了するとフラグFlagをセットしてステップ
114へ進む。次に、上記と同様に各総和を演算し(ス
テップ114、116)、1ラインについて処理を繰り
返す(ステップ118、120)。1ラインの処理が終
了すると、求めた各総和から時間についての加重平均値
Tcを求め(ステップ122)、求めた値Tcを2次元
CCDセンサ40上に対応する位置に換算する。これに
より、2次元CCDセンサ40上の位置を求めることが
できる。
In step 124, it is determined whether or not Ti-Ts> Tth to determine whether or not a delay time Tth determined by the time constant of the shaping circuit 16 has elapsed from the rising time Ts. If the delay time Tth has not elapsed, the process proceeds to step 114, and each sum is obtained in the same manner as described above. If the time has elapsed, at step 126, the flag
It is determined whether or not the switch 14 is set by determining whether or not Flag = 1. When the flag is set, the switch 14 is on the correction side E and the shaping circuit 1 is set.
Since the signal output from No. 6 has already passed the delay time Tth, the process proceeds to step 114, and the respective sums are obtained in the same manner as described above. If the flag is reset, the switch 14 is on the correction side E, and the signal output from the shaping circuit 16 is in the initial state after the delay time Tth has elapsed. Therefore, in step 128, j = j + Tth is calculated. At the same time, the calculated light amount Ij of the count is read.
When the reading is completed, the flag is set, and the routine proceeds to step 114. Next, the respective sums are calculated in the same manner as described above (steps 114 and 116), and the processing is repeated for one line (steps 118 and 120). When the processing of one line is completed, a weighted average value Tc with respect to time is obtained from each of the obtained sums (step 122), and the obtained value Tc is converted into a position corresponding to the position on the two-dimensional CCD sensor 40. Thereby, the position on the two-dimensional CCD sensor 40 can be obtained.

【0042】このように、スイッチ14が補正側Eで、
2次元CCDセンサ40から出力された信号(図2
(1)参照)がコンパレータ18及び整形回路16を介
して加重平均回路20に入力された場合は、時間Tthを
経過した後、時間Tth進んだときの時刻の光量Ijによ
って時刻Tiに重みが付される。従って、加重平均によ
って求める時間は、整形回路16で時間Tthだけ遅延さ
れた総時間Txo(図2(3)参照)が補正され、所定の
光量以上の光が2次元CCDセンサ40に照射された位
置間に対応する時間Tx(図2(2)参照)に等価にな
る。これによって、図2(4)に示したように、時間T
xの間で立ち上がり及び立ち下がりが滑らかになる信号
と等価な信号として加重平均を求めることができる。こ
のため、2次元CCDセンサ40に照射されたスリット
像64の中心位置を、精度良く求めることができる。
As described above, when the switch 14 is on the correction side E,
The signal output from the two-dimensional CCD sensor 40 (FIG. 2
(See (1)) is input to the weighted average circuit 20 via the comparator 18 and the shaping circuit 16, after the time Tth has elapsed, the time Ti is weighted by the light amount Ij at the time when the time Tth has advanced. Is done. Therefore, the time obtained by the weighted average is corrected by the total time Txo (see FIG. 2 (3)) delayed by the time Tth in the shaping circuit 16, and the light having a predetermined light amount or more is irradiated on the two-dimensional CCD sensor 40. It becomes equivalent to the time Tx corresponding to the position (see FIG. 2 (2)). As a result, as shown in FIG.
A weighted average can be obtained as a signal equivalent to a signal whose rise and fall become smooth between x. Therefore, the center position of the slit image 64 irradiated on the two-dimensional CCD sensor 40 can be obtained with high accuracy.

【0043】以上説明したように、演算回路10は、1
ラインについての入力された信号に基づいて加重平均を
行うことによってスリット像64の幅の中心位置を求め
る。求めたスリット像の中心位置の偏差を全てのライン
について求めることによって、被測定面の段差を求める
ことができる。このように、本実施例の形状測定装置1
2では、2次元CCDセンサ40の出力信号に基づいて
演算回路10によって被測定面60Aの段差を算出す
る。
As described above, the arithmetic circuit 10 includes one
The center position of the width of the slit image 64 is obtained by performing weighted averaging based on the input signal for the line. By obtaining the deviation of the center position of the obtained slit image for all the lines, it is possible to obtain the step on the surface to be measured. As described above, the shape measuring device 1 of the present embodiment
In step 2, the arithmetic circuit 10 calculates the step on the measured surface 60A based on the output signal of the two-dimensional CCD sensor 40.

【0044】本実施例では、スリット像64の幅の中心
位置を求める場合に、基準値以上の光量が照射された位
置間で立ち上がり及び立ち下がりが滑らかかつ対称な信
号に補正して、この対称な信号の加重平均をとるので、
傷等の影響で光量の分布が異なっても、ずれることはな
く確実かつ高い分解能で、中心位置を求めることができ
る。従って、求めたスリット像の位置は、実際の位置に
対応して適正に求められ、最適な測定対象物の形状を得
ることができる。
In the present embodiment, when the center position of the width of the slit image 64 is obtained, a signal whose rise and fall are smooth and symmetric between positions irradiated with a light amount equal to or more than the reference value is corrected. The weighted average of the signals
Even if the distribution of light amount is different due to the influence of a flaw or the like, the center position can be obtained reliably and with high resolution without deviation. Therefore, the determined position of the slit image is appropriately determined corresponding to the actual position, and the optimum shape of the measurement object can be obtained.

【0045】なお、本実施例ではロッドレンズを利用し
てスリット状の光を得る例について説明したが、スリッ
ト状の光を得る素子としてシリンドリカルレンズ、シリ
ンドリカルミラー等を用いることもでき、回転多面鏡等
のレーザービームをスキャンすることによりスリット状
の光を得ることもできる。
In this embodiment, an example of obtaining slit-like light using a rod lens has been described. However, a cylindrical lens, a cylindrical mirror, or the like may be used as an element for obtaining slit-like light. It is also possible to obtain a slit-like light by scanning a laser beam such as.

【0046】また、本実施例では受光素子として2次元
CCDセンサを用いた場合について説明したが、2次元
CCDセンサに限定されるものではなく、1次元CCD
センサ、撮像管を用いたテレビジョンシステムによる位
置検出方法を用いてセンサ上で2次元の位置を出力する
ことのできる素子を利用してもよい。
In this embodiment, the case where a two-dimensional CCD sensor is used as the light receiving element has been described. However, the present invention is not limited to the two-dimensional CCD sensor.
An element that can output a two-dimensional position on the sensor using a position detection method by a television system using a sensor and an image pickup tube may be used.

【0047】また、本実施例では、スイッチを切り換え
ることによって出力される制御信号に基づいて加重平均
回路は補正を行うようにしたが、本発明はこれに限定さ
れるものではなく、常時コンパレータ及び整形回路を通
過した2次元CCDセンサから出力される信号を、加重
平均回路に入力するようにしてもよい。
In this embodiment, the weighted averaging circuit performs the correction based on the control signal output by switching the switch. However, the present invention is not limited to this. A signal output from the two-dimensional CCD sensor that has passed through the shaping circuit may be input to the weighted averaging circuit.

【0048】また、本実施例では、操作者によってスイ
ッチを切り換えた場合の例について説明したが、本発明
はこれに限定されるものではなく、スイッチを自動的に
切り換えることによって加重平均回路に入力する信号の
波形を整形してもよい。この場合は、制御信号が入力さ
れることによってオンオフするスイッチ、例えばアナロ
グスイッチを上記実施例に用いたスイッチと置き換え
る。このスイッチは、制御信号が入力されることによっ
て、2次元CCDセンサの出力信号がそのまま加重平均
回路へ出力される状態からコンパレータ及び整形回路に
よって波形整形された信号が加重平均回路へ出力される
状態に切り換わるようにする。この場合、先ず、2次元
CCDセンサの出力信号をそのままアナログデジタル変
換して加重平均回路によって加重平均する。このとき、
2次元CCDセンサに照射された位置についてのみ平均
する。または、重みを1(光量を全て1)に対応させて
加重平均する。この各演算値を比較し異なる場合に入力
波形が対称でないと判断し、スイッチに制御信号を出力
する。これによって、スイッチが作動し、波形が整形さ
れた信号を加重平均回路へ出力することができる。
In this embodiment, the case where the switch is switched by the operator has been described. However, the present invention is not limited to this, and the input to the weighted average circuit can be performed by automatically switching the switch. May be shaped. In this case, a switch that turns on and off when a control signal is input, for example, an analog switch is replaced with the switch used in the above embodiment. This switch changes from a state where the output signal of the two-dimensional CCD sensor is directly output to the weighted averaging circuit when a control signal is input, to a state where a signal whose waveform is shaped by the comparator and the shaping circuit is output to the weighted averaging circuit. To switch to. In this case, first, the output signal of the two-dimensional CCD sensor is converted from analog to digital as it is and weighted and averaged by a weighted averaging circuit. At this time,
The average is obtained only for the position irradiated to the two-dimensional CCD sensor. Alternatively, weighted averaging is performed with the weight corresponding to 1 (all light amounts are 1). The calculated values are compared, and if they are different, it is determined that the input waveform is not symmetrical, and a control signal is output to the switch. As a result, the switch is operated, and the signal whose waveform has been shaped can be output to the weighted average circuit.

【0049】[0049]

【発明の効果】以上説明したように請求項1に記載の発
明によれば、被測定面の表面の状態に拘わらず、SN比
が低下することなく、高い分解能で光の中心位置を求め
て被測定面の形状を測定することができる、という優れ
た効果を有する。
As described above, according to the first aspect of the present invention, the center position of the light can be obtained with high resolution without lowering the SN ratio regardless of the state of the surface of the surface to be measured. It has an excellent effect that the shape of the surface to be measured can be measured.

【0050】請求項2に記載の発明によれば、加重平均
手段に入力される信号を光強度信号か整形信号かに何れ
かを出力することによって、最適な処理時間で処理する
ことができ、また被測定面の表面の状態に応じて処理す
ることができる、という優れた効果を有する。
According to the second aspect of the present invention, the signal input to the weighted averaging means can be processed in an optimum processing time by outputting either a light intensity signal or a shaped signal. In addition, there is an excellent effect that processing can be performed according to the state of the surface to be measured.

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

【図1】本発明の実施例にかかる形状測定装置の構成を
示すブロック図である。
FIG. 1 is a block diagram showing a configuration of a shape measuring apparatus according to an embodiment of the present invention.

【図2】(1)は、2次元CCDセンサ(受光面)上の
1ラインにおける位置と光量との関係を示す線図であ
る。(2)は、コンパレータの出力信号波形を示す線図
である。(3)は、整形回路の出力信号波形を示す線図
である。(4)は、加重平均回路における仮想的なスリ
ット像に対する信号波形を示す線図である。
FIG. 2A is a diagram illustrating a relationship between a position on one line on a two-dimensional CCD sensor (light receiving surface) and a light amount. (2) is a diagram showing an output signal waveform of the comparator. (3) is a diagram showing an output signal waveform of the shaping circuit. (4) is a diagram showing a signal waveform for a virtual slit image in the weighted average circuit.

【図3】加重平均処理の演算処理の流れを示すフローチ
ャートである。
FIG. 3 is a flowchart illustrating a flow of a calculation process of a weighted average process.

【図4】形状測定装置の概略構成を示す斜視図である。FIG. 4 is a perspective view showing a schematic configuration of a shape measuring device.

【図5】(1)は、形状測定装置の2次元CCDセンサ
(受光面)上におけるレーザービームの照射状態を示す
線図である。(2)、(3)は、2次元CCDセンサの
出力信号を示す線図である。
FIG. 5A is a diagram showing an irradiation state of a laser beam on a two-dimensional CCD sensor (light receiving surface) of the shape measuring device. (2) and (3) are diagrams showing output signals of the two-dimensional CCD sensor.

【図6】(1)は、2次元CCDセンサの任意ラインの
位置及び光量の特性曲線において加重平均による中心位
置を示す線図である。(2)は、2点中心法によってス
リット像の中心位置を求める状態を示すイメージ図であ
る。
FIG. 6 (1) is a diagram showing the position of an arbitrary line of a two-dimensional CCD sensor and the center position by a weighted average in a characteristic curve of light amount. (2) is an image diagram showing a state where a center position of a slit image is obtained by a two-point center method.

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

10 演算回路 12 形状測定装置 14 スイッチ(切換手段) 16 整形回路(波形成形手段) 18 コンパレータ(比較手段) 20 加重平均回路(加重平均演算手段) 34 アナログデジタル変換器 40 2次元CCDセンサ(位置検出手段) 60 測定対象物 60A 被測定面 Reference Signs List 10 arithmetic circuit 12 shape measuring device 14 switch (switching means) 16 shaping circuit (waveform shaping means) 18 comparator (comparing means) 20 weighted average circuit (weighted average calculating means) 34 analog-to-digital converter 40 two-dimensional CCD sensor (position detection) Means) 60 Object to be measured 60A Surface to be measured

フロントページの続き (72)発明者 岩田 国良 愛知県丹羽郡大口町大字豊田字野田1番 地 株式会社東海理化電機製作所内 (72)発明者 今藤 元寿 愛知県豊田市トヨタ町1番地 トヨタ自 動車株式会社内 (72)発明者 砂原 秀一 愛知県豊田市トヨタ町1番地 トヨタ自 動車株式会社内 (72)発明者 川瀬 昌男 愛知県豊田市トヨタ町1番地 トヨタ自 動車株式会社内 (72)発明者 小関 修 愛知県愛知郡長久手町大字長湫字横道41 番地の1株式会社豊田中央研究所内 (72)発明者 樋口 和則 愛知県愛知郡長久手町大字長湫字横道41 番地の1株式会社豊田中央研究所内 (72)発明者 山本 新 愛知県愛知郡長久手町大字長湫字横道41 番地の1株式会社豊田中央研究所内 (58)調査した分野(Int.Cl.7,DB名) G01B 11/00 - 11/30 Continued on the front page (72) Inventor Kuniyoshi Iwata No. 1 Noda, Toyota, Oguchi-cho, Niwa-gun, Aichi Prefecture Inside Tokai Rika Electric Works, Ltd. (72) Inventor Motohisa Imato 1st Toyota Town, Toyota City, Aichi Prefecture Toyota Motor Vehicle (72) Inventor Shuichi Sunahara 1 Toyota Town, Toyota City, Aichi Prefecture Inside Toyota Motor Corporation (72) Inventor Masao Kawase 1 Toyota Town, Toyota City, Aichi Prefecture Inside Toyota Motor Corporation (72) Inventor Osamu Koseki 41 Toyota Chuo R & D Co., Ltd., 1-41, Nagachute-cho, Nagakute-cho, Aichi-gun, Japan 1) Inside Toyota Central Research Institute, Inc. 72) Inventor Yamamoto Shin 41 Toyota Chuo R & D Laboratories Co., Ltd. 1 at 41, Chuchu-Yokomichi, Nagakute-cho, Aichi-gun, Aichi Prefecture (58) Field surveyed (Int. Cl. 7 , DB name)

Claims (2)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 被測定面へスリット光を照射する照射手
段と、 被測定面で反射された光を受光しかつ受光位置に応じた
光強度信号を出力する位置検出手段と、 受光した光の幅方向の受光位置に応じた光強度が、予め
定められた基準値以上のときハイレベルになる比較信号
を出力する比較手段と、 前記比較信号を左右対称でかつ中心を含む領域の大きさ
が最大になるように波形整形した整形信号を出力する波
形整形手段と、 前記整形信号の光強度に対応する値を重みとして前記整
形信号の受光位置に対応する値の加重平均を演算する加
重平均演算手段と、 を備えた形状測定装置。
An irradiation means for irradiating the surface to be measured with slit light; a position detection means for receiving light reflected by the surface to be measured and outputting a light intensity signal corresponding to a light receiving position; the size of the realm that includes light intensity corresponding to the light receiving position in the width direction, and comparing means for outputting a comparison signal which becomes high level when more than a predetermined reference value, the symmetric and and about the comparison signal Waveform shaping means for outputting a shaped signal whose waveform is shaped so that the maximum is obtained, and a weighted average for calculating a weighted average of a value corresponding to a light receiving position of the shaped signal by using a value corresponding to the light intensity of the shaped signal as a weight A shape measuring device comprising: a calculating means.
【請求項2】 被測定面へスリット光を照射する照射手
段と、 被測定面で反射された光を受光しかつ受光位置に応じた
光強度信号を出力する位置検出手段と、 受光した光の幅方向の受光位置に応じた光強度が、予め
定められた基準値以上のときハイレベルになる比較信号
を出力する比較手段と、 前記比較信号を左右対称でかつ中心を含む領域の大きさ
が最大になるように波形整形した整形信号を出力する波
形整形手段と、 前記光強度信号と、前記整形信号との何れか一方を出力
する切換手段と、 前記切換手段から出力された信号の光強度に対応する値
を重みとして該信号の受光位置に対応する値の加重平均
を演算する加重平均演算手段と、 を備えた形状測定装置。
2. An irradiating means for irradiating slit light to a surface to be measured, a position detecting means for receiving light reflected by the surface to be measured and outputting a light intensity signal corresponding to a light receiving position, and the size of the realm that includes light intensity corresponding to the light receiving position in the width direction, and comparing means for outputting a comparison signal which becomes high level when more than a predetermined reference value, the symmetric and and about the comparison signal Waveform shaping means for outputting a shaped signal whose waveform is shaped so that the maximum is obtained, switching means for outputting any one of the light intensity signal and the shaped signal, and light of the signal output from the switching means. A weighted average calculating means for calculating a weighted average of a value corresponding to the light receiving position of the signal using a value corresponding to the intensity as a weight;
JP12341492A 1992-05-15 1992-05-15 Shape measuring device Expired - Fee Related JP3241093B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP12341492A JP3241093B2 (en) 1992-05-15 1992-05-15 Shape measuring device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP12341492A JP3241093B2 (en) 1992-05-15 1992-05-15 Shape measuring device

Publications (2)

Publication Number Publication Date
JPH05312534A JPH05312534A (en) 1993-11-22
JP3241093B2 true JP3241093B2 (en) 2001-12-25

Family

ID=14859973

Family Applications (1)

Application Number Title Priority Date Filing Date
JP12341492A Expired - Fee Related JP3241093B2 (en) 1992-05-15 1992-05-15 Shape measuring device

Country Status (1)

Country Link
JP (1) JP3241093B2 (en)

Also Published As

Publication number Publication date
JPH05312534A (en) 1993-11-22

Similar Documents

Publication Publication Date Title
JP2000230818A (en) Method and instrument for noncontact measurement of wheel alignment characteristic
JP4215220B2 (en) Surface inspection method and surface inspection apparatus
JP3966804B2 (en) Distance detecting device, thickness measuring device and method thereof
JPH11295229A (en) Surface inspection apparatus
JP3241093B2 (en) Shape measuring device
JP3552862B2 (en) Optical displacement sensor and optical thickness sensor
JP2987540B2 (en) 3D scanner
JPH0629705B2 (en) Plate inspection method
JP3122560B2 (en) Method and apparatus for measuring gloss of painted surface
JP2617795B2 (en) Gloss measuring method and equipment for painted surfaces
JP3941137B2 (en) Surface position detector
EP1258701B1 (en) A process for reading fractions of an interval between contiguous photo-sensitive elements in a linear optical sensor
JPH10307011A (en) Method and apparatus for surface inspection
JP2007199089A (en) Surface inspection apparatus
JPH10185515A (en) Coil position detector
JPH07234116A (en) Warpage rate measuring method for plate material
JPS5826325Y2 (en) position detection device
JPH11344321A (en) Noncontact measuring method for three dimensional object shape and device
JP3444575B2 (en) Rangefinder
JP3479515B2 (en) Displacement measuring device and method
JPH07198345A (en) Circular diameter measurement device
JPH08271213A (en) Edge detector
JPS62298705A (en) Linear sensor light source controlling system
JPS61225604A (en) Dimension measurement apparatus
JPS63284409A (en) Measuring instrument for road surface property

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees