JP7154084B2 - Three-dimensional shape measuring device and three-dimensional shape measuring program - Google Patents

Three-dimensional shape measuring device and three-dimensional shape measuring program Download PDF

Info

Publication number
JP7154084B2
JP7154084B2 JP2018177169A JP2018177169A JP7154084B2 JP 7154084 B2 JP7154084 B2 JP 7154084B2 JP 2018177169 A JP2018177169 A JP 2018177169A JP 2018177169 A JP2018177169 A JP 2018177169A JP 7154084 B2 JP7154084 B2 JP 7154084B2
Authority
JP
Japan
Prior art keywords
dimensional shape
geometric
unit
measurement
image
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
Application number
JP2018177169A
Other languages
Japanese (ja)
Other versions
JP2020046394A (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.)
Keyence Corp
Original Assignee
Keyence Corp
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 Keyence Corp filed Critical Keyence Corp
Priority to JP2018177169A priority Critical patent/JP7154084B2/en
Publication of JP2020046394A publication Critical patent/JP2020046394A/en
Application granted granted Critical
Publication of JP7154084B2 publication Critical patent/JP7154084B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Length Measuring Devices By Optical Means (AREA)
  • Image Processing (AREA)
  • Image Analysis (AREA)

Description

本発明は、測定対象物の立体形状を測定する三次元形状測定装置および三次元形状測定プログラムに関する。 The present invention relates to a three-dimensional shape measuring apparatus and a three-dimensional shape measuring program for measuring a three-dimensional shape of an object to be measured.

測定対象物の表面形状を把握するために、三次元形状測定装置が用いられる。三次元形状測定装置においては、例えば三角測距の原理を利用して測定対象物の立体形状を示すデータが取得される。取得されたデータが寸法測定用のアプリケーションプログラムにより解析され、測定対象物の形状および寸法等が算出される。 A three-dimensional shape measuring device is used to grasp the surface shape of an object to be measured. In a three-dimensional shape measuring apparatus, data indicating the three-dimensional shape of an object to be measured is acquired using, for example, the principle of triangulation. The acquired data is analyzed by an application program for dimension measurement, and the shape, dimension, etc. of the object to be measured are calculated.

このような三次元形状測定装置として特許文献1に記載された三次元測定装置においては、形状を比較する際の基準となる基準立体形状データが保持される。基準立体形状データとして、例えばCAD(Computer Aided Design)を用いて作成されたCADデータが用いられる。 As such a three-dimensional shape measuring device, the three-dimensional measuring device described in Patent Document 1 holds reference three-dimensional shape data that serves as a reference for comparing shapes. CAD data created using CAD (Computer Aided Design), for example, is used as the reference three-dimensional shape data.

測定対象物の形状測定によって得られた測定立体形状データの断面プロファイルと、基準立体形状データの断面プロファイルとが、重ね合わされて計測画面に表示される。このとき、測定立体形状データの断面プロファイルと基準立体形状データの断面プロファイルとの差分に応じて両者のプロファイル間の領域が色付けされる。それにより、使用者は予め定められた形状に対する測定対象物の実際の形状の差異を容易に把握することができる。 The cross-sectional profile of the measured three-dimensional shape data obtained by the shape measurement of the object to be measured and the cross-sectional profile of the reference three-dimensional shape data are superimposed and displayed on the measurement screen. At this time, the area between the two profiles is colored according to the difference between the cross-sectional profile of the measured three-dimensional shape data and the cross-sectional profile of the reference three-dimensional shape data. Thereby, the user can easily grasp the difference in the actual shape of the object to be measured from the predetermined shape.

特開2018-31746号公報JP 2018-31746 A

しかしながら、特許文献1の三次元測定装置においては、使用者は、測定立体形状データを用いて測定対象物の形状を解析する前に、予め基準立体形状データを用意する必要がある。このような基準立体形状データの作成および用意は、使用者にとって面倒である。また、上記の例に限らず、測定対象物の各部の形状について、所望の幾何基準からのずれを把握することができれば、三次元測定装置の利便性が向上する。 However, in the three-dimensional measuring apparatus of Patent Document 1, the user needs to prepare reference three-dimensional shape data in advance before analyzing the shape of the object to be measured using the measured three-dimensional shape data. Creating and preparing such reference solid shape data is troublesome for the user. In addition to the above example, if the shape of each part of the object to be measured can be grasped if it deviates from the desired geometrical reference, the convenience of the three-dimensional measuring apparatus will be improved.

本発明の目的は、所望の幾何基準と測定対象物の形状との関係を使用者が容易かつ直感的に把握することを可能にする三次元形状測定装置および三次元形状測定プログラムを提供することである。 An object of the present invention is to provide a three-dimensional shape measuring apparatus and a three-dimensional shape measuring program that enable a user to easily and intuitively grasp the relationship between a desired geometric reference and the shape of an object to be measured. is.

(1)第1の発明に係る三次元形状測定装置は、測定対象物の立体形状を示す立体形状データを生成する形状データ生成部と、形状データ生成部により生成された立体形状データに基づいて、測定対象物の立体形状を含む画像を立体形状画像として姿勢変更可能に表示部に表示させる表示制御部と、表示部に表示された立体形状画像上で、第1の幾何要素の指定を受け付ける要素受付部と、要素受付部により受け付けられた第1の幾何要素に基づいて、該第1の幾何要素と固有の関係を有しかつ該第1の幾何要素と異なる第2の幾何要素を幾何基準として特定する特定部とを備え、表示制御部は、測定対象物の少なくとも一部分と特定部により特定された幾何基準との間の距離に応じて、立体形状画像のうちの少なくとも一部分に対応する部分の表示態様を設定する。 (1) A three-dimensional shape measuring apparatus according to a first aspect of the present invention includes a shape data generation unit that generates three-dimensional shape data representing a three-dimensional shape of an object to be measured, and based on the three-dimensional shape data generated by the shape data generation unit: a display control unit for displaying an image including a three-dimensional shape of an object to be measured as a three-dimensional shape image on a display unit so that the posture can be changed; and receiving designation of a first geometric element on the three-dimensional shape image displayed on the display unit. and, based on the first geometric element received by the element receiving unit, a second geometric element having a unique relationship with the first geometric element and different from the first geometric element . a specifying unit for specifying as a reference, the display control unit corresponding to at least a portion of the three-dimensional shape image according to a distance between at least a portion of the measurement object and the geometric reference specified by the specifying unit. Sets the appearance of the part.

その三次元形状測定装置においては、測定対象物の立体形状データが生成され、生成された立体形状データに基づく立体形状画像が表示部に表示される。立体形状画像上で第1の幾何要素の指定が受け付けられ、受け付けられた第1の幾何要素に基づいて該第1の幾何要素と固有の関係を有しかつ該第1の幾何要素と異なる第2の幾何要素が幾何基準として特定される。測定対象物の少なくとも一部分と幾何基準との間の距離に応じて、立体形状画像のうち測定対象物の少なくとも一部分に対応する部分の表示態様が設定される。 In the three-dimensional shape measuring apparatus, three-dimensional shape data of the object to be measured is generated, and a three-dimensional shape image based on the generated three-dimensional shape data is displayed on the display unit. Designation of a first geometric element is accepted on the solid shape image, and a first geometric element having a unique relationship with the first geometric element based on the accepted first geometric element and different from the first geometric element Two geometric elements are specified as geometric references. A display mode of a portion of the three-dimensional shape image corresponding to at least a portion of the measurement object is set according to the distance between at least a portion of the measurement object and the geometric reference.

それにより、使用者は、測定対象物の立体形状画像上で第1の幾何要素を指定し、表示部に表示される立体形状画像を視認することにより、所望の幾何基準と測定対象物の形状との関係を容易かつ直感的に把握することが可能になる。 Thereby, the user designates the first geometric element on the three-dimensional shape image of the object to be measured, and by visually recognizing the three-dimensional shape image displayed on the display unit, obtains the desired geometric reference and the shape of the object to be measured. It is possible to easily and intuitively grasp the relationship between

なお、立体形状画像の部分の表示態様を設定するとは、立体形状画像の部分の表示態様を予め定められた本来の表示態様から上記の距離に応じた表示態様に切り替えることを意味する。換言すれば、立体形状画像の部分の表示態様を設定するとは、立体形状画像の部分の表示態様を予め定められた本来の表示態様から上記の距離に応じた表示態様に変更することを意味する。さらに換言すれば、立体形状画像の部分の表示態様を設定するとは、立体形状画像の部分の表示態様を予め定められた本来の表示態様から上記の距離に応じた表示態様にすることを意味する。 Note that setting the display mode of the 3D image portion means switching the display mode of the 3D image portion from a predetermined original display mode to a display mode according to the distance. In other words, setting the display mode of the 3D image portion means changing the display mode of the 3D image portion from a predetermined original display mode to a display mode according to the distance. . In other words, setting the display mode of the 3D image portion means changing the display mode of the 3D image portion from a predetermined original display mode to a display mode according to the distance. .

(2)特定部は、要素受付部により受け付けられた第1の幾何要素に基づいて、表示態様が設定されるべき少なくとも一部分をさらに特定してもよい。 (2) The identifying unit may further identify at least a portion for which the display mode should be set based on the first geometric element received by the element receiving unit.

この場合、使用者は、測定対象物の立体形状画像上で第1の幾何要素を指定することにより、所望の幾何要素と測定対象物の所望の部分の形状との関係を容易かつ直感的に把握することが可能になる。 In this case, the user can easily and intuitively determine the relationship between the desired geometric element and the shape of the desired portion of the measurement object by specifying the first geometric element on the three-dimensional shape image of the measurement object. be able to comprehend.

(3)表示態様は、少なくとも一部分と幾何基準との間の距離に応じた色であってもよい。 (3) The display mode may be a color according to the distance between at least the part and the geometric reference.

この場合、使用者は、所望の幾何基準と測定対象物の少なくとも一部分の形状との関係をより直感的に把握することが可能になる。 In this case, the user can more intuitively grasp the relationship between the desired geometrical reference and the shape of at least a part of the object to be measured.

(4)表示制御部は、少なくとも一部分と特定部により特定された幾何基準との幾何的な対比結果を表す指標を表示部に表示させるとともに、表示部に表示される指標が対比結果を強調して表すように、指標の表示態様を調整可能であってもよい。 (4) The display control unit causes the display unit to display an index representing a geometric comparison result between the at least part and the geometric reference specified by the specifying unit, and the index displayed on the display unit emphasizes the comparison result. , it may be possible to adjust the display mode of the index.

この場合、使用者は、所望の幾何基準と測定対象物の少なくとも一部分の形状との幾何的な対比結果をより直感的に把握することが可能になる。 In this case, the user can more intuitively grasp the result of the geometric comparison between the desired geometric reference and the shape of at least a part of the object to be measured.

(5)三次元形状測定装置は、ステージ保持部と、ステージ保持部により保持され、測定対象物が載置されるステージと、ステージに載置される測定対象物にパターンを有する測定光を照射する投光部と、測定対象物により反射された測定光を受光して受光量を表す受光信号を出力する受光部とを含むヘッド部と、ヘッド部とステージ保持部とを固定的に連結する連結部とをさらに備え、形状データ生成部は、受光部により出力される受光信号に基づいて、測定対象物の立体形状を表す点群データを立体形状データとして生成してもよい。 (5) The three-dimensional shape measuring apparatus includes a stage holder, a stage held by the stage holder and on which a measurement object is placed, and a measurement light having a pattern applied to the measurement object placed on the stage. and a light-receiving section that receives the measurement light reflected by the object to be measured and outputs a light-receiving signal representing the amount of received light, and the head section and the stage holding section are fixedly connected to each other. The shape data generation unit may generate point cloud data representing the three-dimensional shape of the measurement object as three-dimensional shape data based on the received light signal output from the light receiving unit.

上記の構成によれば、投光部、受光部およびステージ保持部が一体的に設けられているので、受光部とステージとの位置関係が一義的に定まる。そのため、高い精度で点群データを得ることができる。したがって、立体形状データに基づいて高い精度で測定対象物の形状測定を行うことができる。 According to the above configuration, since the light projecting section, the light receiving section, and the stage holding section are integrally provided, the positional relationship between the light receiving section and the stage is uniquely determined. Therefore, point cloud data can be obtained with high accuracy. Therefore, the shape of the measurement object can be measured with high accuracy based on the three-dimensional shape data.

(6)三次元形状測定装置は、立体形状データに基づいて少なくとも一部分と幾何基準との間の距離を算出するとともに算出された距離に基づいて表示態様と距離との対応関係を設定する対応関係設定部をさらに備え、表示制御部は、対応関係設定部により設定された対応関係に基づいて、立体形状画像のうちの少なくとも一部分に対応する部分の表示態様の設定を行ってもよい。 (6) The three-dimensional shape measuring device calculates the distance between at least a portion and the geometric reference based on the three-dimensional shape data, and sets the correspondence relationship between the display mode and the distance based on the calculated distance. A setting unit may be further included, and the display control unit may set a display mode of a portion corresponding to at least a portion of the three-dimensional shape image based on the correspondence set by the correspondence setting unit.

この場合、使用者は、表示態様と距離との対応関係を定める必要がない。また、上記の構成によれば、立体形状データに基づいてより適切な対応関係の設定が可能になる。 In this case, the user does not need to define the correspondence between the display mode and the distance. Moreover, according to the above configuration, it is possible to set a more appropriate correspondence relationship based on the three-dimensional shape data.

(7)三次元形状測定装置は、一の測定対象物について一の幾何基準を特定するための一の幾何要素を指定するために使用者により操作される操作部と、使用者による操作部の操作手順をテンプレート情報として記憶するテンプレート記憶部と、他の測定対象物について、一の幾何基準に対応する他の幾何基準を特定するための他の幾何要素を、一の測定対象物の立体形状データと、当該他の測定対象物の立体形状データと、テンプレート記憶部に記憶されたテンプレート情報とに基づいて指定するテンプレート指定部とをさらに備えてもよい。 (7) A three-dimensional shape measuring apparatus includes an operation unit operated by a user to specify one geometric element for specifying one geometric reference for one measurement object, and an operation unit operated by the user. A template storage unit for storing operation procedures as template information; It may further include a template designating unit that designates the template based on the data, the three-dimensional shape data of the other measurement object, and the template information stored in the template storage unit.

この場合、使用者は、共通の形状を有する複数の測定対象物について、互いに対応する幾何基準を設定したい場合に、測定対象物ごとに幾何要素をそれぞれ指定する必要がなくなる。
(8)特定部は、要素受付部により受け付けられた第1の幾何要素が互いに平行な2つの平面である場合に、該2つの平面の中間に位置する中面からなる第2の幾何要素を幾何基準として特定してもよい。
(9)特定部は、要素受付部により受け付けられた第1の幾何要素が円筒である場合に、該円筒の中心軸からなる第2の幾何要素を幾何基準として特定してもよい。
(10)特定部は、要素受付部により受け付けられた第1の幾何要素が円錐である場合に、該円錐の中心軸からなる第2の幾何要素を幾何基準として特定してもよい。
(11)特定部は、要素受付部により受け付けられた第1の幾何要素が球である場合に、該球の中心からなる第2の幾何要素を幾何基準として特定してもよい。
In this case, the user does not need to specify geometric elements for each measurement object when he/she wishes to set mutually corresponding geometric references for a plurality of measurement objects having a common shape.
(8) When the first geometric element received by the element receiving unit is two planes parallel to each other, the specifying unit selects a second geometric element composed of a median plane positioned between the two planes. It may be specified as a geometric criterion.
(9) When the first geometrical element received by the element receiving part is a cylinder, the identifying unit may identify, as the geometrical reference, a second geometrical element consisting of the central axis of the cylinder.
(10) When the first geometrical element received by the element receiving part is a cone, the identifying unit may identify, as the geometrical reference, a second geometrical element consisting of the central axis of the cone.
(11) When the first geometric element accepted by the element accepting unit is a sphere, the specifying unit may specify a second geometric element formed by the center of the sphere as the geometric reference.

12)第2の発明に係る三次元形状測定プログラムは、処理装置により実行可能な三次元形状測定プログラムであって、測定対象物の立体形状を示す立体形状データを生成する処理と、生成された立体形状データに基づいて、測定対象物の立体形状を含む画像を立体形状画像として姿勢変更可能に表示部に表示させる処理と、表示部に表示された立体形状画像上で、第1の幾何要素の指定を受け付ける処理と、受け付けられた第1の幾何要素に基づいて、該第1の幾何要素と固有の関係を有しかつ該第1の幾何要素と異なる第2の幾何要素を幾何基準として特定する処理とを、処理装置に実行させ、表示部に表示させる処理は、測定対象物の少なくとも一部分と特定された幾何基準との間の距離に応じて、立体形状画像のうちの少なくとも一部分に対応する部分の表示態様を設定する処理を含む。 ( 12 ) A three-dimensional shape measuring program according to a second aspect of the invention is a three-dimensional shape measuring program executable by a processing device, comprising a process of generating three-dimensional shape data representing a three-dimensional shape of a measurement target, and Based on the obtained three-dimensional shape data, a process of displaying an image including the three-dimensional shape of the object to be measured as a three-dimensional shape image on the display unit so that the posture can be changed; a second geometric element having a unique relationship with the first geometric element and different from the first geometric element based on the accepted first geometric element; and causing the processing device to execute and display on the display unit, according to the distance between at least part of the measurement object and the specified geometric reference, at least part of the three-dimensional shape image includes processing for setting the display mode of the portion corresponding to .

その三次元形状測定プログラムによれば、測定対象物の立体形状データが生成され、生成された立体形状データに基づく立体形状画像が表示部に表示される。立体形状画像上で第1の幾何要素の指定が受け付けられ、受け付けられた第1の幾何要素に基づいて該第1の幾何要素と固有の関係を有しかつ該第1の幾何要素と異なる第2の幾何要素が幾何基準として特定される。測定対象物の少なくとも一部分と幾何基準との間の距離に応じて、立体形状画像のうち測定対象物の少なくとも一部分に対応する部分の表示態様が設定される。 According to the three-dimensional shape measurement program, the three-dimensional shape data of the object to be measured is generated, and the three-dimensional shape image based on the generated three-dimensional shape data is displayed on the display unit. Designation of a first geometric element is accepted on the solid shape image, and a first geometric element having a unique relationship with the first geometric element based on the accepted first geometric element and different from the first geometric element Two geometric elements are specified as geometric references. A display mode of a portion of the three-dimensional shape image corresponding to at least a portion of the measurement object is set according to the distance between at least a portion of the measurement object and the geometric reference.

それにより、使用者は、測定対象物の立体形状画像上で第1の幾何要素を指定し、表示部に表示される立体形状画像を視認することにより、所望の幾何基準と測定対象物の形状との関係を容易かつ直感的に把握することが可能になる。 Thereby, the user designates the first geometric element on the three-dimensional shape image of the object to be measured, and by visually recognizing the three-dimensional shape image displayed on the display unit, obtains the desired geometric reference and the shape of the object to be measured. It is possible to easily and intuitively grasp the relationship between

本発明によれば、所望の幾何基準と測定対象物の形状との関係を容易かつ直感的に把握することが可能になる。 According to the present invention, it is possible to easily and intuitively grasp the relationship between the desired geometrical reference and the shape of the object to be measured.

本発明の一実施の形態に係る三次元形状測定装置の構成を示すブロック図である。1 is a block diagram showing the configuration of a three-dimensional shape measuring device according to one embodiment of the present invention; FIG. 図1の三次元形状測定装置の測定部の構成を示す模式図である。FIG. 2 is a schematic diagram showing the configuration of a measuring section of the three-dimensional shape measuring apparatus of FIG. 1; 測定部の模式的な外観斜視図である。It is a typical external appearance perspective view of a measurement part. 図3の測定部の模式的側面図である。FIG. 4 is a schematic side view of the measuring section of FIG. 3; 三角測距方式の原理を説明するための図である。It is a figure for demonstrating the principle of a triangulation ranging method. 複数の方向から測定対象物を撮像することにより複数の立体形状データを生成する例を説明するための図である。FIG. 4 is a diagram for explaining an example of generating a plurality of three-dimensional shape data by capturing images of a measurement object from a plurality of directions; 形状測定の準備の手順を示すフローチャートである。4 is a flow chart showing a procedure for preparing for shape measurement. 形状測定処理のフローチャートである。4 is a flowchart of shape measurement processing; 計測条件の設定例を説明するための図である。It is a figure for demonstrating the setting example of measurement conditions. 計測条件の設定例を説明するための図である。It is a figure for demonstrating the setting example of measurement conditions. 計測条件の設定例を説明するための図である。It is a figure for demonstrating the setting example of measurement conditions. 計測条件の設定例を説明するための図である。It is a figure for demonstrating the setting example of measurement conditions. 測定対象物の一例を示す外観斜視図である。1 is an external perspective view showing an example of an object to be measured; FIG. 表示態様設定機能の一使用例を説明するための図である。FIG. 10 is a diagram for explaining an example of use of the display mode setting function; 表示態様設定機能の一使用例を説明するための図である。FIG. 10 is a diagram for explaining an example of use of the display mode setting function; 表示態様設定機能の一使用例を説明するための図である。FIG. 10 is a diagram for explaining an example of use of the display mode setting function; 表示態様設定機能の一使用例を説明するための図である。FIG. 10 is a diagram for explaining an example of use of the display mode setting function; 表示態様設定機能の一使用例を説明するための図である。FIG. 10 is a diagram for explaining an example of use of the display mode setting function; 表示態様設定機能の一使用例を説明するための図である。FIG. 10 is a diagram for explaining an example of use of the display mode setting function; 表示態様設定機能の一使用例を説明するための図である。FIG. 10 is a diagram for explaining an example of use of the display mode setting function; 表示態様設定機能の一使用例を説明するための図である。FIG. 10 is a diagram for explaining an example of use of the display mode setting function; 表示態様設定機能の一使用例を説明するための図である。FIG. 10 is a diagram for explaining an example of use of the display mode setting function; 表示態様設定機能の一使用例を説明するための図である。FIG. 10 is a diagram for explaining an example of use of the display mode setting function; 表示態様設定機能の一使用例を説明するための図である。FIG. 10 is a diagram for explaining an example of use of the display mode setting function; 表示態様設定機能の一使用例を説明するための図である。FIG. 10 is a diagram for explaining an example of use of the display mode setting function; 表示態様設定機能の他の使用例を説明するための図である。FIG. 10 is a diagram for explaining another usage example of the display mode setting function; 表示態様設定機能の他の使用例を説明するための図である。FIG. 10 is a diagram for explaining another usage example of the display mode setting function; 表示態様設定機能の他の使用例を説明するための図である。FIG. 10 is a diagram for explaining another usage example of the display mode setting function; 表示態様設定機能の他の使用例を説明するための図である。FIG. 10 is a diagram for explaining another usage example of the display mode setting function; 表示態様設定機能の他の使用例を説明するための図である。FIG. 10 is a diagram for explaining another usage example of the display mode setting function; 表示態様設定機能のさらに他の使用例を説明するための図である。FIG. 11 is a diagram for explaining still another usage example of the display mode setting function; 表示態様設定機能のさらに他の使用例を説明するための図である。FIG. 11 is a diagram for explaining still another usage example of the display mode setting function; 表示態様設定機能のさらに他の使用例を説明するための図である。FIG. 11 is a diagram for explaining still another usage example of the display mode setting function; 本発明の一実施の形態に係る表示態様設定機能を実現するためのCPUの機能ブロック図である。4 is a functional block diagram of a CPU for realizing a display mode setting function according to one embodiment of the present invention; FIG. 表示態様設定プログラムに基づく表示態様設定処理の基本的な流れを示すフローチャートである。4 is a flowchart showing a basic flow of display mode setting processing based on a display mode setting program; 平行面抽出機能を説明するための幾何要素設定画面の一例を示す図である。FIG. 10 is a diagram showing an example of a geometric element setting screen for explaining the parallel plane extraction function; 平行面抽出機能を説明するための幾何要素設定画面の一例を示す図である。FIG. 10 is a diagram showing an example of a geometric element setting screen for explaining the parallel plane extraction function; 垂直面抽出機能を説明するための幾何要素設定画面の一例を示す図である。FIG. 10 is a diagram showing an example of a geometric element setting screen for explaining the vertical plane extraction function; 垂直面抽出機能を説明するための幾何要素設定画面の一例を示す図である。FIG. 10 is a diagram showing an example of a geometric element setting screen for explaining the vertical plane extraction function; 領域抽出機能を説明するための幾何要素設定画面の一例を示す図である。FIG. 10 is a diagram showing an example of a geometric element setting screen for explaining the region extracting function; 領域抽出機能を説明するための幾何要素設定画面の一例を示す図である。FIG. 10 is a diagram showing an example of a geometric element setting screen for explaining the region extracting function; 表示部に表示される合わせこみ画面の一例を示す図である。It is a figure which shows an example of the matching screen displayed on a display part. 表示部に表示される合わせこみ画面の一例を示す図である。It is a figure which shows an example of the matching screen displayed on a display part. 測定対象物の他の例を示す外観斜視図である。FIG. 11 is an external perspective view showing another example of the measurement object; 対比強調表示機能の一使用例を説明するための図である。FIG. 11 is a diagram for explaining an example of use of a contrast highlighting function; 対比強調表示機能の一使用例を説明するための図である。FIG. 11 is a diagram for explaining an example of use of a contrast highlighting function; 対比強調表示機能の一使用例を説明するための図である。FIG. 11 is a diagram for explaining an example of use of a contrast highlighting function;

以下、本発明の実施の形態に係る三次元形状測定装置について図面を参照しながら説明する。 A three-dimensional shape measuring apparatus according to an embodiment of the present invention will be described below with reference to the drawings.

[1]三次元形状測定装置の構成
図1は、本発明の一実施の形態に係る三次元形状測定装置の構成を示すブロック図である。図2は、図1の三次元形状測定装置500の測定部の構成を示す模式図である。以下、本実施の形態に係る三次元形状測定装置500について、図1および図2を参照しながら説明する。図1に示すように、三次元形状測定装置500は、測定部100、PC(パーソナルコンピュータ)200、制御部300および表示部400を備える。測定部100は、例えば投受光一体の撮像デバイスであり、投光部110、受光部120、照明光出力部130、ステージ140および制御基板150を含む。
[1] Configuration of Three-Dimensional Shape Measuring Apparatus FIG. 1 is a block diagram showing the configuration of a three-dimensional shape measuring apparatus according to an embodiment of the present invention. FIG. 2 is a schematic diagram showing the configuration of the measuring section of the three-dimensional shape measuring apparatus 500 of FIG. A three-dimensional shape measuring apparatus 500 according to the present embodiment will be described below with reference to FIGS. 1 and 2. FIG. As shown in FIG. 1 , the three-dimensional shape measuring device 500 includes a measurement section 100 , a PC (personal computer) 200 , a control section 300 and a display section 400 . The measurement unit 100 is, for example, an imaging device that integrates light projection and reception, and includes a light projection unit 110 , a light reception unit 120 , an illumination light output unit 130 , a stage 140 and a control board 150 .

測定部100は、複数の投光部110を含んでもよい。また、測定部100は複数の受光部120を含んでもよい。本実施の形態では、測定部100は2つの投光部110および2つの受光部120を含む。以下、2つの投光部110を区別する場合は、一方の投光部110を投光部110Aと呼び、他方の投光部110を投光部110Bと呼ぶ。また、2つの受光部120を区別する場合は、一方の受光部120を受光部120Aと呼び、他方の受光部120を受光部120Bと呼ぶ。 The measuring section 100 may include a plurality of light projecting sections 110 . Also, the measurement unit 100 may include a plurality of light receiving units 120 . In this embodiment, measuring section 100 includes two light projecting sections 110 and two light receiving sections 120 . Hereinafter, when distinguishing between the two light projecting sections 110, one light projecting section 110 will be referred to as a light projecting section 110A, and the other light projecting section 110 will be referred to as a light projecting section 110B. When distinguishing between the two light receiving sections 120, one light receiving section 120 is referred to as a light receiving section 120A, and the other light receiving section 120 is referred to as a light receiving section 120B.

図2では、2つの投光部110および2つの受光部120のうち、2つの投光部110および1つの受光部120が示される。投光部110および受光部120は、ステージ140の斜め上方の位置で一方向に並ぶように配置される。投光部110および受光部120の配置の詳細については後述する。図2に示すように、各投光部110は、測定光源111、パターン生成部112および複数のレンズ113,114を含む。受光部120は、カメラ121およびレンズ122を含む。ステージ140上には、測定対象物Sが載置される。 FIG. 2 shows two light projecting units 110 and one light receiving unit 120 out of two light projecting units 110 and two light receiving units 120 . Light projecting unit 110 and light receiving unit 120 are arranged in one direction at a position obliquely above stage 140 . The details of the arrangement of light projecting section 110 and light receiving section 120 will be described later. As shown in FIG. 2, each light projector 110 includes a measurement light source 111, a pattern generator 112 and a plurality of lenses 113,114. Light receiving unit 120 includes camera 121 and lens 122 . A measuring object S is placed on the stage 140 .

各投光部110A,110Bの測定光源111は、例えば青色LED(発光ダイオード)である。測定光源111は、ハロゲンランプ等の他の光源であってもよい。測定光源111から出射された光(以下、測定光と呼ぶ。)は、レンズ113により適切に集光された後、パターン生成部112に入射する。 The measurement light source 111 of each of the light projection units 110A and 110B is, for example, a blue LED (light emitting diode). The measurement light source 111 may be another light source such as a halogen lamp. Light emitted from the measurement light source 111 (hereinafter referred to as measurement light) is appropriately condensed by the lens 113 and then enters the pattern generator 112 .

パターン生成部112は、例えばDMD(デジタルマイクロミラーデバイス)である。パターン生成部112は、LCD(液晶ディスプレイ)、LCOS(Liquid Crystal on Silicon:反射型液晶素子)またはマスクであってもよい。パターン生成部112に入射した測定光は、予め設定されたパターンおよび予め設定された強度(明るさ)に変換されて出射される。パターン生成部112から出射された測定光は、レンズ114により測定対象物Sの寸法よりも大きい径を有する光に変換された後、ステージ140上の測定対象物Sに照射される。 The pattern generator 112 is, for example, a DMD (digital micromirror device). The pattern generator 112 may be an LCD (Liquid Crystal Display), an LCOS (Liquid Crystal on Silicon), or a mask. The measurement light that has entered the pattern generator 112 is converted into a preset pattern and a preset intensity (brightness) and emitted. The measurement light emitted from the pattern generator 112 is converted by the lens 114 into light having a diameter larger than the dimension of the measurement object S, and then the measurement object S on the stage 140 is irradiated with the light.

投光部110Aの測定光源111、レンズ113およびパターン生成部112は、受光部120の光軸と略平行に並ぶように配置される。同様に、投光部110Bの測定光源111、レンズ113およびパターン生成部112は、受光部120の光軸と略平行に並ぶように配置される。一方、各投光部110A,110Bのレンズ114は、測定光源111、レンズ113およびパターン生成部112に対してオフセットするように配置される。これにより、投光部110A,110Bの光軸が受光部120の光軸に対して傾斜し、受光部120の両側方からそれぞれ測定対象物Sに向けて測定光が出射される。 The measurement light source 111, the lens 113, and the pattern generation section 112 of the light projection section 110A are arranged substantially parallel to the optical axis of the light reception section 120. FIG. Similarly, the measurement light source 111, the lens 113, and the pattern generator 112 of the light projecting section 110B are arranged substantially parallel to the optical axis of the light receiving section 120. FIG. On the other hand, the lens 114 of each of the light projection units 110A and 110B is arranged so as to be offset with respect to the measurement light source 111, the lens 113 and the pattern generation unit 112. FIG. As a result, the optical axes of the light-projecting sections 110A and 110B are tilted with respect to the optical axis of the light-receiving section 120, and measurement light is emitted toward the measurement object S from both sides of the light-receiving section 120, respectively.

測定対象物Sによりステージ140の上方に反射された測定光は、受光部120のレンズ122により集光および結像され、カメラ121の撮像素子121aにより受光される。 The measurement light reflected upward from the stage 140 by the measurement object S is focused and imaged by the lens 122 of the light receiving unit 120 and received by the imaging element 121 a of the camera 121 .

受光部120の撮像視野を広くするため、一定の画角を有するように受光部120が構成される。本実施の形態においては、受光部120の撮像視野とは、受光部120により撮像が可能な空間上の領域を意味する。受光部120の画角は、例えば、撮像素子121aの寸法およびレンズ122の焦点距離により定まる。広い視野を必要としない場合には、テレセントリック光学系が受光部120に用いられてもよい。ここで、測定部100に設けられる2つの受光部120のレンズ122の倍率は互いに異なる。それにより、2つの受光部120を選択的に用いることにより、測定対象物Sを互いに異なる2種類の倍率で撮像することができる。2つの受光部120は、2つの受光部120の光軸が互いに平行となるように配置されることが好ましい。 In order to widen the imaging field of the light receiving unit 120, the light receiving unit 120 is configured to have a certain angle of view. In the present embodiment, the imaging field of view of the light receiving unit 120 means a spatial area that can be imaged by the light receiving unit 120 . The angle of view of the light receiving unit 120 is determined by the dimensions of the imaging device 121a and the focal length of the lens 122, for example. A telecentric optical system may be used for the light receiving section 120 when a wide field of view is not required. Here, the magnifications of the lenses 122 of the two light receiving units 120 provided in the measuring unit 100 are different from each other. Accordingly, by selectively using the two light receiving units 120, the measurement object S can be imaged at two different magnifications. The two light receiving sections 120 are preferably arranged such that the optical axes of the two light receiving sections 120 are parallel to each other.

カメラ121は、例えばCCD(電荷結合素子)カメラである。撮像素子121aは、例えばモノクロCCD(電荷結合素子)である。撮像素子121aは、CMOS(相補性金属酸化膜半導体)イメージセンサ等の他の撮像素子であってもよい。撮像素子121aの各画素からは、受光量に対応するアナログの電気信号(以下、受光信号と呼ぶ。)が制御基板150に出力される。 The camera 121 is, for example, a CCD (charge-coupled device) camera. The imaging device 121a is, for example, a monochrome CCD (charge-coupled device). The imaging device 121a may be another imaging device such as a CMOS (Complementary Metal Oxide Semiconductor) image sensor. From each pixel of the imaging device 121 a , an analog electrical signal (hereinafter referred to as a light reception signal) corresponding to the amount of light received is output to the control board 150 .

照明光出力部130は、測定対象物Sに赤色波長の光、緑色波長の光および青色波長の光を時分割で出射する。この構成によれば、モノクロCCDを用いた受光部120により測定対象物Sのカラー画像を撮像することができる。 The illumination light output unit 130 emits light with a red wavelength, light with a green wavelength, and light with a blue wavelength to the measurement object S in a time division manner. According to this configuration, a color image of the measuring object S can be picked up by the light receiving section 120 using a monochrome CCD.

なお、カラーCCDが十分な分解能および感度を有する場合には、撮像素子121aは、カラーCCDであってもよい。この場合、照明光出力部130は、測定対象物Sに赤色波長の光、緑色波長の光および青色波長の光を時分割で照射する必要はなく、白色光を測定対象物Sに照射する。そのため、照明光源320の構成を単純にすることができる。 Note that the imaging device 121a may be a color CCD if the color CCD has sufficient resolution and sensitivity. In this case, the illumination light output unit 130 does not need to time-divisionally irradiate the measurement object S with the red wavelength light, the green wavelength light, and the blue wavelength light, and irradiates the measurement object S with white light. Therefore, the configuration of illumination light source 320 can be simplified.

制御基板150には、図示しないA/D変換器(アナログ/デジタル変換器)およびFIFO(First In First Out)メモリが実装される。カメラ121から出力される受光信号は、制御部300による制御に基づいて、制御基板150のA/D変換器により一定のサンプリング周期でサンプリングされるとともにデジタル信号に変換される。A/D変換器から出力されるデジタル信号は、FIFOメモリに順次蓄積される。FIFOメモリに蓄積されたデジタル信号は画素データとして順次PC200に転送される。ここで、カメラ121が、例えば、モノクロCMOSカメラであって、撮像素子121aの各画素から受光量に対応するデジタルの電気信号が制御基板150へ出力される場合、A/D変換器は必ずしも必要ではない。 The control board 150 is mounted with an A/D converter (analog/digital converter) and FIFO (First In First Out) memory (not shown). The received light signal output from the camera 121 is sampled at a constant sampling period and converted into a digital signal by the A/D converter of the control board 150 under the control of the control unit 300 . Digital signals output from the A/D converter are sequentially stored in a FIFO memory. The digital signals stored in the FIFO memory are sequentially transferred to the PC 200 as pixel data. Here, if the camera 121 is, for example, a monochrome CMOS camera, and a digital electric signal corresponding to the amount of received light is output from each pixel of the imaging element 121a to the control board 150, an A/D converter is absolutely necessary. is not.

図1に示すように、PC200は、CPU(中央演算処理装置)210、ROM(リードオンリメモリ)220、作業用メモリ230、記憶装置240および操作部250を含む。操作部250は、キーボードおよびポインティングデバイスを含む。ポインティングデバイスとしては、マウスまたはジョイスティック等が用いられる。 As shown in FIG. 1, the PC 200 includes a CPU (Central Processing Unit) 210 , a ROM (Read Only Memory) 220 , a working memory 230 , a storage device 240 and an operation section 250 . Operation unit 250 includes a keyboard and pointing device. A mouse, a joystick, or the like is used as the pointing device.

ROM220には、システムプログラムが記憶される。作業用メモリ230は、RAM(ランダムアクセスメモリ)からなり、種々のデータの処理のために用いられる。記憶装置240は、ハードディスク等からなる。記憶装置240には、三次元形状測定プログラムが記憶される。三次元形状測定プログラムには、後述する形状測定プログラムおよび表示態様設定プログラムが含まれる。また、記憶装置240は、制御基板150から与えられる画素データ等の種々のデータを保存するために用いられる。 A system program is stored in the ROM 220 . The working memory 230 consists of RAM (random access memory) and is used for processing various data. The storage device 240 consists of a hard disk or the like. The storage device 240 stores a three-dimensional shape measurement program. The three-dimensional shape measurement program includes a shape measurement program and a display mode setting program, which will be described later. Also, the storage device 240 is used to store various data such as pixel data provided from the control board 150 .

CPU210は、制御基板150から与えられる画素データに基づいて画像データを生成する。また、CPU210は、生成した画像データに作業用メモリ230を用いて各種処理を行うとともに、画像データに基づく画像を表示部400に表示させる。さらに、CPU210は、後述するステージ駆動部146に制御基板150を通して駆動信号を与える。表示部400は、例えばLCDパネルまたは有機EL(エレクトロルミネッセンス)パネルにより構成される。表示部400には、例えば受光部120のカメラ121によりリアルタイムで取得される画像データに基づく画像(以下、ライブ画像と呼ぶ。)が表示される。 CPU 210 generates image data based on pixel data provided from control board 150 . Further, the CPU 210 performs various processes on the generated image data using the working memory 230 and causes the display unit 400 to display an image based on the image data. Furthermore, the CPU 210 gives a drive signal through the control board 150 to the stage drive section 146, which will be described later. The display unit 400 is configured by, for example, an LCD panel or an organic EL (electroluminescence) panel. The display unit 400 displays an image (hereinafter referred to as a live image) based on image data acquired in real time by the camera 121 of the light receiving unit 120, for example.

図2に示すように、ステージ140は、ステージベース141およびステージプレート142を含む。ステージベース141上にステージプレート142が配置される。ステージプレート142は、測定対象物Sが載置される載置面を有する。ステージプレート142には、クランプまたは治具等を取り付けるための取付部(例えばねじ孔)が設けられてもよい。本実施の形態に係るステージプレート142は円板形状を有する。 As shown in FIG. 2, stage 140 includes stage base 141 and stage plate 142 . A stage plate 142 is arranged on the stage base 141 . The stage plate 142 has a mounting surface on which the object S to be measured is mounted. The stage plate 142 may be provided with mounting portions (for example, screw holes) for mounting clamps, jigs, or the like. The stage plate 142 according to this embodiment has a disk shape.

ステージプレート142上の空間には、略円柱状の有効領域MRが設定される。有効領域MRは、投光部110A,110Bにより測定光を照射可能でかつ受光部120により撮像可能な領域である。受光部120の撮像視野は、その受光部120が有するレンズ122の倍率、焦点深度および画角等により定まる。 A substantially cylindrical effective area MR is set in the space above the stage plate 142 . The effective area MR is an area that can be irradiated with measurement light by the light projecting sections 110A and 110B and can be imaged by the light receiving section 120. FIG. The imaging field of the light receiving unit 120 is determined by the magnification, depth of focus, angle of view, etc. of the lens 122 of the light receiving unit 120 .

ステージ140は回転機構143に取り付けられる。回転機構143は、後述する設置部161(図4)に固定されている。また、回転機構143は、例えばエンコーダおよびステッピングモータを含む。また、回転機構143は、図1のステージ操作部145またはステージ駆動部146により駆動され、ステージ140をその中心を通るとともに鉛直方向に延びる回転軸Axの周りで回転させる。使用者は、ステージ操作部145を手動で操作することにより、ステージ140を回転させることができる。また、ステージ駆動部146は、PC200より制御基板150を通して与えられる駆動信号に基づいて、回転機構143に電流を供給することにより、ステージプレート142の載置面を受光部120に相対的に回転させることができる。 Stage 140 is attached to rotation mechanism 143 . The rotating mechanism 143 is fixed to an installation portion 161 (FIG. 4), which will be described later. Also, the rotating mechanism 143 includes, for example, an encoder and a stepping motor. Further, the rotating mechanism 143 is driven by the stage operating section 145 or the stage driving section 146 of FIG. 1, and rotates the stage 140 around the rotation axis Ax passing through its center and extending in the vertical direction. The user can rotate the stage 140 by manually operating the stage operation unit 145 . Further, the stage driving section 146 supplies current to the rotating mechanism 143 based on a driving signal given from the PC 200 through the control board 150, thereby rotating the mounting surface of the stage plate 142 relative to the light receiving section 120. be able to.

ステージ140の回転時には、回転機構143のエンコーダから出力される信号が、制御基板150を通してPC200に送られる。それにより、図1のCPU210は、予め定められた基準角度からのステージプレート142の回転量(回転位置)を検出する。 When the stage 140 rotates, a signal output from the encoder of the rotation mechanism 143 is sent to the PC 200 through the control board 150 . Thereby, CPU 210 in FIG. 1 detects the amount of rotation (rotational position) of stage plate 142 from a predetermined reference angle.

制御部300は、制御基板310および照明光源320を含む。制御基板310には、図示しないCPUが実装される。制御基板310のCPUは、PC200のCPU210からの指令に基づいて、投光部110、受光部120および制御基板150を制御する。制御基板310および照明光源320は、測定部100に搭載されてもよい。 Control unit 300 includes a control board 310 and an illumination light source 320 . A CPU (not shown) is mounted on the control board 310 . The CPU of the control board 310 controls the light projecting section 110 , the light receiving section 120 and the control board 150 based on commands from the CPU 210 of the PC 200 . Control board 310 and illumination light source 320 may be mounted on measurement unit 100 .

照明光源320は、例えば赤色光、緑色光および青色光を出射する3つのLEDを含む。各LEDから出射される光の輝度を制御することにより、照明光源320から任意の色の光を発生することができる。照明光源320から発生される光(以下、照明光と呼ぶ。)は、導光部材(ライトガイド)330を通して測定部100の照明光出力部130から出力される。なお、制御部300に照明光源320を設けずに、測定部100に照明光源320を設けてもよい。この場合、導光部材330は必要ない。 Illumination light source 320 includes, for example, three LEDs that emit red, green, and blue light. By controlling the brightness of the light emitted from each LED, light of any color can be generated from the illumination light source 320 . Light emitted from the illumination light source 320 (hereinafter referred to as illumination light) is output from the illumination light output section 130 of the measurement section 100 through a light guide member (light guide) 330 . Note that the illumination light source 320 may be provided in the measurement unit 100 without providing the illumination light source 320 in the control unit 300 . In this case, the light guide member 330 is not required.

ここで、測定部100においては、複数の投光部110、複数の受光部120、照明光出力部130およびステージ140の位置関係が一定に固定されるように、これらの構成要素が連結される。 Here, in the measuring unit 100, these components are connected so that the positional relationship of the plurality of light projecting units 110, the plurality of light receiving units 120, the illumination light output unit 130, and the stage 140 is fixed. .

図3は、測定部100の模式的な外観斜視図である。図3では、測定部100の外観が太い実線で示されるとともに、測定部100の内部に設けられる一部の構成要素が点線で示される。図3に示すように、測定部100は台座170を含む。台座170には、2つの投光部110、2つの受光部120、照明光出力部130および制御基板150が取り付けられる。この状態で、2つの投光部110、2つの受光部120、照明光出力部130の位置関係が台座170により固定される。2つの受光部120は上下に並ぶように配置されている。また、照明光出力部130は、楕円筒形状を有し、2つの受光部120を取り囲むように配置されている。照明光出力部130の一端部には、楕円形状を有する照明光の出射口131が形成されている。さらに、2つの投光部110は、2つの受光部120および照明光出力部130を挟んで並ぶように配置される。 FIG. 3 is a schematic external perspective view of the measurement unit 100. FIG. In FIG. 3 , the external appearance of the measurement unit 100 is indicated by thick solid lines, and some components provided inside the measurement unit 100 are indicated by dotted lines. As shown in FIG. 3, the measuring section 100 includes a pedestal 170. As shown in FIG. Two light projecting units 110 , two light receiving units 120 , an illumination light output unit 130 and a control board 150 are attached to the pedestal 170 . In this state, the pedestal 170 fixes the positional relationship between the two light projecting units 110 , the two light receiving units 120 , and the illumination light output unit 130 . The two light receiving units 120 are arranged vertically. Also, the illumination light output section 130 has an elliptical cylindrical shape and is arranged so as to surround the two light receiving sections 120 . An illumination light output port 131 having an elliptical shape is formed at one end of the illumination light output unit 130 . Further, the two light projecting units 110 are arranged side by side with the two light receiving units 120 and the illumination light output unit 130 interposed therebetween.

台座170には、さらに2つの投光部110、2つの受光部120、照明光出力部130および制御基板150の一部を収容するヘッドケーシング180が取り付けられる。2つの投光部110、2つの受光部120、照明光出力部130、制御基板150、台座170およびヘッドケーシング180によりヘッド部190が構成される。 A head casing 180 that accommodates two light projecting units 110 , two light receiving units 120 , an illumination light output unit 130 and a part of the control board 150 is further attached to the base 170 . A head section 190 is composed of two light projecting sections 110 , two light receiving sections 120 , an illumination light output section 130 , a control board 150 , a base 170 and a head casing 180 .

測定部100は、さらに設置部161およびスタンド部162を含む。設置部161は、平坦な底面を有するとともに略一定幅で一方向に延びるように形成されている。設置部161は、テーブルの上面等の水平な設置面上に設置される。 The measuring section 100 further includes an installation section 161 and a stand section 162 . The installation portion 161 has a flat bottom surface and is formed to extend in one direction with a substantially constant width. The installation portion 161 is installed on a horizontal installation surface such as the upper surface of a table.

スタンド部162は、設置部161の一端部に接続され、設置部161の一端部から上方に延びるように形成される。設置部161の他端部近傍の位置に図2の回転機構143が固定されている。回転機構143によりステージ140が回転可能に保持される。 The stand portion 162 is connected to one end of the installation portion 161 and formed to extend upward from the one end of the installation portion 161 . The rotation mechanism 143 of FIG. 2 is fixed at a position near the other end of the installation portion 161 . The stage 140 is rotatably held by the rotating mechanism 143 .

台座170は、スタンド部162の上端に着脱可能に構成されている。スタンド部162にヘッド部190の台座170が取り付けられることにより、ヘッド部190と設置部161とがスタンド部162により固定的に連結される。これにより、ステージ140、2つの投光部110および2つの受光部120の位置関係が一定に保持される。 The pedestal 170 is detachably attached to the upper end of the stand portion 162 . By attaching the pedestal 170 of the head portion 190 to the stand portion 162 , the head portion 190 and the installation portion 161 are fixedly connected by the stand portion 162 . Thereby, the positional relationship among the stage 140, the two light projecting sections 110, and the two light receiving sections 120 is kept constant.

各投光部110は、測定光の照射される照射領域がステージ140およびその上方の空間を含むように位置決めされる。測定光は、各投光部110から測定対象物Sに対して斜め下方に導かれる。さらに、各受光部120は、光軸が斜め下方に延びるようにかつ図2のカメラ121の撮像視野がステージ140およびその上方の空間を含むように位置決めされる。図3では、各投光部110の照射領域IRが二点鎖線で示されるとともに、一方の受光部120Aの撮像視野TR1が一点鎖線で示される。各受光部120A,120Bは、その光学系の光軸(図2のレンズ122の光軸)がステージプレート142の載置面に対して予め定められた角度(例えば45度)をなす状態で固定される。 Each light projection unit 110 is positioned so that the irradiation area irradiated with the measurement light includes the stage 140 and the space above it. The measurement light is guided obliquely downward toward the measurement target S from each light projecting section 110 . Further, each light receiving unit 120 is positioned such that the optical axis extends obliquely downward and the field of view of the camera 121 in FIG. 2 includes the stage 140 and the space above it. In FIG. 3, the irradiation region IR of each light projecting unit 110 is indicated by a two-dot chain line, and the imaging field TR1 of one light receiving unit 120A is indicated by a one-dot chain line. Each of the light receiving sections 120A and 120B is fixed so that the optical axis of the optical system (the optical axis of the lens 122 in FIG. 2) forms a predetermined angle (for example, 45 degrees) with respect to the mounting surface of the stage plate 142. be done.

図3に示すように、2つの投光部110A,110Bの照射領域IRの一部と受光部120Aの撮像視野TR1の一部とは、ステージ140の上方の空間内で重なり合う。投光部110A,110Bの照射領域IRと受光部120Aの撮像視野TR1とが重なり合う位置に、受光部120Aに対応する有効領域MR1が設定される。 As shown in FIG. 3 , part of the irradiation regions IR of the two light projecting sections 110A and 110B and part of the imaging field of view TR1 of the light receiving section 120A overlap in the space above the stage 140 . An effective area MR1 corresponding to the light receiving section 120A is set at a position where the irradiation area IR of the light projecting sections 110A and 110B and the imaging field of view TR1 of the light receiving section 120A overlap.

本例の測定部100に設けられる2つの受光部120A,120Bは、レンズ122の倍率、焦点深度および画角が互いに異なる。具体的には、受光部120Bのレンズ122の倍率は受光部120Aのレンズ122の倍率よりも高い。また、受光部120Bのレンズ122の焦点深度は受光部120Aのレンズ122の焦点深度よりも小さい。さらに、受光部120Bのレンズ122の画角は受光部120Aのレンズ122の画角よりも小さい。この場合、受光部120Bの撮像視野は、受光部120Aの撮像視野TR1よりも小さくなる。それにより、一方の受光部120Aに対応する有効領域MR1はステージ140上に比較的広い範囲で設定される。これに対して、他方の受光部120Bに対応する有効領域は、受光部120Aに対応する有効領域MR1よりも狭い範囲でステージ140上に設定される。 The two light receiving units 120A and 120B provided in the measuring unit 100 of this example are different from each other in the magnification, depth of focus and angle of view of the lens 122 . Specifically, the magnification of the lens 122 of the light receiving section 120B is higher than the magnification of the lens 122 of the light receiving section 120A. Also, the depth of focus of the lens 122 of the light receiving section 120B is smaller than the depth of focus of the lens 122 of the light receiving section 120A. Furthermore, the angle of view of the lens 122 of the light receiving section 120B is smaller than the angle of view of the lens 122 of the light receiving section 120A. In this case, the imaging field of view of the light receiving section 120B is smaller than the imaging field of view TR1 of the light receiving section 120A. Thereby, the effective area MR1 corresponding to one light receiving section 120A is set on the stage 140 in a relatively wide range. On the other hand, the effective area corresponding to the other light receiving section 120B is set on the stage 140 within a narrower range than the effective area MR1 corresponding to the light receiving section 120A.

図4は、図3の測定部100の模式的側面図である。図4では、受光部120Aの光学系の光軸A1が太い一点鎖線で示され、受光部120Aの有効領域MR1が太い点線で示される。また、受光部120Bの光学系の光軸A2が一点鎖線で示され、受光部120Bの有効領域MR2が点線で示される。 4 is a schematic side view of the measuring section 100 of FIG. 3. FIG. In FIG. 4, the optical axis A1 of the optical system of the light receiving section 120A is indicated by a thick dashed line, and the effective area MR1 of the light receiving section 120A is indicated by a thick dotted line. An optical axis A2 of the optical system of the light receiving section 120B is indicated by a dashed line, and an effective area MR2 of the light receiving section 120B is indicated by a dotted line.

本実施の形態に係る測定部100においては、図4に示すように、光軸A2が光軸A1よりも下方に位置する。また、光軸A1,A2は互いに平行である。受光部120Aに対応する有効領域MR1は、例えばステージ140の回転軸Axと受光部120Aの光学系の焦点面との交点F1を中心として設定される。受光部120Bに対応する有効領域MR2は、例えばステージ140の回転軸Axと受光部120Bの光学系の焦点面との交点F2を中心として設定される。 In measuring section 100 according to the present embodiment, as shown in FIG. 4, optical axis A2 is located below optical axis A1. Also, the optical axes A1 and A2 are parallel to each other. The effective area MR1 corresponding to the light receiving section 120A is set around, for example, the intersection F1 between the rotation axis Ax of the stage 140 and the focal plane of the optical system of the light receiving section 120A. The effective area MR2 corresponding to the light receiving section 120B is set, for example, around the intersection point F2 between the rotation axis Ax of the stage 140 and the focal plane of the optical system of the light receiving section 120B.

図3および図4に示される測定部100においては、有効領域MR1,MR2を含むステージ140上の空間に、測定部100に固有の三次元座標系(以下、装置座標系と呼ぶ。)が定義される。本例の装置座標系は、原点と互いに直交するX軸、Y軸およびZ軸とを含む。以下の説明では、装置座標系のX軸に平行な方向をX方向と呼び、Y軸に平行な方向をY方向と呼び、Z軸に平行な方向をZ方向と呼ぶ。さらに、Z軸に平行な軸の周りで回転する方向をθ方向と呼ぶ。X方向およびY方向は、ステージプレート142の載置面に平行な面内で互いに直交する。Z方向は、ステージプレート142の載置面に平行な面に対して直交する。図3および図4では、X方向、Y方向、Z方向およびθ方向が矢印で示される。 In measuring section 100 shown in FIGS. 3 and 4, a three-dimensional coordinate system (hereinafter referred to as apparatus coordinate system) unique to measuring section 100 is defined in the space above stage 140 including effective areas MR1 and MR2. be done. The device coordinate system of this example includes an origin and mutually orthogonal X, Y, and Z axes. In the following description, the direction parallel to the X axis of the apparatus coordinate system is called the X direction, the direction parallel to the Y axis is called the Y direction, and the direction parallel to the Z axis is called the Z direction. Furthermore, the direction of rotation around an axis parallel to the Z axis is called the θ direction. The X direction and the Y direction are orthogonal to each other within a plane parallel to the mounting surface of the stage plate 142 . The Z direction is orthogonal to a plane parallel to the mounting surface of the stage plate 142 . 3 and 4, the X direction, Y direction, Z direction and θ direction are indicated by arrows.

[2]測定対象物の立体形状を示す立体形状データ
(1)三角測距方式による形状測定
測定部100においては、三角測距方式により測定対象物Sの形状が測定される。図5は、三角測距方式の原理を説明するための図である。図5には、装置座標系とともに定義されるX方向、Y方向、Z方向およびθ方向がそれぞれ矢印で示される。
[2] Three-dimensional shape data indicating the three-dimensional shape of the object to be measured (1) Shape measurement by triangulation method In the measuring unit 100, the shape of the object to be measured S is measured by the triangulation method. FIG. 5 is a diagram for explaining the principle of the triangulation method. In FIG. 5, the X direction, Y direction, Z direction and θ direction defined together with the device coordinate system are indicated by arrows.

図5に示すように、投光部110から出射される測定光の光軸と受光部120に入射する測定光の光軸(受光部120の光軸)との間の角度αが予め設定される。角度αは、0度よりも大きく90度よりも小さい。 As shown in FIG. 5, an angle α between the optical axis of the measuring light emitted from the light projecting section 110 and the optical axis of the measuring light entering the light receiving section 120 (the optical axis of the light receiving section 120) is set in advance. be. The angle α is greater than 0 degrees and less than 90 degrees.

ステージ140上に測定対象物Sが載置されない場合、投光部110から出射される測定光は、ステージ140の載置面の点Oにより反射され、受光部120に入射する。一方、ステージ140上に測定対象物Sが載置される場合、投光部110から出射される測定光は、測定対象物Sの表面の点Aにより反射され、受光部120に入射する。 When the measurement object S is not mounted on the stage 140 , the measurement light emitted from the light projecting section 110 is reflected by the point O on the mounting surface of the stage 140 and enters the light receiving section 120 . On the other hand, when the measurement object S is placed on the stage 140 , the measurement light emitted from the light projecting section 110 is reflected by the point A on the surface of the measurement object S and enters the light receiving section 120 .

点Oと点Aとの間のX方向における距離をdとすると、ステージ140の載置面に対する測定対象物Sの点Aの高さhは、h=d÷tan(α)により与えられる。図1のPC200のCPU210は、制御基板150により与えられる測定対象物Sの画素データに基づいて、X方向における点Oと点Aとの間の距離dを測定する。また、CPU210は、測定された距離dに基づいて、測定対象物Sの表面の点Aの高さhを算出する。測定対象物Sの表面の全ての点の高さを算出することにより、測定光が照射された全ての点について装置座標系で表される座標を特定することができる。それにより、測定対象物Sの三次元的な形状が測定される。 If the distance in the X direction between the point O and the point A is d, the height h of the point A of the measuring object S with respect to the mounting surface of the stage 140 is given by h=d÷tan(α). The CPU 210 of the PC 200 in FIG. 1 measures the distance d between the point O and the point A in the X direction based on the pixel data of the measurement object S given by the control board 150 . The CPU 210 also calculates the height h of the point A on the surface of the measurement object S based on the measured distance d. By calculating the heights of all the points on the surface of the measurement object S, it is possible to specify the coordinates expressed in the apparatus coordinate system for all the points irradiated with the measurement light. Thereby, the three-dimensional shape of the measuring object S is measured.

測定対象物Sの表面の全ての点に測定光を照射するために、図2の投光部110からは種々のパターンを有する測定光が出射される。測定光のパターンは、図2のパターン生成部112により制御される。 In order to irradiate all points on the surface of the object S to be measured with the measurement light, the light projecting section 110 in FIG. 2 emits measurement light having various patterns. The pattern of the measurement light is controlled by the pattern generator 112 shown in FIG.

例えば第1のパターンとして、Y方向に平行な直線状の断面を有する測定光(以下、ライン状測定光と呼ぶ。)が投光部110から出射される。また、第2のパターンとして、Y方向に平行な直線状の断面を有しかつX方向に強度が正弦波状に変化するパターンを有する測定光(以下、正弦波状測定光と呼ぶ。)が投光部110から複数回(本例においては4回)出射される。さらに、第3のパターンとして、Y方向に平行でかつX方向に並ぶような直線状の断面を有する測定光(以下、縞状測定光と呼ぶ。)が投光部110から複数回(本例においては16回)出射される。さらに、第4のパターンとして、Y方向に平行な直線状の断面を有しかつ明部分と暗部分とがX方向に並ぶ測定光(以下、コード状測定光と呼ぶ。)が投光部110から複数回(本例においては4回)出射される。コード状測定光の明部分および暗部分の割合は、それぞれ50%である。 For example, as a first pattern, measurement light having a linear cross section parallel to the Y direction (hereinafter referred to as line-shaped measurement light) is emitted from the light projecting section 110 . As the second pattern, measurement light having a linear cross section parallel to the Y direction and a pattern in which the intensity varies sinusoidally in the X direction (hereinafter referred to as sinusoidal measurement light) is emitted. It is emitted from the unit 110 a plurality of times (four times in this example). Furthermore, as a third pattern, measurement light having a linear cross section parallel to the Y direction and aligned in the X direction (hereinafter referred to as striped measurement light) is emitted from the light projecting unit 110 a plurality of times (this example 16 times). Furthermore, as a fourth pattern, the light projecting unit 110 emits measurement light having a linear cross section parallel to the Y direction and having bright portions and dark portions lined up in the X direction (hereinafter referred to as coded measurement light). is emitted a plurality of times (four times in this example). The proportion of bright and dark parts of the coded measuring light is 50% each.

上述のライン状測定光を測定対象物S上で走査する方法は一般に光切断法と呼ばれる。一方、正弦波状測定光、縞状測定光またはコード状測定光を測定対象物Sに照射する方法は、パターン投影法に分類される。また、パターン投影法の中でも、正弦波状測定光または縞状測定光を測定対象物Sに照射する方法は位相シフト法に分類され、コード状測定光を測定対象物Sに照射する方法は空間コード法に分類される。 The method of scanning the measurement object S with the linear measurement light described above is generally called a light section method. On the other hand, the method of irradiating the measuring object S with sinusoidal measuring light, striped measuring light, or coded measuring light is classified as a pattern projection method. Among the pattern projection methods, the method of irradiating the measuring object S with sinusoidal measuring light or striped measuring light is classified as the phase shift method, and the method of irradiating the measuring object S with the coded measuring light is the spatial code method. classified by law.

本実施の形態に係る測定部100においては、ステージ140上に載置される測定対象物Sに対して互いに異なる複数(本例では2つ)の方向から測定光を投光することができる。それにより、投光部110Aから投光される測定光により測定不可能な部分がある場合に、その測定不可能な部分の形状を投光部110Bから投光される測定光を用いて測定することができる。同様に、投光部110Bから投光される測定光により測定不可能な部分がある場合に、その測定不可能な部分の形状を投光部110Aから投光される測定光を用いて測定することができる。これらの結果、測定対象物Sにおける測定不可能な部分を低減することができる。 In the measurement unit 100 according to the present embodiment, measurement light can be projected onto the measurement object S placed on the stage 140 from a plurality of (in this example, two) different directions. As a result, when there is a portion that cannot be measured by the measurement light projected from the light projecting portion 110A, the shape of the unmeasurable portion is measured using the measurement light projected from the light projecting portion 110B. be able to. Similarly, when there is a portion that cannot be measured by the measurement light projected from the light projecting portion 110B, the shape of the unmeasurable portion is measured using the measurement light projected from the light projecting portion 110A. be able to. As a result, the unmeasurable portion of the measurement object S can be reduced.

上記の光切断法、パターン投影法、位相シフト法および空間コード法は、各々短所および長所を有しているが、いずれも三角測距の原理を用いている点は共通である。所定パターンを有する測定光が投影された測定対象物Sの画像データ(以下、パターン画像データと呼ぶ。)に基づいて、測定対象物Sの立体形状を表す点群(ポイントクラウド)データが生成される。 The light section method, the pattern projection method, the phase shift method and the spatial code method each have their advantages and disadvantages, but they all use the principle of triangulation in common. Point cloud data representing the three-dimensional shape of the measurement object S is generated based on image data of the measurement object S onto which measurement light having a predetermined pattern is projected (hereinafter referred to as pattern image data). be.

以下の説明では、測定対象物Sの立体形状を表す点群データを立体形状データと呼ぶ。立体形状データは、測定対象物Sの表面上の複数の点の位置データを含む。位置データは、例えば、X方向、Y方向およびZ方向における座標を表す。この場合、立体形状データのうち任意の点のデータをPn(nは自然数)とすると、Pnは、例えば装置座標系の座標値を用いて(Xn,Yn,Zn)で表すことができる。なお、立体形状データは、点群データに基づいて生成される面情報データにより構成されてもよく、ポリゴンメッシュ等の他の形式のデータを含んでもよい。立体形状データに基づいて、測定対象物Sの立体形状を表す画像を表示することができる。以下、立体形状データに基づいて表示される測定対象物Sの立体形状を含む画像を立体形状画像と呼ぶ。 In the following description, the point cloud data representing the three-dimensional shape of the measurement object S will be referred to as three-dimensional shape data. The three-dimensional shape data includes position data of a plurality of points on the surface of the object S to be measured. The position data represents coordinates in the X, Y and Z directions, for example. In this case, if the data of an arbitrary point in the three-dimensional shape data is Pn (n is a natural number), Pn can be represented by (Xn, Yn, Zn) using the coordinate values of the device coordinate system, for example. Note that the three-dimensional shape data may be composed of surface information data generated based on point cloud data, or may include data in other formats such as polygon meshes. An image representing the three-dimensional shape of the measuring object S can be displayed based on the three-dimensional shape data. An image including the three-dimensional shape of the measurement object S displayed based on the three-dimensional shape data is hereinafter referred to as a three-dimensional shape image.

本実施の形態においては、立体形状画像は、二次元座標系が定義された任意の平面上に立体形状データが投影された状態を示す画像であり、使用者による計測箇所の指定を受け付けるための画像である。使用者は、測定対象物Sを見る方向(測定対象物Sに対する受光部120の位置)として立体形状データが投影される平面を指定することができる。それにより、立体形状画像により表される測定対象物Sの姿勢(向き)が変化する。 In this embodiment, the three-dimensional shape image is an image showing a state in which three-dimensional shape data is projected onto an arbitrary plane in which a two-dimensional coordinate system is defined. It is an image. The user can specify the plane on which the three-dimensional shape data is projected as the direction in which the measurement object S is viewed (the position of the light receiving unit 120 with respect to the measurement object S). As a result, the attitude (orientation) of the measuring object S represented by the three-dimensional shape image changes.

(2)複数の立体形状データの合成
投光部110および受光部120に対する測定対象物Sの位置および姿勢が一定であると、測定対象物Sの一部にしか測定光が照射されない。また、測定対象物Sの一部で反射される光しか受光部120に入射しない。そのため、測定対象物Sの表面の広範囲に渡る立体形状データを求めることができない。そこで、測定対象物Sの位置または姿勢を変化させることにより、互いに異なる複数の方向から測定対象物Sを撮像し、複数の撮像方向にそれぞれ対応する複数の立体形状データを取得し、取得された複数の立体形状データを合成してもよい。
(2) Synthesis of Multiple 3D Shape Data If the position and orientation of the measurement object S with respect to the light projecting unit 110 and the light receiving unit 120 are constant, only a part of the measurement object S is irradiated with the measurement light. In addition, only the light reflected by a part of the measurement object S enters the light receiving section 120 . Therefore, three-dimensional shape data over a wide range of the surface of the measurement object S cannot be obtained. Therefore, by changing the position or posture of the measurement object S, the measurement object S is imaged from a plurality of mutually different directions, and a plurality of three-dimensional shape data corresponding to each of the plurality of imaging directions are acquired. A plurality of three-dimensional shape data may be synthesized.

図6は、複数の方向から測定対象物Sを撮像することにより複数の立体形状データを生成する例を説明するための図である。例えば、図6(a)に示すように、使用者により測定対象物Sの位置および姿勢がステージ140上で調整された後、測定光を用いて測定対象物Sが撮像されることにより最初の立体形状データが生成される。これにより取得される立体形状画像の一例が図6(d)に示される。立体形状データは、測定対象物Sの表面で反射して受光部120に入射する測定光に基づいて生成される。そのため、測定対象物Sの表面のうち受光部120の位置から視認可能な部分については立体形状データが生成されるが、測定対象物Sの表面のうち受光部120の位置から視認不可能な部分については立体形状データを生成することができない。 FIG. 6 is a diagram for explaining an example of generating a plurality of three-dimensional shape data by imaging the measuring object S from a plurality of directions. For example, as shown in FIG. 6A, after the user adjusts the position and orientation of the measurement object S on the stage 140, the measurement light is used to capture an image of the measurement object S, whereby the first Three-dimensional shape data is generated. An example of a three-dimensional shape image obtained by this is shown in FIG. 6(d). The three-dimensional shape data is generated based on the measurement light reflected by the surface of the measurement object S and incident on the light receiving unit 120 . Therefore, three-dimensional shape data is generated for the portion of the surface of the measurement object S that is visible from the position of the light receiving unit 120, but the portion of the surface of the measurement object S that is not visible from the position of the light receiving unit 120 is generated. 3D shape data cannot be generated for

そこで、図6(b)に示すように、図2の回転機構143によりステージ140が一定角度回転された後、測定光を用いて測定対象物Sが撮像されることにより2番目の立体形状データが生成される。図6(b)の例では、ステージ140を上方から見た場合に、ステージ140が図6(a)の状態から反時計回りに約45度回転されている。これにより取得される立体形状画像の一例が図6(e)に示される。上記のように、ステージ140が回転すると、その回転に伴って測定対象物Sの表面のうち受光部120の位置から視認可能な部分および視認不可能な部分も変化する。その結果、最初の撮像時には取得されなかった部分を含む立体形状データが生成される。 Therefore, as shown in FIG. 6(b), after the stage 140 is rotated by a certain angle by the rotating mechanism 143 of FIG. is generated. In the example of FIG. 6(b), when the stage 140 is viewed from above, the stage 140 is rotated counterclockwise by about 45 degrees from the state of FIG. 6(a). An example of a three-dimensional shape image obtained by this is shown in FIG. 6(e). As described above, when the stage 140 rotates, the portion of the surface of the measurement object S that is visible from the position of the light receiving unit 120 and the portion that is not visible from the position of the light receiving unit 120 also change. As a result, three-dimensional shape data is generated that includes the portion that was not acquired at the time of the first imaging.

さらに、図6(c)に示すように、図2の回転機構143によりステージ140が一定角度回転された後、測定光を用いて測定対象物Sが撮像されることにより3番目の立体形状データが生成される。図6(c)の例では、ステージ140を上方から見た場合に、ステージ140が図6(b)の状態から反時計回りに約45度回転されている。これにより取得される立体形状画像の一例が図6(f)に示される。 Further, as shown in FIG. 6C, after the stage 140 is rotated by a certain angle by the rotating mechanism 143 of FIG. is generated. In the example of FIG. 6(c), when the stage 140 is viewed from above, the stage 140 is rotated counterclockwise by about 45 degrees from the state of FIG. 6(b). An example of the three-dimensional shape image acquired by this is shown in FIG.6(f).

このようにして、ステージ140の回転および測定対象物Sの撮像が繰り返されることにより、複数の撮像方向にそれぞれ対応する複数の立体形状データが生成される。 By repeating the rotation of the stage 140 and the imaging of the measurement object S in this manner, a plurality of three-dimensional shape data corresponding to a plurality of imaging directions are generated.

上記の複数の撮像時には、ステージ140の回転位置(回転角度)が図1のCPU210により検出される。2つの投光部110および2つの受光部120とステージ140の回転軸Axとの位置関係は一定に保持されている。これらの相対位置を表すパラメータ(以下、機器パラメータ)が、例えば図1の記憶装置240に予め記憶される。機器パラメータは、例えば装置座標系で表される。 At the time of the above multiple imaging, the rotational position (rotational angle) of the stage 140 is detected by the CPU 210 in FIG. The positional relationship between the two light projecting units 110 and the two light receiving units 120 and the rotation axis Ax of the stage 140 is kept constant. Parameters representing these relative positions (hereinafter referred to as device parameters) are stored in advance in the storage device 240 of FIG. 1, for example. The device parameters are expressed, for example, in the device coordinate system.

この場合、機器パラメータとステージ140の回転位置とに基づいて、複数の立体形状データに含まれる位置データがステージ140の一部を基準とする仮想的な共通の三次元座標系で表されるように、各立体形状データの座標変換を実行することができる。 In this case, based on the device parameters and the rotational position of the stage 140, the position data included in the plurality of three-dimensional shape data are represented by a virtual common three-dimensional coordinate system with a part of the stage 140 as a reference. In addition, coordinate transformation of each solid shape data can be executed.

本例では、上記のように、複数の立体形状データが共通の三次元座標系で表されるように座標変換され、座標変換された複数の立体形状データが互いに重複する部分のパターンマッチングにより合成される。それにより、測定対象物Sの外表面の広範囲に渡る立体形状データが生成される。 In this example, as described above, a plurality of three-dimensional shape data are coordinate-transformed so as to be expressed in a common three-dimensional coordinate system, and the coordinate-transformed plurality of three-dimensional shape data are combined by pattern matching of overlapping portions. be done. As a result, three-dimensional shape data over a wide range of the outer surface of the object S to be measured is generated.

[3]測定対象物の外観を表すテクスチャ画像データ
測定部100においては、照明光出力部130から測定対象物Sに照明光が照射された状態または投光部110A,110Bから測定対象物Sに均一な測定光が照射された状態で、測定対象物Sの外観(表面状態)を表す画像データ(以下、テクスチャ画像データと呼ぶ。)が生成される。均一な測定光とは、パターンを有さない測定光であり、照明光の代わりに用いることができる。以下、このような測定光を均一測定光と呼ぶ。測定対象物Sの表面状態は、例えば模様または色彩を含む。以下、テクスチャ画像データにより表される画像をテクスチャ画像と呼ぶ。
[3] Texture Image Data Representing Appearance of Measurement Object Image data representing the appearance (surface state) of the measurement object S (hereinafter referred to as texture image data) is generated in a state where the uniform measurement light is irradiated. Uniform measurement light is measurement light without a pattern and can be used instead of illumination light. Such measurement light is hereinafter referred to as uniform measurement light. The surface state of the measurement object S includes, for example, patterns or colors. An image represented by texture image data is hereinafter referred to as a texture image.

テクスチャ画像データの種々の例について説明する。例えば、測定対象物Sに対して受光部120の焦点位置が相対的に変化されつつ複数のテクスチャ画像データが取得されてもよい。この場合、複数のテクスチャ画像データを合成することにより、測定対象物Sの表面の全体に焦点が合ったテクスチャ画像データ(以下、全焦点テクスチャ画像データと呼ぶ。)が生成される。なお、全焦点テクスチャ画像データを生成する場合、測定部100には、受光部120の焦点位置を移動させる焦点移動機構が設けられる必要がある。 Various examples of texture image data will be described. For example, a plurality of pieces of texture image data may be acquired while the focus position of the light receiving unit 120 is changed relative to the object S to be measured. In this case, by synthesizing a plurality of texture image data, texture image data focused on the entire surface of the measurement object S (hereinafter referred to as omnifocal texture image data) is generated. Note that when generating omnifocal texture image data, the measurement unit 100 needs to be provided with a focus movement mechanism for moving the focus position of the light receiving unit 120 .

また、異なる複数の撮像条件で複数のテクスチャ画像データが取得されてもよい。撮像条件は、例えば、受光部120の露光時間、照明光出力部130からの照明光の強度(明るさ)または投光部110からの均一測定光の強度(明るさ)等を含む。この場合、取得された複数のテクスチャ画像データを用いて公知のハイダイナミック(HDR)合成を行うことにより、黒つぶれおよび白とび等が抑制されたテクスチャ画像データ(以下、HDRテクスチャ画像データと呼ぶ。)が生成される。 Also, a plurality of texture image data may be acquired under a plurality of different imaging conditions. The imaging conditions include, for example, the exposure time of the light receiving unit 120, the intensity (brightness) of illumination light from the illumination light output unit 130, the intensity (brightness) of uniform measurement light from the light projecting unit 110, and the like. In this case, by performing known high dynamic (HDR) synthesis using a plurality of acquired texture image data, texture image data in which blocked-up shadows and blown-out highlights are suppressed (hereinafter referred to as HDR texture image data). ) is generated.

また、焦点位置が変化されるとともに撮像条件が変化されてもよい。具体的には、測定対象物Sに対して受光部120の焦点が複数の位置へ相対的に変化されるとともに、各位置において互いに異なる複数の撮像条件でテクスチャ画像データが取得される。取得された複数のテクスチャ画像データを合成することにより、測定対象物Sの表面の全体に焦点が合いかつ黒つぶれおよび白とび等が抑制されたテクスチャ画像データが生成される。 Also, the imaging conditions may be changed as the focal position is changed. Specifically, the focus of the light receiving unit 120 is changed to a plurality of positions relative to the measurement object S, and the texture image data is acquired under a plurality of imaging conditions different from each other at each position. By synthesizing a plurality of acquired texture image data, texture image data in which the entire surface of the measurement object S is in focus and underexposure and overexposure are suppressed is generated.

各テクスチャ画像データは、測定対象物Sの各点の色または輝度を表すテクスチャ情報(光学的表面状態を表す情報)を含む。一方、上記の立体形状データは、測定対処物Sの光学的表面状態の情報を含まない。そこで、立体形状データといずれかのテクスチャ画像データとが合成されることにより、立体形状データにテクスチャ情報が付与されたテクスチャ付き立体形状データが生成される。 Each texture image data includes texture information representing the color or brightness of each point of the measurement object S (information representing the optical surface state). On the other hand, the three-dimensional shape data described above does not include information on the optical surface state of the object S to be measured. Therefore, by synthesizing the three-dimensional shape data and any texture image data, textured three-dimensional shape data in which texture information is added to the three-dimensional shape data is generated.

テクスチャ付き立体形状データは、測定対象物Sの表面上の複数の点の位置データを含むとともに各点の位置データに対応付けられた当該点の色または輝度を示すデータを含む。この場合、テクスチャ付き立体形状データのうち任意の点のデータをTPn(nは自然数)とすると、TPnは、例えば装置座標系の座標値と、赤色、緑色および青色の三原色の成分(R,G,B)とを用いて(Xn,Yn,Zn,Rn,Gn,Bn)で表すことができる。または、TPnは、例えば装置座標系の座標値と、輝度値(I)とを用いて(Xn,Yn,Zn,In)で表すことができる。テクスチャ付き立体形状データは、点群データに基づいて生成される面情報データにより構成されてもよい。 The three-dimensional shape data with texture includes position data of a plurality of points on the surface of the measurement object S and data indicating the color or brightness of each point associated with the position data of each point. In this case, TPn (n is a natural number) is the data of an arbitrary point in the three-dimensional shape data with texture. , B) can be expressed as (Xn, Yn, Zn, Rn, Gn, Bn). Alternatively, TPn can be represented by (Xn, Yn, Zn, In) using the coordinate values of the device coordinate system and the luminance value (I), for example. The three-dimensional shape data with texture may be composed of surface information data generated based on the point cloud data.

以下の説明では、一定の焦点位置および撮像条件で取得されたテクスチャ画像データにより表されるテクスチャ画像を通常テクスチャ画像と呼び、全焦点テクスチャ画像データにより表される画像を全焦点テクスチャ画像と呼び、HDRテクスチャ画像データにより表される画像をHDRテクスチャ画像と呼ぶ。また、テクスチャ付き立体形状データにより表される画像をテクスチャ付き立体形状画像と呼ぶ。 In the following description, a texture image represented by texture image data acquired at a fixed focal position and imaging conditions is called a normal texture image, an image represented by omnifocal texture image data is called an omnifocal texture image, An image represented by HDR texture image data is called an HDR texture image. An image represented by textured three-dimensional shape data is called a textured three-dimensional shape image.

本実施の形態においては、テクスチャ付き立体形状画像は、二次元座標系が定義された任意の平面上にテクスチャ付き立体形状データが投影された状態を示す画像であり、使用者による計測箇所の指定を受け付けるための画像である。使用者は、測定対象物Sを見る方向(測定対象物Sに対する受光部120の位置)としてテクスチャ付き立体形状データが投影される平面を指定することができる。それにより、テクスチャ付き立体形状画像により表される測定対象物Sの向きが変化する。 In this embodiment, the three-dimensional shape image with texture is an image showing a state in which the three-dimensional shape data with texture is projected onto an arbitrary plane in which a two-dimensional coordinate system is defined. It is an image for accepting. The user can specify the plane on which the three-dimensional shape data with texture is projected as the direction in which the measurement object S is viewed (the position of the light receiving unit 120 with respect to the measurement object S). As a result, the orientation of the measurement object S represented by the textured three-dimensional shape image changes.

上記のように、テクスチャ画像データを生成するために、照明光または均一測定光を用いて測定対象物Sが撮像される。ここで、上記のように、照明光出力部130は、2つの受光部120を取り囲むように形成された照明光の出射口131を有する。このような構成により、出射口131から出射される照明光の少なくとも一部は受光部120の光軸とほぼ平行な状態で測定対象物Sに照射される。それにより、照明光を用いて測定対象物Sが撮像される場合には、生成されるテクスチャ画像データに影の成分が発生しにくい。したがって、テクスチャ画像データの生成時には照明光を用いることが好ましい。 As described above, the measurement object S is imaged using illumination light or uniform measurement light to generate texture image data. Here, as described above, the illumination light output section 130 has the illumination light exit opening 131 formed so as to surround the two light receiving sections 120 . With such a configuration, at least part of the illumination light emitted from the emission port 131 is applied to the measurement object S in a state substantially parallel to the optical axis of the light receiving section 120 . As a result, when the measurement object S is imaged using the illumination light, shadow components are less likely to occur in the generated texture image data. Therefore, it is preferable to use illumination light when generating texture image data.

なお、図6の例で示されるように、測定対象物Sについて複数の方向から撮像を行うことにより複数の立体形状データを生成する場合には、測定光を用いた撮像とともに照明光または均一測定光を用いた撮像を行ってもよい。この場合、複数の立体形状データにそれぞれ対応する複数のテクスチャ画像データを生成することができる。したがって、複数の立体形状データおよび複数のテクスチャ画像データを合成することにより、測定対象物Sの外表面の広い範囲に渡って立体形状および表面状態を表すテクスチャ付き立体形状データを生成することができる。 Incidentally, as shown in the example of FIG. 6, in the case of generating a plurality of three-dimensional shape data by imaging the measurement object S from a plurality of directions, the imaging using the measurement light and the illumination light or the uniform measurement are performed. Imaging using light may be performed. In this case, it is possible to generate a plurality of texture image data respectively corresponding to a plurality of three-dimensional shape data. Therefore, by synthesizing a plurality of three-dimensional shape data and a plurality of texture image data, it is possible to generate textured three-dimensional shape data representing the three-dimensional shape and surface state over a wide range of the outer surface of the measurement object S. .

[4]形状測定
(1)形状測定の準備
まず使用者は、測定対象物Sの測定を行う前に、形状測定の準備を行う。図7は、形状測定の準備の手順を示すフローチャートである。以下、図1、図2および図7を参照しながら形状測定の準備の手順を説明する。まず、使用者は、測定対象物Sをステージ140上に載置する(ステップS1)。次に、使用者は、投光部110から測定対象物Sに測定光を照射する(ステップS2)。このとき測定対象物Sのライブ画像が表示部400に表示される。続いて、使用者は、表示部400に表示されたライブ画像を見ながら、取得されるライブ画像の明るさ、ならびに測定対象物Sの位置および姿勢の調整(以下、第1の調整と呼ぶ。)を行う(ステップS3)。ステップS3において取得されるライブ画像の明るさは、測定光の光量および受光部120の露光時間のうち少なくとも一方を変化させることにより調整することができる。本実施の形態では、測定光を用いて取得されるライブ画像の明るさを観察に適した明るさにするために、測定光の光量または受光部120の露光時間のうち一方が調整される。
[4] Shape measurement (1) Preparation for shape measurement First, before the measurement object S is measured, the user prepares for shape measurement. FIG. 7 is a flow chart showing a procedure for preparing for shape measurement. The procedure for preparation for shape measurement will be described below with reference to FIGS. 1, 2 and 7. FIG. First, the user places the measuring object S on the stage 140 (step S1). Next, the user irradiates the measuring object S with measurement light from the light projecting unit 110 (step S2). At this time, a live image of the measuring object S is displayed on the display section 400 . Subsequently, the user adjusts the brightness of the acquired live image and the position and orientation of the measurement object S (hereinafter referred to as first adjustment) while viewing the live image displayed on the display unit 400 . ) is performed (step S3). The brightness of the live image acquired in step S3 can be adjusted by changing at least one of the amount of measurement light and the exposure time of the light receiving section 120 . In this embodiment, one of the light amount of the measurement light and the exposure time of the light receiving unit 120 is adjusted in order to make the brightness of the live image acquired using the measurement light suitable for observation.

ステップS2では、上記の第1~第4のパターンの測定光のいずれかが測定対象物Sに照射されてもよく、均一測定光が測定対象物Sに照射されてもよい。ステップS3において、測定対象物Sの計測すべき箇所(以下、計測箇所と呼ぶ)に影が発生していない場合、使用者は、測定対象物Sの位置および姿勢の調整を行う必要はなく、測定光の光量または受光部120の露光時間の調整を行えばよい。 In step S2, the measurement object S may be irradiated with any one of the first to fourth patterns of measurement light, or the measurement object S may be irradiated with uniform measurement light. In step S3, if there is no shadow at the location to be measured of the measurement object S (hereinafter referred to as a measurement location), the user does not need to adjust the position and orientation of the measurement object S. The amount of measurement light or the exposure time of the light receiving section 120 may be adjusted.

次に、使用者は、測定光の照射を停止するとともに、照明光出力部130から測定対象物Sに照明光を照射する(ステップS4)。このとき、測定対象物Sのライブ画像が表示部400に表示される。続いて、使用者は、表示部400に表示されたライブ画像を見ながら、取得されるライブ画像の明るさの調整(以下、第2の調整と呼ぶ。)を行う(ステップS5)。ステップS5において取得されるライブ画像の明るさは、基本的にステップS3の例と同様に、照明光の光量および受光部120の露光時間のうち少なくとも一方を変化させることにより調整することができる。本実施の形態では、照明光を用いて取得されるライブ画像の明るさを観察に適した明るさにするために、照明光の光量または受光部120の露光時間のうち一方が調整される。 Next, the user stops irradiation of the measurement light and irradiates the measurement object S with the illumination light from the illumination light output unit 130 (step S4). At this time, a live image of the measuring object S is displayed on the display section 400 . Subsequently, the user adjusts the brightness of the acquired live image (hereinafter referred to as second adjustment) while viewing the live image displayed on the display unit 400 (step S5). The brightness of the live image acquired in step S5 can be adjusted by changing at least one of the amount of illumination light and the exposure time of the light receiving unit 120, basically in the same manner as in the example of step S3. In this embodiment, one of the light amount of the illumination light and the exposure time of the light receiving unit 120 is adjusted in order to make the brightness of the live image acquired using the illumination light suitable for observation.

次に、使用者は、表示部400に表示されたライブ画像を確認し、光量、受光部120の露光時間、測定対象物Sの位置および姿勢(以下、観察状態と呼ぶ。)が適切であるか否かを判定する(ステップS6)。ステップS6においては、測定対象物Sに測定光が照射されてもよく、照明光が照射されてもよく、または測定光および照明光が順に照射されてもよい。 Next, the user confirms the live image displayed on the display unit 400, and confirms that the light intensity, the exposure time of the light receiving unit 120, and the position and orientation of the measurement object S (hereinafter referred to as an observation state) are appropriate. It is determined whether or not (step S6). In step S6, the measuring object S may be irradiated with the measurement light, the illumination light may be irradiated, or the measurement light and the illumination light may be irradiated in order.

ステップS6において、観察状態が適切でないと判定した場合、使用者は、ステップS2の処理に戻る。一方、ステップS6において、観察状態が適切であると判定した場合、使用者は、形状測定の準備を終了する。 If it is determined in step S6 that the observation state is not appropriate, the user returns to the process of step S2. On the other hand, if it is determined in step S6 that the observation state is appropriate, the user ends preparations for shape measurement.

なお、上記の例では、第1の調整の後に第2の調整が行われるが、第2の調整の後に第1の調整が行われてもよい。この場合、使用者は、第2の調整において測定対象物Sの位置および姿勢を調整し、第1の調整時に測定対象物Sの所望の部分に測定光が照射されていることを確認してもよい。測定対象物Sの所望の部分に測定光が照射されていない場合には、測定対象物Sの位置および姿勢を再調整し、再度第2の調整として照明光の光量または受光部120の露光時間の調整等を行ってもよい。 In the above example, the second adjustment is performed after the first adjustment, but the first adjustment may be performed after the second adjustment. In this case, the user adjusts the position and orientation of the measurement object S in the second adjustment, and confirms that the desired portion of the measurement object S is irradiated with the measurement light in the first adjustment. good too. If the desired portion of the measurement object S is not irradiated with the measurement light, the position and orientation of the measurement object S are readjusted, and again the amount of illumination light or the exposure time of the light receiving unit 120 is adjusted as the second adjustment. may be adjusted.

ここで、ステップS5の第2の調整時に、使用者は、取得されるべきテクスチャ画像の種類を選択してもよい。テクスチャ画像の種類は、例えば、通常テクスチャ画像、全焦点テクスチャ画像、HDRテクスチャ画像を含む。この場合、第2の調整が行われることにより、選択されたテクスチャ画像のテクスチャ画像データを生成するために最適な照明光の光量条件、または照明光に対応する受光部120の露光時間の条件が自動設定されてもよい。 Here, during the second adjustment in step S5, the user may select the type of texture image to be acquired. Types of texture images include, for example, normal texture images, all-focus texture images, and HDR texture images. In this case, by performing the second adjustment, the optimal light amount condition of the illumination light or the exposure time condition of the light receiving unit 120 corresponding to the illumination light for generating the texture image data of the selected texture image is set. It may be set automatically.

(2)形状測定処理
使用者による図7の形状測定の準備の後、測定対象物Sの形状測定処理が行われる。図8は、形状測定処理のフローチャートである。形状測定処理は、図1のCPU210が使用者による形状測定処理の開始の指示に応答して形状測定プログラムを実行することにより開始される。
(2) Shape Measurement Processing After the preparation for shape measurement in FIG. 7 by the user, the shape measurement processing of the measurement object S is performed. FIG. 8 is a flowchart of shape measurement processing. The shape measurement process is started by the CPU 210 of FIG. 1 executing the shape measurement program in response to the user's instruction to start the shape measurement process.

まず、CPU210は、測定対象物Sに測定光を照射し、パターン画像データを取得する(ステップS41)。取得されたパターン画像データは、作業用メモリ230に記憶される。 First, the CPU 210 irradiates the measuring object S with the measuring light and acquires pattern image data (step S41). The acquired pattern image data is stored in the working memory 230 .

次に、CPU210は、取得したパターン画像データを所定のアルゴリズムで処理することにより、測定対象物Sの立体形状を示す立体形状データを生成する(ステップS42)。生成された立体形状データは、作業用メモリ230に記憶される。 Next, the CPU 210 generates three-dimensional shape data representing the three-dimensional shape of the measurement object S by processing the obtained pattern image data with a predetermined algorithm (step S42). The generated solid shape data is stored in the work memory 230 .

次に、CPU210は、測定対象物Sに照明光または均一測定光を照射し、テクスチャ画像データを取得する(ステップS43)。取得されたテクスチャ画像データは、作業用メモリ230に記憶される。 Next, the CPU 210 irradiates the measurement object S with illumination light or uniform measurement light, and acquires texture image data (step S43). The acquired texture image data is stored in the working memory 230 .

次に、CPU210は、ステップS42で生成された立体形状データとステップS43で取得されたテクスチャ画像データとを合成することにより、テクスチャ付き立体形状データを生成する(ステップS44)。 Next, the CPU 210 generates textured three-dimensional shape data by synthesizing the three-dimensional shape data generated in step S42 and the texture image data obtained in step S43 (step S44).

ここで、形状測定処理の開始前には、予め定められたデータの生成条件が図1の記憶装置240に記憶されている。データの生成条件には、形状測定処理において生成されるべき立体形状データに関する情報が含まれる。例えば、図6の例で示したように、複数の方向から撮像を行うことにより得られる複数の立体形状データを合成して1つの立体形状データを生成する場合には、複数の立体形状データを生成するためにステージ140(図2)を回転させる必要がある。そこで、撮像ごとのステージ140の回転位置、ステージ140の回転方向および撮像回数等がデータの生成条件として記憶装置240に記憶されている。 Here, before the shape measurement process is started, predetermined data generation conditions are stored in the storage device 240 of FIG. The data generation conditions include information about three-dimensional shape data to be generated in the shape measurement process. For example, as shown in the example of FIG. 6, in the case of synthesizing a plurality of three-dimensional shape data obtained by imaging from a plurality of directions to generate one three-dimensional shape data, a plurality of three-dimensional shape data are combined. It is necessary to rotate the stage 140 (FIG. 2) to generate it. Therefore, the rotational position of the stage 140 for each imaging, the rotational direction of the stage 140, the number of times of imaging, and the like are stored in the storage device 240 as data generation conditions.

CPU210は、ステップS44の処理後、予め設定された生成条件に基づいて、測定対象物Sについての全ての撮像が終了したか否かを判定する(ステップS45)。全ての撮像が終了していない場合、CPU210は、生成条件に基づいてステージ140(図2)を予め定められたピッチ分回転させ(ステップS46)、ステップS41の処理に戻る。 After the process of step S44, the CPU 210 determines whether or not all imaging of the measurement object S has been completed based on preset generation conditions (step S45). If all imaging has not been completed, the CPU 210 rotates the stage 140 (FIG. 2) by a predetermined pitch based on the generation conditions (step S46), and returns to the process of step S41.

ステップS45において全ての撮像が終了すると、CPU210は、ステップS42の処理が複数繰り返されることにより生成された複数の立体形状データの合成を行うとともに、ステップS44の処理が複数繰り返されることにより生成された複数のテクスチャ付き立体形状データの合成を行う(ステップS47)。なお、ステップS41~S45の処理が1度しか実行されていない場合、ステップS47の処理は省略される。このようにして、測定対象物Sの計測に用いる立体形状データおよびテクスチャ付き立体形状データが生成される。 When all imaging is completed in step S45, the CPU 210 synthesizes a plurality of three-dimensional shape data generated by repeating the process of step S42 multiple times, and generates A plurality of three-dimensional shape data with texture are synthesized (step S47). Note that if the processes of steps S41 to S45 have been executed only once, the process of step S47 is omitted. In this way, three-dimensional shape data and textured three-dimensional shape data used for measurement of the measurement object S are generated.

次に、CPU210は、生成された立体形状データまたはテクスチャ付き立体形状データに基づいて、測定対象物Sの立体形状画像またはテクスチャ付き立体形状画像を表示部400に表示させる(ステップS48)。この場合、使用者は、表示部400に表示すべき画像として立体形状画像またはテクスチャ付き立体形状画像のいずれかを適宜選択することができる。 Next, the CPU 210 causes the display unit 400 to display a three-dimensional shape image or textured three-dimensional shape image of the measuring object S based on the generated three-dimensional shape data or textured three-dimensional shape data (step S48). In this case, the user can appropriately select either the stereoscopic image or the textured stereoscopic image as the image to be displayed on the display unit 400 .

その後、CPU210は、使用者による図1の操作部250の操作に応答して計測条件の設定を行うとともに設定された計測条件に基づいて計測箇所の計測を行う(ステップS49)。計測条件の設定については後述する。これにより、形状測定処理が終了する。 After that, the CPU 210 sets the measurement conditions in response to the user's operation of the operation unit 250 of FIG. 1, and measures the measurement points based on the set measurement conditions (step S49). The setting of measurement conditions will be described later. This completes the shape measurement process.

上記の形状測定処理においては、ステップS41~S45,S47,S48の処理が主として後述する図34の形状データ生成部211により実行される。 In the shape measurement process described above, the processes of steps S41 to S45, S47, and S48 are mainly executed by the shape data generator 211 shown in FIG. 34, which will be described later.

(3)計測条件の設定
計測条件は、計測箇所および計測項目を含む。計測条件の設定時には、上記のステップS48の処理により、例えば立体形状画像が表示部400に表示されている。使用者は、図1の操作部250を操作することにより、測定対象物Sを見る方向(測定対象物Sに対する受光部120の位置)を指定することができる。この場合、CPU210は、使用者による方向の指定に応答して、指定された方向から測定対象物Sを見た状態が再現されるように、表示部400上に観察対象物Sの向きが調整された立体形状画像を表示する。
(3) Setting measurement conditions Measurement conditions include measurement locations and measurement items. When setting the measurement conditions, for example, a three-dimensional shape image is displayed on the display unit 400 by the process of step S48. The user can specify the direction in which the measurement object S is viewed (the position of the light receiving unit 120 with respect to the measurement object S) by operating the operation unit 250 in FIG. In this case, the CPU 210 adjusts the orientation of the observation object S on the display unit 400 in response to the direction specified by the user so that the state in which the measurement object S is viewed from the specified direction is reproduced. display the 3D shape image.

使用者は、立体形状画像を視認することにより、測定対象物Sの各部の形状を大まかに把握しつつ立体形状画像上で計測箇所を指定する。このとき、使用者は、計測箇所を特定するために、計測箇所を含む幾何形状(例えば、点、直線、円、面、球、円筒および円錐等)を指定することができる。また、使用者は、指定した幾何形状についての計測項目を指定することができる。計測項目は、使用者により指定される測定対象物Sの計測箇所において計測されるべきパラメータの種類であり、距離、高さ、直径および面積等を含む。 By visually recognizing the three-dimensional shape image, the user roughly grasps the shape of each part of the measurement object S and designates a measurement point on the three-dimensional shape image. The user can then specify the geometry that contains the measurement points (eg, points, lines, circles, surfaces, spheres, cylinders, cones, etc.) to specify the measurement points. The user can also specify measurement items for the specified geometric shape. A measurement item is a type of parameter to be measured at a measurement point of the measurement object S specified by the user, and includes distance, height, diameter, area, and the like.

図9~図12は、計測条件の設定例を説明するための図である。図9に、基板上に1つの素子が実装された測定対象物Sについて、上記のステップS48の処理で表示部400に表示される立体形状画像SIの一例が示される。図9の立体形状画像SIにおいては、測定対象物Sのうち基板および素子をそれぞれ示す画像B1I,B2Iが明りょうに区別される。 9 to 12 are diagrams for explaining setting examples of measurement conditions. FIG. 9 shows an example of the three-dimensional shape image SI displayed on the display unit 400 in the process of step S48, regarding the measurement object S in which one element is mounted on the substrate. In the three-dimensional shape image SI of FIG. 9, images B1I and B2I respectively showing the substrate and the device of the object S to be measured are clearly distinguished.

例えば、使用者は、表示部400の画面上に表示されるポインタPIを操作することにより、図10に示すように、素子の上面に対応する画像B2Iの部分を計測箇所として指定する。次に、使用者は、ポインタPIを操作することにより、図11に示すように、基板の上面に対応する画像B1Iの部分を計測箇所として指定する。 For example, by operating a pointer PI displayed on the screen of the display unit 400, the user designates a portion of the image B2I corresponding to the top surface of the element as a measurement point, as shown in FIG. Next, by operating the pointer PI, the user designates the portion of the image B1I corresponding to the upper surface of the substrate as the measurement point, as shown in FIG.

ここで、計測条件の設定時には、使用者により指定された計測箇所が他の部分とは異なる態様で表示されることが好ましい。図10および図11の例では、使用者により指定された計測箇所にハッチングが施されている。これにより、使用者は、自己の指定した計測箇所を容易に識別することができる。 Here, when setting the measurement conditions, it is preferable that the measurement location specified by the user is displayed in a manner different from other portions. In the examples of FIGS. 10 and 11, the measurement points specified by the user are hatched. Thereby, the user can easily identify the measurement point designated by the user.

続いて、使用者は、計測項目として指定された2つの計測箇所(平面)間の距離を指定する。それにより、基板の上面に対応する点群データと素子の上面に対応する点群データとに基づいて、基板の上面と素子の上面との間の距離が算出される。その結果、図12に示すように、算出結果が計測結果として表示部400に表示される。図12の例では、基板の上面と素子の上面との間の距離として、“zz(mm)”が表示される。 Subsequently, the user designates the distance between the two measurement points (planes) designated as measurement items. Accordingly, the distance between the upper surface of the substrate and the upper surface of the element is calculated based on the point cloud data corresponding to the upper surface of the substrate and the point cloud data corresponding to the upper surface of the element. As a result, as shown in FIG. 12, the calculation result is displayed on the display unit 400 as the measurement result. In the example of FIG. 12, "zz (mm)" is displayed as the distance between the upper surface of the substrate and the upper surface of the element.

[5]表示態様設定機能
(1)表示態様設定機能の概略
三次元形状測定装置500は、形状測定処理のステップS41~S47の処理により得られる立体形状データまたはテクスチャ付き立体形状データを用いて測定対象物Sの各部の形状をより正確に把握するための表示態様設定機能を有する。
[5] Display mode setting function (1) Overview of display mode setting function The three-dimensional shape measuring device 500 measures using three-dimensional shape data or textured three-dimensional shape data obtained by the processing of steps S41 to S47 of the shape measurement processing. It has a display mode setting function for grasping the shape of each part of the object S more accurately.

表示態様設定機能は、立体形状データが生成された測定対象物Sについて、測定対象物Sの立体形状に関する幾何的な基準(以下、幾何基準と呼ぶ。)を設定するとともに、設定された幾何基準に基づいて測定対象物Sの立体形状画像の少なくとも一部の表示態様を設定する機能である。本実施の形態において、立体形状画像の少なくとも一部の表示態様を設定するとは、立体形状画像の少なくとも一部の表示態様を予め定められた本来の表示態様から幾何基準に基づいて定められる他の表示態様に切り替えることを意味する。換言すれば、立体形状画像の少なくとも一部の表示態様を設定するとは、立体形状画像の少なくとも一部の表示態様を予め定められた本来の表示態様から幾何基準に基づいて定められる他の表示態様に変更することを意味する。さらに換言すれば、立体形状画像の少なくとも一部の表示態様を設定するとは、立体形状画像の少なくとも一部の表示態様を予め定められた本来の表示態様から幾何基準に基づいて定められる他の表示態様にすることを意味する。 The display mode setting function sets a geometric reference (hereinafter referred to as a geometric reference) regarding the three-dimensional shape of the measurement object S for which the three-dimensional shape data has been generated, and also sets the set geometric reference. This is a function of setting the display mode of at least a part of the three-dimensional shape image of the measuring object S based on. In the present embodiment, setting the display mode of at least part of the three-dimensional shape image means that the display mode of at least part of the three-dimensional shape image is changed from a predetermined original display mode to another determined based on geometric criteria. It means to switch to the display mode. In other words, setting the display mode of at least part of the three-dimensional shape image means that the display mode of at least part of the three-dimensional shape image is changed from a predetermined original display mode to another display mode determined based on geometric criteria. means to change to Furthermore, in other words, setting the display mode of at least part of the three-dimensional shape image means that the display mode of at least part of the three-dimensional shape image is changed from a predetermined original display mode to another display mode determined based on geometric criteria. It means to make a mode.

その表示態様設定機能によれば、立体形状画像のうちの測定対象物Sの少なくとも一部分に対応する部分の表示態様を、測定対象物Sの当該少なくとも一部分と設定された幾何基準との間の距離(以下、対比距離と呼ぶ。)に応じて異なるように設定することができる。本実施の形態では、表示態様として対比距離に応じた色が設定される。 According to the display mode setting function, the display mode of a portion corresponding to at least a portion of the measurement object S in the three-dimensional shape image is changed to the distance between the at least a portion of the measurement object S and the set geometrical reference. (hereinafter referred to as contrast distance). In the present embodiment, a color corresponding to the comparison distance is set as the display mode.

幾何基準は、装置座標系で表される点、線または面からなる幾何的な基準である。さらに、表示態様設定機能においては、表示態様の設定対象となる測定対象物Sの部分(以下、測定対象部分と呼ぶ。)を設定することもできる。測定対象部分は、測定対象物Sの一部分であってもよいし、測定対象物Sの全体であってもよい。 A geometric reference is a geometric reference consisting of points, lines or planes expressed in the device coordinate system. Furthermore, in the display mode setting function, it is also possible to set a portion of the measurement object S (hereinafter referred to as a measurement target portion) for which the display mode is to be set. The part to be measured may be a part of the object S to be measured, or the whole object S to be measured.

(2)表示態様設定機能の一使用例
以下、表示態様設定機能の基本的な使用例について説明する。図13は、測定対象物Sの一例を示す外観斜視図である。図13の測定対象物Sは、略直方体形状を有する部材の上面に段差が形成されるとともに、その上面の中央部に上方に向いて開口する窪みが形成された構造を有する。
(2) Example of use of display mode setting function A basic example of use of the display mode setting function will be described below. FIG. 13 is an external perspective view showing an example of the object S to be measured. The measurement object S in FIG. 13 has a structure in which a step is formed on the upper surface of a member having a substantially rectangular parallelepiped shape, and a depression that opens upward is formed in the center of the upper surface.

上面は、互いに平行な上段面s11および下段面s12を含む。窪みは、上段面s11および下段面s12に平行な矩形の底面s21を有する。底面s21の一辺から上段面s11にかけて垂直面s22が形成されている。底面s21の一辺に対向する他辺から下段面s12にかけて傾斜面s23が形成されている。垂直面s22は底面s21に対して垂直であり、傾斜面s23は底面s21に対して傾斜している。さらに、測定対象物Sは、その長手方向において互いに対向する一端面s31および他端面s32を有する。垂直面s22、一端面s31および他端面s32は互いに平行である。 The upper surface includes an upper surface s11 and a lower surface s12 parallel to each other. The recess has a rectangular bottom surface s21 parallel to the upper surface s11 and the lower surface s12. A vertical surface s22 is formed from one side of the bottom surface s21 to the upper surface s11. An inclined surface s23 is formed from the other side opposite to one side of the bottom surface s21 to the lower surface s12. The vertical surface s22 is perpendicular to the bottom surface s21, and the inclined surface s23 is inclined with respect to the bottom surface s21. Furthermore, the measurement object S has one end face s31 and the other end face s32 that face each other in the longitudinal direction. The vertical surface s22, one end surface s31 and the other end surface s32 are parallel to each other.

図14~図25は、表示態様設定機能の一使用例を説明するための図である。本例では、図13の測定対象物Sについて、例えば上段面s11、下段面s12、底面s21、垂直面s22および傾斜面s23の位置関係の詳細を把握するために、使用者が表示態様設定機能を使用する場合を想定する。なお、図13の測定対象物Sの立体形状データは、予め図1の記憶装置240に記憶されているものとする。 14 to 25 are diagrams for explaining a usage example of the display mode setting function. In this example, for the measurement object S in FIG. 13, for example, in order to grasp the details of the positional relationship between the upper surface s11, the lower surface s12, the bottom surface s21, the vertical surface s22, and the inclined surface s23, the user has a display mode setting function. Suppose you use It is assumed that the three-dimensional shape data of the measuring object S shown in FIG. 13 is stored in advance in the storage device 240 shown in FIG.

使用者による表示態様設定機能の使用の指示に応答して、図14に示すように、図1の表示部400に幾何要素設定画面SC1が表示される。幾何要素設定画面SC1は、上記の幾何基準または測定対象部分を特定するための幾何的な要素(以下、幾何要素と呼ぶ。)を、使用者が立体形状画像SI上で指定するための画面である。 In response to the user's instruction to use the display mode setting function, a geometric element setting screen SC1 is displayed on the display unit 400 of FIG. 1, as shown in FIG. The geometric element setting screen SC1 is a screen for the user to specify a geometric element (hereafter referred to as a geometric element) for specifying the geometric reference or the portion to be measured on the three-dimensional shape image SI. be.

幾何要素設定画面SC1においては、表示部400の表示領域が、主表示領域maおよび副表示領域saに分割されている。幾何要素設定画面SC1において、主表示領域maおよび副表示領域saは左右に並ぶ。 In the geometric element setting screen SC1, the display area of the display section 400 is divided into a main display area ma and a sub-display area sa. In the geometric element setting screen SC1, the main display area ma and the sub display area sa are arranged side by side.

主表示領域maには立体形状画像SIが表示される。使用者は、主表示領域ma上でドラッグ操作等を行うことにより、立体形状画像SIにおける測定対象物Sの姿勢を所望の姿勢に変更することができる。 A stereoscopic image SI is displayed in the main display area ma. The user can change the orientation of the measurement object S in the stereoscopic image SI to a desired orientation by performing a drag operation or the like on the main display area ma.

副表示領域saには、要素種類選択欄es、名称入力欄f01、戻るボタンb01、設定ボタンb02および表示態様ボタンb03が表示される。要素種類選択欄esには、複数の幾何的な要素の種類にそれぞれ対応する複数の項目アイコンicが表示される。幾何的な要素の種類には、平面、円筒、円錐、球および点が含まれる。 An element type selection field es, a name input field f01, a return button b01, a setting button b02 and a display mode button b03 are displayed in the secondary display area sa. A plurality of item icons ic respectively corresponding to the types of a plurality of geometric elements are displayed in the element type selection column es. Types of geometric elements include planes, cylinders, cones, spheres and points.

本例では、使用者は、幾何的な要素の種類、設定対象となる要素の装置座標系上の位置および名称を指定することにより、幾何要素の設定を行う。具体的には、使用者は、要素種類選択欄esに表示される複数の項目アイコンicのうちいずれかを操作することにより要素の種類を指定する。このとき、指定された項目アイコンicは例えばハイライト表示される。なお、図14の例では、平面に対応する項目アイコンicが操作されることにより、当該項目アイコンicがハイライト表示されている様子がハッチングで示される。 In this example, the user sets the geometric element by designating the type of geometric element, the position of the element to be set on the apparatus coordinate system, and the name. Specifically, the user designates the element type by operating one of a plurality of item icons ic displayed in the element type selection field es. At this time, the designated item icon ic is highlighted, for example. In the example of FIG. 14, hatching indicates that the item icon ic corresponding to the plane is highlighted by operating the item icon ic.

次に、使用者は、名称入力欄f01に設定対象となる要素について所望の名称を入力する。なお、名称入力欄f01には、指定された要素の種類に応じて予め定められた方法に従う名称が自動入力されてもよい。 Next, the user inputs a desired name for the element to be set in the name input field f01. A name may be automatically entered in the name input field f01 according to a predetermined method according to the type of the specified element.

さらに、使用者は、主表示領域maに表示された立体形状画像SI上で、要素の位置を指定する。例えば、使用者は、要素の種類として平面が指定された状態で、測定対象物Sの3以上の複数の部分にそれぞれ対応する立体形状画像SI上の複数の部分をシングルクリック操作により指定する。この場合、測定対象物Sの3以上の複数の部分により規定される装置座標系上の平面の位置および大きさが定められる。3以上の複数の部分により規定される装置座標系上の平面は、複数の部分を含む平面であってもよいし、複数の部分にフィッティングされた平面であってもよい。 Furthermore, the user designates the position of the element on the three-dimensional shape image SI displayed in the main display area ma. For example, the user designates a plurality of portions on the three-dimensional shape image SI corresponding to three or more portions of the measurement object S by a single-click operation while a plane is designated as the element type. In this case, the position and size of a plane on the apparatus coordinate system defined by three or more portions of the measurement object S are determined. A plane on the device coordinate system defined by three or more portions may be a plane including the plurality of portions or a plane fitted to the plurality of portions.

あるいは、使用者は、要素の種類として平面が指定された状態で、測定対象物Sの所望の平面部分に対応する立体形状画像SI上の部分をダブルクリック操作により指定する。この場合、測定対象物Sの当該平面部分に対応する装置座標系上の平面の位置および大きさが定められる。 Alternatively, the user designates a portion on the three-dimensional shape image SI corresponding to a desired planar portion of the measurement object S by double-clicking in a state where a plane is designated as the element type. In this case, the position and size of the plane on the apparatus coordinate system corresponding to the plane portion of the measurement object S are determined.

戻るボタンb01は、使用者が表示態様設定機能の使用の取り消しを指令するためのボタンである。使用者は、表示部400に幾何要素設定画面SC1が表示された状態で戻るボタンb01を操作する。それにより、表示部400の表示状態が通常の形状計測時の状態(例えば図9~図12に示される状態)に戻る。 The return button b01 is a button for the user to instruct cancellation of use of the display mode setting function. The user operates the return button b01 while the geometric element setting screen SC1 is displayed on the display unit 400. FIG. As a result, the display state of the display unit 400 returns to the state during normal shape measurement (for example, the states shown in FIGS. 9 to 12).

設定ボタンb02は、使用者が幾何要素の設定を指令するためのボタンである。使用者は、上記のように、幾何的な要素の種類、設定対象となる要素の装置座標系上の位置および名称を指定した後、設定ボタンb02を操作する。それにより、指定された一連の内容が、幾何要素ごとに図1の記憶装置240に記憶される(幾何要素の設定)。 The setting button b02 is a button for the user to command the setting of geometric elements. As described above, the user operates the setting button b02 after specifying the type of geometric element, the position of the element to be set on the device coordinate system, and the name. As a result, the specified series of contents are stored in the storage device 240 of FIG. 1 for each geometric element (geometric element setting).

幾何要素の設定時には、図15に点線およびハッチングで示すように、設定された幾何要素を示す画像が主表示領域maの立体形状画像SI上に重畳表示される。それにより、使用者は、自己が設定した幾何要素を容易に把握することができる。本例では、図13の測定対象物Sの上段面s11、下段面s12、底面s21、垂直面s22および傾斜面s23にそれぞれ対応する幾何要素「平面1」、「平面2」、「平面0」、「平面3」および「平面4」が設定されている。 When setting the geometric elements, as indicated by dotted lines and hatching in FIG. 15, an image showing the set geometric elements is superimposed and displayed on the three-dimensional image SI in the main display area ma. Thereby, the user can easily grasp the geometric elements set by the user. In this example, the geometric elements “plane 1,” “plane 2,” and “plane 0” respectively correspond to the upper surface s11, lower surface s12, bottom surface s21, vertical surface s22, and inclined surface s23 of the measurement object S in FIG. , “plane 3” and “plane 4” are set.

表示態様ボタンb03は、使用者が主表示領域maに表示されている立体形状画像SIについて上記の対比距離に応じた表示態様の設定を指令するためのボタンである。対比距離に応じた表示態様の設定は、幾何要素設定画面SC1において設定された1または複数の幾何要素に基づいて行われる。 The display mode button b03 is a button for the user to command the setting of the display mode according to the comparison distance for the three-dimensional shape image SI displayed in the main display area ma. The setting of the display mode according to the contrast distance is performed based on one or more geometric elements set on the geometric element setting screen SC1.

使用者は、所望の幾何要素を設定した後、表示態様ボタンb03を操作する。それにより、図16に示すように、表示部400に表示される画面が幾何要素設定画面SC1から表示態様設定画面SC2に切り替わる。表示態様設定画面SC2においても、幾何要素設定画面SC1の例と同様に、表示部400の表示領域は、主表示領域maおよび副表示領域saに分割されている。 After setting the desired geometric element, the user operates the display mode button b03. As a result, as shown in FIG. 16, the screen displayed on the display unit 400 is switched from the geometric element setting screen SC1 to the display mode setting screen SC2. In the display mode setting screen SC2, similarly to the example of the geometric element setting screen SC1, the display area of the display section 400 is divided into the main display area ma and the sub display area sa.

画面の切り替わり直後においては、主表示領域maの表示状態は切り替わり前の表示状態で維持される。一方、副表示領域saには、対応関係設定欄dc、対象プルダウンメニューm11、基準プルダウンメニューm12、戻るボタンb04、OKボタンb05および幾何要素ボタンb06が表示される。 Immediately after the screen is switched, the display state of the main display area ma is maintained in the display state before the switching. On the other hand, the sub-display area sa displays a correspondence setting field dc, a target pull-down menu m11, a reference pull-down menu m12, a return button b04, an OK button b05, and a geometric element button b06.

上記のように、本実施の形態に係る表示態様設定機能においては、立体形状画像のうちの測定対象物Sの少なくとも一部分に対応する部分の表示態様として、対比距離に応じた色の設定が行われる。対応関係設定欄dcには、対比距離と色との対応関係を設定するためのボタンおよびスライダ等が表示される。 As described above, in the display mode setting function according to the present embodiment, as the display mode of the portion corresponding to at least part of the measurement object S in the three-dimensional shape image, the color is set according to the comparison distance. will be Buttons, sliders, and the like for setting the correspondence between the comparison distance and the color are displayed in the correspondence setting field dc.

具体的には、対応関係設定欄dcには、色表示バー411、距離基準調整バー412、色レンジ調整バー413、その他設定ボタン414および対応自動設定ボタン415が表示される。 Specifically, a color display bar 411, a distance reference adjustment bar 412, a color range adjustment bar 413, an other setting button 414, and an automatic correspondence setting button 415 are displayed in the correspondence setting field dc.

色表示バー411においては、立体形状画像SIにおいて表示可能な複数種類の色が、複数種類の表示態様として予め対応付けられた対比距離に応じた並びで表示される。図16以降の所定の図面においては、立体形状画像SIにおいて表示される複数種類の色の代わりに、互いに異なる複数種類のドットパターンが示される。図16に示される色表示バー411には、段階的に濃度が異なる6種類のドットパターンが示される。これらのドットパターンは、濃度が濃いものから濃度が薄くなる順に、例えば青色、水色、緑色、黄色、橙色および赤色を表す。このように、色表示バー411にスペクトル順に並ぶ色の中心に位置する色を基準色と呼ぶ。 In the color display bar 411, a plurality of types of colors that can be displayed in the stereoscopic image SI are displayed in an arrangement according to the comparison distances associated in advance as a plurality of types of display modes. In predetermined drawings after FIG. 16, different types of dot patterns are shown instead of the multiple types of colors displayed in the three-dimensional shape image SI. The color display bar 411 shown in FIG. 16 shows six types of dot patterns with different densities in stages. These dot patterns represent, for example, blue, light blue, green, yellow, orange, and red in order from darkest to lightest. A color located in the center of the colors arranged in spectral order on the color display bar 411 is called a reference color.

距離基準調整バー412はスライダを含む。使用者は、距離基準調整バー412のスライダを操作することにより、基準色に対応する対比距離の基準値(以下、基準色距離と呼ぶ。)を設定することができる。例えば、幾何基準として水平な平面が設定されかつ基準色距離が10.00mmに設定される場合には、測定対象部分が当該平面から上方に10.00mm離間しているときに当該測定対象部分の画像が基準色で表されることになる。 Distance reference adjustment bar 412 includes a slider. By operating the slider of the distance reference adjustment bar 412, the user can set the reference value of the contrast distance (hereinafter referred to as the reference color distance) corresponding to the reference color. For example, when a horizontal plane is set as the geometric reference and the reference color distance is set to 10.00 mm, when the measurement target portion is 10.00 mm above the plane, the measurement target portion The image will be represented in the reference colors.

色レンジ調整バー413はスライダを含む。使用者は、色レンジ調整バー413のスライダを操作することにより、色表示バー411に表示される複数種類の色により表現されるべき対比距離の範囲を設定することができる。例えば、対比距離の範囲として5.00mmが設定される場合には、上記の基準色距離を中心として±5.00mmの範囲が色表示バー411に表示されたいずれかの色に対応付けられる。 Color range adjustment bar 413 includes sliders. By operating the slider of color range adjustment bar 413 , the user can set the range of contrast distances to be represented by a plurality of types of colors displayed on color display bar 411 . For example, when 5.00 mm is set as the range of the comparison distance, any color displayed on the color display bar 411 is associated with a range of ±5.00 mm centered on the reference color distance.

対応自動設定ボタン415は、対比距離と表示態様(本例では色)との対応関係を自動設定すべきことを使用者が指令するためのボタンである。後述する対象プルダウンメニューm11および基準プルダウンメニューm12が操作されることにより幾何基準および測定対象部分が設定されると、測定対象物Sの立体形状データに基づいて対比距離が算出される。対応自動設定ボタン415が操作されると、算出される対比距離の最小値および最大値が少なくとも色表示バー411に表示されたいずれかの色で表示されるように、対比距離の基準値および表現されるべき対比距離の範囲が図1のCPU210により自動設定される。 The correspondence automatic setting button 415 is a button for the user to instruct that the correspondence relationship between the comparison distance and the display mode (color in this example) should be automatically set. When the geometric reference and the portion to be measured are set by operating the object pull-down menu m11 and the reference pull-down menu m12, which will be described later, the comparison distance is calculated based on the three-dimensional shape data of the object S to be measured. When the corresponding automatic setting button 415 is operated, the reference value and expression of the comparison distance are set so that the calculated minimum and maximum values of the comparison distance are displayed in at least one of the colors displayed on the color display bar 411. The range of comparison distances to be used is automatically set by the CPU 210 of FIG.

その他設定ボタン414は、幾何基準に対する対比距離の扱い、色の反転および対比距離の補正に関する設定を行うためのボタンである。その他設定ボタン414が操作されると、図17に示すその他設定ウィンドウSWが表示態様設定画面SC2上に表示される。その他設定ウィンドウSWには、3つのチェックボックス421,422,423が表示される。 The other setting button 414 is a button for performing settings related to handling of the contrast distance with respect to the geometric reference, color reversal, and correction of the contrast distance. When the other setting button 414 is operated, the other setting window SW shown in FIG. 17 is displayed on the display mode setting screen SC2. Three check boxes 421, 422, and 423 are displayed in the other setting window SW.

幾何基準として平面が設定される場合に、通常、その平面から測定対象物Sの部分までの対比距離は当該平面を基準として正の値または負の値で算出される。そのため、例えば基準色距離が10.00mmに設定されかつ対比距離の範囲として5.00mmが設定される場合には、図18(a)にハッチングで示すように、幾何基準となる平面を基準として正の値で算出される対比距離にのみ色表示バー411に表される色が対応付けられる。 When a plane is set as the geometric reference, the contrast distance from the plane to the portion of the measurement object S is normally calculated as a positive or negative value with respect to the plane. Therefore, for example, when the reference color distance is set to 10.00 mm and the contrast distance range is set to 5.00 mm, as shown by hatching in FIG. Only the contrast distance calculated as a positive value is associated with the color displayed on the color display bar 411 .

一方、幾何基準として平面が設定される場合に、その平面から測定対象物Sの部分までの距離として算出される値の絶対値を対比距離とする。この場合、当該平面を基準として正の値で算出される対比距離に色表示バー411に表される色が対応付けられるとともに、本来的に負の値で算出される対比距離にも色表示バー411に表される色が対応付けられる。そのため、例えば基準色距離が10.00mmに設定されかつ対比距離の範囲として5.00mmが設定される場合には、図18(b)にハッチングで示すように、幾何基準となる平面を基準として5.00mm~15.00mmの範囲および-15.00mm~-5.00mmの範囲で算出される対比距離に色表示バー411で表される色が対応付けられる。 On the other hand, when a plane is set as the geometric reference, the absolute value of the distance calculated from the plane to the measurement object S is taken as the comparison distance. In this case, the color displayed in the color display bar 411 is associated with the comparison distance calculated as a positive value with respect to the plane, and the comparison distance originally calculated as a negative value is also associated with the color display bar. A color represented by 411 is associated. Therefore, for example, when the reference color distance is set to 10.00 mm and the contrast distance range is set to 5.00 mm, as shown by hatching in FIG. Colors represented by the color display bar 411 are associated with the comparison distances calculated in the range of 5.00 mm to 15.00 mm and the range of -15.00 mm to -5.00 mm.

このように、チェックボックス421は、幾何基準として平面が設定される場合に、算出される対比距離を絶対値に変換して用いるか否かを設定するために用いられる。 Thus, the check box 421 is used to set whether or not to convert the calculated contrast distance into an absolute value and use it when a plane is set as the geometric reference.

チェックボックス422は、幾何基準として平面が設定される場合に、予め対応付けられた対比距離に対する色の対応関係を反転させるために用いられる。 Checkbox 422 is used to reverse the color correspondence to the pre-associated contrast distance when a plane is set as the geometric reference.

チェックボックス423は、幾何基準として円錐の軸(中心軸)が設定される場合に、算出される対比距離を補正するために用いられる。チェックボックス423がチェックされることにより行われる対比距離の補正を円錐補正と呼ぶ。円錐補正の詳細は後述する。 A check box 423 is used to correct the calculated contrast distance when the cone axis (central axis) is set as the geometric reference. Correction of the contrast distance performed by checking the check box 423 is called cone correction. Details of the cone correction will be described later.

図16の対象プルダウンメニューm11は、使用者が測定対象部分を特定するための幾何要素(以下、対象要素と呼ぶ。)を指定する際に用いられる。対象プルダウンメニューm11においては、使用者の操作に応答して、予め設定されている1または複数の幾何要素が表示される。さらに、設定されている1または複数の幾何要素の組み合わせ等が表示される。これにより、使用者は、対象プルダウンメニューm11を操作することにより、所望の対象要素を指定することができる。なお、対象プルダウンメニューm11においては、使用者の操作に応答して、測定対象物Sの全体が対象要素の候補として表示されてもよい。 The target pull-down menu m11 in FIG. 16 is used when the user designates a geometric element (hereinafter referred to as a target element) for specifying the measurement target portion. In the object pull-down menu m11, one or more preset geometric elements are displayed in response to the user's operation. Furthermore, the set combination of one or more geometric elements and the like are displayed. Thereby, the user can designate a desired target element by operating the target pull-down menu m11. In the target pull-down menu m11, the entire measurement target S may be displayed as a target element candidate in response to the user's operation.

基準プルダウンメニューm12は、使用者が幾何基準を特定するための幾何要素(以下、基準要素と呼ぶ。)を指定する際に用いられる。基準プルダウンメニューm12においては、使用者の操作に応答して、予め設定されている1または複数の幾何要素が表示される。さらに、設定されている幾何要素に固有の関係を有する幾何要素が表示される。例えば円筒の幾何要素が予め設定されている場合には、当該円筒の軸(中心軸)等が表示される。また、互いに平行な2つの平面の幾何要素が予め設定されている場合には、その2つの平面の中間に位置する面(中面)等が表示される。これにより、使用者は、基準プルダウンメニューm12を操作することにより、所望の基準要素を指定することができる。 The reference pull-down menu m12 is used when the user designates a geometric element (hereinafter referred to as a reference element) for specifying the geometric reference. In the reference pull-down menu m12, one or more preset geometric elements are displayed in response to the user's operation. Additionally, geometric elements that have a unique relationship to the configured geometric element are displayed. For example, when a cylindrical geometric element is set in advance, the axis (central axis) of the cylinder and the like are displayed. Further, when geometric elements of two planes parallel to each other are set in advance, a plane (middle plane) located between the two planes is displayed. Thereby, the user can designate a desired reference element by operating the reference pull-down menu m12.

戻るボタンb04は、図14の戻るボタンb01と同様に、使用者が表示態様設定機能の使用の取り消しを指令するためのボタンである。幾何要素ボタンb06は、使用者が新たな幾何要素を設定することを指令するためのボタンである。使用者は、表示態様設定画面SC2が表示された状態で、新たな幾何要素を設定したい場合に、幾何要素ボタンb06を操作する。それにより、表示部400に表示される画面が表示態様設定画面SC2から再度幾何要素設定画面SC1に切り替わる。 The return button b04 is, like the return button b01 in FIG. 14, a button for the user to instruct cancellation of use of the display mode setting function. The geometric element button b06 is a button for the user to command setting of a new geometric element. When the user wants to set a new geometric element while the display mode setting screen SC2 is displayed, the user operates the geometric element button b06. As a result, the screen displayed on the display unit 400 switches from the display mode setting screen SC2 to the geometric element setting screen SC1 again.

OKボタンb05は、使用者が測定対象部分に対応する立体形状画像SIの部分に対応関係設定欄dcにおいて設定された表示態様を適用することを指令するためのボタンである。使用者は、距離と色との対応関係を設定し、対象要素を指定し、基準要素を指定した後、OKボタンb05を操作する。それにより、設定された対応関係、指定された対象要素および基準要素に基づいて、測定対象部分に対応する立体形状画像SIの部分の色が対比距離に応じた色に変更される。 The OK button b05 is a button for the user to issue a command to apply the display mode set in the correspondence setting field dc to the portion of the three-dimensional shape image SI corresponding to the portion to be measured. After setting the correspondence between the distance and the color, specifying the target element, and specifying the reference element, the user operates the OK button b05. As a result, the color of the portion of the three-dimensional shape image SI corresponding to the measurement target portion is changed to a color corresponding to the contrast distance based on the set correspondence relationship, designated target element, and reference element.

図19に、基準要素として図15の幾何要素「平面0」が指定されるとともに対象要素として図15の幾何要素「平面0」、「平面1」、「平面2」、「平面3」および「平面4」(設定された幾何要素の全て)が指定され、OKボタンb05が操作された場合の立体形状画像SIの表示例が示される。 In FIG. 19, the geometric element "plane 0" in FIG. 15 is designated as the reference element, and the geometric elements "plane 0", "plane 1", "plane 2", "plane 3" and "plane 3" in FIG. 15 are designated as the target elements. A display example of the three-dimensional shape image SI when "plane 4" (all of the set geometric elements) is specified and the OK button b05 is operated is shown.

上記のように、図13の測定対象物Sにおいて幾何要素「平面1」、「平面2」および「平面0」にそれぞれ対応する上段面s11、下段面s12および底面s21は、互いに平行である。それにより、立体形状画像SIにおいては、幾何要素「平面1」、「平面2」および「平面0」により特定される各部分の画像が単色で表示される。 As described above, the upper surface s11, the lower surface s12 and the bottom surface s21 corresponding to the geometric elements "plane 1", "plane 2" and "plane 0" in the measurement object S of FIG. 13 are parallel to each other. As a result, in the stereoscopic image SI, the image of each portion specified by the geometric elements "plane 1", "plane 2" and "plane 0" is displayed in a single color.

一方、図13の測定対象物Sにおいて幾何要素「平面3」に対応する垂直面s22は底面s21に対して垂直であり、幾何要素「平面4」に対応する傾斜面s23は底面s21に対して傾斜している。それにより、立体形状画像SIにおいては、幾何要素「平面3」および「平面4」により特定される各部分の画像が一方向に並ぶ複数種類の色で表示される。 On the other hand, in the measurement object S of FIG. 13, the vertical plane s22 corresponding to the geometric element "plane 3" is perpendicular to the bottom surface s21, and the inclined plane s23 corresponding to the geometric element "plane 4" is perpendicular to the bottom surface s21. Inclined. As a result, in the stereoscopic image SI, the images of the portions specified by the geometric elements "plane 3" and "plane 4" are displayed in a plurality of colors arranged in one direction.

この状態で、使用者は、図20および図21に示すように、立体形状画像SIにおける測定対象物Sの姿勢を変更することができる。それにより、互いに異なる複数の視点で、幾何要素「平面0」を基準とした場合の測定対象物Sの各部の位置関係を容易に把握することができる。 In this state, as shown in FIGS. 20 and 21, the user can change the posture of the measuring object S in the stereoscopic image SI. This makes it possible to easily grasp the positional relationship of each part of the measurement object S when the geometric element "plane 0" is used as a reference from a plurality of viewpoints different from each other.

使用者は、図19~図21の表示状態で、その他設定ボタン414を操作し、図17のチェックボックス422をチェックすることにより、予め対応付けられた対比距離に対する色の対応関係を反転させることができる。この場合、図22に示すように、色表示バー411に表示される複数種類の色が、図19の色表示バー411に表示される複数種類の色に対して基準色を中心として反転する。また、反転された対応関係に従って立体形状画像SIのうちの測定対象部分に対応する部分の色が変化する。 19 to 21, the user operates the other setting button 414 and checks the check box 422 in FIG. 17 to reverse the previously associated color correspondence with the contrast distance. can be done. In this case, as shown in FIG. 22, the plurality of colors displayed on the color display bar 411 are inverted with respect to the plurality of colors displayed on the color display bar 411 of FIG. 19 with respect to the reference color. Further, the color of the portion corresponding to the measurement target portion of the three-dimensional shape image SI changes according to the inverted correspondence relationship.

ところで、図19~図21の例では、立体形状画像SIのうちの幾何要素「平面1」、「平面2」および「平面0」により特定される各部分に対応する部分は、単色で表示される。この場合、使用者は、当該立体形状画像SIを視認することにより、幾何要素「平面1」、「平面2」および「平面0」にそれぞれ対応する測定対象物Sの上段面s11、下段面s12および底面s21が互いに平行であることを容易に認識することができる。 By the way, in the examples of FIGS. 19 to 21, the portions corresponding to the portions specified by the geometric elements “plane 1,” “plane 2,” and “plane 0” in the three-dimensional shape image SI are displayed in a single color. be. In this case, the user visually recognizes the three-dimensional shape image SI to see the upper surface s11 and the lower surface s12 of the measurement object S corresponding to the geometric elements "plane 1", "plane 2" and "plane 0", respectively. and the bottom surface s21 are parallel to each other.

しかしながら、図19~図21の例では、立体形状画像SIのうちの幾何要素「平面3」および「平面4」により特定される各部分に対応する部分は、複数種類の色で表示される。この場合、使用者は、当該立体形状画像SIを視認しても、幾何要素「平面3」および「平面4」に対応する測定対象物Sの傾斜面s23および垂直面s22が互いに平行であるか否かを把握しにくい。 However, in the examples of FIGS. 19 to 21, portions of the three-dimensional image SI corresponding to the portions specified by the geometric elements “plane 3” and “plane 4” are displayed in multiple colors. In this case, even if the user visually recognizes the three-dimensional shape image SI, the user cannot confirm whether the inclined surface s23 and the vertical surface s22 of the measurement object S corresponding to the geometric elements "plane 3" and "plane 4" are parallel to each other. It is difficult to grasp whether or not

このような場合に、使用者は、幾何要素ボタンb06を操作することにより、新たな幾何要素を設定することができる。例えば、図23に示すように、上記の幾何要素「平面3」および「平面4」が再設定されるとともに、図13の測定対象物Sの一端面s31および他端面s32にそれぞれ対応する幾何要素「平面5」および「平面6」が新たに設定される。 In such a case, the user can set a new geometric element by operating the geometric element button b06. For example, as shown in FIG. 23, the geometric elements “plane 3” and “plane 4” are reset, and the geometric elements corresponding to the one end surface s31 and the other end surface s32 of the measurement object S in FIG. 13, respectively. "Plane 5" and "Plane 6" are newly set.

この場合、図24に示すように、使用者は、表示態様設定画面SC2において基準プルダウンメニューm12を操作することにより、幾何要素「平面5」および「平面6」の中面を基準要素として指定することができる。 In this case, as shown in FIG. 24, the user operates the reference pull-down menu m12 on the display mode setting screen SC2 to specify the middle planes of the geometric elements “plane 5” and “plane 6” as reference elements. be able to.

幾何要素「平面5」および「平面6」の中面により特定される仮想面に対して、測定対象物Sの垂直面s22は平行であり、傾斜面s23は傾斜している。そのため、幾何要素「平面5」および「平面6」の中面が基準要素として指定された状態でOKボタンb05が操作されると、図25に示すように、立体形状画像SIのうちの幾何要素「平面3」により特定される部分に対応する部分は、単色で表示される。一方、図24に示すように、立体形状画像SIのうちの幾何要素「平面4」により特定される部分に対応する部分は、一方向に並ぶ複数種類の色で表示される。これにより、使用者は、図24および図25の立体形状画像SIを視認することにより、幾何要素「平面3」および「平面4」に対応する測定対象物Sの傾斜面s23および垂直面s22が互いに平行でないことを容易に把握することができる。 The vertical plane s22 of the measuring object S is parallel to the virtual plane specified by the middle planes of the geometric elements "plane 5" and "plane 6", and the inclined plane s23 is inclined. Therefore, when the OK button b05 is operated in a state in which the middle planes of the geometric elements "plane 5" and "plane 6" are specified as the reference elements, the geometric elements in the three-dimensional shape image SI are displayed as shown in FIG. A portion corresponding to the portion specified by "Plane 3" is displayed in a single color. On the other hand, as shown in FIG. 24, the portion of the three-dimensional shape image SI corresponding to the portion specified by the geometric element "plane 4" is displayed in a plurality of colors arranged in one direction. 24 and 25, the user can see the inclined surface s23 and vertical surface s22 of the measurement object S corresponding to the geometric elements "plane 3" and "plane 4". It can be easily grasped that they are not parallel to each other.

使用者は、図24および図25の表示状態で、その他設定ボタン414を操作し、図17のチェックボックス421をチェックすることにより、中面を基準とする垂直面s22および傾斜面s23までの対比距離を同じ対応関係の色で表示させることができる。それにより、使用者は、測定対象物Sの長手方向における中心部分から垂直面s22までの距離と、測定対象物Sの長手方向における中心部分から傾斜面s23までの距離とを容易に対比することができる。 24 and 25, the user operates the other setting button 414 and checks the check box 421 in FIG. Distances can be displayed in colors of the same correspondence. Thereby, the user can easily compare the distance from the central portion of the measurement object S in the longitudinal direction to the vertical surface s22 and the distance from the central portion of the measurement object S in the longitudinal direction to the inclined surface s23. can be done.

(3)表示態様設定機能の他の使用例
図26~図30は、表示態様設定機能の他の使用例を説明するための図である。本例では、取っ手がない紙コップを測定対象物Sとして説明する。表示部400に幾何要素設定画面SC1が表示された状態で、図26に示すように、幾何要素「円錐1」および「平面10」が設定される。幾何要素「円錐1」は測定対象物Sの側面(外周面)全体に対応し、幾何要素「平面10」は測定対象物Sの開口端部を塞ぐ仮想平面に対応する。
(3) Other Usage Examples of Display Mode Setting Function FIGS. 26 to 30 are diagrams for explaining other usage examples of the display mode setting function. In this example, a paper cup without a handle will be described as the object S to be measured. With the geometric element setting screen SC1 displayed on the display unit 400, the geometric elements "cone 1" and "plane 10" are set as shown in FIG. The geometric element "cone 1" corresponds to the entire side surface (peripheral surface) of the object S to be measured, and the geometric element "plane 10" corresponds to a virtual plane closing the open end of the object S to be measured.

その後、表示部400に表示態様設定画面SC2が表示された状態で、図27に示すように、幾何要素「平面10」が基準要素として指定されるとともに、設定された幾何要素「円錐1」が対象要素として指定される。この場合、幾何要素「平面10」を基準として対比距離に応じた表示態様を含む立体形状画像SIが表示される。 After that, while the display mode setting screen SC2 is displayed on the display unit 400, as shown in FIG. Specified as the target element. In this case, the three-dimensional shape image SI including the display mode according to the contrast distance is displayed with the geometric element "plane 10" as a reference.

図27に示される立体形状画像SIによれば、測定対象物Sの側面を示す部分に、色表示バー411に示される複数種類の色が並ぶように表示されるが、測定対象物Sの側面に発生した膨らみまたは窪み等を把握することはできない。 According to the three-dimensional shape image SI shown in FIG. It is not possible to grasp the bulge or dent that occurred in the

そこで、図28に示すように、幾何要素「円錐1」の軸(中心軸)が基準要素として指定されるとともに、設定された幾何要素「円錐1」が対象要素として指定される。それにより、立体形状画像SIにおいては、測定対象物Sの側面を示す部分が幾何要素「円錐1」の軸を基準として対比距離に応じた色で表示される。本例における対比距離は、測定対象物Sの中心軸から側面までの距離である。したがって、図28の立体形状画像SIによれば、図27の立体形状画像SIに比べて測定対象物Sの側面に局部的な形状変化部が存在することを把握しやすい。 Therefore, as shown in FIG. 28, the axis (central axis) of the geometric element "cone 1" is specified as the reference element, and the set geometric element "cone 1" is specified as the target element. As a result, in the three-dimensional image SI, the portion indicating the side surface of the measurement object S is displayed in a color corresponding to the contrast distance with the axis of the geometric element "cone 1" as a reference. The comparison distance in this example is the distance from the central axis of the measuring object S to the side surface. Therefore, according to the three-dimensional shape image SI of FIG. 28, it is easier to grasp that there is a local shape change portion on the side surface of the measurement object S compared to the three-dimensional shape image SI of FIG.

ここで、使用者は、図28の表示状態で、その他設定ボタン414を操作し、図17のチェックボックス423をチェックすることにより、上記の円錐補正を行うことができる。円錐補正について説明する。 Here, the user can perform the above cone correction by operating the other setting button 414 in the display state of FIG. 28 and checking the check box 423 of FIG. Conical correction will be explained.

理想的な円錐の側面は、その円錐の軸が延びる方向に対して一定の傾きを有する。この場合、図29(a)に示すように、円錐の軸axから当該円錐の側面まで延びる軸axの垂線plの長さは、頂点ppから離間するにつれて一定の比率で大きくなる。そのため、円錐の軸を幾何基準としかつ当該円錐の側面を対象要素として表示態様が設定された立体形状画像SIにおいては、円錐の軸方向に円錐の形状に起因する色の変化成分が現れる。 The sides of an ideal cone have a constant slope with respect to the direction in which the axis of the cone extends. In this case, as shown in FIG. 29(a), the length of the perpendicular line pl extending from the axis ax of the cone to the side surface of the cone increases at a constant rate as the distance from the vertex pp increases. Therefore, in the three-dimensional shape image SI in which the display mode is set using the axis of the cone as the geometric reference and the side surface of the cone as the target element, a color change component due to the shape of the cone appears in the direction of the axis of the cone.

そこで、円錐補正では、円錐の形状に起因する色の変化成分が除去されるように、対比距離が補正される。具体的には、図29(b)に示すように、設定された円錐の幾何要素において、その軸ax上で基準位置αを定める。また、軸ax上の任意の位置βにおける当該軸axから側面までの垂線の長さd2が、基準位置αにおける当該軸axから側面までの垂線の長さd1に一致するように軸ax上の位置に応じた演算式を求める。このようにして算出された演算式に基づいて、実際に算出された対比距離を補正する。 Therefore, in the cone correction, the contrast distance is corrected so as to remove the color change component caused by the shape of the cone. Specifically, as shown in FIG. 29(b), a reference position α is defined on the axis ax of the conical geometric element that has been set. Further, the length d2 of the perpendicular from the axis ax to the side at an arbitrary position β on the axis ax is aligned with the length d1 of the perpendicular from the axis ax to the side at the reference position α. Find the arithmetic expression according to the position. Based on the arithmetic expression calculated in this way, the actually calculated comparison distance is corrected.

上記の補正後の対比距離は、測定対象部分が理想的な円錐形状を有することにより一定の値を示すことになる。一方、測定対象部分が理想的な円錐形状から局所的にずれることにより大きくばらついた値を示すことになる。 The contrast distance after the above correction shows a constant value because the portion to be measured has an ideal conical shape. On the other hand, if the portion to be measured locally deviates from the ideal conical shape, the value will show a large variation.

それにより、円錐補正後の対比距離に基づいて表示態様が設定された立体形状画像SIにおいては、図30に示すように、測定対象物Sの側面の局所的な形状の変化が顕著に表れる。したがって、使用者は、測定対象物Sの側面に局部的な形状変化部が存在することをその形状とともに正確に把握することができる。図30の例によれば、測定対象物Sの側面の一部に局所的な膨らみが発生していることがわかる。 As a result, in the three-dimensional shape image SI whose display mode is set based on the contrast distance after cone correction, as shown in FIG. Therefore, the user can accurately grasp the presence of the local shape change portion on the side surface of the measurement object S as well as the shape thereof. According to the example of FIG. 30, it can be seen that a local bulge occurs on a part of the side surface of the object S to be measured.

(4)表示態様設定機能のさらに他の使用例
図31~図33は、表示態様設定機能のさらに他の使用例を説明するための図である。本例では、電球を測定対象物Sとして説明する。表示部400に幾何要素設定画面SC1が表示された状態で、図31に示すように、幾何要素「球1」および「平面11」が設定される。幾何要素「球1」は測定対象物Sのバルブ全体に対応し、幾何要素「平面10」は測定対象物Sの口金の下端部近傍で当該電球の中心軸に直交する仮想平面に対応する。
(4) Still Another Usage Example of Display Mode Setting Function FIGS. 31 to 33 are diagrams for explaining still another usage example of the display mode setting function. In this example, a light bulb will be described as the measuring object S. As shown in FIG. With the geometric element setting screen SC1 displayed on the display unit 400, the geometric elements "sphere 1" and "plane 11" are set as shown in FIG. The geometric element "sphere 1" corresponds to the entire bulb of the object S to be measured, and the geometric element "plane 10" corresponds to an imaginary plane near the lower end of the base of the object S to be measured and perpendicular to the central axis of the bulb.

その後、表示部400に表示態様設定画面SC2が表示された状態で、図32に示すように、幾何要素「平面11」が基準要素として指定されるとともに、設定された幾何要素「球1」が対象要素として指定される。この場合、立体形状画像SIにおいては、測定対象物Sのバルブ全体を示す部分が幾何要素「平面11」を基準として対比距離に応じた色で表示される。 After that, while the display mode setting screen SC2 is displayed on the display unit 400, as shown in FIG. Specified as the target element. In this case, in the three-dimensional shape image SI, the portion showing the entire valve of the measurement object S is displayed in a color corresponding to the comparison distance with the geometric element "plane 11" as a reference.

図32に示される立体形状画像SIによれば、測定対象物Sのバルブを示す部分に、色表示バー411に示される複数種類の色が並ぶように表示されるが、測定対象物Sのバルブの外面に発生した膨らみまたは窪み等を把握することはできない。 According to the three-dimensional shape image SI shown in FIG. 32, a plurality of types of colors shown in the color display bar 411 are displayed side by side in the portion indicating the bulb of the measurement object S. It is not possible to grasp the bulge or dent that occurred on the outer surface of the

そこで、図33に示すように、幾何要素「球1」の中心が基準要素として指定されるとともに、幾何要素「球1」により特定される測定対象物Sのバルブの外面全体が対象要素として指定される。この場合、立体形状画像SIにおいては、測定対象物Sのバルブ全体を示す部分が幾何要素「球1」の中心を基準として対比距離に応じた色で表示される。本例における対比距離は、測定対象物Sのバルブの中心から当該バルブの外面までの距離である。したがって、図33の立体形状画像SIによれば、図32の立体形状画像SIに比べて測定対象物Sのバルブの外面に局部的な形状変化部が存在することをその形状とともに正確に把握することができる。 Therefore, as shown in FIG. 33, the center of the geometric element "sphere 1" is specified as the reference element, and the entire outer surface of the bulb of the measurement object S specified by the geometric element "sphere 1" is specified as the target element. be done. In this case, in the three-dimensional shape image SI, the portion showing the entire bulb of the measurement object S is displayed in a color corresponding to the contrast distance with the center of the geometric element "sphere 1" as a reference. The comparison distance in this example is the distance from the center of the bulb of the measuring object S to the outer surface of the bulb. Therefore, according to the three-dimensional shape image SI of FIG. 33, the presence of a local shape change portion on the outer surface of the valve of the measurement object S can be accurately grasped together with the shape thereof, compared to the three-dimensional shape image SI of FIG. be able to.

(5)表示態様設定機能を実現するためのCPU210の機能的構成
図34は、本発明の一実施の形態に係る表示態様設定機能を実現するためのCPU210の機能ブロック図である。図34に示すように、CPU210は、形状データ生成部211、表示制御部212、特定部213、要素受付部214および対応関係設定部215を含む。これらの構成要素は、CPU210が記憶装置240に記憶された表示態様設定プログラムを実行することにより実現される。なお、CPU210に含まれる上記の複数の構成要素の一部または全てが電子回路等のハードウェアにより実現されてもよい。
(5) Functional Configuration of CPU 210 for Implementing Display Mode Setting Function FIG. 34 is a functional block diagram of the CPU 210 for implementing the display mode setting function according to one embodiment of the present invention. As shown in FIG. 34 , CPU 210 includes shape data generator 211 , display controller 212 , specifier 213 , element receiver 214 and correspondence setter 215 . These components are implemented by CPU 210 executing a display mode setting program stored in storage device 240 . A part or all of the plurality of components included in CPU 210 may be realized by hardware such as an electronic circuit.

形状データ生成部211は、受光部120により出力される受光信号に基づいて、測定対象物Sの立体形状を表す点群データを立体形状データとして生成し、記憶装置240に記憶させる。表示制御部212は、記憶装置240に記憶された立体形状データに基づいて測定対象物Sの立体形状を含む画像を立体形状画像SIとして姿勢変更可能に表示部400に表示させる。また、表示制御部212は、後述する対応関係設定部215により設定された対応関係に基づいて立体形状画像SIのうちの測定対象部分に対応する部分の表示態様の設定を行う。さらに、表示制御部212は、設定された表示態様を含む立体形状画像SIを表示部400に表示させる。 The shape data generation unit 211 generates point cloud data representing the three-dimensional shape of the measurement object S as three-dimensional shape data based on the light reception signal output from the light receiving unit 120 , and stores the three-dimensional shape data in the storage device 240 . The display control unit 212 causes the display unit 400 to display an image including the three-dimensional shape of the measurement object S as a three-dimensional shape image SI based on the three-dimensional shape data stored in the storage device 240 so that the posture can be changed. Further, the display control unit 212 sets the display mode of the portion corresponding to the measurement target portion in the three-dimensional image SI based on the correspondence set by the correspondence setting unit 215, which will be described later. Furthermore, the display control unit 212 causes the display unit 400 to display the stereoscopic image SI including the set display mode.

要素受付部214は、使用者による操作部250の操作に基づいて、表示部400に表示された立体形状画像SI上で、幾何要素の指定を受け付ける。また、要素受付部214は、使用者による操作部250の操作に基づいて、設定された幾何要素を用いた基準要素および対象要素の指定を受け付ける。 The element accepting unit 214 accepts designation of geometric elements on the three-dimensional shape image SI displayed on the display unit 400 based on the operation of the operating unit 250 by the user. Further, the element accepting unit 214 accepts designation of a reference element and a target element using the set geometric elements based on the operation of the operation unit 250 by the user.

特定部213は、要素受付部214により受け付けられた基準要素に基づいて、測定対象物Sの立体形状に関する幾何的な基準を幾何基準として特定する。また、特定部213は、要素受付部214により受け付けられた対象要素に基づいて、表示態様が設定されるべき測定対象物Sの測定対象部分を特定する。 The specifying unit 213 specifies a geometric reference regarding the three-dimensional shape of the measurement object S as a geometric reference based on the reference element received by the element receiving unit 214 . Further, the identifying unit 213 identifies the measurement target portion of the measurement object S for which the display mode should be set based on the target element received by the element receiving unit 214 .

対応関係設定部215は、使用者による操作部250の操作に基づいて、対比距離と色(表示態様)との対応関係を設定する。なお、対応関係設定部215は、特定部213により特定された測定対象部分の立体形状データと幾何基準との間の距離に基づいて、対比距離と色との対応関係を設定してもよい。例えば、対応関係設定部215は、算出される対比距離の最小値および最大値が互いに異なる種類の色で表示されるように、対比距離と色との対応関係を設定してもよい。 The correspondence setting unit 215 sets the correspondence between the comparison distance and the color (display mode) based on the operation of the operation unit 250 by the user. Note that the correspondence setting unit 215 may set the correspondence between the comparative distance and the color based on the distance between the three-dimensional shape data of the measurement target portion specified by the specifying unit 213 and the geometric reference. For example, the correspondence setting unit 215 may set the correspondence between the comparative distance and the color such that the calculated minimum value and maximum value of the comparative distance are displayed in different kinds of colors.

(6)表示態様設定処理
図35は、表示態様設定プログラムに基づく表示態様設定処理の基本的な流れを示すフローチャートである。本例では、初期状態で、予め図34の形状データ生成部211により測定対象物Sの立体形状データが生成され、図1の記憶装置240に記憶されているものとする。
(6) Display Mode Setting Process FIG. 35 is a flow chart showing the basic flow of the display mode setting process based on the display mode setting program. In this example, in the initial state, the three-dimensional shape data of the measuring object S is generated in advance by the shape data generation unit 211 shown in FIG. 34 and stored in the storage device 240 shown in FIG.

表示態様設定処理は、使用者による表示態様設定機能の使用の指示に応答して開始される。表示態様設定処理が開始されると、図34の表示制御部212は、記憶装置240に記憶された測定対象物Sの立体形状データを読み込む(ステップS11)。また、表示制御部212は、読み込んだ立体形状データに基づいて図1の表示部400に測定対象物Sの立体形状画像SIを表示させる(ステップS12)。 The display mode setting process is started in response to a user's instruction to use the display mode setting function. When the display mode setting process is started, the display control unit 212 in FIG. 34 reads the three-dimensional shape data of the measuring object S stored in the storage device 240 (step S11). Further, the display control unit 212 causes the display unit 400 in FIG. 1 to display a three-dimensional shape image SI of the measurement object S based on the read three-dimensional shape data (step S12).

次に、図34の要素受付部214は、表示部400に表示される立体形状画像SI上で幾何要素の指定を受け付ける(ステップS13)。この場合、受け付けられた幾何要素を示す情報は、記憶装置240に記憶される。 Next, the element reception unit 214 in FIG. 34 receives designation of geometric elements on the three-dimensional shape image SI displayed on the display unit 400 (step S13). In this case, information indicating the accepted geometric elements is stored in storage device 240 .

次に、要素受付部214は、指定された幾何要素を用いた基準要素の指定を受け付ける(ステップS14)。そこで、図34の特定部213は、要素受付部214により受け付けられた基準要素に基づいて、測定対象物Sの形状測定のための幾何基準を特定する(ステップS15)。この場合、特定された幾何基準を示す情報は、記憶装置240に記憶される。 Next, the element receiving unit 214 receives designation of a reference element using the designated geometric element (step S14). Therefore, the identifying unit 213 in FIG. 34 identifies the geometric reference for shape measurement of the measurement object S based on the reference elements received by the element receiving unit 214 (step S15). In this case, information indicative of the identified geometric criteria is stored in storage device 240 .

次に、要素受付部214は、設定された幾何要素を用いた対象要素の指定を受け付ける(ステップS16)。そこで、図34の特定部213は、要素受付部214により受け付けられた対象要素に基づいて、測定対象物Sの測定対象部分を特定する(ステップS17)。この場合、特定された測定対象部分を示す情報は、記憶装置240に記憶される。 Next, the element reception unit 214 receives designation of the target element using the set geometric element (step S16). Therefore, the identifying unit 213 in FIG. 34 identifies the measurement target portion of the measurement object S based on the target element received by the element receiving unit 214 (step S17). In this case, information indicating the identified measurement target portion is stored in the storage device 240 .

次に、図34の対応関係設定部215は、使用者による操作部250の操作に基づいて、対比距離と色(表示態様)との対応関係を設定する(ステップS18)。 Next, the correspondence setting unit 215 in FIG. 34 sets the correspondence between the comparison distance and the color (display mode) based on the operation of the operation unit 250 by the user (step S18).

その後、表示制御部212は、対応関係設定部215により設定された対応関係に基づいて立体形状画像SIのうちの測定対象部分に対応する部分の色を設定し、対比距離に応じた色を含む立体形状画像SIを表示部400に表示させる(ステップS19)。これにより、表示態様設定処理が終了する。 After that, the display control unit 212 sets the color of the portion corresponding to the measurement target portion in the three-dimensional shape image SI based on the correspondence set by the correspondence setting unit 215, and includes the color corresponding to the comparison distance. The three-dimensional shape image SI is displayed on the display unit 400 (step S19). This completes the display mode setting process.

上記のステップS14~S19の一連の処理は、例えば上記の表示態様設定画面SC2のOKボタンb05が操作されることにより行われる。 The series of processes of steps S14 to S19 is performed by operating the OK button b05 of the display mode setting screen SC2, for example.

図35の表示態様設定処理においては、例えばステップS19の処理後に、使用者による操作部250の操作に応答して、ステップS13以降の処理が再度行われてもよい。この場合、再度行われるステップS19の処理で新たな表示態様を含む立体形状画像SIが表示部400に表示されることになる。 In the display mode setting process of FIG. 35, for example, after the process of step S19, the processes after step S13 may be performed again in response to the operation of the operation unit 250 by the user. In this case, the three-dimensional shape image SI including the new display mode is displayed on the display unit 400 in the process of step S19 that is performed again.

[6]効果
本実施の形態に係る三次元形状測定装置500においては、測定対象物Sの立体形状データが生成され、生成された立体形状データに基づく立体形状画像SIが表示部400に表示される。使用者による操作部250の操作に基づいて、立体形状画像SI上で1または複数の幾何要素が指定される。指定されたいずれかの幾何要素を用いて基準要素の指定がさらに受け付けられ、その基準要素に基づいて幾何基準が特定される。また、指定されたいずれかの幾何要素を用いて対象要素の指定がさらに受け付けられ、その対象要素に基づいて測定対象部分が特定される。測定対象部分と幾何基準との間の対比距離に応じて、立体形状画像SIのうち測定対象部分に対応する部分の表示態様が設定される。対比距離に応じた表示態様を含む立体形状画像SIが、表示部400に表示される。それにより、使用者は、対比距離に応じた表示態様を含む立体形状画像SIを視認することにより、所望の幾何基準と測定対象物Sの所望の部分の形状との関係を容易かつ直感的に把握することが可能になる。
[6] Effect In three-dimensional shape measuring apparatus 500 according to the present embodiment, three-dimensional shape data of measurement object S is generated, and three-dimensional shape image SI based on the generated three-dimensional shape data is displayed on display unit 400. be. One or more geometric elements are designated on the solid image SI based on the user's operation of the operation unit 250 . A specification of a reference element is further received using any of the specified geometric elements, and a geometric reference is specified based on the reference element. In addition, specification of a target element is further accepted using one of the specified geometric elements, and a measurement target portion is specified based on the target element. The display mode of the portion of the stereoscopic image SI corresponding to the measurement target portion is set according to the comparison distance between the measurement target portion and the geometric reference. A three-dimensional shape image SI including a display mode corresponding to the comparison distance is displayed on the display unit 400 . As a result, the user can easily and intuitively understand the relationship between the desired geometric reference and the shape of the desired portion of the measurement object S by visually recognizing the three-dimensional shape image SI including the display mode corresponding to the comparison distance. be able to comprehend.

また、本実施の形態に係る三次元形状測定装置500においては、投光部110A,110B、受光部120A,120Bおよびステージ140が一体的に設けられているので、受光部120A,120Bとステージ140との位置関係が一義的に定まる。そのため、高い精度で立体形状データとしての点群データを得ることができる。したがって、立体形状データに基づいて高い精度で測定対象物Sの形状測定を行うことができる。 Further, in the three-dimensional shape measuring apparatus 500 according to the present embodiment, the light projecting units 110A and 110B, the light receiving units 120A and 120B, and the stage 140 are integrally provided. The positional relationship with is uniquely defined. Therefore, it is possible to obtain point cloud data as three-dimensional shape data with high accuracy. Therefore, the shape of the measurement object S can be measured with high accuracy based on the three-dimensional shape data.

[7]他の実施の形態
(1)平行面抽出機能
三次元形状測定装置500は、使用者による幾何要素の設定作業を補助するための平行面抽出機能を有してもよい。本例の平行面抽出機能は、平面の幾何要素が設定された場合に、設定された幾何要素に平行な測定対象物Sの平面部分を立体形状データに基づいて抽出し、抽出された平面部分を示す抽出画像を立体形状画像SI上に重畳表示する機能である。
[7] Other Embodiments (1) Parallel Plane Extraction Function The three-dimensional shape measuring apparatus 500 may have a parallel plane extraction function for assisting the user in setting geometric elements. The parallel plane extraction function of this example extracts a plane portion of the measurement object S parallel to the set geometric element based on the three-dimensional shape data when a plane geometric element is set, and extracts the extracted plane portion is superimposed on the three-dimensional shape image SI.

図36および図37は、平行面抽出機能を説明するための幾何要素設定画面SC1の一例を示す図である。本例の幾何要素設定画面SC1においては、主表示領域maに図13の測定対象物Sの立体形状画像SIが示される。平行面抽出機能を有する三次元形状測定装置500においては、幾何要素設定画面SC1の副表示領域saに平行面抽出ボタンb11が表示される。 36 and 37 are diagrams showing an example of the geometric element setting screen SC1 for explaining the parallel plane extraction function. In the geometric element setting screen SC1 of this example, the three-dimensional shape image SI of the measuring object S in FIG. 13 is displayed in the main display area ma. In the three-dimensional shape measuring apparatus 500 having a parallel plane extraction function, a parallel plane extraction button b11 is displayed in the sub-display area sa of the geometric element setting screen SC1.

例えば、使用者は、図36に示すように、図13の測定対象物Sの底面s21に対応する幾何要素「平面0」を設定した後、平行面抽出ボタンb11を操作する。この場合、CPU210は、測定対象物Sの立体形状データに基づいて、測定対象物Sのうち直前に設定された幾何要素「平面0」に対して予め定められた範囲内の平行度を有する部分(以下、平行部分と呼ぶ。)が存在するか否かを判定する。平行部分が存在する場合、CPU210は、測定対象物Sの立体形状データから当該平行部分の立体形状データを抽出する。 For example, as shown in FIG. 36, the user operates the parallel plane extraction button b11 after setting the geometric element "plane 0" corresponding to the bottom surface s21 of the measurement object S in FIG. In this case, based on the three-dimensional shape data of the measurement object S, the CPU 210 determines the portion of the measurement object S that has parallelism within a predetermined range with respect to the geometric element “plane 0” set immediately before. (hereinafter referred to as a parallel portion) exists. If there is a parallel portion, the CPU 210 extracts the 3D shape data of the parallel portion from the 3D shape data of the object S to be measured.

なお、この場合、CPU210は、基準となる幾何要素「平面0」に対応する測定対象物Sの部分を抽出しなくてもよいし、抽出してもよい。本例では、CPU210は、幾何要素「平面0」に対応する測定対象物Sの部分を抽出しない。 In this case, the CPU 210 may or may not extract the portion of the measurement object S corresponding to the reference geometric element “plane 0”. In this example, the CPU 210 does not extract the portion of the measurement object S corresponding to the geometric element "plane 0".

さらに、CPU210は、抽出された立体形状データに基づいて、抽出された平行部分を示す抽出画像を、図37に示すように、立体形状画像SI上に重畳表示する。図37の例では、立体形状画像SIのうち図13の測定対象物Sの上段面s11および下段面s12に対応する部分にそれぞれ抽出画像が重畳表示されている。抽出画像は、設定済みの幾何要素とは識別可能な態様(例えば色)で表示される。 Further, the CPU 210 superimposes an extraction image showing the extracted parallel portion on the three-dimensional shape image SI, as shown in FIG. 37, based on the extracted three-dimensional shape data. In the example of FIG. 37, extracted images are superimposed and displayed on portions corresponding to the upper surface s11 and the lower surface s12 of the measurement object S in FIG. 13 in the three-dimensional shape image SI. The extracted image is displayed in a manner (for example, color) distinguishable from the set geometric elements.

さらに、立体形状画像SI上には、抽出画像ごとに当該平行部分を個別に識別可能とするための名称が付される。図37の例では、2つの抽出画像にそれぞれ「抽出e1」および「抽出e2」の名称が付されている。 Further, on the stereoscopic image SI, a name is attached to each extracted image so that the parallel portion can be individually identified. In the example of FIG. 37, two extracted images are named "extraction e1" and "extraction e2", respectively.

この状態で、使用者は、立体形状画像SI上の所望の抽出画像を選択し、設定ボタンb02を操作することにより、選択された抽出画像に対応する平行部分に基づいて新たな幾何要素を設定することができる。また、使用者は、立体形状画像SI上の所望の抽出画像を選択し、当該抽出画像を削除することもできる。 In this state, the user selects a desired extracted image on the solid shape image SI and operates the setting button b02 to set a new geometric element based on the parallel portion corresponding to the selected extracted image. can do. The user can also select a desired extraction image on the stereoscopic image SI and delete the extraction image.

なお、平行部分を抽出するための基準となる幾何要素は、平行面抽出ボタンb11の操作の直前に設定される必要はなく、設定済みの複数の幾何要素から使用者により選択されてもよい。 Note that the geometric element that serves as a reference for extracting parallel portions need not be set immediately before the parallel plane extraction button b11 is operated, and may be selected by the user from a plurality of set geometric elements.

(2)垂直面抽出機能
三次元形状測定装置500は、使用者による幾何要素の設定作業を補助するための垂直面抽出機能を有してもよい。本例の垂直面抽出機能は、平面の幾何要素が設定された場合に、設定された幾何要素に垂直な測定対象物Sの平面部分を立体形状データに基づいて抽出し、抽出された平面部分を示す抽出画像を立体形状画像SI上に重畳表示する機能である。
(2) Vertical Plane Extraction Function The three-dimensional shape measuring apparatus 500 may have a vertical plane extraction function for assisting the user in setting geometric elements. The vertical plane extraction function of this example extracts a plane portion of the measurement object S perpendicular to the set geometric element based on the three-dimensional shape data when a plane geometric element is set, and extracts the extracted plane portion is superimposed on the three-dimensional shape image SI.

図38および図39は、垂直面抽出機能を説明するための幾何要素設定画面SC1の一例を示す図である。本例の幾何要素設定画面SC1においては、主表示領域maに電子部品からなる測定対象物Sの立体形状画像SIが示される。垂直面抽出機能を有する三次元形状測定装置500においては、幾何要素設定画面SC1の副表示領域saに垂直面抽出ボタンb12が表示される。 38 and 39 are diagrams showing an example of the geometric element setting screen SC1 for explaining the vertical plane extraction function. In the geometric element setting screen SC1 of this example, a three-dimensional shape image SI of the measurement object S made of electronic components is displayed in the main display area ma. In the three-dimensional shape measuring device 500 having a vertical plane extraction function, a vertical plane extraction button b12 is displayed in the secondary display area sa of the geometric element setting screen SC1.

ここで、本例の測定対象物Sとなる電子部品は、集積回路を収容する略長方形状のパッケージを有するものとする。パッケージの両側部の各々においては、当該パッケージの内部から複数の帯状リードが引き出されている。複数の帯状リードは、パッケージの長手方向に並ぶ。各帯状リードは、パッケージの両側部から下方に延びるように屈曲されている。パッケージの上面に対して各帯状リードの上下方向に延びる部分は、略垂直であるものとする。 Here, it is assumed that the electronic component, which is the object to be measured S in this example, has a substantially rectangular package that accommodates an integrated circuit. A plurality of strip-shaped leads are led out from the inside of the package on each side of the package. A plurality of strip-shaped leads are arranged in the longitudinal direction of the package. Each strip lead is bent to extend downward from both sides of the package. It is assumed that the vertically extending portion of each strip-shaped lead is substantially perpendicular to the upper surface of the package.

例えば、使用者は、図38に示すように、電子部品のパッケージの上面に対応する幾何要素「平面50」を設定した後、垂直面抽出ボタンb12を操作する。この場合、CPU210は、測定対象物Sの立体形状データに基づいて、測定対象物Sのうち直前に設定された幾何要素「平面50」に対して予め定められた範囲内の垂直度を有する部分(以下、垂直部分と呼ぶ。)が存在するか否かを判定する。垂直部分が存在する場合、CPU210は、測定対象物Sの立体形状データから当該垂直部分の立体形状データを抽出する。 For example, as shown in FIG. 38, the user operates the vertical plane extraction button b12 after setting the geometric element "plane 50" corresponding to the upper surface of the electronic component package. In this case, based on the three-dimensional shape data of the measurement object S, the CPU 210 determines the portion of the measurement object S that has a degree of perpendicularity within a predetermined range with respect to the geometric element “plane 50” set immediately before. (hereafter referred to as the vertical portion) exists. If a vertical portion exists, the CPU 210 extracts the 3D shape data of the vertical portion from the 3D shape data of the object S to be measured.

さらに、CPU210は、抽出された立体形状データに基づいて、抽出された垂直部分を示す抽出画像を、図39に示すように、立体形状画像SI上に重畳表示する。図39の例では、立体形状画像SIのうち電子部品の複数の帯状リードの外面に対応する部分にそれぞれ抽出画像が重畳表示されている。抽出画像は、設定済みの幾何要素とは識別可能な態様(例えば色)で表示される。 Furthermore, the CPU 210 superimposes an extracted image showing the extracted vertical portion on the three-dimensional shape image SI, as shown in FIG. 39, based on the extracted three-dimensional shape data. In the example of FIG. 39, extracted images are superimposed and displayed on portions corresponding to the outer surfaces of a plurality of strip-shaped leads of the electronic component in the three-dimensional shape image SI. The extracted image is displayed in a manner (for example, color) distinguishable from the set geometric elements.

さらに、立体形状画像SI上には、抽出画像ごとに当該垂直部分を個別に識別可能とするための名称が付される。図39の例では、14個の抽出画像にそれぞれ「抽出e1」~「抽出e14」の名称が付されている。 Further, on the three-dimensional shape image SI, a name is attached to each extracted image so that the vertical portion can be individually identified. In the example of FIG. 39, 14 extracted images are given names of "extraction e1" to "extraction e14".

この状態で、使用者は、立体形状画像SI上の所望の抽出画像を選択し、設定ボタンb02を操作することにより、選択された抽出画像に対応する垂直部分に基づいて新たな幾何要素を設定することができる。また、使用者は、立体形状画像SI上の所望の抽出画像を選択し、当該抽出画像を削除することもできる。 In this state, the user selects a desired extracted image on the stereoscopic image SI and operates the setting button b02 to set a new geometric element based on the vertical portion corresponding to the selected extracted image. can do. The user can also select a desired extraction image on the stereoscopic image SI and delete the extraction image.

なお、垂直部分を抽出するための基準となる幾何要素は、平行面抽出ボタンb11の操作の直前に設定される必要はなく、設定済みの複数の幾何要素から使用者により選択されてもよい。 Note that the reference geometric element for extracting the vertical portion need not be set immediately before the parallel plane extraction button b11 is operated, and may be selected by the user from a plurality of already set geometric elements.

(3)領域抽出機能
三次元形状測定装置500は、使用者による幾何要素の設定作業を補助するための領域抽出機能を有してもよい。本例の領域抽出機能は、使用者により立体形状画像SI上で特定の領域が選択された場合に、選択された領域内に位置する測定対象物Sの平面部分を立体形状データに基づいて抽出し、抽出された平面部分を示す抽出画像を立体形状画像SI上に重畳表示する機能である。
(3) Area Extraction Function The three-dimensional shape measuring apparatus 500 may have an area extraction function for assisting the user in setting geometric elements. The region extracting function of this example extracts a planar portion of the measurement object S located in the selected region based on the three-dimensional shape data when a specific region is selected on the three-dimensional shape image SI by the user. and superimposes an extracted image showing the extracted planar portion on the three-dimensional shape image SI.

図40および図41は、領域抽出機能を説明するための幾何要素設定画面SC1の一例を示す図である。本例の幾何要素設定画面SC1においては、図38および図39の例と同様に、主表示領域maに電子部品からなる測定対象物Sの立体形状画像SIが示される。本例の測定対象物Sとなる電子部品は、図38および図39に示される測定対象物Sの電子部品と同じである。領域抽出機能を有する三次元形状測定装置500においては、幾何要素設定画面SC1の副表示領域saに領域抽出ボタンb13が表示される。 40 and 41 are diagrams showing an example of the geometric element setting screen SC1 for explaining the region extracting function. In the geometric element setting screen SC1 of this example, similarly to the examples of FIGS. 38 and 39, the main display area ma displays a three-dimensional shape image SI of the measurement object S made of electronic components. The electronic components that serve as the measurement object S in this example are the same as the electronic components of the measurement object S shown in FIGS. 38 and 39 . In the three-dimensional shape measuring device 500 having an area extraction function, an area extraction button b13 is displayed in the sub-display area sa of the geometric element setting screen SC1.

例えば、使用者は、領域抽出ボタンb13を操作した後、図40に太い一点鎖線で示すように、立体形状画像SI上で所望の領域を選択する。この領域の選択は、例えば立体形状画像SI上の複数の部分を使用者がシングルクリック操作することにより行われる。 For example, after operating the region extraction button b13, the user selects a desired region on the three-dimensional shape image SI as indicated by a thick dashed line in FIG. Selection of this region is performed by the user, for example, by single-clicking a plurality of portions on the stereoscopic image SI.

この場合、CPU210は、測定対象物Sの立体形状データに基づいて、選択された領域内の画像に対応する測定対象物Sの部分で予め定められたサイズ以上の平面部分(以下、領域内部分と呼ぶ。)が存在するか否かを判定する。領域内部分が存在する場合、CPU210は、測定対象物Sの立体形状データから当該領域内部分の立体形状データを抽出する。 In this case, based on the three-dimensional shape data of the measurement object S, the CPU 210 selects a planar portion of the measurement object S corresponding to the image within the selected region and having a size equal to or greater than a predetermined size (hereinafter referred to as an intra-region portion). ) exists. If there is a portion inside the region, the CPU 210 extracts the three-dimensional shape data for the inside of the region from the three-dimensional shape data of the object S to be measured.

さらに、CPU210は、抽出された立体形状データに基づいて、抽出された領域内部分を示す抽出画像を、図41に示すように、立体形状画像SI上に重畳表示する。図41の例では、立体形状画像SIのうち使用者により選択された領域内に位置しかつ電子部品の複数の帯状リードの外面に対応する部分にそれぞれ抽出画像が重畳表示されている。 Furthermore, the CPU 210 superimposes an extracted image showing the extracted inner region on the three-dimensional shape image SI based on the extracted three-dimensional shape data, as shown in FIG. In the example of FIG. 41, extracted images are superimposed and displayed on portions of the three-dimensional shape image SI that are positioned within a region selected by the user and correspond to the outer surfaces of a plurality of strip-shaped leads of the electronic component.

さらに、立体形状画像SI上には、抽出画像ごとに当該領域内部分を個別に識別可能とするための名称が付される。図39の例では、7個の抽出画像にそれぞれ「抽出e1」~「抽出e7」の名称が付されている。 Further, on the three-dimensional shape image SI, a name is attached to each extracted image so that the inner portion of the region can be individually identified. In the example of FIG. 39, seven extracted images are given names of "extraction e1" to "extraction e7", respectively.

この状態で、使用者は、立体形状画像SI上の所望の抽出画像を選択し、設定ボタンb02を操作することにより、選択された抽出画像に対応する領域内部分に基づいて新たな幾何要素を設定することができる。また、使用者は、立体形状画像SI上の所望の抽出画像を選択し、当該抽出画像を削除することもできる。 In this state, the user selects a desired extraction image on the solid shape image SI and operates the setting button b02 to create a new geometric element based on the region inside part corresponding to the selected extraction image. can be set. The user can also select a desired extraction image on the stereoscopic image SI and delete the extraction image.

(4)テンプレート設定機能
三次元形状測定装置500は、使用者による幾何要素の指定作業、基準要素の指定作業および対象要素の指定作業を補助するためのテンプレート設定機能を有してもよい。本例のテンプレート設定機能は、同一形状を有する複数の測定対象物Sについて同一内容の形状測定を順次行う場合に、一の測定対象物Sに対して行われた各種作業を他の測定対象物Sについて自動的に再現する機能である。
(4) Template Setting Function The three-dimensional shape measuring apparatus 500 may have a template setting function for assisting the user in designating geometric elements, reference elements, and target elements. The template setting function of this example is such that when shape measurements of the same content are sequentially performed on a plurality of measurement objects S having the same shape, various operations performed on one measurement object S are performed on other measurement objects. This function automatically reproduces S.

テンプレート設定機能では、予め使用者によって基準とすべき測定対象物Sが定められる。以下、基準とされた測定対象物Sを基準対象物と呼ぶ。使用者は、操作部250を操作することにより、基準対象物について立体形状データの生成、幾何要素の指定、基準要素の指定および対象要素の指定等を行う。この場合、CPU210は、使用者による操作部250の操作内容に基づいて、基準対象物に対する幾何要素の指定、基準要素の指定および対象要素の指定の操作手順をテンプレート情報として記憶する。 In the template setting function, the measurement object S to be used as a reference is determined in advance by the user. Hereinafter, the measurement object S used as a reference will be referred to as a reference object. The user operates the operation unit 250 to generate three-dimensional shape data, specify geometric elements, specify reference elements, specify target elements, and the like for the reference object. In this case, the CPU 210 stores, as template information, operation procedures for designating the geometric element, designating the reference element, and designating the target element for the reference object based on the user's operation of the operation unit 250 .

その後、使用者は、基準対象物と同じ形状を有する他の測定対象物Sについて立体形状データを生成した後、上記のテンプレート設定機能の使用を指令する。この場合、CPU210は、記憶されたテンプレート情報に基づいて、基準対象物について指定された幾何要素に対応する幾何要素を他の測定対象物Sについて指定する。また、CPU210は、テンプレート情報に基づいて、基準対象物について指定された基準要素および対象要素に対応する基準要素および対象要素を他の測定対象物Sについて指定する。 After that, the user generates three-dimensional shape data for another measurement object S having the same shape as the reference object, and then issues an instruction to use the template setting function. In this case, the CPU 210 designates, for the other measurement object S, geometric elements corresponding to the geometric elements designated for the reference object, based on the stored template information. Further, the CPU 210 designates, for another measurement object S, reference elements and target elements corresponding to the reference elements and target elements designated for the reference object, based on the template information.

これにより、使用者は、基準対象物について幾何要素の指定、基準要素の指定および対象要素の指定を行った後は、同一形状を有する他の測定対象物Sについて改めて同じ作業を繰り返すことなく測定対象部分の色が対比距離に応じた色で表された立体形状画像SIの確認等を行うことができる。したがって、三次元形状測定装置500の利便性が向上する。 Accordingly, after specifying the geometric element, the reference element, and the target element for the reference object, the user can measure the other measurement object S having the same shape without repeating the same operation. It is possible to confirm, for example, the solid shape image SI in which the color of the target portion is represented in a color corresponding to the contrast distance. Therefore, the convenience of the three-dimensional shape measuring device 500 is improved.

ところで、上記のテンプレート設定機能を有効に利用するためには、基準対象物の立体形状データと他の測定対象物Sの立体形状データとの位置関係を正確に把握する必要がある。例えば、立体形状データの生成時における基準対象物の姿勢と他の測定対象物Sの姿勢とが互いに大きく異なる場合には、上記のテンプレート情報を用いても適切な幾何要素の指定等を行うことができない。 By the way, in order to effectively use the template setting function, it is necessary to accurately grasp the positional relationship between the three-dimensional shape data of the reference object and the three-dimensional shape data of the other measurement object S. For example, when the orientation of the reference object and the orientation of the other measurement object S at the time of generating the three-dimensional shape data are significantly different from each other, it is possible to specify appropriate geometric elements using the above template information. can't

そこで、本例では、テンプレート設定機能の使用が指令されると、その事前処理として他の測定対象物Sの立体形状データを基準対象物の立体形状データに合わせこむ処理(以下、合わせこみ処理と呼ぶ。)が行われる。 Therefore, in this example, when the use of the template setting function is instructed, as a preliminary process, a process of matching the three-dimensional shape data of the other measurement object S with the three-dimensional shape data of the reference object (hereinafter referred to as matching process). call) is performed.

合わせこみ処理が開始されることにより、合わせこみ画面が表示部400に表示される。図42および図43は、表示部400に表示される合わせこみ画面の一例を示す図である。合わせこみ画面SC3においては、表示部400の表示領域が、第1主表示領域ma1、第2主表示領域ma2、第3主表示領域ma3および副表示領域saに分割されている。 A matching screen is displayed on the display unit 400 by starting the matching process. FIGS. 42 and 43 are diagrams showing examples of matching screens displayed on the display unit 400. FIG. In the combined screen SC3, the display area of the display unit 400 is divided into a first main display area ma1, a second main display area ma2, a third main display area ma3 and a sub display area sa.

第1主表示領域ma1に他の測定対象物Sの立体形状画像SIが表示され、第2主表示領域ma2に基準対象物の立体形状画像SIが表示される。第3主表示領域ma3に、基準対象物の立体形状データに対する他の測定対象物Sの立体形状データの合わせこみの程度が画像で表示される。具体的には、基準対象物の立体形状画像SIと他の測定対象物Sの立体形状画像とが共通の座標系に従って互いに異なる色で表示される。図42および図43の例では、互いに異なる2種類の色がドットパターンとハッチングとで示される。 A stereoscopic image SI of another measurement object S is displayed in the first main display area ma1, and a stereoscopic image SI of the reference object is displayed in the second main display area ma2. In the third main display area ma3, the degree of matching of the three-dimensional shape data of the other measurement object S with the three-dimensional shape data of the reference object is displayed as an image. Specifically, the three-dimensional shape image SI of the reference object and the three-dimensional shape image of the other measurement object S are displayed in different colors according to a common coordinate system. In the examples of FIGS. 42 and 43, two different colors are indicated by dot patterns and hatching.

副表示領域saには、要素種類選択欄es、位置合わせ要素表示欄et、戻るボタンb21および適用ボタンb22が表示される。要素種類選択欄esには、上記実施の形態と同様に、複数の幾何的な要素の種類にそれぞれ対応する複数の項目アイコンicが表示される。位置合わせ要素表示欄etについては後述する。 An element type selection field es, an alignment element display field et, a return button b21 and an apply button b22 are displayed in the sub display area sa. A plurality of item icons ic respectively corresponding to the types of a plurality of geometric elements are displayed in the element type selection field es, as in the above-described embodiment. The alignment element display field et will be described later.

表示部400に合わせこみ画面SC3が表示された状態で、使用者は、第1主表示領域ma1に表示される立体形状画像SI上で他の測定対象物Sの姿勢を変更することができる。また、使用者は、第2主表示領域ma2に表示される立体形状画像SI上で基準対象物の姿勢を変更することができる。 With the matching screen SC3 displayed on the display unit 400, the user can change the posture of the other measurement object S on the three-dimensional shape image SI displayed in the first main display area ma1. Also, the user can change the orientation of the reference object on the three-dimensional shape image SI displayed in the second main display area ma2.

そこで、使用者は、他の測定対象物Sを含む立体形状画像SIと基準対象物を含む立体形状画像SIとを対比しつつ、共通の形状を有しかつ互いに対応する部分を位置合わせ要素として3組指定する。このとき、使用者は、要素種類選択欄esに表示された複数の項目アイコンicのいずれかを操作することにより、指定対象となる位置合わせ要素の種類を選択することができる。 Therefore, the user compares the three-dimensional shape image SI including the other measurement object S with the three-dimensional shape image SI including the reference object, and uses portions having common shapes and corresponding to each other as alignment elements. Specify 3 pairs. At this time, the user can select the type of alignment element to be specified by operating any one of the plurality of item icons ic displayed in the element type selection field es.

副表示領域saの位置合わせ要素表示欄etには、他の測定対象物Sおよび基準対象物に関して3組の位置合わせ要素が指定されたか否かが示される。図42の例では、3組の位置合わせ要素は全く指定されていない。 The alignment element display column et of the sub-display area sa indicates whether or not three sets of alignment elements have been designated for the other measurement object S and the reference object. In the example of FIG. 42, no three sets of alignment elements are specified.

使用者は、例えば1組目の位置合わせ要素を指定するために平面に対応する項目アイコンicを操作する。その後、他の測定対象物Sを含む立体形状画像SI上および基準対象物を含む立体形状画像SI上で互いに対応する平面部分をそれぞれダブルクリック操作により指定する。これにより、他の測定対象物Sおよび基準対象物について1組目の位置合わせ要素(図43の「平面A」)の指定が完了する。 The user operates the item icon ic corresponding to the plane to designate, for example, the first set of alignment elements. After that, on the three-dimensional shape image SI including the other measurement object S and on the three-dimensional shape image SI including the reference object, mutually corresponding planar portions are specified by double-clicking. This completes the specification of the first set of alignment elements (“Plane A” in FIG. 43) for the other measurement object S and the reference object.

次に、使用者は、1番目の位置合わせ要素の指定と同様の手順で、他の測定対象物Sおよび基準対象物について2番目および3番目の位置合わせ要素(図43の「平面B」および「平面C」)を順次指定する。このとき、図43に示すように、指定された位置合わせ要素は、第1主表示領域ma1および第2主表示領域ma2に表示される立体形状画像SI上に逐次識別可能に表示される。 Next, the user specifies the second and third alignment elements ("plane B" and "Plane C") are sequentially specified. At this time, as shown in FIG. 43, the specified alignment elements are displayed so as to be sequentially identifiable on the three-dimensional image SI displayed in the first main display area ma1 and the second main display area ma2.

3組の位置合わせ要素が指定されると、CPU210は、3組の位置合わせ要素に対応する他の測定対象物Sの3つの部分が、3組の位置合わせ要素に対応する基準対象物の3つの部分にそれぞれ一致するように、他の測定対象物Sの立体形状データの座標変換を行う。 When the three sets of alignment elements are specified, the CPU 210 determines that the three portions of the other measurement object S corresponding to the three sets of alignment elements are the three parts of the reference object S corresponding to the three sets of alignment elements. Coordinate transformation of the three-dimensional shape data of the other measurement object S is performed so as to correspond to each of the two portions.

基準対象物の立体形状データに対する他の測定対象物Sの立体形状データの合わせこみが正確に行われることにより、図43に示すように、第3主表示領域ma3に表示される立体形状画像SIの基準対象物の位置および姿勢と他の測定対象物Sの位置および姿勢とが一致する。 By accurately matching the three-dimensional shape data of the other measurement object S with the three-dimensional shape data of the reference object, the three-dimensional shape image SI displayed in the third main display area ma3 as shown in FIG. The position and orientation of the reference object and the position and orientation of the other measurement object S match.

使用者は、合わせこみ画面SC3における第3主表示領域ma3の表示状態を確認しつつ、問題がないと判断すると適用ボタンb22を操作する。それにより、合わせこみ処理が完了する。戻るボタンb21は、使用者が合わせこみ処理の取り消しを指令するためのボタンである。使用者は、表示部400に合わせこみ画面SC3が表示された状態で戻るボタンb21を操作する。それにより、表示部400の表示状態が通常の形状計測時の状態(例えば図9~図12に示される状態)に戻る。 While confirming the display state of the third main display area ma3 in the matching screen SC3, the user operates the apply button b22 when determining that there is no problem. This completes the matching process. The return button b21 is a button for the user to command cancellation of the fitting process. The user operates the return button b21 while the adjustment screen SC3 is displayed on the display unit 400. FIG. As a result, the display state of the display unit 400 returns to the state during normal shape measurement (for example, the states shown in FIGS. 9 to 12).

なお、図43の例では、3つの位置合わせ要素として「平面A」、「平面B」および「平面C」が指定されているが、これらの要素のうち「平面B」および「平面C」は互いに平行な面である。3つの面を用いて上記の合わせこみを行う場合には、3つの位置合わせ要素は互いに交差するように設定されることが望ましい。したがって、例えば図43の例では、「平面B」に代えて一点鎖線で示される「平面D」が位置合わせ要素として指定されてもよい。この場合、互いに交差する位置合わせ要素「平面A」、「平面C」および「平面D」を用いることにより、より高い精度で立体形状データの合わせこみを行うことが可能となる。 In the example of FIG. 43, "plane A", "plane B" and "plane C" are specified as three alignment elements, and among these elements, "plane B" and "plane C" are The planes are parallel to each other. When performing the above alignment using three planes, it is desirable that the three alignment elements are set so as to intersect each other. Therefore, for example, in the example of FIG. 43, instead of "plane B", "plane D" indicated by a dashed line may be specified as an alignment element. In this case, by using alignment elements "plane A", "plane C" and "plane D" that intersect with each other, it is possible to align three-dimensional shape data with higher accuracy.

(5)対比強調表示機能
三次元形状測定装置500は、幾何基準に対する測定対象部分の幾何的な対比結果を使用者に容易に理解させるための対比強調表示機能を有してもよい。本例の対比強調表示機能は、一方向に延びる幾何基準と他方向に延びる測定対象物Sの測定対象部分とが特定される場合に、当該幾何基準に対する当該測定対象部分の傾斜する向きを表す指標(以下、傾斜指標と呼ぶ。)を立体形状画像SI上に重畳表示させる機能を含む。さらに、本例の対比強調表示機能は、当該幾何基準に対する当該測定対象部分の傾斜する向き(以下、単に傾斜の向きと呼ぶ。)を強調して表すように、傾斜指標の表示態様を調整する機能を含む。以下、対比強調表示機能の使用例について説明する。
(5) Comparison highlighting function The three-dimensional shape measuring apparatus 500 may have a comparison highlighting function for allowing the user to easily understand the geometric comparison result of the measurement target portion with respect to the geometric reference. When a geometric reference extending in one direction and a measurement target portion of the measurement object S extending in the other direction are specified, the contrast highlighting function of this example represents the tilting direction of the measurement target portion with respect to the geometric reference. It includes a function of superimposing and displaying an index (hereinafter referred to as an inclination index) on the stereoscopic image SI. Furthermore, the contrast highlighting function of this example adjusts the display mode of the tilt index so as to emphasize the tilt direction of the measurement target portion with respect to the geometric reference (hereinafter simply referred to as the tilt direction). Including function. An example of using the contrast highlighting function will be described below.

図44は、測定対象物Sの他の例を示す外観斜視図である。図44の測定対象物Sは、扁平な直方体形状を有する第1の部材p1、第2の部材p2および第3の部材p3から構成される。第1の部材p1および第2の部材p2は、間隔をおいて互いに対向するように第3の部材p3により連結されている。第1の部材p1および第2の部材p2には、それぞれ円形の第1の貫通孔h1および第2の貫通孔h2が形成されている。 FIG. 44 is an external perspective view showing another example of the measuring object S. FIG. A measurement object S in FIG. 44 is composed of a first member p1, a second member p2 and a third member p3 each having a flat rectangular parallelepiped shape. The first member p1 and the second member p2 are connected by a third member p3 so as to face each other with a space therebetween. A circular first through hole h1 and a circular second through hole h2 are formed in the first member p1 and the second member p2, respectively.

図44の測定対象物Sについて、第2の貫通孔h2の中心軸が第1の貫通孔h1の中心軸に対してどの方向に傾斜しているのかを知りたい場合、使用者は、最初に図44の測定対象物Sについての立体形状データを生成する。その後、使用者は、対比強調表示機能を使用する。 When the user wants to know in which direction the central axis of the second through hole h2 is inclined with respect to the central axis of the first through hole h1 for the measurement object S of FIG. Three-dimensional shape data is generated for the object S to be measured in FIG. The user then uses the contrast highlighting function.

図45~図47は、対比強調表示機能の一使用例を説明するための図である。図45に示すように、対比強調表示機能を有する三次元形状測定装置500においては、幾何要素設定画面SC1の副表示領域saに傾斜確認ボタンb31が表示される。 45 to 47 are diagrams for explaining one usage example of the contrast highlighting function. As shown in FIG. 45, in the three-dimensional shape measuring apparatus 500 having the contrast highlighting function, an inclination confirmation button b31 is displayed in the secondary display area sa of the geometric element setting screen SC1.

例えば、使用者は、主表示領域maに図44の測定対象物Sに対応する立体形状画像SIが表示された状態で、図44の第1の貫通孔h1の内周面に対応する幾何要素「円筒1」を設定する。また、使用者は、図44の第2の貫通孔h2の内周面に対応する幾何要素「円筒2」を設定する。その後、使用者は、傾斜確認ボタンb31を操作する。 For example, while the three-dimensional shape image SI corresponding to the measurement object S in FIG. 44 is displayed in the main display area ma, the user may Set "Cylinder 1". Also, the user sets a geometric element "cylinder 2" corresponding to the inner peripheral surface of the second through hole h2 in FIG. After that, the user operates the inclination confirmation button b31.

それにより、図46に示すように、表示部400に表示される画面が幾何要素設定画面SC1から傾斜確認画面SC4に切り替わる。傾斜確認画面SC4は、対応関係設定欄dcに代えて傾斜確認設定欄euが表示される点を除いて、上記の表示態様設定画面SC2と基本的に同じである。 As a result, as shown in FIG. 46, the screen displayed on the display unit 400 is switched from the geometric element setting screen SC1 to the inclination confirmation screen SC4. The tilt confirmation screen SC4 is basically the same as the display mode setting screen SC2 described above, except that the tilt confirmation setting field eu is displayed instead of the correspondence setting field dc.

傾斜確認設定欄euには、チェックボックス431および強調度合い調整バー432が表示される。チェックボックス431は、幾何基準および測定対象部分としてそれぞれ軸が指定される際に、傾斜の向きを強調するように傾斜指標を表示させるか否かを設定するために用いられる。使用者は、チェックボックス431をチェックすることにより、傾斜の向きを強調するように傾斜指標を表示させることができる。 A check box 431 and an emphasis degree adjustment bar 432 are displayed in the tilt confirmation setting field eu. The check box 431 is used to set whether or not to display the tilt index to emphasize the tilt direction when axes are designated as the geometric reference and the measurement target portion. By checking the check box 431, the user can display the tilt index so as to emphasize the tilt direction.

強調度合い調整バー432はスライダを含む。使用者は、強調度合い調整バー432のスライダを操作することにより、傾斜指標により示される傾斜の向きの強調度合いを調整することができる。 The enhancement degree adjustment bar 432 includes a slider. The user can adjust the degree of emphasis of the tilt direction indicated by the tilt index by operating the slider of the emphasis degree adjustment bar 432 .

本例では、図46に示すように、使用者は、対象要素として幾何要素「円筒2」の軸を指定し、基準要素として幾何要素「円筒1」の軸を指定するものとする。この場合、図46に一点鎖線で示すように、幾何要素「円筒1」の軸および幾何要素「円筒2」の軸を示す画像が立体形状画像SI上に重畳表示される。 In this example, as shown in FIG. 46, the user specifies the axis of the geometric element "cylinder 2" as the target element and the axis of the geometric element "cylinder 1" as the reference element. In this case, an image showing the axis of the geometric element “cylinder 1” and the axis of the geometric element “cylinder 2” is superimposed on the three-dimensional shape image SI, as indicated by the dashed line in FIG.

この状態で、OKボタンb05が操作されることにより、図46に白抜きの矢印で示すように、幾何要素「円筒1」の軸に対する幾何要素「円筒2」の軸の傾斜する向きを示す傾斜指標が立体形状画像SI上に重畳表示される。 By operating the OK button b05 in this state, as indicated by the white arrow in FIG. The index is superimposed on the three-dimensional shape image SI.

ここで、幾何要素「円筒1」の軸に対する幾何要素「円筒2」の軸の傾斜角度が小さいと、使用者は、傾斜指標を視認しても、幾何要素「円筒1」の軸に対して幾何要素「円筒2」の軸はどの方向に傾斜しているのかを把握することが難しい。そこで、使用者は、チェックボックス431をチェックし、強調度合い調整バー432を操作する。この場合、図47に示すように、幾何要素「円筒1」の軸に対する幾何要素「円筒2」の軸の傾斜の向きが、傾斜指標により強調表示される。具体的には、装置座標系における基準軸(本例では、幾何要素「円筒1」の軸)に対する対象軸(本例では、幾何要素「円筒2」の軸)の交差角度が、傾斜指標により過大に表示される。それにより、使用者は、幾何要素「円筒1」の軸に対して幾何要素「円筒2」の軸が傾斜する向きを容易に把握することができる。 Here, if the inclination angle of the axis of the geometric element "cylinder 2" with respect to the axis of the geometric element "cylinder 1" is small, even if the user visually recognizes the inclination index, It is difficult to grasp in which direction the axis of the geometric element "cylinder 2" is inclined. Therefore, the user checks the check box 431 and operates the emphasis degree adjustment bar 432 . In this case, as shown in FIG. 47, the orientation of the tilt of the axis of the geometric element "cylinder 2" with respect to the axis of the geometric element "cylinder 1" is highlighted by the tilt indicator. Specifically, the angle of intersection of the target axis (the axis of the geometric element “cylinder 2” in this example) with the reference axis (the axis of the geometric element “cylinder 1” in this example) in the device coordinate system is determined by the tilt index. displayed too large. Thereby, the user can easily grasp the direction in which the axis of the geometric element "cylinder 2" is inclined with respect to the axis of the geometric element "cylinder 1".

なお、対比強調表示機能を有する三次元形状測定装置500においては、図34の表示制御部212は、特定された測定対象部分と幾何基準との幾何的な対比結果として、上記の傾斜の向きを示す傾斜指標を表示部400に表示させる。また、表示制御部212は、使用者による操作部250の操作に応答して、傾斜の向きが強調して表されるように傾斜指標の表示態様を調整する。 Note that, in the three-dimensional shape measuring apparatus 500 having a comparison highlighting function, the display control unit 212 in FIG. The tilt index shown is displayed on the display unit 400 . In addition, the display control unit 212 adjusts the display mode of the tilt index so that the tilt direction is emphasized in response to the operation of the operation unit 250 by the user.

(6)その他
上記実施の形態では、1または複数の幾何要素が指定および設定された後、設定されたいずれかの幾何要素を用いて基準要素が指定されるが、本発明はこれに限定されない。幾何要素の指定時に、当該幾何要素が基準要素として指定されてもよい。同様に、上記実施の形態では、1または複数の幾何要素が設定された後、設定されたいずれかの幾何要素を用いて対象要素が指定されるが、本発明はこれに限定されない。幾何要素の指定時に、当該幾何要素が対象要素として指定されてもよい。
(6) Others In the above embodiment, after one or more geometric elements are specified and set, the reference element is specified using one of the set geometric elements, but the present invention is not limited to this. . When specifying a geometric element, the geometric element may be specified as a reference element. Similarly, in the above embodiment, after one or more geometric elements are set, the target element is specified using any of the set geometric elements, but the present invention is not limited to this. When specifying a geometric element, the geometric element may be specified as the target element.

上記実施の形態では、受光部120A,120Bに単眼カメラが用いられるが、単眼カメラに代えてまたは単眼カメラに加えて、複眼カメラが用いられてもよい。また、複数の受光部120Aおよび複数の受光部120Bが用いられ、ステレオ法によって立体形状データが生成されてもよい。また、上記実施の形態では、2つの投光部110が用いられるが、立体形状データの生成が可能であれば、1つの投光部110のみが用いられてもよく、または3つ以上の投光部110が用いられてもよい。 In the above embodiment, monocular cameras are used for the light receiving units 120A and 120B, but compound-eye cameras may be used instead of or in addition to the monocular cameras. Also, a plurality of light receiving sections 120A and a plurality of light receiving sections 120B may be used to generate three-dimensional shape data by a stereo method. In addition, although two light projecting units 110 are used in the above embodiment, only one light projecting unit 110 may be used, or three or more projecting units may be used as long as three-dimensional shape data can be generated. A light section 110 may be used.

また、投光部110からの均一な測定光を用いてテクスチャ画像データを取得する場合には、照明光出力部130および照明光源320が設けられなくてもよい。また、パターン画像データを合成してテクスチャ画像データを生成することも可能であり、その場合にも照明光出力部130および照明光源320が設けられなくてもよい。 Further, when the texture image data is acquired using the uniform measurement light from the light projecting section 110, the illumination light output section 130 and the illumination light source 320 may not be provided. It is also possible to generate texture image data by synthesizing pattern image data, in which case illumination light output unit 130 and illumination light source 320 may not be provided.

また、上記実施の形態では、パターン画像データおよびテクスチャ画像データが共通の受光部120A,120Bによって取得されるが、立体形状データを取得するための受光部と、ライブ画像データおよびテクスチャ画像データを取得するための受光部とが別個に設けられてもよい。 In the above embodiment, the pattern image data and the texture image data are acquired by the common light receiving units 120A and 120B. A light-receiving unit for detecting the light may be provided separately.

また、上記実施の形態では、三角測距法により点群データが生成されるが、TOF(Time Of Flight)法等の他の方法により点群データが生成されてもよい。 Further, in the above embodiment, the point cloud data is generated by the triangulation method, but the point cloud data may be generated by other methods such as the TOF (Time Of Flight) method.

[8]請求項の各構成要素と実施の形態の各部との対応関係
以下、請求項の各構成要素と実施の形態の各部との対応の例について説明するが、本発明は下記の例に限定されない。
[8] Correspondence between each constituent element of the claim and each part of the embodiment Hereinafter, an example of correspondence between each constituent element of the claim and each part of the embodiment will be described. Not limited.

上記実施の形態においては、形状データ生成部211が形状データ生成部の例であり、表示制御部212が表示制御部の例であり、要素受付部214が要素受付部の例であり、特定部213が特定部の例であり、三次元形状測定装置500が三次元形状測定装置の例である。 In the above embodiment, the shape data generation unit 211 is an example of the shape data generation unit, the display control unit 212 is an example of the display control unit, the element reception unit 214 is an example of the element reception unit, and the identification unit 213 is an example of the specifying unit, and the three-dimensional shape measuring device 500 is an example of the three-dimensional shape measuring device.

また、傾斜指標が指標の例であり、設置部161および回転機構143がステージ保持部の例であり、ステージ140がステージの例であり、投光部110,110A,110Bが投光部の例であり、受光部120,120A,120Bが受光部の例であり、ヘッド部190がヘッド部の例であり、スタンド部162が連結部の例である。 The tilt index is an example of the index, the installation portion 161 and the rotation mechanism 143 are examples of the stage holding portion, the stage 140 is an example of the stage, and the light projection portions 110, 110A, and 110B are examples of the light projection portions. , the light receiving portions 120, 120A, and 120B are examples of the light receiving portions, the head portion 190 is an example of the head portion, and the stand portion 162 is an example of the connecting portion.

さらに、対応関係設定部215が対応関係設定部の例であり、操作部250が操作部の例であり、CPU210がテンプレート記憶部およびテンプレート指定部の例であり、PC200が処理装置の例である。 Furthermore, the correspondence relationship setting unit 215 is an example of a correspondence relationship setting unit, the operation unit 250 is an example of an operation unit, the CPU 210 is an example of a template storage unit and a template designation unit, and the PC 200 is an example of a processing device. .

請求項の各構成要素として、請求項に記載されている構成または機能を有する他の種々の要素を用いることもできる。
[9]参考形態
(1)第1の参考形態に係る三次元形状測定装置は、測定対象物の立体形状を示す立体形状データを生成する形状データ生成部と、形状データ生成部により生成された立体形状データに基づいて、測定対象物の立体形状を含む画像を立体形状画像として姿勢変更可能に表示部に表示させる表示制御部と、表示部に表示された立体形状画像上で、幾何要素の指定を受け付ける要素受付部と、要素受付部により受け付けられた幾何要素に基づいて、測定対象物の立体形状に関する幾何的な基準を幾何基準として特定する特定部とを備え、表示制御部は、測定対象物の少なくとも一部分と特定部により特定された幾何基準との間の距離に応じて、立体形状画像のうちの少なくとも一部分に対応する部分の表示態様を設定する。
その三次元形状測定装置においては、測定対象物の立体形状データが生成され、生成された立体形状データに基づく立体形状画像が表示部に表示される。立体形状画像上で幾何要素の指定が受け付けられ、受け付けられた幾何要素に基づいて幾何基準が特定される。測定対象物の少なくとも一部分と幾何基準との間の距離に応じて、立体形状画像のうち測定対象物の少なくとも一部分に対応する部分の表示態様が設定される。
それにより、使用者は、測定対象物の立体形状画像上で幾何要素を指定し、表示部に表示される立体形状画像を視認することにより、所望の幾何基準と測定対象物の形状との関係を容易かつ直感的に把握することが可能になる。
なお、立体形状画像の部分の表示態様を設定するとは、立体形状画像の部分の表示態様を予め定められた本来の表示態様から上記の距離に応じた表示態様に切り替えることを意味する。換言すれば、立体形状画像の部分の表示態様を設定するとは、立体形状画像の部分の表示態様を予め定められた本来の表示態様から上記の距離に応じた表示態様に変更することを意味する。さらに換言すれば、立体形状画像の部分の表示態様を設定するとは、立体形状画像の部分の表示態様を予め定められた本来の表示態様から上記の距離に応じた表示態様にすることを意味する。
(2)特定部は、要素受付部により受け付けられた幾何要素に基づいて、表示態様が設定されるべき少なくとも一部分をさらに特定してもよい。
この場合、使用者は、測定対象物の立体形状画像上で幾何要素を指定することにより、所望の幾何要素と測定対象物の所望の部分の形状との関係を容易かつ直感的に把握することが可能になる。
(3)表示態様は、少なくとも一部分と幾何基準との間の距離に応じた色であってもよい。
この場合、使用者は、所望の幾何基準と測定対象物の少なくとも一部分の形状との関係をより直感的に把握することが可能になる。
(4)表示制御部は、少なくとも一部分と特定部により特定された幾何基準との幾何的な対比結果を表す指標を表示部に表示させるとともに、表示部に表示される指標が対比結果を強調して表すように、指標の表示態様を調整可能であってもよい。
この場合、使用者は、所望の幾何基準と測定対象物の少なくとも一部分の形状との幾何的な対比結果をより直感的に把握することが可能になる。
(5)三次元形状測定装置は、ステージ保持部と、ステージ保持部により保持され、測定対象物が載置されるステージと、ステージに載置される測定対象物にパターンを有する測定光を照射する投光部と、測定対象物により反射された測定光を受光して受光量を表す受光信号を出力する受光部とを含むヘッド部と、ヘッド部とステージ保持部とを固定的に連結する連結部とをさらに備え、形状データ生成部は、受光部により出力される受光信号に基づいて、測定対象物の立体形状を表す点群データを立体形状データとして生成してもよい。
上記の構成によれば、投光部、受光部およびステージ保持部が一体的に設けられているので、受光部とステージとの位置関係が一義的に定まる。そのため、高い精度で点群データを得ることができる。したがって、立体形状データに基づいて高い精度で測定対象物の形状測定を行うことができる。
(6)三次元形状測定装置は、立体形状データに基づいて少なくとも一部分と幾何基準との間の距離を算出するとともに算出された距離に基づいて表示態様と距離との対応関係を設定する対応関係設定部をさらに備え、表示制御部は、対応関係設定部により設定された対応関係に基づいて、立体形状画像のうちの少なくとも一部分に対応する部分の表示態様の設定を行ってもよい。
この場合、使用者は、表示態様と距離との対応関係を定める必要がない。また、上記の構成によれば、立体形状データに基づいてより適切な対応関係の設定が可能になる。
(7)三次元形状測定装置は、一の測定対象物について一の幾何基準を特定するための一の幾何要素を指定するために使用者により操作される操作部と、使用者による操作部の操作手順をテンプレート情報として記憶するテンプレート記憶部と、他の測定対象物について、一の幾何基準に対応する他の幾何基準を特定するための他の幾何要素を、一の測定対象物の立体形状データと、当該他の測定対象物の立体形状データと、テンプレート記憶部に記憶されたテンプレート情報とに基づいて指定するテンプレート指定部とをさらに備えてもよい。
この場合、使用者は、共通の形状を有する複数の測定対象物について、互いに対応する幾何基準を設定したい場合に、測定対象物ごとに幾何要素をそれぞれ指定する必要がなくなる。
(8)第2の参考形態に係る三次元形状測定プログラムは、処理装置により実行可能な三次元形状測定プログラムであって、測定対象物の立体形状を示す立体形状データを生成する処理と、生成された立体形状データに基づいて、測定対象物の立体形状を含む画像を立体形状画像として姿勢変更可能に表示部に表示させる処理と、表示部に表示された立体形状画像上で、幾何要素の指定を受け付ける処理と、受け付けられた幾何要素に基づいて、測定対象物の立体形状に関する幾何的な基準を幾何基準として特定する処理とを、処理装置に実行させ、表示部に表示させる処理は、測定対象物の少なくとも一部分と特定された幾何基準との間の距離に応じて、立体形状画像のうちの少なくとも一部分に対応する部分の表示態様を設定する処理を含む。
その三次元形状測定プログラムによれば、測定対象物の立体形状データが生成され、生成された立体形状データに基づく立体形状画像が表示部に表示される。立体形状画像上で幾何要素の指定が受け付けられ、受け付けられた幾何要素に基づいて幾何基準が特定される。測定対象物の少なくとも一部分と幾何基準との間の距離に応じて、立体形状画像のうち測定対象物の少なくとも一部分に対応する部分の表示態様が設定される。
それにより、使用者は、測定対象物の立体形状画像上で幾何要素を指定し、表示部に表示される立体形状画像を視認することにより、所望の幾何基準と測定対象物の形状との関係を容易かつ直感的に把握することが可能になる。
Various other elements having the structure or function described in the claims can be used as each component of the claims.
[9] Reference form
(1) A three-dimensional shape measuring apparatus according to a first embodiment includes a shape data generation unit that generates three-dimensional shape data representing a three-dimensional shape of an object to be measured, and based on the three-dimensional shape data generated by the shape data generation unit: a display control unit for displaying an image including a three-dimensional shape of the object to be measured as a three-dimensional shape image on the display unit so that the posture can be changed; and a specifying unit that specifies, as a geometric reference, a geometric reference relating to the three-dimensional shape of the measurement object based on the geometric elements received by the element reception unit, wherein the display control unit controls at least a portion of the measurement object. and the geometric reference specified by the specifying unit, the display mode of the part corresponding to at least part of the three-dimensional shape image is set.
In the three-dimensional shape measuring apparatus, three-dimensional shape data of the object to be measured is generated, and a three-dimensional shape image based on the generated three-dimensional shape data is displayed on the display unit. A specification of a geometric element is accepted on the solid image, and a geometric reference is specified based on the accepted geometric element. A display mode of a portion of the three-dimensional shape image corresponding to at least a portion of the measurement object is set according to the distance between at least a portion of the measurement object and the geometric reference.
Thereby, the user can specify a geometric element on the three-dimensional shape image of the object to be measured, and visually confirm the three-dimensional shape image displayed on the display section, thereby determining the relationship between the desired geometric reference and the shape of the object to be measured. can be grasped easily and intuitively.
Note that setting the display mode of the 3D image portion means switching the display mode of the 3D image portion from a predetermined original display mode to a display mode according to the distance. In other words, setting the display mode of the 3D image portion means changing the display mode of the 3D image portion from a predetermined original display mode to a display mode according to the distance. . In other words, setting the display mode of the 3D image portion means changing the display mode of the 3D image portion from a predetermined original display mode to a display mode according to the distance. .
(2) The specifying unit may further specify at least a part for which the display mode should be set based on the geometric element received by the element receiving unit.
In this case, the user can easily and intuitively grasp the relationship between the desired geometric element and the shape of the desired portion of the measurement object by specifying the geometric element on the three-dimensional shape image of the measurement object. becomes possible.
(3) The display mode may be a color according to the distance between at least the part and the geometric reference.
In this case, the user can more intuitively grasp the relationship between the desired geometrical reference and the shape of at least a part of the object to be measured.
(4) The display control unit causes the display unit to display an index representing a geometric comparison result between the at least part and the geometric reference specified by the specifying unit, and the index displayed on the display unit emphasizes the comparison result. , it may be possible to adjust the display mode of the index.
In this case, the user can more intuitively grasp the result of the geometric comparison between the desired geometric reference and the shape of at least a part of the object to be measured.
(5) The three-dimensional shape measuring apparatus includes a stage holder, a stage held by the stage holder and on which a measurement object is placed, and a measurement light having a pattern applied to the measurement object placed on the stage. and a light-receiving section that receives the measurement light reflected by the object to be measured and outputs a light-receiving signal representing the amount of received light, and the head section and the stage holding section are fixedly connected to each other. The shape data generation unit may generate point cloud data representing the three-dimensional shape of the measurement object as three-dimensional shape data based on the received light signal output from the light receiving unit.
According to the above configuration, since the light projecting section, the light receiving section, and the stage holding section are integrally provided, the positional relationship between the light receiving section and the stage is uniquely determined. Therefore, point cloud data can be obtained with high accuracy. Therefore, the shape of the measurement object can be measured with high accuracy based on the three-dimensional shape data.
(6) The three-dimensional shape measuring device calculates the distance between at least a portion and the geometric reference based on the three-dimensional shape data, and sets the correspondence relationship between the display mode and the distance based on the calculated distance. A setting unit may be further included, and the display control unit may set a display mode of a portion corresponding to at least a portion of the three-dimensional shape image based on the correspondence set by the correspondence setting unit.
In this case, the user does not need to define the correspondence between the display mode and the distance. Moreover, according to the above configuration, it is possible to set a more appropriate correspondence relationship based on the three-dimensional shape data.
(7) A three-dimensional shape measuring apparatus includes an operation unit operated by a user to specify one geometric element for specifying one geometric reference for one measurement object, and an operation unit operated by the user. A template storage unit for storing operation procedures as template information; It may further include a template designating unit that designates the template based on the data, the three-dimensional shape data of the other measurement object, and the template information stored in the template storage unit.
In this case, the user does not need to specify geometric elements for each measurement object when he/she wishes to set mutually corresponding geometric references for a plurality of measurement objects having a common shape.
(8) A three-dimensional shape measurement program according to a second embodiment is a three-dimensional shape measurement program that can be executed by a processing device, and includes a process of generating three-dimensional shape data representing a three-dimensional shape of an object to be measured; Based on the obtained three-dimensional shape data, a process of displaying an image including the three-dimensional shape of the object to be measured as a three-dimensional shape image on the display unit so that the posture can be changed; The process of causing the processing device to execute the process of accepting the designation and the process of specifying the geometric reference for the three-dimensional shape of the object to be measured as the geometric reference based on the accepted geometric elements, and causing the display unit to display the A process of setting a display mode of a portion corresponding to at least a portion of the three-dimensional shape image according to a distance between at least a portion of the measurement object and the specified geometric reference is included.
According to the three-dimensional shape measurement program, the three-dimensional shape data of the object to be measured is generated, and the three-dimensional shape image based on the generated three-dimensional shape data is displayed on the display unit. A specification of a geometric element is accepted on the solid image, and a geometric reference is specified based on the accepted geometric element. A display mode of a portion of the three-dimensional shape image corresponding to at least a portion of the measurement object is set according to the distance between at least a portion of the measurement object and the geometric reference.
Thereby, the user can specify a geometric element on the three-dimensional shape image of the object to be measured, and visually confirm the three-dimensional shape image displayed on the display section, thereby determining the relationship between the desired geometric reference and the shape of the object to be measured. can be grasped easily and intuitively.

100…測定部,110,110A,110B…投光部,111…測定光源,112…パターン生成部,113,114,122…レンズ,120,120A,120B…受光部,121…カメラ,121a…撮像素子,130…照明光出力部,131…出射口,140…ステージ,141…ステージベース,142…ステージプレート,143…回転機構,145…ステージ操作部,146…ステージ駆動部,150,310…制御基板,161…設置部,162…スタンド部,170…台座,180…ヘッドケーシング,190…ヘッド部,200…PC,210…CPU,211…形状データ生成部,212…表示制御部,213…特定部,214…要素受付部,215…対応関係設定部,220…ROM,230…作業用メモリ,240…記憶装置,250…操作部,300…制御部,320…照明光源,330…導光部材,400…表示部,411…色表示バー,412…距離基準調整バー,413…色レンジ調整バー,414…他設定ボタン,415…対応自動設定ボタン,421,422,423,431…チェックボックス,432…強調度合い調整バー,500…三次元形状測定装置,A1,A2…光軸,Ax…回転軸,ax…軸,b01,b04,b21…戻るボタン,b02…設定ボタン,b03…表示態様ボタン,b05…OKボタン,b06…幾何要素ボタン,b11…平行面抽出ボタン,b12…垂直面抽出ボタン,b13…領域抽出ボタン,B1I,B2I…画像,b22…適用ボタン,b31…傾斜確認ボタン,dc…対応関係設定欄,es…要素種類選択欄,et…位置合わせ要素表示欄,f01…名称入力欄,F1,F2…交点,h1…第1の貫通孔,h2…第2の貫通孔,ic…項目アイコン,IR…照射領域,m11…対象プルダウンメニュー,m12…基準プルダウンメニュー,ma…主表示領域,ma1…第1主表示領域,ma2…第2主表示領域,ma3…第3主表示領域,MR,MR1,MR2…有効領域,p1…第1の部材,p2…第2の部材,p3…第3の部材,PI…ポインタ,pl…垂線,pp…頂点,S…測定対象物,s11…上段面,s12…下段面,s21…底面,s22…垂直面,s23…傾斜面,s31…一端面,s32…他端面,sa…副表示領域,SC1…幾何要素設定画面,SC2…表示態様設定画面,SC3…合わせこみ画面,SC4…傾斜確認画面,SI…立体形状画像,SW…その他設定ウィンドウ,TR1…撮像視野 DESCRIPTION OF SYMBOLS 100... Measurement part 110, 110A, 110B... Light-projection part 111... Measurement light source 112... Pattern generation part 113, 114, 122... Lens, 120, 120A, 120B... Light-receiving part, 121... Camera, 121a... Imaging Elements 130 Illumination light output unit 131 Output port 140 Stage 141 Stage base 142 Stage plate 143 Rotation mechanism 145 Stage operation unit 146 Stage drive unit 150, 310 Control Substrate 161 Installation unit 162 Stand unit 170 Pedestal 180 Head casing 190 Head unit 200 PC 210 CPU 211 Shape data generation unit 212 Display control unit 213 Specification Part 214 Element reception part 215 Correspondence setting part 220 ROM 230 Work memory 240 Storage device 250 Operation part 300 Control part 320 Illumination light source 330 Light guide member , 400... Display section 411... Color display bar 412... Distance reference adjustment bar 413... Color range adjustment bar 414... Other setting buttons 415... Corresponding automatic setting buttons 421, 422, 423, 431... Check boxes, 432... Enhancement degree adjustment bar, 500... Three-dimensional shape measuring device, A1, A2... Optical axis, Ax... Rotational axis, ax... Axis, b01, b04, b21... Return button, b02... Setting button, b03... Display mode button , b05...OK button, b06...geometric element button, b11...parallel plane extraction button, b12...vertical plane extraction button, b13...area extraction button, B1I, B2I...image, b22...apply button, b31...inclination confirmation button, dc ... Correspondence setting field, es ... Element type selection field, et ... Alignment element display field, f01 ... Name input field, F1, F2 ... Intersection, h1 ... First through hole, h2 ... Second through hole, ic ... item icon, IR ... irradiation area, m11 ... target pull-down menu, m12 ... reference pull-down menu, ma ... main display area, ma1 ... first main display area, ma2 ... second main display area, ma3 ... third main display area , MR, MR1, MR2 effective area p1 first member p2 second member p3 third member PI pointer pl perpendicular line pp vertex S object to be measured s11 Upper surface s12 Lower surface s21 Bottom surface s22 Vertical surface s23 Inclined surface s31 One end surface s32 Other end surface sa Sub display area SC1 Geometric element setting screen SC2 Display mode Setting screen, SC3... Alignment screen, SC4... Inclination Confirmation screen, SI... Solid shape image, SW... Other setting window, TR1... Imaging field of view

Claims (12)

測定対象物の立体形状を示す立体形状データを生成する形状データ生成部と、
前記形状データ生成部により生成された立体形状データに基づいて、測定対象物の立体形状を含む画像を立体形状画像として姿勢変更可能に表示部に表示させる表示制御部と、
前記表示部に表示された立体形状画像上で、第1の幾何要素の指定を受け付ける要素受付部と、
前記要素受付部により受け付けられた第1の幾何要素に基づいて、該第1の幾何要素と固有の関係を有しかつ該第1の幾何要素と異なる第2の幾何要素を幾何基準として特定する特定部とを備え、
前記表示制御部は、測定対象物の少なくとも一部分と前記特定部により特定された前記幾何基準との間の距離に応じて、前記立体形状画像のうちの前記少なくとも一部分に対応する部分の表示態様を設定する、三次元形状測定装置。
a shape data generation unit that generates three-dimensional shape data indicating the three-dimensional shape of the object to be measured;
a display control unit that causes a display unit to display an image including a three-dimensional shape of an object to be measured as a three-dimensional shape image based on the three-dimensional shape data generated by the shape data generation unit so that the posture can be changed;
an element receiving unit that receives designation of a first geometric element on the three-dimensional shape image displayed on the display unit;
Based on the first geometric element received by the element receiving unit, a second geometric element having a unique relationship with the first geometric element and different from the first geometric element is specified as a geometric reference. a specific part,
The display control unit changes a display mode of a portion of the three-dimensional shape image corresponding to the at least a portion according to a distance between at least a portion of the measurement object and the geometric reference specified by the specifying unit. 3D shape measuring device to set.
前記特定部は、前記要素受付部により受け付けられた第1の幾何要素に基づいて、前記表示態様が設定されるべき前記少なくとも一部分をさらに特定する、請求項1記載の三次元形状測定装置。 2. The three-dimensional shape measuring apparatus according to claim 1, wherein said specifying unit further specifies said at least one portion for which said display mode is to be set, based on said first geometric element accepted by said element accepting unit. 前記表示態様は、前記少なくとも一部分と前記幾何基準との間の距離に応じた色である、請求項1または2記載の三次元形状測定装置。 3. The three-dimensional shape measuring apparatus according to claim 1, wherein said display mode is a color according to the distance between said at least one portion and said geometric reference. 前記表示制御部は、前記少なくとも一部分と前記特定部により特定された前記幾何基準との幾何的な対比結果を表す指標を前記表示部に表示させるとともに、前記表示部に表示される指標が対比結果を強調して表すように、前記指標の表示態様を調整可能である、請求項1または2記載の三次元形状測定装置。 The display control unit causes the display unit to display an index representing a geometric comparison result between the at least one portion and the geometric reference specified by the specifying unit, and the index displayed on the display unit is the comparison result. 3. The three-dimensional shape measuring apparatus according to claim 1, wherein the display mode of said index can be adjusted so that ステージ保持部と、
前記ステージ保持部により保持され、測定対象物が載置されるステージと、
前記ステージに載置される測定対象物にパターンを有する測定光を照射する投光部と、前記測定対象物により反射された測定光を受光して受光量を表す受光信号を出力する受光部とを含むヘッド部と、
前記ヘッド部と前記ステージ保持部とを固定的に連結する連結部とをさらに備え、
前記形状データ生成部は、前記受光部により出力される受光信号に基づいて、前記測定対象物の立体形状を表す点群データを前記立体形状データとして生成する、請求項1~4のいずれか一項に記載の三次元形状測定装置。
a stage holder;
a stage held by the stage holder and on which a measurement object is placed;
a light projecting unit that irradiates a measurement light having a pattern onto an object to be measured that is placed on the stage; and a light receiving unit that receives the measurement light reflected by the object to be measured and outputs a light reception signal representing the amount of received light. a head comprising
further comprising a connecting portion that fixedly connects the head portion and the stage holding portion;
5. The shape data generation unit according to any one of claims 1 to 4, wherein the shape data generation unit generates point cloud data representing a three-dimensional shape of the object to be measured as the three-dimensional shape data based on the received light signal output from the light receiving unit. The three-dimensional shape measuring device according to the item.
前記立体形状データに基づいて前記少なくとも一部分と前記幾何基準との間の距離を算出するとともに算出された距離に基づいて前記表示態様と距離との対応関係を設定する対応関係設定部をさらに備え、
前記表示制御部は、前記対応関係設定部により設定された対応関係に基づいて、前記立体形状画像のうちの前記少なくとも一部分に対応する部分の表示態様の設定を行う、請求項1~5のいずれか一項に記載の三次元形状測定装置。
further comprising a correspondence setting unit that calculates the distance between the at least one part and the geometric reference based on the three-dimensional shape data and sets the correspondence between the display mode and the distance based on the calculated distance;
6. The display control unit according to any one of claims 1 to 5, wherein the display control unit sets a display mode of a portion corresponding to the at least part of the three-dimensional shape image based on the correspondence set by the correspondence setting unit. or the three-dimensional shape measuring device according to any one of items.
一の測定対象物について一の幾何基準を特定するための一の幾何要素を指定するために使用者により操作される操作部と、
使用者による前記操作部の操作手順をテンプレート情報として記憶するテンプレート記憶部と、
他の測定対象物について、前記一の幾何基準に対応する他の幾何基準を特定するための他の幾何要素を、前記一の測定対象物の立体形状データと、当該他の測定対象物の立体形状データと、前記テンプレート記憶部に記憶されたテンプレート情報とに基づいて指定するテンプレート指定部とをさらに備える、請求項1~6のいずれか一項に記載の三次元形状測定装置。
an operation unit operated by a user to specify one geometric element for specifying one geometric reference for one measurement object;
a template storage unit that stores an operation procedure of the operation unit by a user as template information;
For another measurement object, another geometric element for specifying another geometric reference corresponding to the one geometric reference is the three-dimensional shape data of the one measurement object and the three-dimensional shape of the other measurement object. The three-dimensional shape measuring apparatus according to any one of claims 1 to 6, further comprising a template specifying unit that specifies based on shape data and template information stored in said template storage unit.
前記特定部は、前記要素受付部により受け付けられた第1の幾何要素が互いに平行な2つの平面である場合に、該2つの平面の中間に位置する中面からなる第2の幾何要素を前記幾何基準として特定する、請求項1記載の三次元形状測定装置。When the first geometric element received by the element receiving unit is two planes parallel to each other, the specifying unit selects a second geometric element formed of a median plane positioned between the two planes. 3. The three-dimensional shape measuring device according to claim 1, specified as a geometric reference. 前記特定部は、前記要素受付部により受け付けられた第1の幾何要素が円筒である場合に、該円筒の中心軸からなる第2の幾何要素を前記幾何基準として特定する、請求項1記載の三次元形状測定装置。2. The specifying unit according to claim 1, wherein, when the first geometric element accepted by said element accepting unit is a cylinder, said specifying unit specifies a second geometric element consisting of a central axis of said cylinder as said geometric reference. Three-dimensional shape measuring device. 前記特定部は、前記要素受付部により受け付けられた第1の幾何要素が円錐である場合に、該円錐の中心軸からなる第2の幾何要素を前記幾何基準として特定する、請求項1記載の三次元形状測定装置。2. The specifying unit according to claim 1, wherein, when the first geometric element accepted by said element accepting unit is a cone, said specifying unit specifies a second geometric element consisting of a central axis of said cone as said geometric reference. Three-dimensional shape measuring device. 前記特定部は、前記要素受付部により受け付けられた第1の幾何要素が球である場合に、該球の中心からなる第2の幾何要素を前記幾何基準として特定する、請求項1記載の三次元形状測定装置。2. The cubic according to claim 1, wherein when the first geometric element accepted by the element accepting unit is a sphere, the specifying unit specifies a second geometric element consisting of the center of the sphere as the geometric reference. Original shape measuring device. 処理装置により実行可能な三次元形状測定プログラムであって、
測定対象物の立体形状を示す立体形状データを生成する処理と、
前記生成された立体形状データに基づいて、測定対象物の立体形状を含む画像を立体形状画像として姿勢変更可能に表示部に表示させる処理と、
前記表示部に表示された立体形状画像上で、第1の幾何要素の指定を受け付ける処理と、
前記受け付けられた第1の幾何要素に基づいて、該第1の幾何要素と固有の関係を有しかつ該第1の幾何要素と異なる第2の幾何要素を幾何基準として特定する処理とを、前記処理装置に実行させ、
前記表示部に表示させる処理は、測定対象物の少なくとも一部分と前記特定された前記幾何基準との間の距離に応じて、前記立体形状画像のうちの前記少なくとも一部分に対応する部分の表示態様を設定する処理を含む、三次元形状測定プログラム。
A three-dimensional shape measurement program executable by a processing device,
a process of generating three-dimensional shape data indicating the three-dimensional shape of the object to be measured;
a process of displaying an image including the three-dimensional shape of the object to be measured as a three-dimensional shape image on the display unit based on the generated three-dimensional shape data, so that the posture can be changed;
a process of accepting designation of a first geometric element on the three-dimensional shape image displayed on the display unit;
a process of identifying, based on the received first geometric element, a second geometric element having a unique relationship with the first geometric element and different from the first geometric element as a geometric reference; causing the processing device to execute
The processing for displaying on the display unit changes the display mode of a portion of the three-dimensional shape image corresponding to the at least the portion according to the distance between the at least the portion of the object to be measured and the specified geometric reference. A three-dimensional shape measurement program including setting processing.
JP2018177169A 2018-09-21 2018-09-21 Three-dimensional shape measuring device and three-dimensional shape measuring program Active JP7154084B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2018177169A JP7154084B2 (en) 2018-09-21 2018-09-21 Three-dimensional shape measuring device and three-dimensional shape measuring program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2018177169A JP7154084B2 (en) 2018-09-21 2018-09-21 Three-dimensional shape measuring device and three-dimensional shape measuring program

Publications (2)

Publication Number Publication Date
JP2020046394A JP2020046394A (en) 2020-03-26
JP7154084B2 true JP7154084B2 (en) 2022-10-17

Family

ID=69901201

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2018177169A Active JP7154084B2 (en) 2018-09-21 2018-09-21 Three-dimensional shape measuring device and three-dimensional shape measuring program

Country Status (1)

Country Link
JP (1) JP7154084B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP7474636B2 (en) 2020-05-22 2024-04-25 株式会社キーエンス Image Inspection System
KR102465143B1 (en) * 2021-12-24 2022-11-10 (주)힉스컴퍼니 Method and apparatus for profiling for user convenience

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2017227611A (en) 2016-06-24 2017-12-28 株式会社キーエンス Three-dimensional measurement device
JP2018031747A (en) 2016-08-26 2018-03-01 株式会社キーエンス Three-dimensional measuring device
JP2018031746A (en) 2016-08-26 2018-03-01 株式会社キーエンス Three-dimensional measurement device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2017227611A (en) 2016-06-24 2017-12-28 株式会社キーエンス Three-dimensional measurement device
JP2018031747A (en) 2016-08-26 2018-03-01 株式会社キーエンス Three-dimensional measuring device
JP2018031746A (en) 2016-08-26 2018-03-01 株式会社キーエンス Three-dimensional measurement device

Also Published As

Publication number Publication date
JP2020046394A (en) 2020-03-26

Similar Documents

Publication Publication Date Title
US10508902B2 (en) Three-dimensional measurement device
US8885176B2 (en) Shape measuring device, shape measuring method, and shape measuring program
US10415958B2 (en) Measuring device
JP6029394B2 (en) Shape measuring device
US9970745B2 (en) Measurement target measuring program, measurement target measuring method, and magnifying observation device
US8743374B2 (en) Shape measuring device, shape measuring method, and shape measuring program
JP6112807B2 (en) Shape measuring device, shape measuring method, and shape measuring program
US10262431B2 (en) Three-dimensional measurement device
JP6691838B2 (en) measuring device
JP2018004279A (en) Measurement apparatus
JP6279048B2 (en) Shape measuring device
US11448500B2 (en) Three-dimensional shape measuring apparatus and method thereof utilizing point cloud data and top view map imaging
JP7154084B2 (en) Three-dimensional shape measuring device and three-dimensional shape measuring program
JP6161253B2 (en) Shape measuring device, shape measuring method, and shape measuring program
JP5956911B2 (en) Shape measuring device, shape measuring method, and shape measuring program
JP6695748B2 (en) measuring device
JP6736424B2 (en) Three-dimensional measuring device
JP2014055814A (en) Shape measuring device, shape measuring method, and shape measuring program
JP2017207520A (en) Shape measurement device, shape measurement method and shape measurement program
JP5956932B2 (en) Shape measuring device, shape measuring method, and shape measuring program
JP6025466B2 (en) Shape measuring device, shape measuring method, and shape measuring program
JP6695747B2 (en) measuring device
US11215449B2 (en) Three-dimensional shape measuring apparatus

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20210329

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20220322

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20220405

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20220530

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20221004

R150 Certificate of patent or registration of utility model

Ref document number: 7154084

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150