JP4944633B2 - Three-dimensional shape measuring apparatus and three-dimensional shape measuring method - Google Patents

Three-dimensional shape measuring apparatus and three-dimensional shape measuring method Download PDF

Info

Publication number
JP4944633B2
JP4944633B2 JP2007025380A JP2007025380A JP4944633B2 JP 4944633 B2 JP4944633 B2 JP 4944633B2 JP 2007025380 A JP2007025380 A JP 2007025380A JP 2007025380 A JP2007025380 A JP 2007025380A JP 4944633 B2 JP4944633 B2 JP 4944633B2
Authority
JP
Japan
Prior art keywords
wavelength
dimensional shape
light
relative phase
distance
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
JP2007025380A
Other languages
Japanese (ja)
Other versions
JP2008190990A (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.)
NEC Engineering Ltd
Original Assignee
NEC Engineering Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NEC Engineering Ltd filed Critical NEC Engineering Ltd
Priority to JP2007025380A priority Critical patent/JP4944633B2/en
Publication of JP2008190990A publication Critical patent/JP2008190990A/en
Application granted granted Critical
Publication of JP4944633B2 publication Critical patent/JP4944633B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、三次元形状計測装置及び三次元形状計測方法に関し、特に、短時間で三次元形状を計測することのできる装置及び方法に関する。   The present invention relates to a three-dimensional shape measuring apparatus and a three-dimensional shape measuring method, and more particularly to an apparatus and a method capable of measuring a three-dimensional shape in a short time.

物体の三次元形状を非接触で計測するための方法が数多く提案されており、その中の1つとして、正弦波格子位相シフト法が知られている。この正弦波格子位相シフト法は、概略以下のようにして行われる。   Many methods for measuring the three-dimensional shape of an object in a non-contact manner have been proposed. As one of them, a sinusoidal grating phase shift method is known. This sine wave grating phase shift method is generally performed as follows.

図7に示すように、正弦波状に濃淡パターンが印刷されている格子71を通して、光源72から物体73に対して正弦波状の輝度分布を持つ光パターンを投影し、物体73上の縞パターンを上記の光源72とは別のところに設置されたカメラ74で撮影する。物体73を静止させたままで、格子71を縞と直角方向へと、波長の1/NずつN回ずらしながら画像を撮影して行く。例えば、縞パターンの位相がπ/2ずつずれるように格子71を駆動しながら、位相が1周期分移動するまでの間に4回の撮影を行ったとすると、図8に示すように、物体73の表面上の計測対象点Pについて、4つの輝度値Ip(0)、Ip(π/2)、Ip(π)、Ip(3π/2)を得ることができる。それらの輝度値を下記の数式3に代入することにより、計測対象点Pに投射される光の位相φを求めることができる。ここに、数式3中の(x、y)は、計測対象点Pの横方向及び縦方向の座標値である。 As shown in FIG. 7, a light pattern having a sinusoidal luminance distribution is projected from a light source 72 to an object 73 through a grid 71 on which a light and shade pattern is printed in a sinusoidal pattern, and the fringe pattern on the object 73 is The image is taken by a camera 74 installed at a location different from the light source 72. An image is taken while shifting the grating 71 N times by 1 / N of the wavelength in the direction perpendicular to the stripes while the object 73 is stationary. For example, if the grating 71 is driven so that the phase of the fringe pattern is shifted by π / 2, and imaging is performed four times before the phase moves by one period, an object 73 is obtained as shown in FIG. Four luminance values Ip (0) , Ip ( π / 2) , Ip ( π ) , and Ip (/ 2) can be obtained for the measurement target point P on the surface. By substituting those luminance values into the following Equation 3, the phase φ of the light projected on the measurement target point P can be obtained. Here, (x, y) in Equation 3 are the coordinate values of the measurement target point P in the horizontal and vertical directions.

Figure 0004944633
Figure 0004944633

求められた位相φは、図7に示すように、計測対象点Pに到達する光が格子71のどの部分を通過するかを表すため、計測対象点Pへの光の投射角度βに対応した値となる。計測対象点Pについての位相φを求めた後は、求めた位相値と、カメラ74及び光源72間の距離Aと、物体73を撮影したときの撮影角度αとを用い、三角測量の原理によって、計測対象点Pまでの距離Zを求める。その後は、他の計測対象点についても、上記の処理を実行して距離Zを求め、これにより、物体73の表面形状を特定することが可能となる。   The obtained phase φ corresponds to the projection angle β of the light to the measurement target point P in order to indicate which part of the grating 71 the light reaching the measurement target point P passes as shown in FIG. Value. After the phase φ for the measurement target point P is obtained, the obtained phase value, the distance A between the camera 74 and the light source 72, and the photographing angle α when the object 73 is photographed are used according to the principle of triangulation. The distance Z to the measurement target point P is obtained. Thereafter, the above processing is also performed for other measurement target points to obtain the distance Z, and thereby the surface shape of the object 73 can be specified.

上述したように、計測対象点Pに投射される光の位相φは、数式3を用いて求めることができるが、tan-1が周期2πの周期関数であるため、数式3によって導かれる位相値φは、0〜2πのうちの何れかの値しか取り得ない。このため、例えば、実際の位相値φが7π/2であったとしても、数式3によって導かれる位相値φは、3π/2となり、周期2πの整数倍の不定性を残したものとなる。 As described above, the phase φ of the light projected onto the measurement target point P can be obtained using Equation 3. However, since tan −1 is a periodic function having a period of 2π, the phase value derived by Equation 3 is used. φ can only take any value between 0 and 2π. For this reason, for example, even if the actual phase value φ is 7π / 2, the phase value φ derived by Equation 3 is 3π / 2, and the indefiniteness of an integral multiple of the period 2π remains.

そこで、例えば、特許文献1には、基本の周期の正弦波と、その基本の周期の2倍の周期の正弦波とを足し合わせた濃淡パターンを有する光(図9参照)を物体に投射し、基本の周期の濃淡パターンの光に対応する位相値φ1と、2倍の周期の濃淡パターンの光に対応する位相値φ2とを求め、位相値φ2を参照しながら位相値φ1を位相接続することにより、位相値φ1の不定性を取り除くようにした三次元形状計測装置が提案されている。 Therefore, for example, in Patent Document 1, light (see FIG. 9) having a light and shade pattern obtained by adding a sine wave having a basic period and a sine wave having a period twice the basic period is projected onto an object. The phase value φ 1 corresponding to the light of the light / dark pattern having the basic period and the phase value φ 2 corresponding to the light of the light / dark pattern having the double period are obtained, and the phase value φ 1 is referred to with reference to the phase value φ 2. There has been proposed a three-dimensional shape measuring apparatus that removes the indefiniteness of the phase value φ 1 by connecting the phases.

特許第3199041号公報Japanese Patent No. 3199041

しかしながら、上記の三次元形状計測装置においては、異なる周期の濃淡パターンを足し合わせた光を物体に投射するため、計測対象点までの距離を求めるには、物体に投射された光を、基本周期の光に相当する分と、基本周期の2倍の周期の光に相当する分とに分離する必要がある。このため、三次元形状の計測に際し、高度な数学的手法が必要となり、演算処理時間が長期化するという問題があった。   However, in the above three-dimensional shape measuring apparatus, since the light obtained by adding the light and shade patterns with different periods is projected onto the object, the light projected on the object is used as the basic period to obtain the distance to the measurement target point. It is necessary to divide into the amount corresponding to the light of λ and the amount corresponding to the light having a cycle twice the basic cycle. For this reason, when measuring a three-dimensional shape, an advanced mathematical method is required, and there is a problem that the processing time is prolonged.

そこで、本発明は、上記従来の技術における問題点に鑑みてなされたものであって、演算時間を短縮し、短時間で三次元形状を計測することが可能な三次元形状計測装置及び三次元形状計測方法を提供することを目的とする。   Therefore, the present invention has been made in view of the above-described problems in the prior art, and can reduce a calculation time and can measure a three-dimensional shape in a short time and a three-dimensional shape measuring apparatus An object is to provide a shape measuring method.

上記目的を達成するため、本発明は、物体に正弦波状の光パターンを投射するとともに、前記光パターンが投射された物体を撮影し、その撮影画像に基づいて前記物体の三次元形状を計測する三次元形状計測装置であって、第1波長を有する第1光パターン及び前記第1波長より長い第2波長を有する第2光パターンの各々を前記物体に投射する投射手段と、前記第1及び第2光パターンが投射された物体を撮影する撮影手段と、前記撮影手段で撮影された画像に基づいて前記第1及び第2光パターンの相対位相を前記画像を構成する画素毎に算出する位相算出手段と、予め作成され、距離と対応付けて前記第1及び第2光パターンの相対位相テーブル値各画素の座標毎に記録されたテーブルと、前記位相算出手段によって算出された前記第1及び第2光パターンの相対位相を用いて前記テーブルを参照し、前記物体までの距離を求める距離導出手段とを備え、前記距離導出手段は、計測対象点を示す着目画素の座標と同一座標に対応付けられた前記第1及び第2光パターンの相対位相テーブル値を前記テーブルから読み出し、前記第1及び第2光パターンの相対位相の組み合わせと同一の組み合わせを有する前記第1及び第2光パターンの相対位相テーブル値を検索することを特徴とする。 In order to achieve the above object, the present invention projects a sinusoidal light pattern on an object, images the object on which the light pattern is projected, and measures the three-dimensional shape of the object based on the captured image. A three-dimensional shape measuring apparatus, wherein the first light pattern having a first wavelength and the second light pattern having a second wavelength longer than the first wavelength are projected onto the object, and the first and An imaging unit that captures an object on which the second light pattern is projected, and a phase that calculates the relative phase of the first and second light patterns for each pixel constituting the image based on the image captured by the imaging unit. a calculation unit, is created in advance, a table relative phase table value of the first and second light patterns are recorded for each coordinate of each pixel in association with distance, calculated by the phase calculating means and the With 1 and the relative phase of the second light pattern by referring to said table, and a distance deriving means for obtaining a distance to the object, said distance deriving means, the target pixel showing the measurement object point coordinates in the same coordinate The first and second lights having the same combination as the combination of the relative phases of the first and second light patterns are read out from the table and the relative phase table values of the first and second light patterns associated with the first and second light patterns are read from the table. The relative phase table value of the pattern is searched .

そして、本発明によれば、第1及び第2光パターンの相対位相値の算出後、テーブル中に記録されている第1及び第2光パターンの相対位相値のうちから、算出した第1及び第2光パターンの相対位相値と同じ組み合わせのものを検索するのみで、物体までの距離を導き出すことができるため、極めて簡単な処理で距離を求めることができ、物体の三次元形状を迅速に計測することが可能となる。   According to the present invention, after the calculation of the relative phase values of the first and second light patterns, the first and second calculated relative phase values of the first and second light patterns recorded in the table are calculated. The distance to the object can be derived simply by searching for the same combination with the relative phase value of the second light pattern, so the distance can be obtained with extremely simple processing, and the three-dimensional shape of the object can be quickly obtained. It becomes possible to measure.

上記三次元形状の計測装置において、前記第2波長を、前記第1波長の非整数倍にすることができ、これによれば、計測可能な距離が短く制限されるのを回避することができる。   In the three-dimensional shape measuring apparatus, the second wavelength can be made a non-integer multiple of the first wavelength, and according to this, it is possible to avoid that the measurable distance is limited to be short. .

また、本発明は、物体に正弦波状の光パターンを投射するとともに、前記光パターンが投射された物体を撮影し、その撮影画像に基づいて前記物体の三次元形状を計測する三次元形状計測方法であって、第1波長を有する第1光パターンと、前記第1波長より長い第2波長を有する第2光パターンとを前記物体に投射するステップと、前記第1及び第2光パターンが投射された物体を撮影するステップと、撮影された画像に基づいて前記第1及び第2光パターンの相対位相を前記画像を構成する画素毎に算出するステップと、予め作成され、距離と対応付けて前記第1及び第2光パターンの相対位相テーブル値各画素の座標毎に記録されたテーブルを、前記第3ステップで算出した前記第1及び第2光パターンの相対位相を用いて参照し、前記物体までの距離を求めるステップとを有し、前記物体までの距離を求めるステップは、計測対象点を示す着目画素の座標と同一座標に対応付けられた前記第1及び第2光パターンの相対位相テーブル値を前記テーブルから読み出し、前記第1及び第2光パターンの相対位相の組み合わせと同一の組み合わせを有する前記第1及び第2光パターンの相対位相テーブル値を検索することを特徴とする。本発明によれば、前記発明と同様に、極めて簡単な処理で距離を求めることができ、物体の三次元形状を迅速に計測することが可能となる。 The present invention also provides a three-dimensional shape measurement method for projecting a sinusoidal light pattern onto an object, photographing the object on which the light pattern is projected, and measuring the three-dimensional shape of the object based on the photographed image. A step of projecting a first light pattern having a first wavelength and a second light pattern having a second wavelength longer than the first wavelength onto the object; and projecting the first and second light patterns. A step of photographing the captured object, a step of calculating a relative phase of the first and second light patterns for each pixel constituting the image based on the photographed image, a pre-created, and associated with the distance a table relative phase table value of the first and second light patterns are recorded for each coordinate of each pixel, by referring to use of the third relative phase of said first and second light pattern is calculated in step, Have a determining a distance to the serial object, determining a distance to the object, relative to the first and second light pattern associated with the coordinates of the same coordinate of the target pixel showing the measurement target point The phase table value is read from the table, and the relative phase table value of the first and second light patterns having the same combination as the combination of the relative phases of the first and second light patterns is searched . According to the present invention, similar to the above-described invention, the distance can be obtained by an extremely simple process, and the three-dimensional shape of the object can be quickly measured.

上記三次元形状の計測方法において、前記第2波長を、前記第1波長の非整数倍にすることができ、これによれば、計測可能な距離が短く制限されるのを回避することができる。   In the three-dimensional shape measurement method, the second wavelength can be made a non-integer multiple of the first wavelength, and according to this, it is possible to avoid that the measurable distance is limited to be short. .

以上のように、本発明によれば、演算時間を短縮し、短時間で三次元形状を計測することが可能となる。   As described above, according to the present invention, it is possible to reduce the calculation time and measure the three-dimensional shape in a short time.

次に、本発明の実施の形態について図面を参照して詳細に説明する。   Next, embodiments of the present invention will be described in detail with reference to the drawings.

図1は、本発明にかかる三次元形状計測装置1の一実施の形態を示す全体構成図である。この三次元形状計測装置1は、投射手段及び撮影手段を各々1つずつ備える単眼式の三次元形状計測装置であり、所定の濃度分布を有する光(以下、「光パターン」という)を物体2に投射するプロジェクタ3と、光パターンが投射された物体2を撮影するカメラ4と、プロジェクタ3及びカメラ4の制御や各種の演算処理を行う制御部5から構成される。   FIG. 1 is an overall configuration diagram showing an embodiment of a three-dimensional shape measuring apparatus 1 according to the present invention. The three-dimensional shape measuring apparatus 1 is a monocular three-dimensional shape measuring apparatus having one projection unit and one photographing unit, and transmits light having a predetermined density distribution (hereinafter referred to as “light pattern”) to the object 2. A projector 3 that projects the light, a camera 4 that captures the object 2 on which the light pattern is projected, and a control unit 5 that controls the projector 3 and the camera 4 and performs various arithmetic processes.

プロジェクタ3は、所定の強度の光を発する光源3aと、正弦波状の濃淡パターンを表示し、光源3aからの光を正弦波状に変調する正弦波格子3bから構成される。正弦波格子3bは、例えば、画素単位で反射ミラーのオン/オフを制御できるDMD(Digital Micro-mirror Device)や、画素単位で光透過率を制御できる液晶パネル等から構成され、濃淡パターンのパターン間隔、すなわち、正弦波の波長を電子的に変化させたり、濃淡パターンの位相を電子的にシフトさせることが可能である。   The projector 3 includes a light source 3a that emits light having a predetermined intensity, and a sine wave grating 3b that displays a sine wave-like shading pattern and modulates the light from the light source 3a into a sine wave. The sine wave grating 3b is composed of, for example, a DMD (Digital Micro-mirror Device) that can control on / off of a reflection mirror in units of pixels, a liquid crystal panel that can control light transmittance in units of pixels, and the like, and a pattern of gray patterns It is possible to electronically change the interval, that is, the wavelength of the sine wave, or to electronically shift the phase of the shading pattern.

本実施の形態においては、物体2に光パターンを投射する際に、正弦波格子3bの濃淡パターンのパターン間隔が制御され、基本の周期を有する正弦波状の光パターン(以下、「短波長の光パターン」という)20と、光パターン20の周期より長い周期を有する正弦波状の光パターン(以下、「長波長の光パターン」という)30との2種類の光パターンが投射される。尚、長波長の光パターン30は、その波長が短波長の光パターン20の波長の整数倍とならないように設定される。   In the present embodiment, when the light pattern is projected onto the object 2, the pattern interval of the shading pattern of the sine wave grating 3b is controlled, and a sine wave light pattern having a basic period (hereinafter referred to as “short wavelength light”). Two types of light patterns are projected: a “pattern” (20) and a sinusoidal light pattern (hereinafter referred to as a “long wavelength light pattern”) 30 having a period longer than the period of the light pattern 20. The long wavelength light pattern 30 is set so that its wavelength does not become an integral multiple of the wavelength of the short wavelength light pattern 20.

また、短波長の光パターン20及び長波長の光パターン30の各光パターンを投射する際には、正弦波格子3bに表示される濃淡パターンの位相が制御され、各光パターンの位相がπ/2ずつシフトされる。   Further, when projecting each light pattern of the short wavelength light pattern 20 and the long wavelength light pattern 30, the phase of the light and shade pattern displayed on the sine wave grating 3b is controlled so that the phase of each light pattern is π / Shifted by two.

制御部5は、図2に示すように、カメラ4の動作を制御するカメラ制御部10と、プロジェクタ3の動作を制御するプロジェクタ制御部11と、カメラ4から出力される画像信号を取り込む画像取込部12と、後述するテーブル13a等を記憶する記憶部13と、位相値を算出する位相算出部14と、テーブル13aを参照して物体2までの距離を求める距離導出部15と、三次元データを生成する三次元データ生成部16とを備える。   As shown in FIG. 2, the control unit 5 includes a camera control unit 10 that controls the operation of the camera 4, a projector control unit 11 that controls the operation of the projector 3, and an image capture that captures an image signal output from the camera 4. A storage unit 13 that stores a later-described table 13a and the like, a phase calculation unit 14 that calculates a phase value, a distance deriving unit 15 that obtains a distance to the object 2 with reference to the table 13a, and a three-dimensional And a three-dimensional data generation unit 16 for generating data.

画像取込部12は、プロジェクタ3の位相シフト動作に同期して、カメラ4から出力される1画面分の画像信号を取り込み、記憶部13に記憶する。本実施の形態においては、光パターンの位相シフト量が0、π/2、π、3π/2、2πとなる各タイミングで、画像信号が取り込まれる。   The image capture unit 12 captures an image signal for one screen output from the camera 4 in synchronization with the phase shift operation of the projector 3 and stores the image signal in the storage unit 13. In the present embodiment, an image signal is captured at each timing when the phase shift amount of the light pattern becomes 0, π / 2, π, 3π / 2, 2π.

位相算出部14は、画像取込部12によって取り込まれた画像信号に基づいて、位相値を算出する。位相値の算出は、短波長の光パターン20が投射されたときと、長波長の光パターン30が投射されたときとの各々において、画素毎に行われる。短波長の光パターン20が投射されたときの位相値φ1は、以下の数式1によって算出され、長波長の光パターン30が投射されたときの位相値φ2は、以下の数式2によって算出される。 The phase calculation unit 14 calculates a phase value based on the image signal captured by the image capture unit 12. The phase value is calculated for each pixel when the short wavelength light pattern 20 is projected and when the long wavelength light pattern 30 is projected. The phase value φ 1 when the short-wavelength light pattern 20 is projected is calculated by the following formula 1, and the phase value φ 2 when the long-wavelength light pattern 30 is projected is calculated by the following formula 2. Is done.

Figure 0004944633
Figure 0004944633

Figure 0004944633
Figure 0004944633

ここに、(x、y)は、画素の横方向及び縦方向の座標値であり、I1、I2は、その画素の輝度値である。また、N1、N2は、位相シフトのシフト回数であり、t1、t2は、位相シフトのシフト量である。 Here, (x, y) are the horizontal and vertical coordinate values of the pixel, and I 1 and I 2 are the luminance values of the pixel. N 1 and N 2 are the number of phase shift shifts, and t 1 and t 2 are phase shift shift amounts.

上記のようにして算出される位相値φ1、φ2は、何れも、周期2πの整数倍の不定性を有するが、以下の説明においては、不定性を有する位相値を「相対位相値」と称する。また、位相シフトさせた短波長の光パターン20を投射し、その撮影画像から得られる相対位相値を「短波長の相対位相値」と称し、位相シフトさせた長波長の光パターン30を投射し、その撮影画像から得られる相対位相値を「長波長の相対位相値」と称する。 Both of the phase values φ 1 and φ 2 calculated as described above have indefiniteness that is an integral multiple of the period 2π. In the following description, the phase value having indefiniteness is referred to as a “relative phase value”. Called. Also, the phase shifted short wavelength light pattern 20 is projected, the relative phase value obtained from the captured image is referred to as “short wavelength relative phase value”, and the phase shifted long wavelength light pattern 30 is projected. The relative phase value obtained from the captured image is referred to as a “long wavelength relative phase value”.

距離導出部15は、位相算出部14で算出された相対位相値φ1、φ2を用いて、記憶部13に記憶されたテーブル13aを参照し、基準点Jから計測対象点Pまでの距離Z(図1参照)を導き出す。 The distance deriving unit 15 refers to the table 13a stored in the storage unit 13 using the relative phase values φ 1 and φ 2 calculated by the phase calculating unit 14 and refers to the distance from the reference point J to the measurement target point P. Z (see FIG. 1) is derived.

図3は、テーブル13aの一例を示す模式図であり、図4は、テーブル13aの作成方法を概念的に示す図である。図3に示すように、テーブル13aには、複数の距離テーブル40a、40b・・・40kが設けられ、各距離テーブル40には、短波長の相対位相値φ1及び長波長の相対位相値φ2が記録される。以下、テーブル13aに記録される相対位相値φ1、φ2を、三次元形状の計測時に算出される相対位相値φ1、φ2と区別するため、相対位相テーブル値Tφ1、Tφ2と称する。 FIG. 3 is a schematic diagram illustrating an example of the table 13a, and FIG. 4 is a diagram conceptually illustrating a method for creating the table 13a. As shown in FIG. 3, the table 13a is provided with a plurality of distance tables 40a, 40b,... 40k, and each distance table 40 has a short wavelength relative phase value φ 1 and a long wavelength relative phase value φ. 2 is recorded. Hereinafter, in order to distinguish the relative phase values φ 1 and φ 2 recorded in the table 13a from the relative phase values φ 1 and φ 2 calculated at the time of measuring the three-dimensional shape, the relative phase table values Tφ 1 and Tφ 2 Called.

テーブル13aは、三次元形状の計測に先立ち、短波長の相対位相値φ1及び長波長の相対位相値φ2を各々サンプリングすることによって、作成されるものである。テーブル13aの作成にあたっては、まず、プロジェクタ3及びカメラ4間の距離、並びに、それらの設置角度を、実際の三次元形状の計測時と同じ状態に固定し、平坦面を有する平板を所定の基準位置(距離Z0)に設置して、短波長の光パターンを投射する。そして、位相をπ/2ずつシフトさせながら、画像を撮影し、各画素について、短波長の相対位相値φ1(A0)を算出する。次いで、平板の位置を変えずに、長波長の光パターンを投射し、上記と同様にして、長波長の相対位相値φ2(B0)を算出する。 The table 13a is created by sampling the short-wavelength relative phase value φ 1 and the long-wavelength relative phase value φ 2 before measuring the three-dimensional shape. In creating the table 13a, first, the distance between the projector 3 and the camera 4 and their installation angles are fixed to the same state as when measuring an actual three-dimensional shape, and a flat plate having a flat surface is set to a predetermined reference. Installed at a position (distance Z 0 ) to project a short wavelength light pattern. Then, an image is taken while shifting the phase by π / 2, and a short wavelength relative phase value φ 1 (A 0 ) is calculated for each pixel. Next, a long wavelength light pattern is projected without changing the position of the flat plate, and a long wavelength relative phase value φ 2 (B 0 ) is calculated in the same manner as described above.

次いで、算出した短波長及び長波長の相対位相値φ1(A0)、φ2(B0)を、距離Z0の距離テーブル40aに、短波長及び長波長の相対位相テーブル値Tφ1(A0)、Tφ2(B0)として記録する。このとき、短波長及び長波長の相対位相テーブル値Tφ1、Tφ2は、各画素の座標と対応付けて記録し、また、2つの位相値を別個に記録するのではなく、対にしてセットで記録する。 Next, the calculated short-wavelength and long-wavelength relative phase values φ 1 (A 0 ) and φ 2 (B 0 ) are stored in the distance table 40a for the distance Z 0 and the short-wavelength and long-wavelength relative phase table values Tφ 1 ( A 0 ) and Tφ 2 (B 0 ). At this time, the relative phase table values Tφ 1 and Tφ 2 of the short wavelength and the long wavelength are recorded in association with the coordinates of each pixel, and the two phase values are not recorded separately but set in pairs. Record with.

その後、平板を奥行き方向に所定量だけ移動させて、基準位置から平板までの距離をZ1に設定し、上記と同様にして、各画素について、相対位相値φ1(A1)、φ2(B1)を求める。そして、距離Z1の距離テーブル40bに、求めた相対位相テーブル値Tφ1、Tφ2を記録する。以後、平板を所定の移動量で奥行き方向に移動させながら、順次、距離Z2、Z3・・・Zkでの相対位相テーブル値Tφ1、Tφ2を求め、各距離の距離テーブル40に記録して行く。尚、テーブル13a中に、相対位相テーブル値Tφ1、Tφ2を、どの程度の距離まで記録するかは、計測対象範囲をどの程度の大きさに設定するか、計測対象物の形状、大きさなどに応じて、適宜決定することができる。 Thereafter, the flat plate is moved in the depth direction by a predetermined amount, the distance from the reference position to the flat plate is set to Z 1 , and the relative phase values φ 1 (A 1 ), φ 2 are set for each pixel in the same manner as described above. Find (B 1 ). Then, the obtained relative phase table values Tφ 1 and Tφ 2 are recorded in the distance table 40b of the distance Z 1 . Thereafter, the relative phase table values Tφ 1 and Tφ 2 at the distances Z 2 , Z 3 ... Z k are sequentially obtained while moving the flat plate in the depth direction by a predetermined movement amount, and the distance table 40 for each distance is obtained. Record it. The relative phase table values Tφ 1 and Tφ 2 are recorded in the table 13a up to what distance, the size of the measurement target range is set, the shape and size of the measurement target It can be appropriately determined according to the above.

次に、上記の三次元形状測定装置1を用いた三次元形状の計測方法について説明する。   Next, a three-dimensional shape measurement method using the above three-dimensional shape measurement apparatus 1 will be described.

物体2の三次元形状を計測するにあたっては、まず、光パターンの位相シフト量を0にした状態で、短波長の光パターン20を物体2に投射し、カメラ4から出力される画像信号を取り込む(ステップS1)。次いで、光パターンの位相をπ/2、π、3π/2、2πだけ順次シフトさせた状態で、短波長の光パターン20を物体2に投射し、各位相シフト量での画像信号を取り込む(ステップS2)。   In measuring the three-dimensional shape of the object 2, first, with the phase shift amount of the light pattern set to 0, the short-wavelength light pattern 20 is projected onto the object 2 and the image signal output from the camera 4 is captured. (Step S1). Next, in a state where the phase of the light pattern is sequentially shifted by π / 2, π, 3π / 2, and 2π, the short-wavelength light pattern 20 is projected onto the object 2 and an image signal with each phase shift amount is captured ( Step S2).

次いで、光パターンの位相シフト量が0のときに取り込んだ画像信号と、光パターンの位相をπ/2、π、3π/2、2πだけシフトさせたときに取り込んだ画像信号とから、短波長の光パターン20を投射したときの相対位相値φ1を算出する(ステップS3)。このとき、相対位相値φ1は、画素毎に算出し、画素座標と対応付けて記憶部13に記憶する。 Next, from the image signal captured when the phase shift amount of the light pattern is 0 and the image signal captured when the phase of the light pattern is shifted by π / 2, π, 3π / 2, 2π, the short wavelength The relative phase value φ 1 when the light pattern 20 is projected is calculated (step S3). At this time, the relative phase value φ 1 is calculated for each pixel and stored in the storage unit 13 in association with the pixel coordinates.

次いで、長波長の光パターン30を物体2に投射し、光パターンの位相シフト量を0にしたときの画像信号、及び光パターンの位相をπ/2、π、3π/2、2πだけシフトさせたときの画像信号を各々取り込む(ステップS4、S5)。そして、取り込んだ各画像信号に基づき、長波長の光パターン30を投射したときの相対位相値φ2を画素単位で算出し、記憶部13に記憶する(ステップS6)。 Next, a long wavelength light pattern 30 is projected onto the object 2, and the phase of the image signal and the light pattern when the phase shift amount of the light pattern is set to 0 are shifted by π / 2, π, 3π / 2, and 2π. Each image signal is captured (steps S4 and S5). Then, based on each captured image signal, the relative phase value φ 2 when the long-wavelength light pattern 30 is projected is calculated for each pixel and stored in the storage unit 13 (step S6).

次いで、1画面を構成する複数の画素の中から1つの画素を着目画素(計測対象点)として選択するとともに(ステップS7)、選択した画素の相対位相値φ1、φ2を記憶部13から読み出す(ステップS8)。次に、テーブル13aを参照し、テーブル13a中に記録されている相対位相テーブル値Tφ1、Tφ2のセットのうちから、相対位相値φ1、φ2と同じ組み合わせのものを検索する(ステップS9)。このとき、テーブル13a中のすべての相対位相テーブル値Tφ1、Tφ2を参照するのではなく、着目画素の座標と同じ座標の相対位相テーブル値Tφ1、Tφ2のみを読み出し、その中から同じ組み合わせのものを検索する。 Next, one pixel is selected as a target pixel (measurement target point) from a plurality of pixels constituting one screen (step S7), and the relative phase values φ 1 and φ 2 of the selected pixel are stored from the storage unit 13. Read (step S8). Next, referring to the table 13a, a set having the same combination as the relative phase values φ 1 and φ 2 is retrieved from the set of the relative phase table values Tφ 1 and Tφ 2 recorded in the table 13a (step S1). S9). At this time, all relative phase table value Tifai 1 in the table 13a, instead of referring to Tifai 2, the relative phase table value Tifai 1 of the same coordinates as the coordinates of the target pixel, read only Tifai 2, the same among them Search for combinations.

次いで、検索したセットが記録されている距離テーブル40の距離Zを読み出し、読み出した距離Zを計測対象点の奥行き座標として認定する(ステップS10)。   Next, the distance Z in the distance table 40 in which the searched set is recorded is read, and the read distance Z is recognized as the depth coordinate of the measurement target point (step S10).

計測対象点の奥行き座標の取得後は、奥行き座標を取得していない画素(計測対象点)が残っているか否かを判定し(ステップS11)、未取得の画素が存在すれば、その中から1つの画素を着目画素として選択する(ステップS12)。そして、上記と同様にして、奥行き座標を取得し(ステップS8〜S10)、以後、奥行き座標を取得していない画素が無くなるまで、ステップS8〜S12の処理を繰り返す。   After obtaining the depth coordinates of the measurement target point, it is determined whether or not pixels (measurement target points) from which the depth coordinates have not been acquired remain (step S11). One pixel is selected as the pixel of interest (step S12). Then, in the same manner as described above, the depth coordinates are acquired (steps S8 to S10), and thereafter, the processing of steps S8 to S12 is repeated until there are no pixels for which the depth coordinates are not acquired.

物体2の表面上のすべての計測対象点について奥行き座標を取得し、奥行き座標を取得していない画素が無くなれば、取得した奥行き座標と、各計測対象点の縦方向の座標及び横方向の座標とを統合し、物体2の三次元形状を示す三次元データを生成する(ステップS13)。   If the depth coordinates are acquired for all measurement target points on the surface of the object 2 and there are no pixels for which the depth coordinates have not been acquired, the acquired depth coordinates and the vertical and horizontal coordinates of each measurement target point And 3D data indicating the 3D shape of the object 2 is generated (step S13).

以上説明したように、本実施の形態においては、平板までの距離Zと対応付けて、相対位相テーブル値Tφ1、Tφ2を記録したテーブル13aを予め作成し、物体2の三次元形状を計測する際には、そのテーブル13aを用いて計測対象点Pの奥行き座標を求める。このため、相対位相値φ1、φ2の算出後は、テーブル13a中に記録されている相対位相テーブル値Tφ1、Tφ2のセットのうちから、算出した相対位相値φ1、φ2と同じ組み合わせのセットを検索するのみで、距離Zを導き出すことができる。従って、極めて簡単な処理で計測対象点Pの奥行き座標を求めることができ、物体2の三次元形状を迅速に計測することが可能となる。 As described above, in the present embodiment, the table 13a in which the relative phase table values Tφ 1 and Tφ 2 are recorded in advance is associated with the distance Z to the flat plate, and the three-dimensional shape of the object 2 is measured. In doing so, the depth coordinate of the measurement target point P is obtained using the table 13a. Therefore, after the relative phase values φ 1 and φ 2 are calculated, the calculated relative phase values φ 1 and φ 2 from the set of the relative phase table values Tφ 1 and Tφ 2 recorded in the table 13a are The distance Z can be derived simply by searching the same set of combinations. Accordingly, the depth coordinates of the measurement target point P can be obtained by extremely simple processing, and the three-dimensional shape of the object 2 can be measured quickly.

また、本実施の形態においては、長波長の光パターン30の波長が、短波長の光パターン20の波長の整数倍にならないように設定されるため、図6に示すように、長波長の光パターン30の1周期目の始点から終点までの区間L1と、2周期目の始点から終点までの区間L2とで、短波長の相対位相値φ1と長波長の相対位相値φ2との組み合わせパターンが異なる。このため、例えば、長波長の相対位相値φ2が同じπの場合でも、区間L2の短波長の相対位相値φ1は、区間L1の短波長の相対位相値φ1と異なる値になり、従って、計測可能な距離が長波長の光パターン30の1周期分の距離に限定されるのを回避することができる。 In the present embodiment, since the wavelength of the long wavelength light pattern 30 is set so as not to be an integral multiple of the wavelength of the short wavelength light pattern 20, as shown in FIG. In the section L 1 from the start point to the end point of the first period of the pattern 30 and the section L 2 from the start point to the end point of the second period, the relative phase value φ 1 of the short wavelength and the relative phase value φ 2 of the long wavelength are The combination pattern is different. Therefore, for example, even when the relative phase value φ 2 of the long wavelength is the same π, the relative phase value φ 1 of the short wavelength in the section L 2 is different from the relative phase value φ 1 of the short wavelength in the section L 1. Therefore, it is possible to avoid that the measurable distance is limited to the distance of one cycle of the long wavelength light pattern 30.

