JP6486010B2 - Shape measuring apparatus and shape measuring method - Google Patents
Shape measuring apparatus and shape measuring method Download PDFInfo
- Publication number
- JP6486010B2 JP6486010B2 JP2014047412A JP2014047412A JP6486010B2 JP 6486010 B2 JP6486010 B2 JP 6486010B2 JP 2014047412 A JP2014047412 A JP 2014047412A JP 2014047412 A JP2014047412 A JP 2014047412A JP 6486010 B2 JP6486010 B2 JP 6486010B2
- Authority
- JP
- Japan
- Prior art keywords
- phase
- measurement
- error
- shows
- grid
- 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.)
- Active
Links
Landscapes
- Length Measuring Devices By Optical Means (AREA)
- Image Processing (AREA)
- Image Analysis (AREA)
Description
本発明は、物体表面の反射率の変化に対する三次元計測誤差低減手法と装置に関する。 The present invention relates to a method and an apparatus for reducing three-dimensional measurement error with respect to a change in reflectance of an object surface.
物体の三次元形状を計測する技術として、非特許文献1には、複数のカメラと鏡を用いることで複数方向からの計測を行い、計測結果の合成によりハレーションや自己隠蔽による影響を回避する技術が開示されている。鏡を用いることで、カメラ台数以上の方向からの計測を行う事が出来る。 As a technology for measuring the three-dimensional shape of an object, Non-Patent Document 1 performs measurement from a plurality of directions by using a plurality of cameras and mirrors, and a technology for avoiding the influence of halation and self-hiding by combining measurement results. Is disclosed. By using a mirror, it is possible to perform measurement from more than the number of cameras.
また、特許文献1には、格子投影法を用いて形状計測を行う場合に、反射率が異なる領域の境界付近において誤差が生じたり、焦点ぼけによって誤差が発生する領域が拡大するため、ぼけ度合および対象物の反射率を既知かつ一定なものとし、撮影輝度と誤差の関係から補正関係のテーブルを事前に作成することにより、反射率が異なる領域の境界付近に発生する誤差を低減する方法が開示されている。 In addition, according to Patent Document 1, when shape measurement is performed using the lattice projection method, an error occurs near the boundary between regions having different reflectances, and a region in which an error occurs due to defocusing is expanded. And the reflectance of the object is known and constant, and a table of correction relationships is created in advance from the relationship between the shooting luminance and the error, thereby reducing the error that occurs near the boundary of the regions with different reflectances. It is disclosed.
また、特許文献2には、格子投影法を用いて形状計測を行う場合に、反射率が異なる領域の境界付近において誤差が生じたり、焦点ぼけによって誤差が発生する領域が拡大するため、カメラを中心にして対称に配置された二つの格子投影装置を用いることで、反射率が異なる領域の境界付近において生じる誤差を低減する方法が開示されている。 In addition, in Patent Document 2, when shape measurement is performed using the lattice projection method, an error occurs in the vicinity of the boundary between regions having different reflectances, and a region in which an error occurs due to defocusing is enlarged. A method is disclosed for reducing errors that occur near the boundaries of regions of differing reflectivity by using two grating projectors that are arranged centrally and symmetrically.
背景技術で説明した先行技術文献に開示された技術では次のような問題点がある。非特許文献1に開示される技術では、ハレーションや自己隠蔽による影響を回避することが出来るが、反射率が異なる領域の境界付近に発生する誤差に関しては対応できない。特許文献1に開示される技術では、均一な焦点ぼけにしか対応できないため、平面以外の計測対象物に適用することは困難である。二つの格子投影装置による計測結果を単なる平均化により合成するため、平行な光線を投影可能な格子投影装置を対称に配置しなければ、高い精度での計測が期待できない。 The techniques disclosed in the prior art documents described in the background art have the following problems. Although the technique disclosed in Non-Patent Document 1 can avoid the influence of halation and self-conclusion, it can not cope with errors generated near the boundary of regions with different reflectances. The technology disclosed in Patent Document 1 can only cope with uniform defocusing, so it is difficult to apply it to measurement objects other than flat surfaces. In order to synthesize the measurement results of the two grid projectors by simple averaging, measurement with high accuracy can not be expected unless the grid projectors capable of projecting parallel rays are arranged symmetrically.
そこで、本発明の目的は、上記従来技術の問題点に鑑み、格子投影法での計測において、反射率が異なる領域の境界付近に発生する誤差を低減することが可能な物体表面の反射率の変化に対する三次元計測誤差低減方法とその装置を提供することである。 Therefore, in view of the above-mentioned problems of the prior art, an object of the present invention is to measure the reflectance of an object surface capable of reducing an error generated near the boundary of regions having different reflectances in measurement by the grid projection method. It is an object of the present invention to provide a method and apparatus for reducing three-dimensional measurement error with respect to change.
本願の請求項1に係る発明は、
物体表面の反射率の変化に対する三次元計測誤差の低減を行なう三次元計測方法であって、
カメラと、カメラの周囲に設置した複数の格子投影装置を用いて、各画素において重みを予め求めておき、前記予め求められた重みを元にして前記各格子投影装置を用いて得られた前記物体表面の高さ情報の重み付け平均を画素ごとに行う三次元計測方法である。
請求項2に係る発明は、
物体表面の反射率の変化に対する三次元計測誤差の低減を行なう三次元計測方法であって、
カメラと、前記カメラの周囲に設置した複数の格子投影装置を用いて、各画素において重みを予め求めておき、前記予め求められた重みを元にして前記各格子投影装置を用いて得られた前記物体表面の空間座標情報の重み付け平均を画素ごとに行う三次元計測方法である。
The invention according to claim 1 of the present application is
A three-dimensional measurement method for reducing three-dimensional measurement error due to change in reflectance of an object surface, comprising:
The weight is obtained in advance for each pixel using a camera and a plurality of grid projectors installed around the camera, and the above obtained using the grid projectors based on the previously obtained weights. This is a three-dimensional measurement method in which weighted averaging of height information on the object surface is performed for each pixel.
The invention according to claim 2 is
A three-dimensional measurement method for performing a reduction of the three-dimensional measurement error to changes in the reflectivity of the object surface,
Weights are obtained in advance for each pixel using a camera and a plurality of grid projectors installed around the camera, and are obtained using the grid projectors based on the weights obtained in advance. It is a three-dimensional measurement method in which weighted averaging of space coordinate information of the object surface is performed for each pixel .
本発明によれば、異なる反射率の境界付近に発生する誤差を低減可能で、異なる材質の境界付近に発生する誤差を低減可能で、段差部の境界付近に発生する誤差を低減可能な物体表面の反射率の変化に対する三次元計測誤差低減方法とその装置を提供できる。 According to the present invention, it is possible to reduce an error generated near the boundary of different reflectances, reduce an error generated near the boundary of different materials, and reduce an error generated near the boundary of the stepped portion. It is possible to provide a three-dimensional measurement error reduction method and apparatus for changes in reflectance of
以下、本発明の実施形態を図面とともに説明する。
1 反射率による計測誤差
ここでは、本発明により低減を可能とした異なる反射率の境界付近に生じる誤差ついて述べる。まず1−1節では、反射率分布と計測誤差の関係を述べる。次に1−2節では、位相シフト法による位相解析結果が周辺の反射率分布から受ける影響について述べる。そして1−3節では、この誤差が周辺との反射率の差に起因することから、誤差の要因をカメラの空間分解能による影響から考察する。
Hereinafter, embodiments of the present invention will be described with reference to the drawings.
(1) Measurement error due to reflectance Here, the error occurring near the boundary of different reflectances which can be reduced by the present invention will be described. First, Section 1-1 describes the relationship between reflectance distribution and measurement error. Next, in Section 1-2, the influence of the phase analysis method by the phase shift method on the reflectance distribution in the periphery will be described. And, in section 1-3, the factor of the error is considered from the influence of the spatial resolution of the camera because this error is caused by the difference in reflectance with the surroundings.
1−1 計測誤差
格子投映法に位相シフト法を組み合わせた計測手法では、これまで誤差が生じる場面が存在した。その一例を図1に示す。図1(a)は平面状の計測試料であり、図1(b)ははこれを計測した結果を立体的に表示したものである。図1(b)を見ると、計測結果に試料の模様が浮き出ていることが分かる。
1-1 Measurement error In the measurement method that combines the grid projection method and the phase shift method, there have been cases where errors have occurred so far. An example is shown in FIG. FIG. 1 (a) is a planar measurement sample, and FIG. 1 (b) is a three-dimensional display of the measurement result. It can be seen from FIG. 1 (b) that the pattern of the sample is raised in the measurement result.
ここで、この誤差の生じている画素の位置に着目する。この試料を白色の室内光の下で撮影し、計測結果の高さ分布画像と比較した。これを図2に示す。これより1ラインのデータを抜き出し、比較したものが図3である。図3より、模様により生じる反射率の変化の境界位置と計測誤差の位置が対応していることが分かる。このような計測誤差は、汚れなどの影響でも生じるため、品質検査の分野にて欠陥の誤検出に繋がる恐れもある。 Here, attention is focused on the position of the pixel where this error occurs. The sample was photographed under white room light and compared with the height distribution image of the measurement results. This is shown in FIG. It is FIG. 3 which extracted and compared the data of 1 line from this. It can be seen from FIG. 3 that the boundary position of the change in reflectance caused by the pattern corresponds to the position of the measurement error. Such measurement errors also occur due to the effects of dirt and the like, which may lead to false detection of defects in the field of quality inspection.
1−2 位相解析結果と反射率分布の関係
位相シフト法を用いた格子画像の解析では、背景光の影響を受けることなく、画素ごとに独立した位相値を算出することができる。周辺画素を参照する必要がないため、不連続な物体の計測も可能である。しかし、1−1節で述べたように、物体の模様など、反射率の異なる領域の境界付近では、周辺との反射率の差による位相解析結果への影響が存在する。
1-2 Relationship between Results of Phase Analysis and Reflectance Distribution In the analysis of a grating image using the phase shift method, independent phase values can be calculated for each pixel without being affected by background light. Since it is not necessary to refer to peripheral pixels, measurement of discontinuous objects is also possible. However, as described in Section 1-1, in the vicinity of the boundary of a region of different reflectance, such as a pattern of an object, there is an influence on the phase analysis result due to the difference in reflectance from the periphery.
計測試料の反射率により、位相解析結果が受ける影響を確認する。図4に異なる反射率のパターンを持つ試料を示す。この試料に格子パターンを投影し位相解析を行う。解析を行った結果を図5に示す。図5の線Aと線Bより抜き出した反射率の分布と位相分布の比較を図6へ示す。図6より、反射率の異なる領域の境界付近において、位相パターンは不規則な変化を示す。これより、位相解析結果が周辺の反射率分布から影響を受けていることが分かる。 The influence of the phase analysis result is confirmed by the reflectance of the measurement sample. FIG. 4 shows a sample with different reflectance patterns. A grid pattern is projected on this sample and phase analysis is performed. The result of the analysis is shown in FIG. A comparison of the distribution of reflectance and the phase distribution extracted from line A and line B in FIG. 5 is shown in FIG. As shown in FIG. 6, the phase pattern shows irregular changes near the boundary of the regions of different reflectance. From this, it can be understood that the phase analysis result is influenced by the reflectance distribution in the periphery.
1−3 誤差の要因
1−2節より、周辺領域との反射率の差が生じる部分に誤差が生じることが確認できた。しかし、位相シフト法を用いた位相解析では、周辺画素を参照することなく、画素ごとに独立した位相値の算出が可能である。そのため、位相解析の段階では、このような周辺からの影響を受けることは考えられない。したがって、誤差の要因として、格子画像撮影時のカメラの空間分解能が考えられる。
1-3 Cause of error From Section 1-2, it has been confirmed that an error occurs in the part where the difference in reflectance with the surrounding area occurs. However, in phase analysis using the phase shift method, it is possible to calculate an independent phase value for each pixel without referring to the peripheral pixels. Therefore, at the phase of phase analysis, it is not conceivable to be affected by such surroundings. Therefore, the spatial resolution of the camera at the time of lattice image photography can be considered as a factor of an error.
カメラの空間分解能を決定する要素としては、レンズの焦点ぼけや1画素の視野角の大きさがある。これを図7に示す。まず、カメラの各画素には視野角が存在し、完全な点を撮影することは出来ない。一方で、焦点ぼけが生じた場合、1画素の視野角は、さらに大きくなる。これらによるカメラの空間分解能の変化は、計測精度に大きな影響を与えると考えられる。 Factors that determine the spatial resolution of the camera include the defocus of the lens and the size of the viewing angle of one pixel. This is shown in FIG. First, each pixel of the camera has a viewing angle, and it is not possible to capture a perfect point. On the other hand, when defocusing occurs, the viewing angle of one pixel is further increased. The change in spatial resolution of the camera due to these factors is considered to greatly affect the measurement accuracy.
2 反射率分布と空間分解能による誤差量の導出
ここでは、異なる反射率の境界付近に生じる誤差を導出する。まず2−1節では、反射率分布と空間分解能による影響を検討し、位相誤差を一般式に表す。次に2−2節では、前節で求めた位相誤差を計測誤差に換算する方法について述べる。
2 Derivation of error amount by reflectance distribution and spatial resolution Here, the error generated near the boundary of different reflectance is derived. First, in Section 2-1, the influence of reflectance distribution and spatial resolution is examined, and the phase error is expressed in a general formula. Next, Section 2-2 describes a method of converting the phase error obtained in the previous section into a measurement error.
2−1 位相誤差の導出
2−1−1 3要素の平滑化による影響
反射率の境界付近における誤差量について、反射率の差と位相変化量の関係を導出する。まず、振幅をAx,バイアスをBxとした場合、4回シフト時の輝度変化は数1式から数4式のように示される。
2-1 Derivation of Phase Error 2-1-1 Influence of Smoothing of Three Elements Regarding the amount of error near the boundary of reflectance, the relationship between the difference in reflectance and the amount of phase change is derived. First, assuming that the amplitude is A x and the bias is B x , the change in luminance at the time of four-time shift is expressed as Formula 1 to Formula 4.
次に、空間分解能の関係から、周辺輝度の影響を受けた場合を3輝度の平滑化として考える。図9は空間分解の変化の影響を平滑化により再現することを示す図である。Δθ間隔で初期位相のずれた周辺輝度値の影響を考慮すると、シフト時の輝度変化は数5式〜数8式のように示される。 Next, from the relationship of spatial resolution, the case of being affected by the surrounding luminance is considered as smoothing of the three luminances. FIG. 9 is a diagram showing that the influence of the change of spatial resolution is reproduced by smoothing. In consideration of the influence of the peripheral luminance value in which the initial phase is shifted at the Δθ interval, the luminance change at the time of shift is expressed as Formula 5 to Formula 8.
このとき数5式〜数8式より、位相シフト法を用いると数9式が得られる。 At this time, equation 9 is obtained from the equations 5 to 8 using the phase shift method.
これを複素平面上に図示すと、図10となる。θ’(x)とは、振幅がAi-1,Ai,Ai+1,位相がθ(x)-・・,・(x),・(x)+・・・の複素ベクトルを平均した時の位相である。
また、ここで位相誤差量をθE(x)とすると数10式が成り立つ。
If this is illustrated on a complex plane, it will become FIG. θ '(x) is a complex vector of amplitudes Ai-1 , Ai , Ai + 1 , and phases θ (x)-· · · (x) · · (x) + ··· It is the phase when averaged.
Further, assuming that the phase error amount is θ E (x), several tens equations are established.
このとき、各要素の間隔が十分に小さくであるとすると、数11式が成り立つ。 At this time, assuming that the distance between each element is sufficiently small, Expression 11 holds.
また、数12式がなりたつ。 In addition, equation 12 has become one.
このとから、位相誤差量θE(x)は、元の位相値θ(x)に関係なく、各要素間の位相差Δθの大きさに比例することが分かる。つまり、今回導出した位相誤差量は、元の位相値を問わず、投影格子のピッチサイズに反比例し、格子が細かいほど大きくなる。 From this, it is understood that the phase error amount θ E (x) is proportional to the magnitude of the phase difference Δθ between each element, regardless of the original phase value θ (x). That is, regardless of the original phase value, the phase error amount derived this time is inversely proportional to the pitch size of the projection grating, and becomes larger as the grating becomes finer.
2−1−2 n要素の平滑化による影響
最後に、n個の要素(nは奇数)の場合の位相誤差量θEn(x)を求め、位相誤差を表す一般式とする。異なる振幅を持つn個の位相の和を考えると数13式となる。
2-1-2 Influence of Smoothing on n Elements Finally, the phase error amount θ En (x) in the case of n elements (n is an odd number) is determined, and a general formula representing the phase error is obtained. Considering the sum of n phases having different amplitudes, Equation 13 is obtained.
よって、位相誤差量θEn(x)は数14式となる。 Therefore, the phase error amount θ En (x) is expressed by Equation 14:
ここで数12式より、位相誤差量θE(x)は、元の位相値θ(x)に依存しないので、θ(x)=0とすると数15式が成り立つ。 Here, according to Eq. 12, the phase error amount θ E (x) does not depend on the original phase value θ (x), so Eq. 15 holds when θ (x) = 0.
このとき、各要素の間隔が十分に小さくΔθが略0に等しいとすると数16式が成り立つ。 At this time, assuming that the distance between each element is sufficiently small and Δθ is substantially equal to 0, Expression 16 holds.
また、数17式も成り立つ。 In addition, Equation 17 also holds.
さらに、各要素間の位相差に対する位相誤差の比例係数をEn(x)とすると数18式,数19が成り立つ。 Further, assuming that the proportional coefficient of the phase error to the phase difference between each element is E n (x), the equations (18) and (19) hold.
Enは、カメラの空間分解能と計測対象物上の振幅分布により変化する係数である。一方で、Δθは各要素間の位相差、つまり投影格子の位相の傾きを意味する。Enは、投影格子の位相の傾きΔθから位相誤差θEを求める係数であり、ここでは位相誤差係数と呼ぶ。 E n is a coefficient which varies with the amplitude distribution of the spatial resolution of the camera and the measurement object. On the other hand, Δθ means the phase difference between each element, that is, the inclination of the phase of the projection grating. E n is a coefficient for obtaining the phase error θ E from the inclination Δθ of the phase of the projection grating, and is referred to as a phase error coefficient here.
2−2 計測誤差の導出
本節以降、誤差を画素単位で求める。画素単位で考えた場合、投影格子の位相の傾きΔθは、1画素における投影格子位相の傾きとなる。数19式より、画素ごとに位相誤差の導出が行える。また、この式から計測誤差の値を得るには、位相値をz座標値に変換する必要がある。図11に投影格子の位相とz座標値の関係を示す。
2-2 Derivation of measurement error From this section, find the error in pixel units. When considered in pixel units, the inclination Δθ of the phase of the projection grating is the inclination of the projection grating phase at one pixel. From Eq. 19, the phase error can be derived for each pixel. Moreover, in order to obtain the value of the measurement error from this equation, it is necessary to convert the phase value into the z coordinate value. FIG. 11 shows the relationship between the phase of the projection grid and the z-coordinate value.
投影格子の位相変化の方向は、位相シフトの方向により決定される。今回、位相はx軸の正方向に増加するとした。このとき、視線Lとx軸との交点Pの位相値をθpとすると、視線L上にて格子位相が2π変化する点がz軸方向の計測可能範囲zmaxとなる。ここで、単位位相あたりのz座標の変化量をΔzとすると、計測誤差値zeは位相誤差の値θEnとΔzの積により得られる。これを数20式に示す。なお、Δzの値は格子投影装置とカメラの位置関係により異なるため、同じ位相誤差θEnでも、計測誤差zeの値や符号は変化する。 The direction of the phase change of the projection grating is determined by the direction of the phase shift. This time, it is assumed that the phase increases in the positive direction of the x axis. At this time, assuming that the phase value of the intersection point P between the sight line L and the x axis is θ p , a point at which the lattice phase changes by 2π on the sight line L becomes the measurable range z max in the z axis direction. Here, if the amount of change in z-coordinate per unit phase and Delta] z, the measurement error value z e is obtained by the product of the value theta En and Delta] z of the phase error. This is shown in equation 20. The value of Δz is because different by positional relationship grid projection device and the camera, even the same phase error theta En, the value and the sign of the measurement error z e changes.
ただし、数20式における位相誤差係数Enを正確に導出するためには、レンズの特性および画素以下の分解能での格子振幅分布の情報が必要となる。しかし、実際の撮影画像からこれらを得ることは難しい。そのため、計測誤差を低減するためには、位相誤差係数Enの算出を必要としない方法が必要となる。 However, in order to accurately derive the phase error coefficient E n in number 20 expression, information of the grating amplitude distribution of the characteristic and subpixel resolution of the lens is required. However, it is difficult to obtain these from actual photographed images. Therefore, in order to reduce measurement error, a method which does not require the calculation of the phase error coefficients E n is required.
3 複数台の格子投影装置による計測誤差の低減
3−1 誤差低減原理
本節では、位相誤差係数Enを必要としない計測誤差の低減手法について述べる。位相誤差係数Enは、カメラと計測対象物の関係により決定される項であるので、格子投影装置の位置を変化させても変化しない。よって、数20式のzeは、投影格子の位相の傾きΔθと、単位位相あたりのz座標の変化量Δzにより決まる。
3 In the plurality of reduced 3-1 error reduction principle section of the measurement error due to the grating projection apparatus, described reduction method of measurement error that does not require a phase error coefficient E n. Phase error coefficient E n is because in the section determined by the relationship between the camera and the measurement object does not change even by changing the position of the grid projection device. Therefore, z e in Eq. 20 is determined by the inclination Δθ of the phase of the projection grating and the variation Δz of the z coordinate per unit phase.
このことから、計測誤差の低減には、2つ以上の計測結果を利用することが有効であると考えられる。異なる方向から格子投影を行い、得られた複数の計測結果から、誤差を低減する。まず、格子投影装置の配置に影響されるΔθおよびΔzを計測前に求める。そして、これらを元に重み付け平均を行い、複数の計測結果を合成することで誤差の低減が実現できる。以下に2台の格子投影装置を用いた場合を例として、誤差低減手法の詳細を示す。 From this, it is considered effective to use two or more measurement results to reduce the measurement error. Grid projection is performed from different directions, and errors are reduced from the plurality of measurement results obtained. First, Δθ and Δz affected by the arrangement of the grating projection device are determined before measurement. Then, weighted averaging is performed based on these, and reduction of an error can be realized by combining a plurality of measurement results. The details of the error reduction method will be shown below, taking the case of using two grid projectors as an example.
図12のように、1台のカメラと2台の格子投影装置を配置したとする。このとき真値をzとし、それぞれの格子投影装置の真値zに対する計計測結果をzm1とzm2、それぞれの計測誤差をze1とze2とすると、これらの関係は図13となる。このとき、真値をそれぞれの計測結果と計測誤差を用いて表すと、数21式と数22式のように示される。 As shown in FIG. 12, it is assumed that one camera and two grid projectors are arranged. At this time, assuming that the true value is z, the measurement results for the true value z of each of the lattice projection devices are z m1 and z m2 , and the measurement errors thereof are z e1 and z e2 . At this time, when the true value is expressed using the respective measurement results and the measurement error, it is expressed as Expression 21 and Expression 22.
これらの式からEnを消去すると数23式となる。 If E n is eliminated from these equations, equation 23 is obtained.
数23式より、位相誤差係数Enを用いることなく、2つの計測結果から真値を得ることができる。これは、各計測結果に対して、重み付け平均を用いた合成を行うことを意味する。数24式と数25式に重みの算出式を示す。 From equation 23, without using the phase error coefficients E n, it can be from two measurement results obtain the true value. This means that combining using weighted averaging is performed on each measurement result. Equations for calculating weights are shown in Equations 24 and 25.
このように、本発明に係る合成処理は、投影格子ピッチの差や格子投影装置の位置を重み分布に反映することが出来る。そのため、それぞれの格子投影装置における格子ピッチや計測範囲が異なる計測条件でも、計測結果の合成が可能である。したがって、本発明の方法では、カメラと格子投影装置の厳密な位置合わせを必要としない。
また、z座標の誤差と位相誤差の関係と同様の関係がx、y座標の誤差と位相誤差の関係についても成立する。そのため、この重み付け平均による誤差低減手法は、x、y、z座標(空間座標)についても有効である。
As described above, the combining process according to the present invention can reflect the difference between the projection grid pitches and the position of the grid projector in the weight distribution. Therefore, it is possible to combine the measurement results even under measurement conditions in which the grating pitch and the measurement range in each grating projection apparatus are different. Thus, the method of the present invention does not require precise alignment of the camera and the grid projector.
Further, a relationship similar to the relationship between the error of the z coordinate and the phase error holds also for the relationship between the error of the x, y coordinates and the phase error. Therefore, the error reduction method using weighted averaging is also effective for x, y, z coordinates (space coordinates).
3−2 ΔθとΔzの算出方法
本発明に係る方法には、投影格子の位相の傾きΔθと単位位相あたりのz座標値の変化量Δzの算出を必要とする。ここでは、ΔθとΔz算出方法の1例として、図14のように平板を基準面として用いる方法を示す。
3-2 Calculation Method of Δθ and Δz The method according to the present invention requires calculation of the inclination Δθ of the phase of the projection grating and the change amount Δz of the z-coordinate value per unit phase. Here, a method of using a flat plate as a reference plane as shown in FIG. 14 is shown as an example of the Δθ and Δz calculation method.
3−2−1 投影格子の位相の傾き(Δθ)の算出
投影格子の位相の傾きΔθは、投影格子の位相の画素に対する傾きであるため、基準面に投影した格子の位相分布に対し数26式を用いることで算出を行うことができる。図15は投影格子の位相の画素に対する傾きを示す図である。
3-2-1 Calculation of the inclination (Δθ) of the phase of the projection grating Since the inclination Δθ of the phase of the projection grating is the inclination of the phase of the projection grating with respect to the pixels, The calculation can be performed by using an equation. FIG. 15 is a diagram showing the inclination of the phase of the projection grating with respect to the pixels.
3−2−2 単位位相あたりのz座標値の変化量(Δz)の算出
単位位相あたりのz座標値の変化量Δzは、投影格子の位相のz座標に対する傾きである。そのため、投影した格子の位相分布のz座標方向での変化量から算出を行うことができる。今回は、各z座標位置に配置した基準面を用いて、各画素ごとにz座標と位相の関係を得た。そして、最小二乗法を用いて各画素ごとに近似直線を求め、この直線の傾きの逆数を用いた。図16はある画素での投影格子の位相のz座標に対する傾きを示す図である。以上のようにして求めたΔθとΔzを用いることで、数24式と数25式より重みW1とW2を求めることができる。
3-2-2 Calculation of variation (z) of z-coordinate value per unit phase The variation? Z of z-coordinate value per unit phase is the inclination of the phase of the projection grid with respect to the z-coordinate. Therefore, the calculation can be performed from the amount of change in the z-coordinate direction of the projected phase distribution of the grating. This time, using the reference plane arranged at each z coordinate position, the relationship between the z coordinate and the phase was obtained for each pixel. Then, an approximate straight line was obtained for each pixel using the least squares method, and the reciprocal of the slope of this straight line was used. FIG. 16 is a diagram showing the inclination of the phase of the projection grid with respect to the z coordinate at a certain pixel. By using Δθ and Δz obtained as described above, weights W 1 and W 2 can be obtained from Eq. 24 and Eq. 25.
3−3−3 3台以上の格子投影装置を用いた誤差低減
本節では、3台以上の格子投影装置を用いての誤差低減について述べる。本発明の方法において、格子投影装置の台数を3台以上に増やした場合、数23式から重みを求めることができない。そこで、擬似逆行列を用いて、3台以上の格子投影装置を用いた場合の重みの導出を行う。格子投影装置の台数をD台としたとき、各格子投影装置における計計測結果zmと計測誤差zeおよび真値zの関係は、数27式〜数29式のように表される。
3-3-3 Error reduction using three or more grating projectors This section describes error reduction using three or more grating projectors. In the method of the present invention, when the number of lattice projection apparatuses is increased to three or more, the weight can not be obtained from Eq. Therefore, weights are derived in the case of using three or more grid projectors using a pseudo inverse matrix. When the number of grid projection device is D stage, the relationship of total measurement result z m and the measurement error z e and the true value z in each grid projection device is expressed as the number 27 formula to several 29 expression.
これを行列式に表すと数30式で表される。 If this is expressed in a determinant, it is expressed by equation 30.
ここで各計測結果が含む誤差の比をマトリックスRとすると数31式で表される。 Here, assuming that the ratio of errors included in each measurement result is a matrix R, it is expressed by Equation 31.
マトリックスRが正則でない場合、Rの擬似逆行列R+は数32式で表される。 When the matrix R is not regular, the pseudo inverse matrix R + of R is expressed by Equation 32.
数32式を用いることで、数30式は数33式のように変形することができる。 The equation 30 can be transformed into the equation 33 by using the equation 32.
上式から、3台以上の格子投影装置を用いての誤差低減における合成式を数34式のように求めることができる。 From the above equation, a combination equation in error reduction using three or more grating projectors can be obtained as in Equation 34.
3−4 格子投影装置の配置例
本発明の方法は、複数台の格子投影装置の配置を重みに反映することができるため、様々な配置で誤差の低減を行う事ができる。ここでは、想定されるカメラと格子投影装置の配置の例を示す。図17はカメラが中央にある場合を示す図である。図18はカメラが中央にない場合を示す図である。図19は格子投影装置が3台ある場合を示す図である。
3-4 Arrangement Example of Lattice Projection Apparatus The method of the present invention can reflect the arrangement of a plurality of lattice projection apparatuses in the weight, so that errors can be reduced in various arrangements. Here, an example of the assumed arrangement of cameras and grid projectors is shown. FIG. 17 shows the case where the camera is at the center. FIG. 18 shows the case where the camera is not at the center. FIG. 19 is a view showing the case where there are three grid projectors.
4 誤差低減実験
4−1 平面試料の計測
本節では、2台の格子投影装置を用いた形状計測装置により、異なる反射率の境界付近に生じる計測誤差の低減を行う。本実験に用いる実験形状計測装置を図20、計測試料を図21に示す。今回は、2台の格子投影装置からの投影格子が異なる条件下での計測を行うため、格子投影装置の角度に左右で変化をつけた。本実験における計測条件を図22に示す。なお、z軸方向の平均計測範囲は、Projector 1で9.7mmであり、Projector 2で16.9mmである。
4 Error reduction experiment 4-1 Measurement of planar sample In this section, measurement errors that occur near boundaries of different reflectances are reduced by a shape measurement device that uses two grid projectors. An experimental shape measuring apparatus used for this experiment is shown in FIG. 20, and a measurement sample is shown in FIG. In this case, the angles of the grid projectors are changed from left to right because the projection grids from the two grid projectors perform measurement under different conditions. The measurement conditions in this experiment are shown in FIG. The average measurement range in the z-axis direction is 9.7 mm for Projector 1 and 16.9 mm for Projector 2.
計測結果の合成を行うには、合成時に用いるΔθとΔzの値を得る必要がある。これらには、位相とz座標の対応関係を得るキャリブレーションの際に撮影した画像を利用する。今回は、図22に示したように、キャリブレーションでは51枚の基準面位相分布の画像を得ている。 In order to combine measurement results, it is necessary to obtain the values of Δθ and Δz used at the time of combining. For these, an image taken at the time of calibration for obtaining the correspondence between the phase and the z coordinate is used. This time, as shown in FIG. 22, in the calibration, images of 51 reference surface phase distributions are obtained.
まず、キャリブレーション結果から51枚のΔθ分布画像を得る。前章と同様に数35式を用いると、投影格子の位相の傾きΔθの分布画像が得られる。得られたΔθの分布画像51枚に対し、平均化を行い1枚の画像とする。さらに最小二乗法を用いた平滑化処理により、ノイズ低減を行う。この結果を図23に示す。 First, 51 Δθ distribution images are obtained from the calibration result. As in the previous chapter, using Equation 35, a distribution image of the inclination Δθ of the phase of the projection grating can be obtained. The 51 distribution images of Δθ obtained are averaged to obtain one image. Furthermore, noise reduction is performed by smoothing processing using the least squares method. The results are shown in FIG.
そして、図23と図24の画像から、数24式と数25式を用いることにより合成に用いる重み分布を得た。これを図25に示す。図25は算出した重みW1とW2の分布画像を示す図である。また、図25から線A部のデータを抜き出し比較したものを図26に示す。これより、2台の格子投影装置にて、重み付けが異なることが分かる。 Then, using the equations (24) and (25), the weight distribution used for the composition was obtained from the images of FIG. 23 and FIG. This is shown in FIG. Figure 25 is a diagram showing a distribution image of weights W 1 and W 2 calculated. Moreover, what extracted and compared the data of the line A part from FIG. 25 is shown in FIG. From this, it can be seen that the weighting is different in the two grid projectors.
それぞれの格子投影装置を用いて、図25の試料の計測を行い、算出した重み分布を用いて重み付け平均により合成を行った。今回、行った計測実験における投影格子の画像を図27に、計測結果を図28に示す。この結果を用いて、提案手法の重み付け平均による合成と、従来手法である単純平均による合成を比較した。単純平均による合成結果を図29(a)に、重み付け平均による合成結果を図29(b)に示す。 The sample of FIG. 25 was measured using each of the grid projectors, and combining was performed by weighted averaging using the calculated weight distribution. The image of the projection grid in the measurement experiment performed this time is shown in FIG. 27, and the measurement result is shown in FIG. Using this result, we compared the synthesis by weighted average of the proposed method and the synthesis by simple average, which is the conventional method. The synthesis result by the simple average is shown in FIG. 29 (a), and the synthesis result by the weighted average is shown in FIG. 29 (b).
線Bのデータを抜き出し、合成による誤差低減を確認した。これを図30に示す。単純平均による合成では誤差が残る部分が生じたが、重み付け平均による合成では生じなかった。また、このグラフからi=326における値を抜き出し、合成方法による計測精度の変化を確認した。なお真値は、最小二乗法を用いた直線近似により求め6.007mmとした。このとき、誤差の影響を受けない直線とするため、誤差付近の10画素の値は用いなかった。図30から1ラインの値を抜き出し、比較した結果を図31に示す。 The data of line B was extracted, and the error reduction by combination was confirmed. This is shown in FIG. Although the synthesis by the simple average generated a part where the error remained, the synthesis by the weighted average did not occur. Moreover, the value at i = 326 was extracted from this graph, and the change of the measurement accuracy by the combining method was confirmed. The true value was determined by linear approximation using the least squares method and was set to 6.007 mm. At this time, the values of 10 pixels near the error were not used in order to make the line not influenced by the error. The results of extracting and comparing the values of one line from FIG. 30 are shown in FIG.
図31から、本発明の有効性を確認できる。計測誤差は、Projector 1単体の場合に0.257mmであったが、本発明を用いた重み付け平均による合成を行うことで、0.030mmに低減できた。一方で、単純平均した場合の計測誤差は、0.056mmであった。本発明による合成結果は、単純平均による合成結果の約半分まで、計測誤差を低減することができた。したがって、本手法を用いた誤差低減は、異なる反射率の境界部に生じる誤差に対して、有効であると言える。 The effectiveness of the present invention can be confirmed from FIG. Although the measurement error was 0.257 mm in the case of Projector 1 alone, it could be reduced to 0.030 mm by combining by weighted averaging using the present invention. On the other hand, the measurement error in the case of simple averaging was 0.056 mm. The synthesis result according to the present invention was able to reduce the measurement error to about half of the synthesis result by simple averaging. Therefore, it can be said that the error reduction using this method is effective to the error generated at the boundary of different reflectances.
4−2 電子基板の計測
2台の格子投影装置を用いた計測装置を用いて、本発明による計測誤差の低減を試みた。実験に用いた装置を図32へ、計測試料とした電子基板を図33へ示す。この基板の黒いチップ上の白文字による計測結果への影響を誤差低減の前後で比較した。それぞれの格子投影装置による計測結果を図34へ示す。また、合成に用いた重み分布を図35、合成結果を図36へ示す。合成前後の計測結果よりLine Aのデータを抜き出し、これを比較したものを図37へ示す。計測誤差により生じていたばらつきが低減されたことが分かる。
4-2 Measurement of Electronic Substrate An attempt was made to reduce the measurement error according to the present invention using a measurement apparatus using two grid projectors. An apparatus used for the experiment is shown in FIG. 32, and an electronic substrate having a measurement sample is shown in FIG. The influence of white letters on the black chip of this substrate on the measurement results was compared before and after the error reduction. The measurement result by each grating | lattice projection apparatus is shown in FIG. Also, FIG. 35 shows the weight distribution used for the synthesis, and FIG. 36 shows the synthesis result. The data of Line A is extracted from the measurement results before and after synthesis, and the comparison is shown in FIG. It can be seen that the variation caused by the measurement error is reduced.
1 投射装置
2 投射装置
1 Projection device 2 Projection device
Claims (2)
カメラと、カメラの周囲に設置した複数の格子投影装置を用いて、各画素において重みを予め求めておき、前記予め求められた重みを元にして前記各格子投影装置を用いて得られた前記物体表面の高さ情報の重み付け平均を画素ごとに行う三次元計測方法。 A three-dimensional measurement method for reducing three-dimensional measurement error due to change in reflectance of an object surface, comprising:
The weight is obtained in advance for each pixel using a camera and a plurality of grid projectors installed around the camera, and the above obtained using the grid projectors based on the previously obtained weights. A three-dimensional measurement method that performs weighted averaging of height information of the object surface for each pixel.
カメラと、前記カメラの周囲に設置した複数の格子投影装置を用いて、
各画素において重みを予め求めておき、前記予め求められた重みを元にして前記各格子投影装置を用いて得られた前記物体表面の空間座標情報の重み付け平均を画素ごとに行う三次元計測方法。 A three-dimensional measurement method for reducing three-dimensional measurement error due to change in reflectance of an object surface , comprising:
Using a camera and a plurality of grid projectors placed around the camera,
A three-dimensional measuring method in which weights are previously obtained for each pixel, and weighted averaging of spatial coordinate information of the object surface obtained using each of the grid projectors based on the previously calculated weights is performed for each pixel .
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2014047412A JP6486010B2 (en) | 2014-03-11 | 2014-03-11 | Shape measuring apparatus and shape measuring method |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2014047412A JP6486010B2 (en) | 2014-03-11 | 2014-03-11 | Shape measuring apparatus and shape measuring method |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JP2015172487A JP2015172487A (en) | 2015-10-01 |
| JP6486010B2 true JP6486010B2 (en) | 2019-03-20 |
Family
ID=54259915
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2014047412A Active JP6486010B2 (en) | 2014-03-11 | 2014-03-11 | Shape measuring apparatus and shape measuring method |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP6486010B2 (en) |
Families Citing this family (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP7156794B2 (en) * | 2018-01-16 | 2022-10-19 | 株式会社サキコーポレーション | Inspection device height information acquisition method and inspection device |
| JP7393737B2 (en) * | 2020-02-27 | 2023-12-07 | オムロン株式会社 | Image inspection device and image inspection method |
Family Cites Families (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP3417377B2 (en) * | 1999-04-30 | 2003-06-16 | 日本電気株式会社 | Three-dimensional shape measuring method and apparatus, and recording medium |
| JP5055191B2 (en) * | 2008-04-24 | 2012-10-24 | パナソニック株式会社 | Three-dimensional shape measuring method and apparatus |
| DE102010064593A1 (en) * | 2009-05-21 | 2015-07-30 | Koh Young Technology Inc. | Form measuring device and method |
-
2014
- 2014-03-11 JP JP2014047412A patent/JP6486010B2/en active Active
Also Published As
| Publication number | Publication date |
|---|---|
| JP2015172487A (en) | 2015-10-01 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN104160241B (en) | Phase distribution analysis method, device and program of fringe image using high-dimensional luminance information | |
| US8432395B2 (en) | Method and apparatus for surface contour mapping | |
| CN107941168B (en) | Reflective stripe surface shape measuring method and device based on speckle position calibration | |
| KR102149707B1 (en) | 3D shape measurement device, 3D shape measurement method and program | |
| JP5818341B2 (en) | Shape measuring apparatus and shape measuring method | |
| JP2008500529A (en) | Method for characterizing a digital imaging system | |
| CN107466356A (en) | Measuring method, measurement apparatus, process of measurement and the computer-readable recording medium that have recorded process of measurement | |
| TWI797759B (en) | Test chart, camera manufacturing device, camera manufacturing method, and focus detection program | |
| CN103676487A (en) | Workpiece height measuring device and correcting method thereof | |
| Krüger et al. | Accurate chequerboard corner localisation for camera calibration | |
| JP3937024B2 (en) | Detection of misalignment, pattern rotation, distortion, and misalignment using moiré fringes | |
| CN104380036A (en) | Synthesis-parameter generation device for three-dimensional measurement apparatus | |
| US9157874B2 (en) | System and method for automated x-ray inspection | |
| JP2011155412A (en) | Projection system and distortion correction method in the same | |
| JP2913021B2 (en) | Shape measuring method and device | |
| JP6486010B2 (en) | Shape measuring apparatus and shape measuring method | |
| Webb et al. | Quantifying depth of field and sharpness for image-based 3D reconstruction of heritage objects | |
| JP2018179577A (en) | Position measurement device | |
| JP2006084286A (en) | Three-dimensional measuring method and its measuring device | |
| JP6533914B2 (en) | Computer readable recording medium recording measurement method, measurement device, measurement program and measurement program | |
| CN111006599A (en) | Object surface micro-scale measurement method based on pixel grating and computer vision | |
| WO2026026978A1 (en) | Three-dimensional measurement device, and method for improving projection brightness uniformity | |
| Berssenbrügge et al. | Characterization of the 3D resolution of topometric sensors based on fringe and speckle pattern projection by a 3D transfer function | |
| WO2024161453A1 (en) | Image point group data processing device, image point group data processing method, and image point group data processing program | |
| JP2008170282A (en) | Shape measuring device |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20170216 |
|
| A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20171211 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20180130 |
|
| A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20180329 |
|
| A02 | Decision of refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A02 Effective date: 20180821 |
|
| A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20181121 |
|
| A911 | Transfer to examiner for re-examination before appeal (zenchi) |
Free format text: JAPANESE INTERMEDIATE CODE: A911 Effective date: 20181225 |
|
| TRDD | Decision of grant or rejection written | ||
| A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20190212 |
|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20190219 |
|
| R150 | Certificate of patent or registration of utility model |
Ref document number: 6486010 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |