【発明の属する技術分野】
本発明は測定対象に対してパターン光を照射することによって得られるパターン投影像を、撮像手段により異なる方向から撮像し距離情報を得る三角測量法に基づく3次元形状計測技術に関する。
【0001】
【従来の技術】
3次元形状を取得する手法には、アクティブ手法(Active vision)とパッシブ手法(Passive vision)がある。アクティブ手法は、(1)レーザ光等を発して、対象物からの反射光量や到達時間を計測し、奥行き情報を抽出するレーザ手法や、(2)スリット光などの特殊なパターン光源を用いて、対象表面パターンの幾何学的変形等の画像情報により対象形状を推定するパターン投影方法や、(3)光学的処理によってモアレ縞により等高線を形成させて、3次元情報を得る方法などがある。一方、パッシブ手法は、対象物の見え方、光源、照明、影情報等に関する情報を利用して、一枚の画像から3次元情報を推定する単眼立体視や三角測量原理で各画素の奥行き情報を推定する二眼立体視等がある。
【0002】
上述した種々の計測手法の中でアクティブ手法の一つであるパターン投影法は、簡易な装置で高精度に3次元情報を取得できる手法である。これを更に詳しく説明する。パターン投影法は、対象とする物体に基準となるパターン光を投影し、パターン投影像の撮像を投影された方向とは異なる方向から行う手法である。撮像されたパターン像は、物体の形状によって変形を受けたものとなる。撮像された変形パターンと投影したパターンとの対応づけを行うことで、物体の3次元計測を行う。具体的な計測手法として、光切断法や空間コード化法がある。光切断法は一本のスリットパターンを対象物に投影し、スリットパターンを、計測したい対象物領域に渡り走査することにより、対象物の3次元情報を取得する手法である。空間コード化法は、空間解像度の違う2値パターンを複数用意し、これを順番に対象物に投影することにより、光切断法のスリット光の走査を省き、短時間で対象物の3次元情報を取得する手法である。計測の高精度化と高信頼性を図るために光切断法では、撮像されたストライプ画像の重心(座標)を求める処理を行い、空間コード化法では、撮像されたパターン画像の2値化処理を行っている。このように計測の精度や信頼性においては優れた手法といえるが、問題点としてスリット光の走査や複数回のパターン投影を行わなければならないため計測時間がかかり、計測対象が静止物体に限られ、用途が限定されるという問題があった。
【0003】
このような問題を解決する手段として、Chu−Song Chenらは、多値パターン投影法を提案している(Chu−Song Chen,Range data acquisition using color structure light and stereo vision,image andvision computing 15(1997)445−456)。多値パターン投影法は、光切断法や空間コード化法の2値パターンに対し多階調のパターンを対象物の投射し、1回の撮像にて対象物の3次元情報を取得する手法である。これを図8および図9を用いて説明する。図8は、従来型の多値パターン投影法による3次元形状計測装置の概観図であり、図9は、使用される多値パターンを表した図である。図9に示す複数色C1、C2、C3・・・Cnを使用し、それぞれの色のストライプパターンの間にブラックストライプを介在させた多値パターン光を、図8に示す投光系により対象物に投射する。対象物上の光学像を投光系と別視点に配置した2台のカメラにて撮像し、得られたパターン像を比較し同一と思われる個所を探索する。ここで、パターン像間にて同一個所を探索するまでのフローは以下の通りである。
[ステップ1]:2つのパターン撮像画像それぞれのエッジを抽出する。
[ステップ2]:エッジ両側の画素情報(輝度値、色相)をそれぞれ取得する。
[ステップ3]:エピポーラライン上にて同じ画素情報を持つ画素を対応点であると判断し、三角測量の原理から、距離を算出する。
【0004】
ストライプパターンC1、C2、C3・・・Cnのそれぞれの間にブラックストライプを介在させたのは、隣接するパターン間においてコントラストを上昇させステップ1におけるエッジ抽出精度を向上させるのが目的である。しかしながら、反射率の低い対象物(濃い色の対象物など)を計測対象にする場合、隣接するパターン間におけるコントラストは低下し、エッジが抽出できない場合があった。エッジが抽出できない個所は、距離計測ができず大きな問題となっていた。
【0005】
【発明が解決しようとする課題】
本発明は、上記問題点を解決することを目的としてなされたものであり、多値パターンを投射してもエッジ抽出を精度良く行うことができる信頼性の高い3次元形状計測技術を提供することにある。
【0006】
【課題を解決するための手段】
本発明の一側面によれば、上述の目的を達成するために、複数のストライプで構成されたパターンを対象物に投光する投光手段と、該投光手段と主点を異なる位置に配置した一乃至複数の撮像手段とから構成される3次元形状計測装置において、該ストライプに濃度勾配を持たせるようにしている。
【0007】
この構成においては、ストライプに濃度勾配を持たせることにより隣接するストライプのエッジにおける濃度差を大きくすることができ、対象物の濃度が大きな場合でも確実にエッジを検出して対象物との間の距離を正確に測定できる。
【0008】
濃度勾配を持った該ストライプは、隣接するストライプ間の輝度差が大きくなるように設定する。該投光手段により投光される該ストライプの濃度勾配は、モノクロにより表されてもよいし、R、G、Bにより表されてもよい。
【0009】
本発明の上述の側面および本発明の他の側面は特許請求の範囲に記載され、以下に実施例を用いて詳細に説明される。
【0010】
【発明の実施の形態】
以下、図面を参照しながら実施例に基づいて、本発明を具体的に説明する。
【0011】
[第1の実施例]
図1は、本発明の第1の実施例の構成図である。複数のストライプパターンを対象物10に投光する投光手段である投光系にプロジェクタ11を用い、投光系と主点を異なる位置に配置した撮像手段であるカメラ12にて、対象物10上のパターン投影像を撮像する。投光系にて投射される複数のストライプパターンは、図2にて示されるように、それぞれが濃度勾配を持った傾斜パターン光であり、かつ多値のパターンにより構成される。本実施例では、モノクロの5種類の濃度勾配を持った多値のパターンを使用した。モノクロの輝度値を256階調で現し、パターン1から5を以下の階調に割り付けた。
【0012】
パターン1:255から0階調の濃度勾配を持ったパターン
パターン2:204から0階調の濃度勾配を持ったパターン
パターン3:153から0階調の濃度勾配を持ったパターン
パターン4:102から0階調の濃度勾配を持ったパターン
パターン5:51から0階調の濃度勾配を持ったパターン
【0013】
これらを、同じ繰り返しがないように、また隣接するパターン間にて0階調同士が並ばないように配列を行う。図3に用いた配列を示す。但し、これは一つの例であり、他の階調割り付けおよび配列においても本発明の効果は同様に得られるものである。図3に示した濃度勾配を持った多値パターン光を対象物10に照射し、投光系と主点を異なる位置に配置した撮像手段であるカメラ12にて、対象物10上のパターン投影像を撮像し、投射パターン光とパターン投影像にて対応づけを行う。ここで、距離算出までのフローは以下の通りである。
【0014】
・フロー1
[ステップ1]:パターン撮像画像のエッジを抽出する。
[ステップ2]:エッジ両側の画素情報(輝度値)を取得する。
[ステップ3]:パターン撮像画像と同じ画素情報を持つ投射パターン光を探索、決定し、三角測量の原理から、距離を算出する。
【0015】
その他に以下のフローにても、距離算出が可能である。
【0016】
・フロー2
[ステップ1]:パターン撮像画像のエッジを抽出する。
[ステップ2]:エッジ両側の画素情報(輝度値)を取得する。
[ステップ3]:エッジ両側の画素情報(輝度値)の一部あるいは、全ての配列から投射パターン光の配列を予測し、投射パターン光とパターン撮像画像の対応づけを行い、三角測量の原理から、距離を算出する。
【0017】
パターン撮像画像は、個々のパターンに濃度勾配があり、パターン間のコントラストが非常に高い状態であるため、ステップ1にて行うエッジ抽出の精度が飛躍的に向上する。これは特に反射率の低い対象物(濃い色の対象物など)を計測対象にする場合に有効であり、安定したエッジ抽出が可能となり、信頼性の高い距離計測が可能となる。
【0018】
[第2の実施例]
つぎに本発明の第2の実施例について説明する。
【0019】
図4は、本発明の第2の実施例の構成図である。複数のストライプパターンを対象物10に投光する投光手段である投光形にプロジェクタ11を用い、投光系と主点を異なる位置に配置した撮像手段である2台のカメラ12、13にて、対象物10上のパターン投影像を撮像する。投光系にて投射される複数のストライプパターンは、図2にて示されるそれぞれが濃度勾配を持った傾斜パターン光であり、かつ多値のパターンにより構成される。本実施例では、モノクロの5種類の濃度勾配を持った多値のパターンを使用した。モノクロの輝度値を256階調で現し、パターン1から5を以下の階調に割り付けた。
【0020】
パターン1:255から0階調の濃度勾配を持ったパターン
パターン2:204から0階調の濃度勾配を持ったパターン
パターン3:153から0階調の濃度勾配を持ったパターン
パターン4:102から0階調の濃度勾配を持ったパターン
パターン5:51から0階調の濃度勾配を持ったパターン
【0021】
これらを、同じ繰り返しがないように、また隣接するパターン間にて0階調同士が並ばないように配列を行う。図3に用いた配列を示す。但し、これは一つの例であり、他の階調割り付けおよび配列においても本発明の効果は同様に得られるものである。図3に示した濃度勾配を持った多値パターン光を対象物10に照射し、投光系と主点を異なる位置に配置した撮像手段である2台のカメラ12、13にて、対象物10上のパターン投影像を撮像し、得られたパターン像を比較し同一と思われる個所を探索する。ここで、距離算出までのフローは以下の通りである。
【0022】
・フロー1
[ステップ1]:2つのパターン撮像画像それぞれのエッジを抽出する。
[ステップ2]:エッジ両側の画素情報(輝度値)をそれぞれ取得する。
[ステップ3]:エピポーラライン上にて同じ画素情報を持つ画素を対応点であると判断し、三角測量の原理から距離を算出する。
【0023】
その他に以下のフローにても、距離算出が可能である。
【0024】
・フロー2
[ステップ1]:2つのパターン撮像画像のエッジを抽出する。
[ステップ2]:エッジ両側の画素情報(輝度値)を取得する。
[ステップ3]:エッジ両側の画素情報(輝度値)の一部あるいは、全ての配列から投射パターン光の配列を予測し、投射パターン光とパターン撮像画像の対応づけを行い、三角測量の原理から、距離を算出する。
【0025】
パターン撮像画像は、個々のパターンに濃度勾配があり、パターン間のコントラストが非常に高い状態であるため、ステップ1にて行うエッジ抽出の精度が飛躍的に向上する。これは特に反射率の低い対象物(濃い色の対象物など)を計測対象にする場合に有効であり、安定したエッジ抽出が可能となり、信頼性の高い距離計測が可能となる。また本実施例では、2台のカメラ12、13にて撮像を行っており、計測フロー1においては、パターン撮像画像間の比較により距離計測を行うものである。この利点として、対象物上での反射率による誤対応を防止できることが挙げられ、第1の実施例に比べて、より信頼性の高い距離計測が可能となる。
【0026】
図5および図6は、投射される複数のストライプパターンにRGBの色情報を用いた実施例である。RGBそれぞれにおいて、輝度値を256階調で現し、255から0階調の濃度勾配を持った3種類のパターンを用いて、同じ繰り返しがないように、また隣接するパターン間にて0階調同士が並ばないように配列を行った。図6に、この実施例で用いた配列を示す。図7は、図6の配列におけるR、G、Bの光強度の分布を示す。パターンが3種類の場合、同じ繰り返しがないような配列の最大数は6である。投光エリアを広げたい場合や解像度を上げたい場合は、6ストライプを一つの周期とし、繰り返しのパターンを用いる。但し、これは一つの例であり、他の階調割り付けおよび配列においても本発明の効果は同様に得られるものである。勾配の幅を0〜256でなく、第1の実施例の場合と同様に他の種々の勾配幅を割り当ててもよい。図6に示した濃度勾配を持った多値パターン光を対象物に照射する。使用する3次元形状計測は、第1の実施例で用いた構成でも第2の実施例で用いた構成でもよい。計測フローも同様である。
【0027】
パターン撮像画像は、個々のパターンに濃度勾配があり、パターン間のコントラストが非常に高い状態であるため、エッジ抽出の精度が飛躍的に向上する。これは特に反射率の低い対象物(濃い色の対象物など)を計測対象にする場合に有効であり、安定したエッジ抽出が可能となり、信頼性の高い距離計測が可能となる。
【0028】
【発明の効果】
以上述べたように、本発明の3次元形状計測装置および3次元形状計測方法は、反射率の低い対象物(濃い色の対象物など)を計測対象にする場合にも、安定したパターンのエッジ抽出が可能となり、1回の撮像で信頼性の高い距離計測が可能となる。
【図面の簡単な説明】
【図1】本発明に係わる3次元形状計測装置の第1の実施例を示した図である。
【図2】本発明のモノクロの濃度勾配を持った投射パターン光を説明する図である。
【図3】本発明の濃度勾配を持った投射パターン光の配列を示した図である。
【図4】本発明の3次元形状計測装置の第2の実施例を示した図である。
【図5】本発明のRGBの濃度勾配を持った投射パターン光を説明する図である。
【図6】本発明の濃度勾配を持った投射パターン光の配列を示した図である。
【図7】図6の投射パターンのR、G、Bの光の強度分布を説明する図である。
【図8】従来の3次元形状計測装置の構成を示した図である。
【図9】従来の3次元形状計測装置の投射パターン光を説明する図である。
【符号の説明】
10 対象物
11 プロジェクタ
12、13 カメラTECHNICAL FIELD OF THE INVENTION
The present invention relates to a three-dimensional shape measurement technique based on a triangulation method in which a pattern projection image obtained by irradiating a measurement target with pattern light is imaged from different directions by an imaging means to obtain distance information.
[0001]
[Prior art]
Techniques for acquiring a three-dimensional shape include an active technique (Active vision) and a passive technique (Passive vision). The active method uses (1) a laser method that emits laser light or the like, measures the amount of light reflected from an object and the arrival time, and extracts depth information, or (2) uses a special pattern light source such as slit light. There are a pattern projection method of estimating a target shape based on image information such as a geometric deformation of a target surface pattern, and (3) a method of forming contour lines by moire fringes by optical processing to obtain three-dimensional information. On the other hand, the passive method uses information on the appearance of a target object, light source, illumination, shadow information, etc., and estimates three-dimensional information from a single image. And the like.
[0002]
The pattern projection method, which is one of the active methods among the various measurement methods described above, is a method that can acquire three-dimensional information with high accuracy using a simple device. This will be described in more detail. The pattern projection method is a method in which a reference pattern light is projected onto a target object, and a pattern projection image is captured from a direction different from the projected direction. The captured pattern image is deformed by the shape of the object. By associating the captured deformation pattern with the projected pattern, three-dimensional measurement of the object is performed. As a specific measurement method, there are a light section method and a space coding method. The light sectioning method is a method of projecting one slit pattern on an object, and scanning the slit pattern over an object area to be measured, thereby acquiring three-dimensional information of the object. The spatial coding method prepares a plurality of binary patterns having different spatial resolutions and sequentially projects them on the object, thereby eliminating the slit light scanning in the light sectioning method, and quickly reducing the three-dimensional information of the object. Is a technique for obtaining In the light sectioning method, a process of obtaining the center of gravity (coordinates) of a captured stripe image is performed in order to increase the accuracy and reliability of measurement. In the spatial coding method, a binarization process of a captured pattern image is performed. It is carried out. Although this method can be said to be an excellent method in terms of measurement accuracy and reliability, the problem is that the scanning of slit light and the pattern projection must be performed multiple times, which takes a long measurement time and the measurement target is limited to stationary objects. However, there is a problem that the use is limited.
[0003]
As means for solving such a problem, Chu-Song Chen et al. Have proposed a multi-value pattern projection method (Chu-Song Chen, Range data acquisition using color structure light and stereo vision, animation, animation, animation, animation, animation, animation, animation, animation, animation, animation, animation, animation, animation, animation, animation, animation, animation, animation, animation, animation, animation, animation, animation, animation, animation, animation, animation, animation) ) 445-456). The multi-value pattern projection method is a method in which a multi-tone pattern is projected on a target object with respect to a binary pattern of a light section method or a space coding method, and three-dimensional information of the target object is obtained by one imaging. is there. This will be described with reference to FIGS. FIG. 8 is a schematic view of a conventional three-dimensional shape measuring apparatus using a multi-value pattern projection method, and FIG. 9 is a diagram illustrating a multi-value pattern used. Using a plurality of colors C 1, C 2, C 3 ··· C n shown in FIG. 9, the multi-value pattern light is interposed black stripes between each color stripe pattern, projection shown in FIG. 8 Projects on the object by the system. An optical image on the object is picked up by two cameras arranged at different viewpoints from the light projecting system, and the obtained pattern images are compared to search for a portion considered to be the same. Here, the flow until searching for the same location between the pattern images is as follows.
[Step 1]: Extract edges of each of the two captured images of the pattern.
[Step 2]: Acquire pixel information (luminance value, hue) on both sides of the edge.
[Step 3]: Pixels having the same pixel information on the epipolar line are determined to be corresponding points, and the distance is calculated based on the principle of triangulation.
[0004]
Stripes C 1, C 2, C 3 · · · of C is interposed black stripes between each n is, purpose of improving the edge extraction accuracy in Step 1 to increase the contrast between adjacent pattern It is. However, when an object having a low reflectance (a dark color object or the like) is to be measured, the contrast between adjacent patterns is reduced, and an edge may not be able to be extracted. At locations where edges cannot be extracted, distance measurement cannot be performed, which has been a major problem.
[0005]
[Problems to be solved by the invention]
The present invention has been made to solve the above problems, and provides a highly reliable three-dimensional shape measurement technique capable of performing edge extraction with high accuracy even when a multi-value pattern is projected. It is in.
[0006]
[Means for Solving the Problems]
According to one aspect of the present invention, in order to achieve the above object, a light projecting means for projecting a pattern constituted by a plurality of stripes onto an object, and a principal point different from the light projecting means are arranged at different positions. In the three-dimensional shape measuring apparatus constituted by one or a plurality of imaging means described above, the stripes have a density gradient.
[0007]
In this configuration, by giving the stripes a density gradient, the density difference at the edges of adjacent stripes can be increased, and even when the density of the object is large, the edge is reliably detected and the distance between the edge and the object is increased. The distance can be measured accurately.
[0008]
The stripe having the density gradient is set so that the luminance difference between adjacent stripes is large. The density gradient of the stripe projected by the light emitting means may be represented by monochrome, or may be represented by R, G, B.
[0009]
The above aspects of the present invention and other aspects of the present invention are set forth in the following claims, and are described in detail below using examples.
[0010]
BEST MODE FOR CARRYING OUT THE INVENTION
Hereinafter, the present invention will be specifically described based on embodiments with reference to the drawings.
[0011]
[First Embodiment]
FIG. 1 is a configuration diagram of a first embodiment of the present invention. A projector 11 is used as a light projecting system that projects a plurality of stripe patterns onto the object 10, and a camera 12 is used as an imaging unit having a principal point different from the light projecting system at a different position. The upper pattern projection image is captured. As shown in FIG. 2, the plurality of stripe patterns projected by the light projecting system are respectively inclined pattern lights having a density gradient, and are configured by multi-valued patterns. In the present embodiment, a monochrome multi-value pattern having five types of density gradients is used. Monochrome luminance values are represented by 256 gradations, and patterns 1 to 5 are assigned to the following gradations.
[0012]
Pattern 1: Pattern pattern with density gradient from 255 to 0 gradation 2: Pattern pattern with density gradient from 204 to 0 gradation 3: Pattern pattern with density gradient from 0153 to 0 gradation 4: From 102 Pattern 5 having a density gradient of 0 gradation from 5:51 to a pattern having a density gradient of 0 gradation
These are arranged so that the same repetition does not occur, and that 0 gradations do not line up between adjacent patterns. FIG. 3 shows the sequence used. However, this is only one example, and the effects of the present invention can be similarly obtained in other gradation allocation and arrangement. A multi-level pattern light having a density gradient shown in FIG. An image is captured and associated with the projection pattern light and the pattern projection image. Here, the flow up to the distance calculation is as follows.
[0014]
・ Flow 1
[Step 1]: Extract an edge of the pattern captured image.
[Step 2]: Obtain pixel information (luminance value) on both sides of the edge.
[Step 3]: Search and determine a projection pattern light having the same pixel information as the pattern captured image, and calculate a distance based on the principle of triangulation.
[0015]
In addition, the distance can be calculated also in the following flow.
[0016]
・ Flow 2
[Step 1]: Extract an edge of the pattern captured image.
[Step 2]: Obtain pixel information (luminance value) on both sides of the edge.
[Step 3]: Predict the arrangement of the projection pattern light from part or all of the pixel information (brightness value) on both sides of the edge, associate the projection pattern light with the pattern captured image, and use the principle of triangulation. , Calculate the distance.
[0017]
Since the pattern captured image has a density gradient in each pattern and a very high contrast between the patterns, the accuracy of the edge extraction performed in step 1 is greatly improved. This is particularly effective when an object having a low reflectance (a dark color object or the like) is to be measured, and enables stable edge extraction and highly reliable distance measurement.
[0018]
[Second embodiment]
Next, a second embodiment of the present invention will be described.
[0019]
FIG. 4 is a configuration diagram of a second embodiment of the present invention. The projector 11 is used as a light projecting device, which is a light projecting device that projects a plurality of stripe patterns on the object 10, and the two cameras 12, 13 are imaging devices in which a light projecting system and a principal point are arranged at different positions. Then, a pattern projection image on the object 10 is captured. Each of the plurality of stripe patterns projected by the light projecting system is an inclined pattern light having a density gradient shown in FIG. 2, and is configured by a multi-value pattern. In the present embodiment, a monochrome multi-value pattern having five types of density gradients is used. Monochrome luminance values are represented by 256 gradations, and patterns 1 to 5 are assigned to the following gradations.
[0020]
Pattern 1: Pattern pattern with density gradient from 255 to 0 gradation 2: Pattern pattern with density gradient from 204 to 0 gradation 3: Pattern pattern with density gradient from 0153 to 0 gradation 4: From 102 Pattern 5 having a density gradient of 0 gradation from 5:51 to a pattern having a density gradient of 0 gradation
These are arranged so that the same repetition does not occur, and that 0 gradations do not line up between adjacent patterns. FIG. 3 shows the sequence used. However, this is only one example, and the effects of the present invention can be similarly obtained in other gradation allocation and arrangement. The object 10 is irradiated with the multi-value pattern light having the density gradient shown in FIG. 3 and the two cameras 12 and 13 as imaging means in which the light projecting system and the principal point are arranged at different positions. The pattern projection image on the image 10 is picked up, and the obtained pattern images are compared to search for a portion considered to be the same. Here, the flow up to the distance calculation is as follows.
[0022]
・ Flow 1
[Step 1]: Extract edges of each of the two captured images of the pattern.
[Step 2]: Acquire pixel information (luminance value) on both sides of the edge.
[Step 3]: Pixels having the same pixel information on the epipolar line are determined as corresponding points, and the distance is calculated based on the principle of triangulation.
[0023]
In addition, the distance can be calculated also in the following flow.
[0024]
・ Flow 2
[Step 1]: Extract edges of two captured images of the pattern.
[Step 2]: Obtain pixel information (luminance value) on both sides of the edge.
[Step 3]: Predict the arrangement of the projection pattern light from part or all of the pixel information (brightness value) on both sides of the edge, associate the projection pattern light with the pattern captured image, and use the principle of triangulation. , Calculate the distance.
[0025]
Since the pattern captured image has a density gradient in each pattern and a very high contrast between the patterns, the accuracy of the edge extraction performed in step 1 is greatly improved. This is particularly effective when an object having a low reflectance (a dark color object or the like) is to be measured, and enables stable edge extraction and highly reliable distance measurement. Further, in the present embodiment, the two cameras 12 and 13 capture images, and in the measurement flow 1, the distance is measured by comparing the pattern captured images. An advantage of this is that erroneous response due to reflectance on the object can be prevented, and distance measurement with higher reliability can be performed as compared with the first embodiment.
[0026]
5 and 6 show an embodiment in which RGB color information is used for a plurality of projected stripe patterns. In each of R, G, and B, the luminance value is represented by 256 gradations, and three types of patterns having a density gradient of 255 to 0 gradations are used so that the same repetition is not performed, and 0 gradations are set between adjacent patterns. The sequences were arranged so that the lines did not line up. FIG. 6 shows the arrangement used in this example. FIG. 7 shows the light intensity distribution of R, G, and B in the arrangement of FIG. When there are three types of patterns, the maximum number of arrays that do not have the same repetition is six. When it is desired to increase the projection area or increase the resolution, a repeating pattern is used with six stripes as one cycle. However, this is only one example, and the effects of the present invention can be similarly obtained in other gradation allocation and arrangement. Instead of a gradient width of 0 to 256, other various gradient widths may be assigned as in the case of the first embodiment. The object is irradiated with multi-level pattern light having the density gradient shown in FIG. The three-dimensional shape measurement used may be the configuration used in the first embodiment or the configuration used in the second embodiment. The same applies to the measurement flow.
[0027]
Since the pattern captured image has a density gradient in each pattern and the contrast between the patterns is extremely high, the accuracy of edge extraction is dramatically improved. This is particularly effective when an object having a low reflectance (a dark color object or the like) is to be measured, and enables stable edge extraction and highly reliable distance measurement.
[0028]
【The invention's effect】
As described above, the three-dimensional shape measuring apparatus and the three-dimensional shape measuring method of the present invention can be used to measure a stable pattern edge even when an object having a low reflectance (a dark color object or the like) is to be measured. Extraction becomes possible, and highly reliable distance measurement can be performed by one imaging.
[Brief description of the drawings]
FIG. 1 is a diagram showing a first embodiment of a three-dimensional shape measuring apparatus according to the present invention.
FIG. 2 is a diagram for explaining projection pattern light having a monochrome density gradient according to the present invention.
FIG. 3 is a diagram showing an arrangement of projection pattern light having a density gradient according to the present invention.
FIG. 4 is a diagram showing a second embodiment of the three-dimensional shape measuring apparatus of the present invention.
FIG. 5 is a diagram for explaining projection pattern light having an RGB density gradient according to the present invention.
FIG. 6 is a diagram showing an arrangement of projection pattern light having a density gradient according to the present invention.
FIG. 7 is a diagram illustrating the intensity distribution of R, G, and B light in the projection pattern of FIG. 6;
FIG. 8 is a diagram showing a configuration of a conventional three-dimensional shape measuring apparatus.
FIG. 9 is a view for explaining projection pattern light of a conventional three-dimensional shape measuring apparatus.
[Explanation of symbols]
10 Object 11 Projector 12, 13 Camera