本発明にかかる三次元計測装置の一実施の形態を示す全体構成図である。1 is an overall configuration diagram showing an embodiment of a three-dimensional measurement apparatus according to the present invention. 図1の制御部を示す構成図である。It is a block diagram which shows the control part of FIG. 図1のテーブルを示す模式図である。It is a schematic diagram which shows the table of FIG. テーブルの作成方法を概念的に示す図である。It is a figure which shows the creation method of a table notionally. 図1の三次元計測装置の動作を説明するフローチャートである。It is a flowchart explaining operation | movement of the three-dimensional measuring apparatus of FIG. 短波長の相対位相と長波長の相対位相との関係を示す波形図である。It is a wave form diagram which shows the relationship between the relative phase of a short wavelength, and the relative phase of a long wavelength. 従来の三次元形状計測装置の一例を示す全体構成図である。It is a whole lineblock diagram showing an example of the conventional three-dimensional shape measuring device. 従来の三次元形状計測装置の動作を説明する波形図である。It is a wave form diagram explaining operation | movement of the conventional three-dimensional shape measuring apparatus. 従来の三次元形状計測装置で用いられる光パターンを示す波形図である。It is a wave form diagram which shows the optical pattern used with the conventional three-dimensional shape measuring apparatus.

符号の説明Explanation of symbols

1 三次元形状計測装置
2 物体
3 プロジェクタ
3a 光源
3b 正弦波格子
4 カメラ
5 制御部
10 カメラ制御部
11 プロジェクタ制御部
12 画像取込部
13 記憶部
13a テーブル
14 位相算出部
15 距離導出部
16 三次元データ生成部
20 短波長の光パターン
30 長波長の光パターン
40(40a〜40c、40k) 距離テーブル
DESCRIPTION OF SYMBOLS 1 3D shape measuring apparatus 2 Object 3 Projector 3a Light source 3b Sine wave grating 4 Camera 5 Control part 10 Camera control part 11 Projector control part 12 Image capture part 13 Storage part 13a Table 14 Phase calculation part 15 Distance deriving part 16 Three-dimensional Data generation unit 20 Short wavelength optical pattern 30 Long wavelength optical pattern 40 (40a to 40c, 40k) Distance table

Claims (4)

物体に正弦波状の光パターンを投射するとともに、前記光パターンが投射された物体を撮影し、その撮影画像に基づいて前記物体の三次元形状を計測する三次元形状計測装置であって、
第1波長を有する第1光パターン及び前記第1波長より長い第2波長を有する第2光パターンの各々を前記物体に投射する投射手段と、
前記第1及び第2光パターンが投射された物体を撮影する撮影手段と、
前記撮影手段で撮影された画像に基づいて前記第1及び第2光パターンの相対位相を前記画像を構成する画素毎に算出する位相算出手段と、
予め作成され、距離と対応付けて前記第1及び第2光パターンの相対位相テーブル値各画素の座標毎に記録されたテーブルと、
前記位相算出手段によって算出された前記第1及び第2光パターンの相対位相を用いて前記テーブルを参照し、前記物体までの距離を求める距離導出手段とを備え
前記距離導出手段は、計測対象点を示す着目画素の座標と同一座標に対応付けられた前記第1及び第2光パターンの相対位相テーブル値を前記テーブルから読み出し、前記第1及び第2光パターンの相対位相の組み合わせと同一の組み合わせを有する前記第1及び第2光パターンの相対位相テーブル値を検索することを特徴とする三次元形状計測装置。
A three-dimensional shape measuring device that projects a sinusoidal light pattern on an object, images the object on which the light pattern is projected, and measures the three-dimensional shape of the object based on the captured image,
Projecting means for projecting each of a first light pattern having a first wavelength and a second light pattern having a second wavelength longer than the first wavelength onto the object;
Photographing means for photographing the object on which the first and second light patterns are projected;
Phase calculating means for calculating a relative phase of the first and second light patterns for each pixel constituting the image based on an image photographed by the photographing means;
A table that is created in advance and is associated with the distance and in which the relative phase table values of the first and second light patterns are recorded for each pixel coordinate ;
A distance deriving unit that obtains a distance to the object by referring to the table using a relative phase of the first and second light patterns calculated by the phase calculating unit ;
The distance deriving unit reads out the relative phase table values of the first and second light patterns associated with the same coordinates as the coordinates of the target pixel indicating the measurement target point from the table, and the first and second light patterns. A three-dimensional shape measuring apparatus, wherein a relative phase table value of the first and second light patterns having the same combination as the combination of relative phases is searched .
前記第2波長が、前記第1波長の非整数倍であることを特徴とする請求項1に記載の三次元形状計測装置。   The three-dimensional shape measurement apparatus according to claim 1, wherein the second wavelength is a non-integer multiple of the first wavelength. 物体に正弦波状の光パターンを投射するとともに、前記光パターンが投射された物体を撮影し、その撮影画像に基づいて前記物体の三次元形状を計測する三次元形状計測方法であって、
第1波長を有する第1光パターンと、前記第1波長より長い第2波長を有する第2光パターンとを前記物体に投射するステップと、
前記第1及び第2光パターンが投射された物体を撮影するステップと、
撮影された画像に基づいて前記第1及び第2光パターンの相対位相を前記画像を構成する画素毎に算出するステップと、
予め作成され、距離と対応付けて前記第1及び第2光パターンの相対位相テーブル値各画素の座標毎に記録されたテーブルを、前記第3ステップで算出した前記第1及び第2光パターンの相対位相を用いて参照し、前記物体までの距離を求めるステップとを有し、
前記物体までの距離を求めるステップは、計測対象点を示す着目画素の座標と同一座標に対応付けられた前記第1及び第2光パターンの相対位相テーブル値を前記テーブルから読み出し、前記第1及び第2光パターンの相対位相の組み合わせと同一の組み合わせを有する前記第1及び第2光パターンの相対位相テーブル値を検索することを特徴とする三次元形状計測方法。
A three-dimensional shape measurement method for projecting a sinusoidal light pattern on an object, photographing the object on which the light pattern is projected, and measuring the three-dimensional shape of the object based on the photographed image,
Projecting a first light pattern having a first wavelength and a second light pattern having a second wavelength longer than the first wavelength onto the object;
Photographing an object on which the first and second light patterns are projected;
Calculating a relative phase of the first and second light patterns for each pixel constituting the image based on the captured image;
The first and second light patterns calculated in the third step are prepared in advance, and a table in which the relative phase table values of the first and second light patterns are recorded for each coordinate in association with the distance. referring to using a relative phase, it has a determining a distance to the object,
The step of obtaining the distance to the object reads out the relative phase table values of the first and second light patterns associated with the same coordinates as the coordinates of the pixel of interest indicating the measurement target point from the table, and A three-dimensional shape measurement method, wherein a relative phase table value of the first and second light patterns having the same combination as a combination of relative phases of the second light pattern is searched .
前記第2波長が、前記第1波長の非整数倍であることを特徴とする請求項3に記載の三次元形状計測方法。   The three-dimensional shape measurement method according to claim 3, wherein the second wavelength is a non-integer multiple of the first wavelength.
JP2007025380A 2007-02-05 2007-02-05 Three-dimensional shape measuring apparatus and three-dimensional shape measuring method Expired - Fee Related JP4944633B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2007025380A JP4944633B2 (en) 2007-02-05 2007-02-05 Three-dimensional shape measuring apparatus and three-dimensional shape measuring method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2007025380A JP4944633B2 (en) 2007-02-05 2007-02-05 Three-dimensional shape measuring apparatus and three-dimensional shape measuring method

Publications (2)

Publication Number Publication Date
JP2008190990A JP2008190990A (en) 2008-08-21
JP4944633B2 true JP4944633B2 (en) 2012-06-06

Family

ID=39751226

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2007025380A Expired - Fee Related JP4944633B2 (en) 2007-02-05 2007-02-05 Three-dimensional shape measuring apparatus and three-dimensional shape measuring method

Country Status (1)

Country Link
JP (1) JP4944633B2 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011064482A (en) * 2009-09-15 2011-03-31 Kurabo Ind Ltd Device and method of high-speed three-dimensional measurement
JP2017110991A (en) * 2015-12-16 2017-06-22 セイコーエプソン株式会社 Measurement system, measurement method, robot control method, robot, robot system, and picking device
JP6308637B1 (en) * 2017-05-08 2018-04-11 国立大学法人福井大学 3D measurement method and apparatus using feature quantity

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001159510A (en) * 1999-12-01 2001-06-12 Matsushita Electric Ind Co Ltd Three-dimensional shape measuring method and its device
JP3554816B2 (en) * 2000-09-14 2004-08-18 和歌山大学長 Real-time shape deformation measurement method by rectangular wave grid projection
JP4289893B2 (en) * 2003-01-21 2009-07-01 株式会社ニッケ機械製作所 Appearance measuring device
JP2006003212A (en) * 2004-06-17 2006-01-05 Konica Minolta Sensing Inc Phase measurement system
JP4516949B2 (en) * 2006-12-08 2010-08-04 Necエンジニアリング株式会社 Three-dimensional shape measuring apparatus and three-dimensional shape measuring method
JP4797109B2 (en) * 2010-03-26 2011-10-19 Necエンジニアリング株式会社 Three-dimensional shape measuring apparatus and three-dimensional shape measuring method
JP2010175554A (en) * 2010-03-26 2010-08-12 Nec Engineering Ltd Device and method for measuring three-dimensional shape

Also Published As

Publication number Publication date
JP2008190990A (en) 2008-08-21

Similar Documents

Publication Publication Date Title
JP5032943B2 (en) 3D shape measuring apparatus and 3D shape measuring method
US9479757B2 (en) Structured-light projector and three-dimensional scanner comprising such a projector
JP4830871B2 (en) 3D shape measuring apparatus and 3D shape measuring method
US20120281087A1 (en) Three-dimensional scanner for hand-held phones
KR20130032368A (en) Three-dimensional measurement apparatus, three-dimensional measurement method, and storage medium
JP5633058B1 (en) 3D measuring apparatus and 3D measuring method
KR101562467B1 (en) 3 dimensional measurement device using smart phone
JP6418884B2 (en) Three-dimensional measuring apparatus, three-dimensional measuring method and program
JP4516949B2 (en) Three-dimensional shape measuring apparatus and three-dimensional shape measuring method
TW201337212A (en) Profile measuring apparatus, structure manufacturing system, method for measuring profile, method for manufacturing structure, and non-transitory computer readable medium
JP2017075887A (en) Vibration detection device, inspection device, vibration detection method, and vibration detection program
JP2014115108A (en) Distance measuring device
JP4797109B2 (en) Three-dimensional shape measuring apparatus and three-dimensional shape measuring method
JP6104662B2 (en) Measuring device, method and program
JP2008145139A (en) Shape measuring device
JP2010175554A (en) Device and method for measuring three-dimensional shape
US10223606B2 (en) 3-D intraoral measurements using optical multiline method
JP4944633B2 (en) Three-dimensional shape measuring apparatus and three-dimensional shape measuring method
JP5956296B2 (en) Shape measuring apparatus and shape measuring method
JP3925266B2 (en) Three-dimensional shape input device and displacement detection method
JP2019159872A (en) Arithmetic unit, control method for arithmetic unit, and computer program
JP3265476B2 (en) Real-time shape deformation measurement method
JP2011021970A (en) Three-dimensional shape measuring device and three-dimensional shape measuring method
JP2017156311A (en) Three-dimensional measurement device, three-dimensional measurement system, three-dimensional measurement method, and program
JP2006170744A (en) Three-dimensional distance measuring instrument

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20100114

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20111027

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20111031

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20111209

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: 20120222

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20120302

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20150309

Year of fee payment: 3

LAPS Cancellation because of no payment of annual fees