JP2007107927A - Length measuring device, length measuring method, and computer program for length measurement - Google Patents
Length measuring device, length measuring method, and computer program for length measurement Download PDFInfo
- Publication number
- JP2007107927A JP2007107927A JP2005296737A JP2005296737A JP2007107927A JP 2007107927 A JP2007107927 A JP 2007107927A JP 2005296737 A JP2005296737 A JP 2005296737A JP 2005296737 A JP2005296737 A JP 2005296737A JP 2007107927 A JP2007107927 A JP 2007107927A
- Authority
- JP
- Japan
- Prior art keywords
- measurement
- length
- dimensional shape
- plane
- measurement object
- 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.)
- Granted
Links
Images
Landscapes
- Length Measuring Devices By Optical Means (AREA)
- Image Processing (AREA)
- Image Analysis (AREA)
Abstract
Description
本発明は、測定対象物の長さを画像処理によって測定する長さ測定装置、長さ測定方法および長さ測定用コンピュータプログラムに関する。 The present invention relates to a length measurement device, a length measurement method, and a length measurement computer program that measure the length of a measurement object by image processing.
一般に、圧延加工などにより柱状または管状に成形された長尺材は、切断加工により所定の長さに切断されて製品となる。この場合、切断された長尺状の製品の長さを測定して同製品の長さが所定の長さ、すなわち製品仕様の規格内であるか否かが検査される。このような製品の長さの検査における長さ測定装置として、例えば下記特許文献1に示されているようなCCD(charge-coupled-device)を用いた装置が知られている。
特許文献1に記載の長さ測定装置においては、圧延機により圧延された後、所定の長さに切断された長尺状の製品の先端部を材料揃えストッパーに当接させて位置決めし、位置決めされた製品の先端部および後端部の上方にそれぞれ配置されたCCDカメラによって同製品の先端部および後端部を撮像している。この場合、各CCDカメラには、それぞれ製品の先端部および後端部を照らす照明が併設されており、各CCDカメラは、製品の先端部および後端部からの各反射光を受光して、光量に応じた電気信号を各画素ごとに画像処理装置に出力する。画像処理装置は、各CCDカメラから各画素ごとに出力された電気信号に基づいて製品の先端部および後端部の形状を表す2次元形状データを生成し同製品の先端部および後端部の各端部を検出して製品の長さを測定している。
In the length measuring device described in
しかしながら、このようなCCDカメラを用いた長さ測定装置においては、測定対象物(製品)の先端部および後端部における各端部を正確に検出するために、CCDカメラの受光面が測定対象物の各端部における各端面に対して直交するようにCCDカメラを配置しなければならない。このため、CCDカメラの配置位置が狭い範囲に限定される。このCCDカメラの配置作業は煩雑な作業であるとともに、定期的にCCDカメラの配置位置を校正する作業も必要であるという問題がある。また、画像処理装置によって生成される測定対象物の各端部の形状を表す画像データは測定対象物の外周を表す2次元画像データであるため、測定対象物の各端部の形状が曲がっている、または同各端部における端面が測定対象物の軸方向に対して傾いている場合には、CCDカメラの受光面に対する測定対象物の向きによって異なる端面形状の画像データが検出され、精度よく測定対象物の長さを測定することができないという問題があった。 However, in such a length measuring apparatus using a CCD camera, the light receiving surface of the CCD camera is the object to be measured in order to accurately detect each end of the front end and rear end of the measurement object (product). The CCD camera must be arranged so as to be orthogonal to each end face at each end of the object. For this reason, the arrangement position of the CCD camera is limited to a narrow range. This CCD camera placement work is a troublesome work, and there is a problem that it is necessary to periodically calibrate the CCD camera placement position. Further, since the image data representing the shape of each end of the measurement object generated by the image processing apparatus is two-dimensional image data representing the outer periphery of the measurement object, the shape of each end of the measurement object is bent. If the end face of each end is inclined with respect to the axial direction of the measurement object, image data with different end face shapes is detected depending on the orientation of the measurement object with respect to the light receiving surface of the CCD camera, and the accuracy is high. There was a problem that the length of the measurement object could not be measured.
本発明は上記問題に対処するためなされたもので、その目的は、測定対象物における各端部を撮像する撮像装置を厳格に位置決めして配置する必要がないとともに、測定対象物における各端部の形状が曲がっている、または同各端部における端面が測定対象物の軸方向に対して傾いている場合であっても撮像装置に対する同端面の向きに関わらず測定対象物の長さを精度よく測定することができる長さ測定装置、長さ測定方法および長さ測定用コンピュータプログラムを提供することにある。 The present invention has been made to cope with the above problem, and the object thereof is not to strictly position and arrange an imaging device for imaging each end of the measurement object, and each end of the measurement object. The length of the object to be measured is accurate regardless of the orientation of the end face with respect to the imaging device, even when the shape is bent or the end face at each end is inclined with respect to the axial direction of the object to be measured. An object of the present invention is to provide a length measuring device, a length measuring method, and a computer program for length measurement that can be measured well.
上記目的を達成するため、本発明の特徴は、測定対象物の長さを測定する長さ測定装置において、測定対象物を支持する支持手段と、測定対象物に向けて光を照射して同測定対象物からの反射光を用いて、同測定対象物における長さ測定の対象となる端面を含む端部を少なくとも含む測定対象物の表面の3次元形状を測定する3次元形状測定装置と、支持手段に支持される測定対象物における長さ測定の対象となる端面間の軸線と直交する平面を基準面として定義する基準面定義手段と、3次元形状測定装置の座標系内における所定の第1測定基準位置と、同3次元形状測定装置により測定される測定対象物の端部の反対側の端部における端面の位置を特定するための所定の第2測定基準位置との測定対象物の前記軸線に沿った距離を基準距離として記憶する記憶手段と、3次元形状測定装置によって測定された前記測定対象物の3次元表面形状を表す3次元形状データ群を生成する3次元形状データ群生成手段と、前記生成された3次元形状データ群を用いて、測定対象物における長さ測定の対象となる端面を定義する端面定義手段と、端面定義手段により定義された端面内の一点を含み、かつ基準面に平行な測定用平面を定義する測定用平面定義手段と、測定用平面定義手段により定義された測定用平面と記憶装置に記憶された基準距離とを用いて、測定対象物の長さを計算する長さ計算手段とを備えたことにある。 In order to achieve the above object, the present invention is characterized in that, in a length measurement device for measuring the length of a measurement object, a support means for supporting the measurement object and light irradiated toward the measurement object are the same. A three-dimensional shape measuring apparatus for measuring the three-dimensional shape of the surface of the measuring object including at least an end including the end face to be subjected to length measurement in the measuring object, using reflected light from the measuring object; Reference plane defining means for defining a plane perpendicular to the axis between the end faces of the measurement object supported by the support means as a reference plane, and a predetermined second in the coordinate system of the three-dimensional shape measuring apparatus. Of the measurement object with one measurement reference position and a predetermined second measurement reference position for specifying the position of the end surface at the end opposite to the end of the measurement object measured by the three-dimensional shape measurement apparatus The distance along the axis is the reference distance Storage means for storing as, three-dimensional shape data group generating means for generating a three-dimensional shape data group representing a three-dimensional surface shape of the measurement object measured by a three-dimensional shape measuring apparatus, and the generated three-dimensional An end face defining means for defining an end face to be subjected to length measurement in the measurement object using the shape data group, and a measuring plane including one point in the end face defined by the end face defining means and parallel to the reference plane A measuring plane defining means for defining the length, a length calculating means for calculating the length of the measurement object using the measuring plane defined by the measuring plane defining means and the reference distance stored in the storage device; It is in having.
この場合、前記第1測定基準位置は、3次元形状測定装置の座標系における座標原点であり、第2測定基準位置は、3次元形状測定装置により測定される測定対象物の端部とは反対側の端部を特定の位置に位置決めする位置にするとよい。ここで、前記特定の位置とは、例えば、ワークの一端に当接して同ワークを特定の位置に位置決めした場合における同一端の位置である。また、前記第1測定基準位置および第2測定基準位置に代えて、3次元形状測定装置を測定対象物の測定対象となる端面ごとに用意、すなわち、2つの3次元形状測定装置を用意し、第1測定基準位置を一方の3次元形状測定装置の座標系における座標原点とし、第2測定基準位置を他方の3次元形状測定装置の座標系における座標原点としてもよい。 In this case, the first measurement reference position is the coordinate origin in the coordinate system of the three-dimensional shape measurement apparatus, and the second measurement reference position is opposite to the end of the measurement object measured by the three-dimensional shape measurement apparatus. The end on the side may be positioned at a specific position. Here, the specific position is, for example, the position of the same end when the workpiece is positioned at a specific position by contacting one end of the workpiece. Further, in place of the first measurement reference position and the second measurement reference position, a three-dimensional shape measurement device is prepared for each end surface to be measured of the measurement object, that is, two three-dimensional shape measurement devices are prepared, The first measurement reference position may be the coordinate origin in the coordinate system of one three-dimensional shape measurement apparatus, and the second measurement reference position may be the coordinate origin in the coordinate system of the other three-dimensional shape measurement apparatus.
この場合、長さ測定装置における2つの3次元形状測定装置は、測定対象物に向けてそれぞれ光を照射して同測定対象物からの各反射光を用いて同測定対象物における長さ測定の対象となる2つの端面をそれぞれ含む各端部をそれぞれ少なくとも含む測定対象物の表面の3次元形状をそれぞれ測定し、前記基準面定義手段は、支持手段に支持される測定対象物における長さ測定の対象となる端面間の軸線と直交する平面を基準面として定義し、前記記憶手段は、2つの3次元形状測定装置のうち、一方の3次元形状測定装置の座標系内における所定の第1測定基準位置と、他方の3次元形状測定装置の座標系内における所定の第2測定基準位置との測定対象物の前記軸線に沿った距離を基準距離として記憶し、前記3次元形状データ群生成手段は、前記2つの3次元形状測定装置によってそれぞれ測定された測定対象物の3次元表面形状を表す3次元形状データ群をそれぞれ生成し、前記端面定義手段は、それぞれ生成された各3次元形状データ群を用いて、前記測定対象物における長さ測定の対象となる2つの端面をそれぞれ定義し、前記測定用平面定義手段は、端面定義手段により定義された各端面内の一点を含み、かつ基準面に平行な測定用平面をそれぞれ定義し、前記長さ計算手段は、前記一方の3次元形状測定装置に対応する測定用平面と第1測定基準位置との距離を第1距離として計算するとともに、前記他方の3次元形状測定装置に対応する測定用平面と第2測定基準位置との距離を第2距離として計算して、記憶装置に記憶された基準距離から前記第1距離および第2距離を減算することにより測定対象物の長さを計算するようにするとよい。 In this case, the two three-dimensional shape measurement apparatuses in the length measurement apparatus irradiate light toward the measurement object, and use the reflected light from the measurement object to measure the length of the measurement object. The three-dimensional shape of the surface of the measurement object including at least each end including each of the two target end surfaces is measured, and the reference surface definition means measures the length of the measurement object supported by the support means. A plane perpendicular to the axis between the end surfaces to be subjected to the measurement is defined as a reference plane, and the storage means is a predetermined first in the coordinate system of one of the three three-dimensional shape measuring devices. The distance along the axis of the measurement object between the measurement reference position and a predetermined second measurement reference position in the coordinate system of the other three-dimensional shape measuring apparatus is stored as a reference distance, and the three-dimensional shape data group generation hand Respectively generate three-dimensional shape data groups representing the three-dimensional surface shape of the measurement object respectively measured by the two three-dimensional shape measurement devices, and the end surface defining means generates each of the generated three-dimensional shape data. Two end surfaces to be length measurement targets in the measurement object are defined using a group, and the measurement plane definition means includes one point in each end face defined by the end face definition means, and a reference The measurement plane parallel to the surface is defined, and the length calculation means calculates the distance between the measurement plane corresponding to the one three-dimensional shape measuring apparatus and the first measurement reference position as the first distance. The distance between the measurement plane corresponding to the other three-dimensional shape measuring apparatus and the second measurement reference position is calculated as a second distance, and the first distance and the first distance and the reference distance stored in the storage device are calculated. The second distance may be such that calculates the length of the measurement object by subtracting.
また、第1測定基準位置および第2測定基準位置が前記のいずれの場合も端面定義手段により定義された各端面において前記測定用平面に含まれる一点を、同端面における中心点、同端面における重心点、同端面に面する3次元形状測定装置に対して最も近い点および同端面に面する3次元形状測定装置に対して最も遠い点のうちのいずれか1つにすればよい。 Further, in each of the cases where the first measurement reference position and the second measurement reference position are the above, one point included in the measurement plane at each end face defined by the end face defining means is a center point on the end face, and a center of gravity on the end face. Any one of a point, a point closest to the three-dimensional shape measuring apparatus facing the same end surface, and a point farthest from the three-dimensional shape measuring apparatus facing the same end surface may be used.
このように構成した本発明の特徴によれば、記憶装置に予め測定対象物における測定対象となる端面間の軸線に沿って第1測定基準位置と第2測定基準位置との距離を基準距離として記憶している。ここで、第1測定基準位置は3次元形状測定装置の座標系内に存在し、同第1測定基準位置と同3次元形状測定装置により測定される測定対象物の端面の位置とが特定される。また、第2測定基準位置は、測定対象物における測定対象となるもう一方の端面の位置を特定する位置である。そして、前記軸線に直交する基準面と平行な測定用平面を測定対象となる端面に定義し、同測定用平面と基準距離とを用いて測定対象物の長さを計算している。これによれば、測定対象となる端面に対して測定用平面が定義できれば、すなわち、測定対象となる端面を含む測定対象物の端部の表面形状を表す3次元形状データが取得できれば、常に測定対象物の軸線に沿って同測定対象物の長さが測定することができ、3次元形状測定装置の配置位置は限定されない。また、測定用平面は3次元データによって定義されるため、測定対象となる端面の形状および3次元形状測定装置に対する同端面の向きに寄らず一定の平面を定義することができる。これにより、精度の高い測定対象物の長さ測定が可能となる。 According to the feature of the present invention configured as described above, the distance between the first measurement reference position and the second measurement reference position along the axis between the end faces to be measured in the measurement object in the storage device is set as the reference distance. I remember it. Here, the first measurement reference position exists in the coordinate system of the three-dimensional shape measurement apparatus, and the first measurement reference position and the position of the end face of the measurement object measured by the three-dimensional shape measurement apparatus are specified. The In addition, the second measurement reference position is a position that specifies the position of the other end face that is the measurement target in the measurement target. Then, a measurement plane parallel to the reference plane orthogonal to the axis is defined as an end surface to be measured, and the length of the measurement target is calculated using the measurement plane and the reference distance. According to this, if a measurement plane can be defined for the end surface to be measured, that is, if 3D shape data representing the surface shape of the end of the measurement object including the end surface to be measured can be acquired, measurement is always performed. The length of the measurement object can be measured along the axis of the object, and the arrangement position of the three-dimensional shape measurement apparatus is not limited. Further, since the measurement plane is defined by three-dimensional data, a constant plane can be defined regardless of the shape of the end face to be measured and the direction of the end face with respect to the three-dimensional shape measuring apparatus. Thereby, it is possible to measure the length of the measurement object with high accuracy.
また、上記長さ測定装置において、さらに、前記測定用平面定義手段は、3次元形状データ群のうち測定対象物の端部における外周面の表面形状を表す3次元データを用いて、同測定対象物における中心軸を計算する中心軸計算手段と、端面定義手段により定義された端面と中心軸計算手段により計算された中心軸との交点を前記測定対象物の端面における中心点として計算する端面中心計算手段とを備え、端面中心計算手段にて計算された端面の中心点を含むとともに前記基準面に平行な平面を測定用平面として定義するようにしたことにある。これによれば、測定対象である端面が中心軸に対して完全に垂直でない場合や端面が若干曲がっている場合であっても、同端面と測定対象物の中心軸との交点に基づいて測定用平面が定義されるため、同端面における正確な中心点に基づいて測定用平面を定義することができる。 Further, in the length measuring apparatus, the measurement plane defining means further uses the three-dimensional data representing the surface shape of the outer peripheral surface at the end of the measurement object in the three-dimensional shape data group, A center axis calculating means for calculating the center axis of the object, and an end face center for calculating an intersection of the end surface defined by the end face defining means and the center axis calculated by the center axis calculating means as the center point of the end face of the measurement object And calculating means for defining a plane including the center point of the end face calculated by the end face center calculating means and parallel to the reference plane as a measuring plane. According to this, even when the end surface to be measured is not completely perpendicular to the central axis or when the end surface is slightly bent, the measurement is based on the intersection of the end surface and the central axis of the measuring object. Since the work plane is defined, the measurement plane can be defined based on the accurate center point on the end face.
また、本発明の他の特徴は、上記長さ測定装置において、さらに、前記端面定義手段により定義された端面の前記基準面に対する角度が所定の範囲内であるとき、測定対象物の長さ測定が可能であると判定する長さ測定可否判定手段を有し、長さ計算手段は、長さ測定可否判定手段により測定対象物の長さ測定が可能と判定されたとき、同測定対象物の長さを計算するようにしたことにある。これによれば、測定対象である端面が測定対象物の軸線に対して垂直から所定の範囲内の角度でずれている場合のみ、同測定対象物の長さ測定を行うことができ、測定した測定対象物間の長さ比較をより正確に行うことができる。 According to another aspect of the present invention, in the length measuring apparatus, when the angle of the end surface defined by the end surface defining means with respect to the reference surface is within a predetermined range, the length of the measurement object is measured. A length measurement availability determination unit that determines that the measurement object is capable of being measured when the length measurement availability determination unit determines that the length measurement of the measurement object is possible. The length is calculated. According to this, the length measurement of the measurement object can be performed and measured only when the end face as the measurement object is deviated from the perpendicular to the axis of the measurement object by an angle within a predetermined range. The length comparison between measurement objects can be performed more accurately.
また、本発明の他の特徴は、上記長さ測定装置において、さらに、3次元形状データ群のうち測定対象物における端部の表面形状を表す3次元データを用いて、同測定対象物における端部の曲がりの有無を判定する曲がり判定手段と、曲がり判定手段により測定対象物における端部の曲がりが有りと判定されたとき、前記測定用平面定義手段にて定義された測定用平面を、前記測定対象物における端部が直線状である場合における測定用平面に補正する測定用平面補正手段とを備え、前記長さ計算手段は、測定用平面定義手段により定義された測定用平面または前記測定用平面補正手段により補正した測定用平面と前記記憶装置に記憶された基準距離とを用いて、測定対象物の長さを計算するようにしたことにある。これによれば、測定対象物における端部が曲がっている場合であっても、同端部の曲がりがなく直線状に形成されている場合における測定対象物の長さを測定することができる。すなわち、同端部が曲がり変形した場合であっても測定対象物本来の長さを測定することができる。 Another feature of the present invention is that the length measurement apparatus further includes an end of the measurement object using three-dimensional data representing a surface shape of the end of the measurement object in the three-dimensional shape data group. Bending determination means for determining the presence or absence of bending of the part, and when the bending determination means determines that there is bending at the end of the measurement object, the measurement plane defined by the measurement plane definition means is A measurement plane correcting means for correcting the measurement object to a measurement plane when the end of the measurement object is linear, and the length calculation means is the measurement plane defined by the measurement plane definition means or the measurement The length of the measurement object is calculated using the measurement plane corrected by the plane correction means and the reference distance stored in the storage device. According to this, even when the end portion of the measurement object is bent, the length of the measurement object in the case where the end portion is not bent and is formed in a straight line can be measured. That is, the original length of the measurement object can be measured even when the same end is bent and deformed.
また、本発明の他の特徴は、上記長さ測定装置において、さらに、前記支持手段に支持された複数の測定対象物に対応して生成される3次元形状データ群を、同複数の測定対象ごとに分類する3次元形状データ分類手段を有し、端面定義手段は、前記複数の測定対象物ごとに長さ測定の対象となる端面を定義し、測定用平面定義手段は、前記複数の測定対象物ごとに測定用平面を定義し、長さ計算手段は、前記複数の測定対象物ごとに測定対象物の長さを測定するようにしたことにある。これによれば、複数の測定対象物を支持手段に支持させて、同時に複数の測定対象物の長さ測定を行うことができる。これにより、測定対象物の長さ測定を効率的に行うことができる。 Another feature of the present invention is that, in the length measurement apparatus, a three-dimensional shape data group generated corresponding to a plurality of measurement objects supported by the support means is further measured. 3D shape data classification means for classifying each of the plurality of measurement objects, the end face definition means defines an end face to be subjected to length measurement for each of the plurality of measurement objects, and the measurement plane definition means includes the plurality of measurement objects. The measurement plane is defined for each object, and the length calculation means is configured to measure the length of the measurement object for each of the plurality of measurement objects. According to this, a plurality of measurement objects can be supported by the support means, and the lengths of the plurality of measurement objects can be measured simultaneously. Thereby, the length measurement of a measuring object can be performed efficiently.
また、本発明は装置の発明として実施できるばかりでなく、方法の発明およびコンピュータプログラムの発明としても実施できるものである。 The present invention can be implemented not only as an apparatus invention but also as a method invention and a computer program invention.
以下、本発明に係る長さ測定装置の一実施形態について図面を参照しながら説明する。図1は、本発明の実施形態に係る長さ測定装置の基本構成を示す概略図である。 Hereinafter, an embodiment of a length measuring apparatus according to the present invention will be described with reference to the drawings. FIG. 1 is a schematic diagram showing a basic configuration of a length measuring apparatus according to an embodiment of the present invention.
この長さ測定装置は、丸棒状の測定対象物(以下、「ワーク」という)WKの両端部側をそれぞれ支持する四角柱状の2つの支持台10を備えている。この支持台10は、本発明に係る支持手段に対応する。2つの支持台10は、互いに同一の形状に形成されており、詳しくは図2に示すように、四角柱状に形成された本体部10aの上面に、同本体部10aの長手方向に沿って等間隔に3つの支持部10bが形成されている。これら3つの支持部10bは、それぞれ本体部10aの長手方向に直交する方向にV溝状に形成されており、支持台10上に載置されるワークWKを安定的に支持する。これら2つの支持台10は、後述する3次元形状測定装置20A,20Bの測定対象空間内に互いに平行に配置され、1つのワークWKを2つの支持台10にて水平状態に支持する。なお、本実施形態においては、同時に3つのワークWKの長さ測定を行うことができるように、3つの支持部10bを支持台10上に設けるようにしたが、この支持部10bの数は、同時に測定するワークWKの数に応じて適宜変更するようにすればよい。
This length measuring apparatus includes two square columnar support bases 10 that respectively support both ends of a round bar-shaped measurement object (hereinafter referred to as “workpiece”) WK. This
これらの支持台10の各斜め上方には、支持台10に向けて異なる位置、具体的には、支持台10上に載置されるワークWKの2つの各端面Sa,Sbに向けてそれぞれ配置された3次元形状測定装置20A,20Bが設けられている。これらの3次元形状測定装置20A,20Bは、光を用いて支持台10上に載置されるワークWKの端面Sa,Sbを含む各端部の3次元形状を測定するもので、同測定結果を表す3次元表面形状測定情報を出力するとともに、同ワークWK表面からの反射光の光量を測定して同測定結果を表す反射光量測定情報を出力する。これらの3次元形状測定装置20A,20Bとしては、光を用いて物体の3次元表面形状を測定して同測定した3次元表面形状を表す信号を出力するとともに、同物体表面からの反射光量を表す信号を出力するものであれば、いかなる3次元形状測定装置をも利用できる。なお、反射光量に代えて物体の反射率または色を識別するものでもよい。本実施形態においては、レーザ光を用いて3角測量法に従って物体の3次元表面形状を測定するとともに、同物体表面からの反射光量を測定するものを簡単に紹介しておく。
Disposed above each of the support bases 10 at different positions toward the
この3次元形状測定装置においては、レーザ光源から物体に向けて出射されるレーザ光の進行方向にほぼ垂直な仮想平面を想定するとともに、同仮想平面上にて互いに直交するX軸方向およびY軸方向に沿って分割した多数の微小エリアを想定する。そして、3次元形状測定装置は、前記多数の微小エリアにレーザ光を順次照射し、物体からの反射光によって前記微小エリアが規定する物体表面までの距離をZ軸方向距離として順次検出して、物体の表面を微小エリアずつに分割した各分割エリア位置を表すX,Y,Z座標に関する情報を得て、同3次元形状測定装置に面した物体表面の形状を測定するものである。また、この3次元形状測定装置は、前記物体表面の形状を測定すると同時に、物体からの反射光を前記微小エリアごとに検出して、前記微小エリアごとの反射光の光量を測定するものである。 In this three-dimensional shape measuring apparatus, a virtual plane that is substantially perpendicular to the traveling direction of laser light emitted from a laser light source toward an object is assumed, and an X-axis direction and a Y-axis that are orthogonal to each other on the virtual plane. Assume a large number of minute areas divided along the direction. Then, the three-dimensional shape measuring apparatus sequentially irradiates the plurality of minute areas with laser light, sequentially detects the distance to the object surface defined by the minute areas by reflected light from the object as a Z-axis direction distance, Information on X, Y, and Z coordinates representing each divided area position obtained by dividing the surface of the object into minute areas is obtained, and the shape of the object surface facing the three-dimensional shape measuring apparatus is measured. In addition, this three-dimensional shape measuring apparatus measures the shape of the object surface and simultaneously detects the reflected light from the object for each minute area and measures the amount of reflected light for each minute area. .
したがって、この3次元形状測定装置は、出射レーザ光の向きをX軸方向に変化させるX軸方向走査器と、出射レーザ光の向きをY軸方向に変化させるY軸方向走査器と、物体表面にて反射された反射レーザ光を受光して物体表面までの距離および同物体表面からの反射光量を検出する光検出器とを備えている。X軸方向走査器およびY軸方向走査器としては、レーザ光源からの出射レーザ光の光路をX軸方向およびY軸方向に独立に変化させ得る機構であればよく、例えば、レーザ光源自体をX軸方向およびY軸方向の軸線回りに電動モータによって回転させたり、出射レーザ光の光路に設けられてその方向を変更するガルバノミラーをX軸方向およびY軸方向の軸線回りに電動モータによって回転させる機構を利用できる。光検出器としては、前記出射レーザ光の光路に追従して回転し、物体表面にて反射された反射レーザ光を集光する結像レンズおよび同集光したレーザ光を受光するCCDなどの複数の受光素子を一列に配置させたラインセンサからなり、ラインセンサによる反射レーザ光の受光位置によって物体表面までの距離を検出するとともに、同反射レーザ光の受光幅によって、同物体表面からの反射光の光量を検出する。 Therefore, this three-dimensional shape measuring apparatus includes an X-axis direction scanner that changes the direction of the emitted laser light in the X-axis direction, a Y-axis direction scanner that changes the direction of the emitted laser light in the Y-axis direction, and an object surface. And a photodetector that detects the distance to the object surface and the amount of reflected light from the object surface by receiving the reflected laser beam reflected by the. The X-axis direction scanner and the Y-axis direction scanner may be any mechanism that can independently change the optical path of the laser beam emitted from the laser light source in the X-axis direction and the Y-axis direction. It is rotated by an electric motor around the axial lines in the axial direction and the Y-axis direction, or a galvanometer mirror provided in the optical path of the emitted laser light and changing its direction is rotated by an electric motor around the axes in the X-axis direction and the Y-axis direction. The mechanism is available. As the photodetector, a plurality of imaging lenses such as an imaging lens that collects the reflected laser beam that rotates following the optical path of the emitted laser beam and is reflected on the object surface, and a CCD that receives the collected laser beam, etc. The line sensor is arranged in a line, and the distance to the object surface is detected by the position of the reflected laser beam received by the line sensor, and the reflected light from the object surface is detected by the light receiving width of the reflected laser beam. The amount of light is detected.
したがって、このような3次元形状測定装置は、物体の表面を微小エリアずつに分割した各分割エリア位置を表すX,Y,Z座標に関する情報として、X軸方向走査器による出射レーザ光の基準方向に対するX軸方向への傾きθx、Y軸方向走査器による出射レーザ光の基準方向に対するY軸方向への傾きθy、光検出器による物体表面までの距離Lz、および同光検出器による物体表面からの反射光量Lzsとが、前記仮想したX軸方向およびY軸方向に沿って分割した多数の微小エリアごとに出力される。より具体的には、X軸およびY軸方向への傾きθx,θyは、電動モータの基準位置からの回転角である。また、物体表面までの距離Lzは、ラインセンサにおける反射レーザ光の受光位置であり、物体表面からの反射光量Lzsは、ラインセンサにおける反射レーザ光の受光幅である。なお、3次元形状測定装置は、後述するコントローラ31からの指令により、前記X軸方向およびY軸方向に沿って分割した多数のエリアごとの出力以外に、物体表面からの反射光量Lzsが急激に変化したとき、前記X軸方向への傾きθx、Y軸方向への傾きθy、物体表面までの距離Lzおよび物体表面からの反射光量Lzsが出力されるようになっている。
Therefore, such a three-dimensional shape measuring apparatus uses the reference direction of the laser beam emitted by the X-axis direction scanner as information on the X, Y, and Z coordinates representing the divided area positions obtained by dividing the surface of the object into minute areas. The tilt θx in the X-axis direction with respect to the angle, the tilt θy in the Y-axis direction with respect to the reference direction of the laser beam emitted by the Y-axis direction scanner, the distance Lz to the object surface by the photodetector, and the object surface by the photodetector Is output for each of a large number of minute areas divided along the virtual X-axis direction and Y-axis direction. More specifically, the inclinations θx and θy in the X-axis and Y-axis directions are rotation angles from the reference position of the electric motor. The distance Lz to the object surface is the light receiving position of the reflected laser light at the line sensor, and the reflected light amount Lzs from the object surface is the light receiving width of the reflected laser light at the line sensor. Note that the three-dimensional shape measuring apparatus has an abrupt amount of reflected light Lzs from the object surface in addition to the output for each of a large number of areas divided along the X-axis direction and the Y-axis direction according to a command from the
これらの3次元形状測定装置20A,20Bには、コントローラ31および3次元画像データ処理装置32がそれぞれ接続されている。コントローラ31は、キーボードからなる入力装置33からの指示に従って、3次元形状測定装置20A,20Bの作動を制御する。また、コントローラ31は、入力装置33からの指示に従って3次元画像データ処理装置32の作動を制御するとともに、同入力装置33にて入力されたデータを3次元画像データ処理装置32に供給する。
A
3次元画像データ処理装置32は、コンピュータ装置によって構成されて図3、図5、図6、図8、図12、図13、図16および図18の各プログラムの実行により、3次元形状測定装置20A,20Bからの3次元画像に関する情報、具体的には、X軸方向への傾きθx、Y軸方向への傾きθy、物体表面までの距離Lzを入力して、測定対象空間内に位置する物体の3次元画像データを生成し、同生成した3次元画像データを用いてワークWKの長さを計算する。また、3次元画像データ処理装置32は、物体表面からの反射光量Lzsを入力して、測定対象空間内に位置する物体表面の前記微小エリアごとの反射光量を算出する。
The three-dimensional image
この3次元画像データ処理装置32には、表示装置34が接続されている。表示装置34は、液晶ディスプレイ、プラズマディスプレイまたはCRTディスプレイなどからなり、3次元画像データ処理装置32によって実行される各プログラムの実行過程および同各プログラムの実行により計算されるワークWKの長さを表示する。
A display device 34 is connected to the three-dimensional image
次に、上記のように構成した長さ測定装置の作動について説明する。作業者は、入力装置33を操作してワークWKの長さ測定を指示する。このワークWKの長さ測定の指示は、コントローラ31を介して3次元画像データ処理装置32に伝達され、3次元画像データ処理装置32は、図3に示すワーク長測定プログラムの実行をステップS100にて開始して、ステップS102にて、基準距離L0を計算する。基準距離L0は、図4に示すように、ワークWKの長さを計算するための基準となる長さであり、支持台10上にセットされる基準物体40を測定することにより計算される。基準物体40は、断面形状が真円状に形成された丸棒体であり、基準物体40の両端の各端面40a,40bが同基準物体40の軸線に対して直交した形状となっている。この基準物体40の長さL40は、事前に作業者により認識されており、3次元画像データ処理装置32の記憶装置に予め記憶されている。また、基準物体40の2つの端面40a,40bにレーザ光を照射した際における同端面40a,40bからそれぞれ反射される反射光の光量も事前に作業者により認識されており、3次元画像データ処理装置32の記憶装置に反射光量データとして予め記憶されている。
Next, the operation of the length measuring apparatus configured as described above will be described. The operator operates the
作業者は、基準物体40を支持台10の各支持部10b上に載置、具体的には、基準物体40の各端部を2つの各支持台10における各支持部10b上に載置して3次元形状測定装置20A,20Bの各測定対象空間内に基準物体40を配置する。この場合、基準物体40の端面40aは3次元形状測定装置20Aに面するとともに、同基準物体40の端面40bは3次元形状測定装置20Bに面した状態で配置される。なお、基準物体40は、支持台10における3つの支持部10bのうち、いずれの支持部10b上に載置してもよいが、2つの支持台10の間において互いに対応する支持部10bに載置する。すなわち、基準物体40は、支持台10の長手方向に直交した状態で載置される。
The operator places the
一方、3次元画像データ処理装置32は、図5に示す基準距離計算サブプログラムの実行をステップ200にて開始して、ステップS202にて、3次元形状測定装置20A,20Bによる測定情報の入力を待つ。3次元形状測定装置20A,20Bは、コントローラ31によって制御され、測定対象空間内に配置された基準物体40(基準物体40の周辺に存在する物体、例えば支持台10などを含む)の3次元表面形状の測定を開始するとともに、基準物体40の表面形状を表す情報および基準物体40の表面からの反射光の光量を表す情報を3次元画像データ処理装置32にそれぞれ出力する。すなわち、基準物体40の表面を微小エリアずつに分割した各分割エリア位置を表すX,Y,Z座標に関する情報(具体的には、傾きθx,θyおよび距離Lz)および基準物体40の物体表面からの反射光の光量に関する情報(具体的には、反射光量Lzs)をそれぞれ出力する。したがって、3次元画像データ処理装置32は、ステップS202にて、3次元形状測定装置20A,20Bから出力された前記X,Y,Z座標に関する情報および基準物体40の物体表面からの反射光の光量に関する情報を入力する。
On the other hand, the three-dimensional image
次に、3次元画像データ処理装置32は、ステップS204にて、前記入力した3次元形状測定装置20A,20BからのX,Y,Z座標に関する情報および基準物体40の物体表面からの反射光の光量に関する情報に基づいて、測定対象空間内に存在する基準物体40の3次元表面形状を表す3次元形状データ群を3次元形状測定装置20A,20Bごとにそれぞれ計算する。すなわち、3次元形状測定装置20A,20Bによって規定される2種類の各座標系A,Bでの基準物体40の表面を微小エリアずつに分割した各分割エリア位置をそれぞれ3次元で表現する3次元座標データと、この3次元座標データに前記微小エリアずつに分割した各分割エリア位置ごとの反射光の光量を表す反射光量データを対応させた多数のデータセットの集合を計算し、2組の3次元形状データ群Da,Dbを得る。この2組の3次元形状データ群Da,Dbは各座標系A,Bにおける各座標値X,Y,Zおよび各反射光量Qで表される。具体的には、3次元形状データ群Da,Dbを構成する各データセットは、(xa,ya,za,qa),(xb,yb,zb,qb)でそれぞれ表される。
Next, in step S204, the three-dimensional image
次に、3次元画像データ処理装置32は、ステップS206にて、各座標系A,Bに対応した3次元形状データ群Da,Dbのそれぞれに対して、3次元形状測定装置20A,20Bにそれぞれ面した基準物体40の端面40a,40bをそれぞれ表す2つのサブ3次元形状データ群を抽出する。具体的には、3次元画像データ処理装置32に予め記憶されている基準物体40の端面40a,40bに関する反射光量データと一致するまたは所定の判別値内にある前記3次元形状データ群Da,Dbを構成するデータセット中の反射光量Q(qa,qb)ごとに、各座標値(xa,ya,za),(xb,yb,zb)を分類する。この場合、3次元形状測定装置20A,20Bにそれぞれ面した基準物体40の端面40aまたは40bに対応して、2組のサブ3次元形状データ群Dak,Dbkがそれぞれ生成される。
Next, in step S206, the three-dimensional image
次に、3次元画像データ処理装置32は、ステップS208にて、基準物体40の各端面40a,40bをそれぞれ含む平面Psa,Psbを定義する。具体的には、前記2組のサブ3次元形状データ群Dak,Dbkにおける各座標値(xa,ya,za),(xb,yb,zb)を下記式1に示す平面の式に代入する。なお、各座標値(xa,ya,za),(xb,yb,zb)は、下記式1におけるx,y,zにそれぞれ対応する。
a・x+b・y+c・z+1=0 …式1
Next, in step S208, the three-dimensional image
a * x + b * y + c * z + 1 = 0
すなわち、各サブ3次元形状データ群ごとに同サブ3次元形状データ群を構成する点群(xi,yi,zi)(i=1〜n)を上記式1の左辺に代入して、その値の2乗和が最小となるa,b,cを最小2乗法を用いて計算し、同サブ3次元形状データ群が表す基準物体40の2つの端面40a,40bをそれぞれ含む平面Psa,Psbの式をそれぞれ求める。そして、3次元画像データ処理装置32は、計算した平面Psa,Psbに対してそれぞれ所定の範囲内に属する3次元形状データ群Da,Db、すなわち、3次元形状測定装置20A,20Bによって測定されたすべての3次元座標データを構成する各座標値(xa,ya,za),(xb,yb,zb)を計算した平面Psa,Psbの式の左辺に代入し、値が「0」から所定の範囲にあるデータを上記式1に代入して、前記と同様に最小2乗法を用いて平面を再度計算し、同計算した平面を新たな平面Psa,Psbとする。これにより、前記ステップS208における端面40a,40bを表すサブ3次元形状データ群Dak,Dbkの抽出処理から漏れた端面40a,40bを表す3次元形状データ群Da,Dbをも用いて、より精度よく端面40a,40bを含む平面Psa,Psbを定義することができる。
That is, for each sub three-dimensional shape data group, the point group (xi, yi, zi) (i = 1 to n) constituting the sub three-dimensional shape data group is substituted into the left side of the
次に、3次元画像データ処理装置32は、ステップS210にて、基準距離L0を計算する。具体的には、前記ステップS208にてそれぞれ定義された平面Psa,Psbから、同平面Psa,Psbにそれぞれ面する3次元形状測定装置20A,20Bの各座標系A,Bの原点Oa,Obまでの距離La,Lbを計算し、記憶装置に予め記憶されている基準物体40の長さL40に同計算した距離La,Lbを加算して基準距離L0を計算する。この場合、距離Laは、3次元形状測定装置20Aに関する座標系Aにおける原点Oaを通り平面Psaに直交する直線の長さである。また、距離Lbは、3次元形状測定装置20Bに関する座標系Bにおける原点Obを通り平面Psbに直交する直線の長さである。この基準距離L0は、平面Psa,Psbに直交する直線、すなわち支持台10上に配置されるワークWKの軸線と垂直な平面において3次元形状測定装置20A,20Bの各座標系A,Bの原点Oa,Obを含む平面間の距離である。なお、3次元形状測定装置20A,20Bの各座標系A,Bの原点Oa,Obは、本発明に係る第1測定基準位置および第2測定基準位置にそれぞれ対応する。次に、3次元画像データ処理装置32は、同計算した基準距離L0を記憶装置に記憶した後、ステップS212にて、基準距離計算サブプログラムの実行を終了して、ワーク長測定プログラムにおけるステップS104に戻る。なお、以前に計算された基準距離L0が変更されない場合には、このステップS102による基準距離の計算処理をスキップしてもよい。
Next, the three-dimensional
次に、3次元画像データ処理装置32は、図3に示すステップS104にて、基準面Pka,Pkbを定義する。具体的には、3次元画像データ処理装置32は、図6に示す基準面定義サブプログラムの実行をステップS300にて開始して、ステップS302にて、基準面設定治具50に関する情報の入力を待つ。この基準面設定治具50に関する情報の入力に際して作業者は、図7に示すように、支持台10上に載置された基準物体40における一方の端部上(図4において右側)および支持台10上に基準面設定治具50をセットする。
Next, the three-dimensional image
基準面設定治具50は、基準面Pka,Pkbを定義するための治具であり、直方体状に形成された本体部50aの下面中央部に、支持台10の支持部10bと同様のV溝状の溝部50bを有するとともに、同本体部50aの両端部における上面から下面に貫通する基準孔50c,50dをそれぞれ有して形成されている。溝部50bは、本体部50aの長手方向に直交する方向に形成されており、丸棒状の基準物体40上において支持台10の長手方向に基準面設定治具50を位置決めする。また、基準孔50c,50dは、真円状に形成されており互いの孔中心を結ぶ直線が溝部50bと直交、すなわち基準物体40の軸線と直交するように設けられているとともに、基準孔50cと基準孔50dとが互いに異なる孔径、具体的には、基準孔50cが基準孔50dより大きな孔径に形成されている。このように基準孔50cと基準孔50dとを異なる孔径としたのは、基準面Pka,Pkbを定義した際、同各基準面Pka,Pkb内における方向を設定し易くするためである。したがって、基準面Pka,Pkb内における方向を設定する必要のない場合には、基準孔50cおよび基準孔50dの各孔径を同一としてもよい。
The reference
そして、作業者は、入力装置33を操作して基準面設定治具50に関する情報を入力する。基準面設定治具50に関する情報とは、本実施形態においては、基準面設定治具50における基準孔50c,50dの各孔径、基準面設定治具50にレーザ光を照射した際における本体部50aの上面から反射される反射光の光量および基準面設定治具50をセットした基準物体40における一方の端部(図4において右側)を指定するデータである。この基準面設定治具50に関する入力情報は、コントローラ31を介して3次元画像データ処理装置32に供給される。なお、以前に入力された基準孔50c,50dの各孔径および本体部50aの上面からの反射光の光量が変更されない場合には、同孔径および反射光量の入力を省略してもよい。
Then, the operator operates the
このステップS302の処理後、3次元画像データ処理装置32は、ステップS304にて、3次元形状測定装置20Aまたは20Bによる測定情報の入力を待つ。この場合、3次元画像データ処理装置32は、前記ステップS302にて入力された基準面設定治具50をセットした基準物体40における一方の端部(図4において右側)に対応する3次元形状測定装置20A,20B、すなわち、3次元形状測定装置20Aによる測定をコントローラ31に指示し、さらに、3次元形状測定装置20Aが物体表面からの反射光量が急激に変化したときにもデータの出力を行う測定をコントローラ31に指示する。これにより、コントローラ31は、同指示された3次元形状測定装置20Aの作動を制御して基準面設定治具50(基準物体40および支持台10を含む)の3次元立体形状の測定を開始し、基準面設定治具50の表面形状を表す情報および基準面設定治具50の表面からの反射光の光量を表す情報が3次元画像データ処理装置32に入力される。すなわち、基準面設定治具50の表面を微小エリアずつに分割した各分割エリア位置を表すX,Y,Z座標に関する情報、物体表面からの反射光量が急激に変化したときの位置を表すX,Y,Z座標に関する情報および基準面設定治具50の物体表面からの反射光の光量に関する情報からなる3次元形状データ群Daが入力される。この3次元形状データ群Daを構成するデータセットは、(xa,ya,za,qa)で表される。また、物体表面からの反射光量が急激に変化したときの3次元形状データ群Daは、それ以外の3次元形状データ群Daから識別されている。
After the processing in step S302, the three-dimensional image
次に、3次元画像データ処理装置32は、ステップS306にて、前記入力した3次元形状データ群Daから、基準面設定治具50の上面を表すサブ3次元形状データ群を抽出する。具体的には、ステップS302にて3次元画像データ処理装置32に入力された基準面設定治具50の上面に関する反射光量データと一致するまたは所定の判別値内にある前記3次元形状データ群Daを構成するデータセット中の反射光量Q(qa)ごとに、各座標値(xa,ya,za)を分類する。これにより、基準面設定治具50の上面を表すサブ3次元形状データ群Dasが抽出される。
Next, in step S306, the 3D image
次に、3次元画像データ処理装置32は、ステップS308にて、基準面設定治具50の上面を含む平面Psを定義する。具体的には、サブ3次元形状データ群Dasにおける各座標値(xa,ya,za)を前記式1に代入する。すなわち、サブ3次元形状データ群を構成する点群(xi,yi,zi)(i=1〜n)を前記式1の左辺に代入して、その値の2乗和が最小となるa,b,cを最小2乗法を用いて計算し、同サブ3次元形状データ群が表す基準面設定治具50の上面を含む平面Psの式を求める。そして、3次元画像データ処理装置32は、計算した平面Psに対して所定の範囲内に属する3次元形状データ群Daを構成する各座標値(xa,ya,za)を計算した平面Psの式の左辺に代入し、値が「0」から所定の範囲内にあるデータを前記式1に代入して、前記と同様に最小2乗法を用いて平面を再度計算し、同計算した平面を新たな平面Psとする。これにより、前記ステップS306における基準面設定治具50の上面を表すサブ3次元形状データ群の抽出処理から漏れた同基準面設定治具50の上面を表す3次元形状データ群Daを用いて、より精度よく基準面設定治具50の上面を含む平面Psを定義することができる。
Next, the three-dimensional image
次に、3次元画像データ処理装置32は、ステップS310にて、基準孔50c,50dの中心座標を計算する。具体的には、図8に示す基準孔中心計算サブプログラムの実行をステップS400にて開始する。3次元画像データ処理装置32は、ステップS402にて、前記ステップ302にて入力された基準孔50c,50dの孔径を用いて、単位ブロックおよび探索ブロックのサイズ設定処理を実行する。単位ブロックは、基準孔50c,50dの存在位置を特定するために探索ブロックを移動させる最小のブロックであり、本実施形態では正方形に形成されているが、長方形などの他の形状でもよい。また、単位ブロックのサイズは、基準孔50c,50dの開口部の一部が存在することを確認可能である程度に小さく設定される。本実施形態においては、大径の基準孔50cを縦横8個ずつの単位ブロック内において包含するためのサイズに設定される。
Next, the three-dimensional image
探索ブロックは、基準孔50c,50dをその内部に包含する位置を特定するために利用されるもので、本実施形態では正方形に形成されるが、長方形などの他の形状でもよい。また、この探索ブロックのサイズは、基準孔50c,50dのすべてを包含できるとともに、なるべく小さく設定される。すなわち、基準孔50cは、基準孔50dよりも大きいため、探索ブロックのサイズは基準孔50cのすべてを包含できるサイズに設定される。具体的には、単位ブロックの縦横8個ずつの大きさを探索ブロックのサイズとする。ただし、この基準孔50c,50dを包含できるとは、基準孔50c,50dの一部でも含む単位ブロックのすべてを含むことを意味する。なお、本実施形態においては、ステップS302において、単位ブロックおよび探索ブロックのサイズを設定するようにしたが、基準孔50c,50dの変更がなければ予め設定されている単位ブロックおよび探索ブロックのサイズをそのまま利用すればよいので、このステップS402の処理は不要である。
The search block is used for specifying a position including the reference holes 50c and 50d in the inside thereof. In the present embodiment, the search block is formed in a square, but may be in other shapes such as a rectangle. The size of this search block can be set to be as small as possible while including all of the reference holes 50c and 50d. That is, since the
次に、3次元画像データ処理装置32は、ステップS404にて探索領域のブロック化処理を実行する。この探索領域のブロック化処理は、ステップS308にて定義した平面Ps内で基準孔50c,50dの含まれる可能性のある領域を単位ブロックで分割する処理である。具体的には、3次元形状データ群Daの中から物体表面からの反射光量が急激に変化したときの3次元形状データ群Daを抽出し、平面Ps内において同抽出された3次元形状データ群Daが存在する領域を単位ブロックで平面的に分割する。すなわち、基準面設定治具50の上面における周縁部および基準孔50c,50dの開口部をそれぞれ表す3次元形状データ群Daのみを抽出し、同抽出された3次元形状データ群Daが存在する範囲で平面Psを単位ブロックで分割する。分割は、平面Psと平行に単位ブロックを並べていく方法で行う。図9は、抽出された3次元形状データ群Daが存在する平面Ps内の領域に対して本処理を実行した結果を示す概念図である。図9は、基準面設定治具50を上方から見た状態を示しており同図における破線は基準面設定治具50の上面における周縁部および基準孔50c,50dの開口部を示し、二点鎖線は平面Psを示している。
Next, the three-dimensional image
次に、3次元画像データ処理装置32は、ステップS406にて、前記ステップS404の処理によって分割した各単位ブロックごとに3次元形状データ群Daが存在するか否かを調べる。そして、3次元形状データ群Daが存在する単位ブロックを抽出する。図10は、図9に示す探索領域に対して本処理を実行した結果を示す概念図である。図10中、ハッチングを施した単位ブロックが抽出された単位ブロックを示している。
Next, in step S406, the three-dimensional image
次に、3次元画像データ処理装置32は、ステップS408にて、基準孔50c,50bを含む探索ブロック位置の検出を行う。この探索ブロック位置の検出処理においては、前記ステップS404の処理により単位ブロックに分割した領域(探索領域)にて、前記ステップS402の処理により設定した探索ブロックを単位ブロックを単位としてX軸およびY軸に順次移動させる。そして、各移動ごとに移動後の探索ブロック内に含まれるとともに前記ステップS406の処理によって抽出された単位ブロックの個数および配置の仕方を計算する。前記単位ブロックの数が所定の範囲内であり配置の仕方が円状であれば、該当する探索ブロック位置であるとして同位置が検出される。図11の(A)〜(D)は、この探索ブロックの移動の状態を示す概念図である。この場合、基準孔50c,50dの孔径はそれぞれ特定されているため、探索ブロック内に含まれる3次元形状データ群Daが存在する単位ブロックの数は特定される。この探索ブロック位置の検出処理は探索領域の全域に亘って実行され、基準孔50c,50bを含む探索ブロックの位置がそれぞれ検出される。
Next, in step S408, the three-dimensional image
次に、3次元画像データ処理装置32は、ステップS410にて、基準孔50c,50dの孔中心を計算するための仮の座標系を設定する。具体的には、前記ステップS408の処理によって検出した位置の探索ブロック内に含まれる3次元形状データ群Daにおける各座標値(xa,ya,za)を前記式1に代入する。すなわち、3次元形状データ群を構成する点群(xi,yi,zi)(i=1〜n)を前記式1の左辺に代入して、最小2乗法を用いてa,b,cを計算し、同3次元形状データ群によって表される平面Pを計算する。この場合、前記ステップS408の処理によって検出した位置の探索ブロック内に含まれる3次元形状データ群Daにおける各座標値(xa,ya,za)は基準孔50c,50dの開口部を表しており、同計算された平面Pは基準面設定治具の上面に開口した基準孔50c,50dの開口部に平行な平面である。そして、3次元画像データ処理装置32は、同計算された平面Pの法線ベクトルγと同法線ベクトルγに垂直で互いに直交するベクトルα,βを座標軸の方向とする座標系を仮の座標系として設定する。
Next, in step S410, the three-dimensional image
次に、3次元画像データ処理装置32は、ステップS412にて、前記ステップS408の処理によって検出した位置の探索ブロック内に含まれる3次元形状データ群Daにおける各座標値(xa,ya,za)、すなわち基準孔50c,50dの開口部を表す各座標値を前記ステップS410にて設定された仮の座標系による座標値に座標変換する。これにより、3次元形状測定装置20Aに関する座標系Aによって表された基準孔50c,50dの開口部を表す各座標値(xa,ya,za)が、基準孔50c,50dの開口部と平行な平面P上に2つの座標軸がある座標系の座標値に座標変換され、各座標値の中で平面Pに垂直な座標軸における座標値が1つの値に統一される。次に、3次元画像データ処理装置32は、ステップS414にて、基準孔50c,50dの中心座標を計算する。具体的には、前記ステップS412にて座標変換された各座標値の中で1つの値に統一された座標値以外の2つの座標値(xa,ya)を、基準孔50c,50dごとに下記式2に示す2次元における円の式に代入し、その値の2乗和が最小となるa,bを最小2乗法を用いて計算する。この場合、a,bは円の中心座標(a,b)を示す。これにより、基準孔50c,50dの各中心座標Cc,Cdがそれぞれ計算される。なお、下記式2においてrは円の半径である。
(x−a)2+(y−b)2=r2 …式2
Next, in step S412, the three-dimensional image
(Xa) 2 + (y−b) 2 = r 2 Formula 2
次に、3次元画像データ処理装置32は、ステップS416にて、前記ステップS414にて計算した基準孔50c,50dの各中心座標Cc,Cdの座標値を3次元形状測定装置20Aに関する座標系Aの座標値に座標変換する。具体的には、前記ステップS412による座標変換の逆変換を行い仮の座標系によって表された各中心座標Cc,Cdの座標値を3次元形状測定装置20Aに関する座標系Aの座標値に座標変換する。そして、3次元形状測定装置32は、ステップS418にて、基準孔中心計算サブプログラムの実行を終了して基準面定義サブプログラムにおけるステップS312に戻る。
Next, in step S416, the three-dimensional image
次に、3次元画像データ処理装置32は、ステップS312にて、基準面Pkaを定義する。基準面Pka,Pkbは、基準孔50c,50dの各中心座標Cc,Cdを通り平面Psに垂直な平面である。具体的には、前記基準孔中心計算サブプログラムの実行により計算された基準孔50c,50dの各中心座標Cc,Cdをそれぞれ平面の式である前記式1に代入した2つの式と、平面Psの法線ベクトルと基準面Pkaの法線ベクトルとの内積が「0」となる関係式との3つの式の連立方程式を解くことにより、平面の式におけるa,b,cを計算する。これにより、基準孔50c,50dの各中心座標Cc,Cdを通り平面Psに垂直な平面である基準面Pkaが計算される。
Next, the three-dimensional image
次に、3次元画像データ処理装置32は、ステップS314にて、基準面Pka,Pkbの定義処理を終了するか否かを判定する。この判定処理において、基準面Pka,Pkbが共に定義されていれば「Yes」と判定されてステップS316に進み、同ステップ316にて基準面定義サブプログラムの実行を終了して、ワーク長測定プログラムにおけるステップS106に戻る。一方、同判定処理において基準面Pka,Pkbが共に定義されていなければ、すなわち基準面Pkbが定義されていなければ「No」と判定されてステップS302に戻る。この場合、3次元画像データ処理装置32は、基準面Pkaの定義と同様にして基準面Pkbを定義する。具体的には、作業者は、基準面設定治具50を基準物体40における他方の端部上(図4において左側)および支持台10上にセットした後、入力装置33を介して基準面設定治具50に関する情報を入力する。以後の処理過程は、前記と同様であるので説明を省略する。これにより、図4に示すように基準面Pkaに加えて基準面Pkbも定義される。なお、以前に定義された基準面が変更されない場合には、このステップS104による基準面の定義処理をスキップしてもよい。
Next, in step S314, the three-dimensional image
また、本実施形態においては、基準物体40における2つの端部上に基準面設定治具50を載せ換えて基準面Pka,Pkbを定義するようにしたが、これに代えて、基準面設定治具50を2つ用意し、基準物体40における2つの各端部上に同時に基準面設定治具50をそれぞれセットする。そして、3次元形状測定装置20A,20Bによりそれぞれ対応する基準面設定治具50を同時に測定して、基準面Pka,Pkbを定義する各処理を平行して実行するようにしてもよい。
In the present embodiment, the reference
次に、3次元画像データ処理装置32は、ステップS106にて、測定対象空間情報を取得する。この測定対象空間情報を取得する処理に際して作業者は、3次元画像データ処理装置32からの指示に基づいて、基準物体40および基準面設定治具50を支持台10上から取り除く。そして、3次元画像データ処理装置32は、図12に示す測定対象空間情報取得サブプログラムの実行をステップS500にて開始して、ステップS502にて、3次元形状測定装置20A,20Bの測定対象空間内に存在する物体の3次元表面形状を表す測定情報の入力を待つ。一方、3次元形状測定装置20A,20Bは、コントローラ31によって制御され、測定対象空間内に存在する物体、具体的には、支持台10および支持台10の周辺に存在する物体の3次元表面形状の測定を開始する。そして、3次元形状測定装置20A,20Bが測定対象空間内に存在する物体の測定を終了すると、測定結果を表す情報を3次元画像データ処理装置32に出力する。
Next, the three-dimensional image
次に、3次元画像データ処理装置32は、ステップS502にて、前述したステップS202の処理と同様にして3次元形状測定装置20A,20Bからの測定情報をそれぞれ入力する。なお、この場合、3次元形状測定装置20A,20Bからは、測定対象空間内に存在する物体(支持台10など)の表面からの反射光の光量を表す情報も出力されるが、同情報は測定対象空間情報の取得には不要であるので3次元画像データ処理装置32は同情報の入力を無視する。そして、ステップS504にて、前述したステップS204の処理と同様にして、3次元形状測定装置20A,20Bごとに、各測定情報に基づいて測定対象空間に存在する物体に関する2組の3次元形状データ群Da,Dbを得る。この2組の3次元形状データ群Da,Dbもそれぞれ座標系A,BによるX,Y,Z座標値で表されたもので、3次元形状データ群Da,Db構成する各データセットは、(xa,ya,za),(xb,yb,zb)で表される。
Next, in step S502, the three-dimensional image
次に、3次元画像データ処理装置32は、ステップS506にて、前記ステップS504にて計算した2組の3次元形状データ群Da,Dbを測定対象空間情報Ma,Mbとしてそれぞれ記憶する。そして、3次元画像データ処理装置32は、ステップS508にて、測定対象空間情報取得サブプログラムの実行を終了して、ワーク長測定プログラムにおけるステップS108に戻る。なお、以前に取得された測定対象空間情報Ma,Mbが変更されない場合には、このステップS106による測定対象空間情報の取得処理をスキップしてもよい。
Next, in step S506, the three-dimensional image
次に、3次元画像データ処理装置32は、ステップS108にて、ワーク測定を実行する。このワークの測定処理に際して作業者は、3次元画像データ処理装置32からの指示に基づいて、支持台10上に3つのワークWKをそれぞれセットする。そして、3次元画像データ処理装置32は、図13に示すワーク測定サブプログラムの実行をステップS600にて開始して、ステップS602にて、ワークWKの3次元表面形状を表す測定情報の入力を待つ。一方、3次元形状測定装置20A,20Bは、コントローラ31によって制御され、ワークWKの3次元表面形状の測定を開始する。そして、3次元形状測定装置20A,20BがワークWKの測定を終了すると、測定結果を表す情報を3次元画像データ処理装置32に出力する。この場合、測定結果を表す情報には、ワークWKのほかに支持台10などワークWKの周辺に存在する他の物体の表面形状を表す測定情報も含まれている。
Next, the three-dimensional image
3次元画像データ処理装置32は、ステップS602にて、前述したステップS202およびステップS502の処理と同様にして3次元形状測定装置20A,20Bからの測定情報を入力する。なお、この場合、3次元形状測定装置20A,20Bからは、ワークWKの表面からの反射光の光量を表す情報も出力されるが、同情報はワークWKの長さ測定には不要であるので3次元画像データ処理装置32は同情報の入力を無視する。そして、ステップS604にて、前述したステップS204およびステップS504の処理と同様にして、3次元形状測定装置20A,20Bごとに、各測定情報に基づいてワークWKに関する2組の3次元形状データ群Da,Dbを得る。この2組の3次元形状データ群Da,Dbもそれぞれ座標系A,BによるX,Y,Z座標値で表されたもので、3次元形状データ群Da,Dbを構成する各データセットは、(xa,ya,za),(xb,yb,zb)で表される。
In step S602, the three-dimensional image
次に、3次元画像データ処理装置32は、ステップS606にて、各座標系A,Bに対応した3次元形状データ群Da,Dbのそれぞれに対して、3次元形状測定装置20A,20Bにそれぞれ面したワークWKの表面形状をそれぞれ表す2つのサブ3次元形状データ群を抽出する。具体的には、前記ステップS604にて取得した3次元形状データ群Da,Dbを構成する各座標値(xa,ya,za),(xb,yb,zb)から前記測定対象空間情報取得プログラムの実行により3次元画像データ処理装置32に記憶された測定対象空間情報Ma,Mbを構成する各座標値(xa,ya,za),(xb,yb,zb)に所定範囲内で近い座標値があるものを除く。これにより、3次元形状測定装置20A,20Bにそれぞれ面したワークWKの表面形状を表す2組のサブ3次元形状データ群Daw,Dbwがそれぞれ抽出される。このサブ3次元形状データ群Daw,Dbwが、本発明に係る3次元形状データ群に相当する。
Next, in step S606, the three-dimensional image
次に、3次元画像データ処理装置32は、ステップS608にて、前記ステップS606にて抽出した2組のサブ3次元形状データ群Daw,Dbwを3つのワークWKに対応させてそれぞれ3つに分類する。具体的には、作業者は、3次元形状測定装置20A,20Bの各座標系A,B内においてそれぞれ3つの領域を設定し、同設定した各領域を3次元画像データ処理装置32の記憶装置に予め記憶しておく。この3つの領域は、支持台10上にセットされる3つのワークWKの位置にそれぞれ対応しており、各領域にはそれぞれ1つのワークWKのサブ3次元形状データ群が含まれる。そして、3次元画像データ処理装置32は、この予め設定された各領域ごとにサブ3次元形状データ群Daw,Dbwを分類し6組のサブ3次元形状データ群Daw1,Dbw1,Daw2,Dbw2,Daw3,Dbw3として記憶する。この場合、サブ3次元形状データ群Daw1とDbw1、Daw2とDbw2およびDaw3とDbw3とは、それぞれ同一のワークWKにおける各端部を表す3次元形状データである。
Next, in step S608, the three-dimensional image
次に、3次元画像データ処理装置32は、ステップS610にて、3つのワークWKの各端面Sa,Sbをそれぞれ表す2つの平面Pwa,PwbをワークWKごとに定義する。ここで3次元形状測定装置20Aによって測定された1つのワークWKの表面形状を表すサブ3次元形状データ群Dawを点群として図に表すと図14に示すように表される。この場合、3次元形状測定装置20Aに最も近い3次元データは、矢印Aで示した付近の3次元データ、すなわちワークWKの端面Saにおける外周部上端を定義する3次元データである。したがって、3次元画像データ処理装置32は、各サブ3次元形状データ群Daw1,Dbw1,Daw2,Dbw2,Daw3,Dbw3のうち最も3次元形状測定装置20A,20Bに近い座標値(3次元形状測定装置20Aにおいては図14中、矢印Aで示した付近の座標値)および同座標値から図示下側に存在する座標値を所定数だけ抽出し、同抽出した各座標値を前記式1に示される平面の式に代入して最小2乗法により仮の平面を定義する。そして、3次元画像データ処理装置32は、同定義された仮の平面に対して所定の範囲に属する各サブ3次元形状データ群Daw1,Dbw1,Daw2,Dbw2,Daw3,Dbw3の各座標値をそれぞれ抽出し、同抽出された各座標値を再度前記式1に代入して最小2乗法により平面をそれぞれ定義する。これにより、3次元形状測定装置20A,20Bにそれぞれ面する各ワークWKの各端面Sa,Sbをそれぞれ含む平面Pwa1,Pwb1,Pwa2,Pwb2,Pwa3,Pwb3がそれぞれ定義される。図15は、1つのワークWKにおける端面Sa,Sbに対して、それぞれ同端面Sa,Sbを表す平面Pwa,Pwbが定義された状態を示している。
Next, in step S610, the three-dimensional image
次に、3次元画像データ処理装置32は、ステップS612にて、ワークWKの長さ測定が可能か否かを判定する。具体的には、前記基準面定義サブプログラムにより定義された基準面Pka,Pkbに対する前記ステップS610にて定義された平面Pwa1,Pwb1,Pwa2,Pwb2,Pwa3,Pwb3の傾きをそれぞれ計算し、同計算された各傾きが所定の範囲内であるか否かをワークWKごとに判定する。すなわち、3つの各ワークWKの各端面Sa,Sbに対応する平面Pwa1とPwb1、Pwa2とPwb2およびPwa3とPwb3の各平面のセットごとに基準面Pka,Pkbに対する傾きを計算してワークWKの長さ測定が可能か否かをワークWKごとに判定する。より具体的には、基準面Pkaに対して平面Pwa1,Pwa2,Pwa3の各角度を計算するとともに、基準面Pkbに対して平面Pwb1,Pwb2,Pwb3の各角度を計算する。この判定処理において、基準面Pka,Pkbに対する各平面のセット、具体的にはPwa1とPwb1、Pwa2とPwb2およびPwa3とPwb3とがともに所定の範囲内の傾きである場合には、ワークWKの長さ測定が可能であるとして「Yes」と判定してステップS614に進む。すなわち、ワークWKの各端面Sa,Sbがともに基準面Pka,Pkbに対して略平行である場合にはワークWKの長さ測定が可能であると判定される。この場合、少なくとも1つのワークWKの長さ測定が可能であれば、同判定処理において「Yes」と判定される。
Next, in step S612, the three-dimensional image
一方、各平面のセット(平面Pwa1とPwb1、Pwa2とPwb2およびPwa3とPwb3)において、各セット内におけるどちらか一方の平面の基準面Pka,Pkbに対する傾きが所定の範囲外である場合、すなわち、ワークWKの各端面Sa,Sbのうち少なくとも一方の端面が基準面Pka,Pkbに対して傾斜、具体的には同端面のうち少なくとも一方の端面がワークWKの側面に対して垂直でないことによりワークWKの長手方向に対して直交していない、またはワークWKの端部が曲がっていることにより同端部における端面がワークWKの長手方向に対して直交していない場合には、ワークWKの長さ測定が不可能である。したがって、この判定処理において、すべてのワークWKの長さ測定が不可能である場合には、「No」と判定してステップS616に進み、ステップS616にてワークWKの長さ測定が不可能である旨を表示装置34に表示させる。 On the other hand, in each set of planes (planes Pwa1 and Pwb1, Pwa2 and Pwb2, and Pwa3 and Pwb3), if the inclination of one of the planes in each set with respect to the reference planes Pka and Pkb is outside a predetermined range, Since at least one of the end surfaces Sa and Sb of the work WK is inclined with respect to the reference surfaces Pka and Pkb, specifically, at least one of the end surfaces is not perpendicular to the side surface of the work WK. If the end of the workpiece WK is not orthogonal to the longitudinal direction of the workpiece WK because the end of the workpiece WK is bent, the end surface of the workpiece WK is not orthogonal to the longitudinal direction of the workpiece WK. Measurement is impossible. Therefore, in this determination process, when the length measurement of all the workpieces WK is impossible, it is determined as “No” and the process proceeds to step S616, and the length measurement of the workpieces WK is impossible in step S616. A message to that effect is displayed on the display device 34.
次に、3次元画像データ処理装置32は、ステップS614にて、前記ステップS612にてワークWKの長さ測定が可能と判定されたワークWKに対して同ワークWKの中心軸を定義する。このワークWKの中心軸の定義は、図16に示すワークの中心軸定義サブプログラムを実行することにより行われる。3次元画像データ処理装置32は、ワークの中心軸定義サブプログラムをステップS700にて開始して、ステップS702にて、基準面Pka,Pkbに平行な平面Pka’,Pkb’をそれぞれ定義する。具体的には、図15に示すように基準面Pka,Pkbに対して互いに他方の基準面Pkb,Pka側に所定の距離だけ離れた位置に、基準面Pka,Pkbと平行な平面Pka’,Pkb’をそれぞれ定義する。
Next, in step S614, the three-dimensional image
次に、3次元画像データ処理装置32は、ステップS704にて、基準面Pka,Pkbおよび平面Pka’,Pkb’ごとに仮の座標系をそれぞれ設定する。具体的には、前記基準孔中心計算プログラムにおけるステップS410と同様に、基準面Pka,Pkbおよび平面Pka’,Pkb’に対して所定の範囲内に存在するサブ3次元形状データ群Daw,Dbwを前記式1に示す平面の式に代入して最小2乗法により基準面Pka,Pkbおよび平面Pka’,Pkb’にそれぞれ対応する4つの平面を計算する。この場合、計算される4つの平面は、ワークWKの長手方向に対して直交する。そして、計算された各平面の法線ベクトルγと同法線ベクトルγに垂直で互いに直交するベクトルα,βを座標軸の方向とする座標系を仮の座標系としてそれぞれ設定する。
Next, in step S704, the three-dimensional image
次に、3次元形状測定装置32は、ステップS706にて、前記ステップS412と同様に、基準面Pka,Pkbおよび平面Pka’,Pkb’に対して所定の範囲内に存在するサブ3次元形状データ群Daw,Dbwの各座標値をそれぞれ対応する前記各仮の座標系による座標値に座標変換する。これにより、3次元形状測定装置20A,20Bに関する各座標系A,Bによって表されたサブ3次元形状データ群Daw,Dbwの各座標値が、ワークWKの軸方向に直交する平面上に2つの座標軸がある座標系の座標値に座標変換され、同各座標値の中で同平面に垂直な座標軸(ワークWKの軸方向)における座標値が1つの値に統一される。次に、3次元画像データ処理装置32は、ステップS708にて、ワークWKの中心軸上の座標値を計算する。具体的には、前記ステップS414と同様に、各仮の座標系による座標値に座標変換された各座標値を前記式2に示す2次元における円の式に代入し、最小2乗法を用いて同円の中心座標Ca,Cb,Ca’,Cb’を計算する。これにより、各仮の座標系ごとにワークWKの中心軸上の座標値が計算される。
Next, in step S706, the three-dimensional
次に、3次元画像データ処理装置32は、ステップS710にて、前記ステップS708にて計算した中心座標Ca,Cb,Ca’,Cb’の座標値を3次元形状測定装置20A,20Bに関する各座標系A,Bの座標値に座標変換する。具体的には、前記ステップS706による座標変換の逆変換を行い、各仮の座標系によって表された各中心座標Ca,Cb,Ca’,Cb’の座標値を3次元形状測定装置20A,20Bに関する各座標系A,Bの座標値に座標変換する。次に、3次元画像データ処理装置32は、ステップS712にて、ワークWKの中心軸を定義する。具体的には、基準面Pkaおよび平面Pka’に対応してそれぞれ計算された中心座標Ca,Ca’を通る直線CLaを計算するとともに、基準面Pkbおよび平面Pkb’に対応してそれぞれ計算された中心座標Cb,Cb’を通る直線CLbを計算する。これにより、3次元形状測定装置20A,20Bにそれぞれ面する各ワークWK(ワークWKの長さ測定可能なワークWK)に対してそれぞれ中心軸CLa,CLbが定義される。そして、3次元画像データ処理装置32は、ステップS714にて、ワークの中心軸定義サブプログラムの実行を終了してワーク長測定プログラムにおけるステップS618に戻る。
Next, in step S710, the three-dimensional image
次に、3次元画像データ処理装置32は、ステップS618にて、ワークWKの各端面Sa,Sbの各中心座標を計算する。具体的には、多数の座標値から重心座標を計算する場合のように、X座標,Y座標,Z座標ごとに各座標値を足し合わせ、それぞれの合計値を足し合わせた座標値の数で除算する。これにより、ワークWKの端面Sa,Sbにおける各中心座標Cwa,Cwbがそれぞれ計算される。
Next, in step S618, the three-dimensional image
次に、3次元画像データ処理装置32は、ステップS620にて、ワークWKの2つの各端部の曲がりを検出する。具体的には、前記ステップS610にて定義された平面Pwaと前記ステップS614におけるワークの中心軸定義サブプログラムの実行により定義された中心軸CLaとの交点および平面Pwbと中心軸CLbとの交点をそれぞれ計算する。そして、同計算された各交点の各座標値と前記ステップS618にて計算された中心座標Cwa,Cwbの各座標値との差が所定の範囲内である場合には、ワークWKの端部が曲がっていないとして「No」と判定してステップS622に進む。一方、前記計算された各交点の各座標値と中心座標Cwa,Cwbの各座標値との差が所定の範囲外である場合には、ワークWKの端部が曲がっているとして「Yes」と判定してステップS624に進む。
Next, in step S620, the three-dimensional image
この判定処理を具定例を挙げて説明すると、図17(A),(B)に示すように、ワークWKの端部の形状が曲がっていない場合、すなわち図17(A)に示すようにワークWKの端部SaがワークWKの中心軸CLaに対して直交している場合、および図17(B)に示すようにワークWKの端部が曲がっていない状態で端部SaがワークWKの中心軸CLaに対して直交していない場合には、ワークWKの端面Saの中心座標Cwaと、同ワークWKの中心軸CLaと平面Pwaとの交点とは略同一座標値となる。一方、図17(C)に示すように、ワークWKの端部Saの形状が下方に曲がっている場合には、ワークWKの端面Saの中心位置がワークWKの中心軸CLaからずれるため、ワークWKの端面Saの中心座標Cwaと、同ワークWKの中心軸CLaと平面Pwaとの交点とは同一座標値とはならず異なる値となる。したがって、ワークWKの端部Sa,Sbが曲がっている場合には、同判定処理において「Yes」と判定されてステップS624に進み、ワークWKの端部Sa,Sbが曲がっていない場合には、同判定処理において「No」と判定されてステップS622に進む。なお、図17(B),(C)においては、端面Saの傾斜している状態を誇張して示している。 This determination process will be described with a specific example. As shown in FIGS. 17A and 17B, when the shape of the end portion of the work WK is not bent, that is, as shown in FIG. When the end portion Sa of the WK is orthogonal to the center axis CLa of the workpiece WK and when the end portion of the workpiece WK is not bent as shown in FIG. 17B, the end portion Sa is the center of the workpiece WK. When not orthogonal to the axis CLa, the center coordinate Cwa of the end surface Sa of the workpiece WK and the intersection of the center axis CLa of the workpiece WK and the plane Pwa have substantially the same coordinate value. On the other hand, as shown in FIG. 17C, when the shape of the end portion Sa of the workpiece WK is bent downward, the center position of the end surface Sa of the workpiece WK is shifted from the center axis CLa of the workpiece WK. The center coordinate Cwa of the end surface Sa of the WK and the intersection of the center axis CLa of the workpiece WK and the plane Pwa do not have the same coordinate value but different values. Therefore, when the ends Sa and Sb of the work WK are bent, it is determined as “Yes” in the determination process, and the process proceeds to step S624. When the ends Sa and Sb of the work WK are not bent, In the determination process, it is determined as “No”, and the process proceeds to Step S622. In FIGS. 17B and 17C, the state in which the end surface Sa is inclined is exaggerated.
ステップS622においては、ワークWKの2つの各端部が曲がっていない場合におけるワークWKの長さ測定用の平面Pma,Pmbをそれぞれ定義する。具体的には、前記ステップ620にて計算された平面Pwaと中心軸CLaとの交点を含み基準面Pkaに平行な平面を測定用平面Pmaとして定義するとともに、平面Pwbと中心軸CLbとの交点を含み基準面Pkbに平行な平面を測定用平面Pmbとして定義する。すなわち、測定用平面Pma,Pmbは、ワークWKの2つの各端面Sa,Sbの各中心点を含み互いに平行な平面である。この測定用平面Pma,Pmbは、それぞれ平面Pwa,Pwbと略同一の平面であるが、平面Pwa,PwbがワークWKの各端面Sa,Sbに対して平行であるのに対し、測定用平面Pma,Pmbは基準面Pka,Pkbに対して平行でありワークWKの各端面Sa,Sbの傾きに因らず定義することができる。したがって、ワークWKの端部Sa,SbがワークWKの中心軸に対して直交している場合(曲がっていない場合)には、平面Pwa,Pwbを測定用平面Pma,Pmbとしてもよい。 In step S622, planes Pma and Pmb for measuring the length of the workpiece WK when the two ends of the workpiece WK are not bent are defined. Specifically, a plane parallel to the reference plane Pka including the intersection between the plane Pwa and the central axis CLa calculated in the step 620 is defined as the measurement plane Pma, and the intersection between the plane Pwb and the central axis CLb. And a plane parallel to the reference plane Pkb is defined as a measurement plane Pmb. That is, the measurement planes Pma and Pmb are planes including the center points of the two end faces Sa and Sb of the workpiece WK and parallel to each other. The measurement planes Pma and Pmb are substantially the same planes as the planes Pwa and Pwb, respectively. However, the planes Pwa and Pwb are parallel to the end surfaces Sa and Sb of the workpiece WK, whereas the measurement plane Pma. , Pmb are parallel to the reference planes Pka, Pkb and can be defined regardless of the inclination of the end faces Sa, Sb of the workpiece WK. Therefore, when the end portions Sa and Sb of the workpiece WK are orthogonal to the center axis of the workpiece WK (when not bent), the planes Pwa and Pwb may be set as the measurement planes Pma and Pmb.
ステップS624においては、前記ステップS618にて計算されたワークWKの各端面Sa,Sbの各中心座標Cwa,Cwbの各座標値を補正する。この中心座標Cwa,Cwbの補正処理は、ワークWKの2つの各端部のうち前記ステップS620にて曲がりが検出された端部における中心座標Cwa,Cwbを、同端部の曲がりがない場合(同端部が直線状である場合)における同端部の端面Sa,Sbの中心座標に補正する処理である。このステップ624における補正処理において3次元画像データ処理装置32は、図18に示す中心座標補正サブプログラムをステップS800にて開始して、ステップS802にて、曲がり測定用平面Pmcを定義する。なお、この中心座標補正サブプログラムの処理においては、図19(A)(B)に示すように、ワークWKの端面Saにおける端部が曲がっている場合を例として説明する。また、同図中のワークWKの端部は、曲がった状態を誇張して示している。また、図19(B)においては、図を分かりやすくするため、支持台10を省略している。
In step S624, the coordinate values of the center coordinates Cwa and Cwb of the end surfaces Sa and Sb of the workpiece WK calculated in step S618 are corrected. The correction processing of the center coordinates Cwa and Cwb is performed when the center coordinates Cwa and Cwb at the end where the bending is detected in the step S620 out of the two ends of the workpiece WK are not bent at the same end ( This is a process of correcting to the center coordinates of the end surfaces Sa and Sb of the end portion in the case where the end portion is linear. In the correction processing in step 624, the three-dimensional image
まず、3次元画像データ処理装置32は、前記ステップ620の判定処理にて曲がりが検出された端部における端面Saに対応する基準面Pkaから同端面Sa側に所定の間隔で同基準面Pkaに平行な平面Pka’を定義する。次に、3次元画像データ処理装置32は、図19(B)に示すように、平面Pka’内において直交する2つの軸を中心として各軸ごとに所定の角度範囲内において所定の角度ずつ同平面Pka’を傾ける。そして、各所定の角度ごとに、傾けられた平面Pka’に対して所定の範囲内に存在するサブ3次元形状データ群Dawを抽出し、同抽出されたサブ3次元形状データ群Dawの各座標値を前記式2に示す円の式に代入して、最小2乗法により円Cを定義する。そして、同円Cから前記抽出されたサブ3次元形状データ群Dawの各座標値との距離を計算し、同各座標値ごとの距離における標準偏差を計算する。
First, the three-dimensional image
具体的には、円Cの定義の仕方は、前記ステップS614におけるワークWKの中心軸を計算する処理と同様である。すなわち、前記基準孔中心計算プログラムにおけるステップS410と同様に、曲がり測定用平面Pmcn(n=1)において平面の法線ベクトルγと同法線ベクトルγに垂直で互いに直交するベクトルα,βを座標軸の方向とする座標系を仮の座標系としてそれぞれ設定する。次に、3次元画像データ処理装置32は、前記ステップS412と同様に、曲がり測定用平面Pmcn(n=1)に対して所定の範囲内に存在するサブ3次元形状データ群Dawの各座標値を前記各仮の座標系による座標値に座標変換する。これにより、3次元形状測定装置20Aに関する座標系Aによって表されたサブ3次元形状データ群Dawの各座標値が、曲がり測定用平面Pmc1上に2つの座標軸がある座標系の座標値に座標変換され、同各座標値の中で同曲がり測定用平面Pmcn(n=1)に垂直な座標軸(ワークWKの中心軸方向)における座標値が1つの値に統一される。そして、3次元画像データ処理装置32は、前記ステップS414と同様に、仮の座標系の座標値に座標変換された各座標値を前記式2に示す2次元における円の式に代入し、最小2乗法を用いて同円の中心座標Ccおよび半径rを計算した後、サブ3次元形状データ群Dawの各座標値から中心座標Ccまでの距離を計算し、同距離から半径rの値を減算する。この減算した値が円から各座標値までの距離に相当し、すべての座標値おける同距離の標準偏差を計算する。
Specifically, the way of defining the circle C is the same as the processing for calculating the central axis of the workpiece WK in the step S614. That is, as in step S410 in the reference hole center calculation program, the normal vector γ of the plane and the vectors α and β perpendicular to the normal vector γ and orthogonal to each other on the coordinate measurement axis Pmcn (n = 1) The coordinate system with the direction of is set as a temporary coordinate system. Next, the three-dimensional image
この標準偏差を計算する処理を、前記所定の角度範囲内において所定の角度ずつ実行し、計算された標準偏差が最小となる角度における平面Pka’を曲がり測定用平面Pmcn(n=1)とする。すなわち、平面Pka’に対して所定の範囲内に存在するサブ3次元形状データ群Dawは、同平面Pka’の傾けられる角度に応じて楕円状または円状に抽出される。そして、楕円状または円状に抽出されたサブ3次元形状データ群Dawに基づいて円Cが計算され標準偏差が計算される。この場合、計算された円Cに対する抽出されたサブ3次元形状データ群Dawの各座標値の差が小さいほど計算される標準偏差は小さくなる。換言すれば、サブ3次元形状データ群Dawが円状に抽出されるほど円Cとの差、すなわち標準偏差が小さくなる。そして、標準偏差が最小となる平面Pka’、すなわち曲がり測定用平面Pmcは、曲がりが検出された端部におけるワークWKの中心軸に直交する平面となる。なお、図19(A)(B)において曲がり測定用平面Pmcn(n=1)は、平面Pka’と略同一平面となる。 The processing for calculating the standard deviation is executed for each predetermined angle within the predetermined angle range, and the plane Pka ′ at the angle at which the calculated standard deviation is the minimum is defined as a bending measurement plane Pmcn (n = 1). . That is, the sub three-dimensional shape data group Daw existing within a predetermined range with respect to the plane Pka 'is extracted in an elliptical shape or a circular shape according to the tilt angle of the plane Pka'. Then, a circle C is calculated based on the sub three-dimensional shape data group Daw extracted in an elliptical shape or a circular shape, and a standard deviation is calculated. In this case, the smaller the difference between the coordinate values of the extracted sub three-dimensional shape data group Daw with respect to the calculated circle C, the smaller the standard deviation calculated. In other words, the difference from the circle C, that is, the standard deviation becomes smaller as the sub three-dimensional shape data group Daw is extracted in a circular shape. The plane Pka 'having the smallest standard deviation, that is, the bending measurement plane Pmc is a plane orthogonal to the central axis of the workpiece WK at the end where the bending is detected. In FIGS. 19A and 19B, the bending measurement plane Pmcn (n = 1) is substantially the same plane as the plane Pka '.
次に、3次元画像データ処理装置32は、ステップS804にて、曲がり測定用平面Pmc内におけるワークWKの中心座標Ccを計算する。中心座標Ccは、ステップS802にて仮の座標系の座標値として計算されているため、先の座標変換とは逆の座標変換により対応する3次元形状測定装置20Aに関する座標系Aによる座標値に座標変換する。これにより、曲がり測定用平面Pmcn(n=1)内におけるワークWKの中心座標Ccが計算される。
Next, in step S804, the three-dimensional image
次に、3次元画像データ処理装置32は、ステップS806にて、ワークWKの中心座標Ccの計算を終了するか否かを判定する。具体的には、前記ステップS804にて計算したワークWKの中心座標Ccが曲がりが検出された端部における端面の中心座標Cwaと一致または所定の判別値内であるか否かを判定し、中心座標Ccが中心座標Cwaと一致または所定の判別値内でなければ「No」と判定してステップS802に戻り、再度ワークWKの中心座標Ccを計算する。この場合、ステップS802にて定義される平面Pka’’は、前回定義された平面Pka’
より端面Sa側に所定の間隔で移動した位置で定義される。また、図19(A)に示すように、平面Pka’’がワークWKの端部における曲がった部分に定義される場合には、曲がり測定用平面Pmcn(n=2)は、同端部におけるワークWKの中心軸に直交する平面となる。一方、同判定処理において、中心座標Ccが中心座標Cwaと一致または所定の判別値内であれば「Yes」と判定してステップS808に進む。これにより、曲がりが検出された端部に対応する基準面Pkaと端面Saとの間のワークWKの中心軸上の座標値が中心座標Cci(i=1〜n)として計算される。なお、図19(A)において、平面Pka’と平面Pka’’との間隔は誇張して示している。
Next, in step S806, the three-dimensional image
It is defined as a position moved to the end surface Sa side at a predetermined interval. Further, as shown in FIG. 19A, when the plane Pka '' is defined as a bent portion at the end of the work WK, the bend measurement plane Pmcn (n = 2) is at the same end. It becomes a plane orthogonal to the central axis of the workpiece WK. On the other hand, in the determination process, if the center coordinate Cc matches the center coordinate Cwa or is within a predetermined determination value, “Yes” is determined, and the process proceeds to step S808. Thereby, the coordinate value on the central axis of the workpiece WK between the reference surface Pka and the end surface Sa corresponding to the end where the bending is detected is calculated as the center coordinates Cci (i = 1 to n). In FIG. 19A, the interval between the plane Pka ′ and the plane Pka ″ is exaggerated.
次に、3次元画像データ処理装置32は、ステップS808にて、曲がりが検出された端部における中心軸に対応する円Cを定義する。具体的には、図20に示すように、前記ステップS802〜S806の各処理により計算されたワークWKの中心軸の座標値である中心座標Cci(i=1〜n)を前記式1に示される平面の式にそれぞれ代入して、最小2乗法により曲がりが検出された端部における中心軸を含む平面Pを定義する。そして、前記ステップS804と同様に、平面Pの法線ベクトルγと同法線ベクトルに垂直で互いに直交するベクトルα,βを座標軸の方向とする座標系を仮の座標系としてそれぞれ設定する。次に、3次元画像データ処理装置32は、前記ステップS312と同様に、中心座標Cci(i=1〜n)の各座標値を仮の座標系による座標値に座標変換する。これにより、3次元形状測定装置20Aに関する各座標系Aによって表された中心座標Cci(i=1〜n)の各座標値が平面P上に2つの座標軸がある座標系の座標値に座標変換され、各座標値の中で平面Pに垂直な座標軸上の座標値が1つの値に統一される。
Next, in step S808, the three-dimensional image
そして、3次元画像データ処理装置32は、仮の座標系の座標値に座標変換された各座標値を前記式2に示す2次元における円の式に代入し、最小2乗法を用いて同円の中心座標Cをおよび半径rを計算した後、前記ステップS416と同様に仮の座標系の座標値によって表された中心座標Cを対応する3次元形状測定装置20Aに関する座標系Aによって表された座標値に座標変換する。これにより、曲がりが検出された端部における中心軸に対応する円Cが定義される。
Then, the three-dimensional image
次に、3次元画像データ処理装置32は、ステップS810にて、端面Saの中心座標Cwaを補正する。具体的には、曲がりが検出された端部に対応する中心軸CLaと前記円Cとの交点P0(または接点)を特定する。この交点P0は、曲がりが検出された端部における中心軸の曲がり始めを表す。次に、特定された交点P0と曲がりが検出された端部における端面Saの中心座標Cwa(換言すれば、円Cと端面Saの交点P1)とを結ぶ直線の長さLst(弦の長さ)を計算し、同長さLstと円Cの半径rとから交点P0と中心座標Cwa(換言すれば、円Cと端面Saの交点P1)とを結ぶ円Cの円周上の長さ(弧の長さ)Larcする。そして、中心軸CLa上における交点P0の座標値に中心軸CLa方向に長さLarc(弧の長さ)を加算した座標値を新たな中心座標Cwa’とする。なお、ワークWKの端面Sbにおける端部が曲がっている場合においても同様に中心座標Cwbが中心座標Cwb’に補正される。これにより、曲がりが検出された端部において、同端部の曲がりがない場合(同端部が直線状である場合)における同端部の端面Saの中心座標Cwa’,Cwb’が計算される。そして、3次元画像データ処理装置32は、ステップS812にて、中心座標補正サブプログラムの実行を終了して、ワーク測定サブプログラムにおけるステップS622に戻る。ステップS622においては、この中心座標補正サブプログラムの実行によって補正された中心座標Cwa’,Cwb’に基づいて測定用平面Pma,Pmbがそれぞれ定義される。
Next, the three-dimensional image
次に、3次元画像データ処理装置32は、ステップS626にて、ワークWKの長さを計算する。具体的には、図21に示すように、測定用平面Pma,Pmbと同測定用平面Pma,Pmbに対応する3次元形状測定装置20A,20Bに関する各座標系A,Bにおける原点Oa,Obとの距離La,Lbをそれぞれ計算する。この場合、距離Laは、3次元形状測定装置20Aの座標系Aにおける原点Oaを通り測定用平面Pmaに直交する直線の長さである。また、距離Lbは、3次元形状測定装置20Bの座標系Bにおける原点Obを通り測定用平面Pmbに直交する直線の長さである。そして、3次元画像データ処理装置32は、ステップS102における基準距離計算サブプログラムにより計算された基準距離L0(3次元形状測定装置20Aと3次元形状測定装置20Bとの距離)から同距離La,Lbを減算することによりワークWKの長さLを計算する。
Next, in step S626, the three-dimensional image
そして、3次元画像データ処理装置32は、ステップS628にて、前記計算したワークWKの長さLを表示装置34に表示させる。この場合、3つのワークWKのうち長さ測定が不可能であるワークWKについては、同ワークWKの長さ測定が不可能である旨を表示装置34に表示させる。なお、ステップS614にて、ワークWKの長さ測定が不可能と判定された場合には、前記したように同ステップS616にてワークWKの長さ測定が不可能である旨を表示装置34に表示させた後、ステップS630に進む。次に、3次元画像データ処理装置32は、ステップS630にて、ワークWKの長さ測定を終了するか否かを判定する。具体的には、3次元画像データ処理装置32は、ワークWKの長さ測定を終了するか否かを表示装置34を介して作業者に問い合わせて作業者からの指示を待つ。この場合、作業者は、他に測定すべきワークWKが存在する場合には、支持台10上にセットされているワークWKを取り除くとともに新たなワークWKを支持台10上にセットした後、その旨を入力装置33を介して指示する。一方、作業者は、他に測定すべきワークWKが存在しない場合には、支持台10上にセットされているワークWKを取り除いた後、その旨を入力装置33を介して指示する。
In step S628, the three-dimensional image
3次元形状測定装置32は、作業者からワークWKの長さ測定を続行する旨の指示を受けた場合には、前記判定処理において「No」と判定してステップS602に戻り、改めてワークWKの測定処理を実行する。また、3次元形状測定装置32は、作業者からワークWKの長さ測定を終了する旨の指示を受けた場合には、前記判定処理において「Yes」と判定してステップS632にてワーク測定サブプログラムの実行を終了して、ワーク長測定プログラムにおけるステップS110に戻り、同ステップS110にてワーク長測定プログラムの実行を終了する。
When receiving an instruction from the operator to continue measuring the length of the workpiece WK, the three-dimensional
上記作動説明からも理解できるように、上記実施形態によれば、3次元画像データ処理装置32に予めワークWKにおける測定対象となる端面Sa,Sb間の軸線に沿って3次元形状測定装置20Aの座標原点Oaと3次元形状測定装置20Bの座標原点Obとの距離を基準距離L0として記憶している。そして、前記軸線に直交する基準面Pka,Pkbと平行な測定用平面Pma,Pmbを測定対象となる端面Sa,Sbに定義し、同測定用平面Pma,pmbと基準距離L0とを用いて測定対象物の長さLを計算している。これによれば、測定対象となる端面Sa,Sbに対して測定用平面Pma,Pmbが定義できれば、すなわち、測定対象となる端面Sa,Sbを含むワークWKの端部の表面形状を表す3次元形状データ群が取得できれば、常にワークWKの軸線に沿って同ワークWKの長さを測定することができ、3次元形状測定装置20A,20Bの配置位置は限定されない。また、測定用平面Pma,Pmbは3次元データによって定義されるため、測定対象となる端面Sa,Sbの形状および3次元形状測定装置20A,20Bに対する同端面Sa,Sbの向きに寄らず一定の平面を定義することができる。これにより、精度の高いワークWKの長さ測定が可能となる。
As can be understood from the above description of the operation, according to the above embodiment, the 3D image
また、測定用平面Pma,Pmbは、端面Sa,Sbを表す平面Pka,PkbとワークWKの中心軸CLa,CLbとの交点に基づいて定義されるため、端面Sa,Sbが中心軸に対して完全に垂直でない場合や端部が若干曲がっている場合であっても、端面Sa,Sbにおける正確な中心点に基づいて測定用平面Pma,Pmbを定義することができる。また、ワーク測定サブプログラムにおけるステップS612において、端面Sa,Sbの傾きに応じてワークWKの長さ測定を実行するか否かを判定し、同端面Sa,SbがワークWKの軸線に対して所定量以上傾いている場合には、ワークWKの長さ測定を実行しない。これにより、端面Sa,SbがワークWKの軸線に対して垂直から所定の範囲内の角度でずれている場合のみ、同ワークWKの長さ測定を行うことができ、測定したワークWKの長さ比較をより正確に行うことができる。 Further, since the measurement planes Pma and Pmb are defined based on the intersections of the planes Pka and Pkb representing the end surfaces Sa and Sb and the center axes CLa and CLb of the workpiece WK, the end surfaces Sa and Sb are in relation to the center axis. Even if it is not completely vertical or the end is slightly bent, the measurement planes Pma and Pmb can be defined on the basis of the exact center point on the end surfaces Sa and Sb. In step S612 in the workpiece measurement subprogram, it is determined whether or not to measure the length of the workpiece WK according to the inclination of the end surfaces Sa and Sb, and the end surfaces Sa and Sb are positioned with respect to the axis of the workpiece WK. If it is tilted more than the fixed amount, the length measurement of the workpiece WK is not executed. Thereby, the length measurement of the workpiece WK can be performed only when the end surfaces Sa and Sb are deviated from the perpendicular to the axis of the workpiece WK by an angle within a predetermined range. The comparison can be made more accurately.
さらに、本発明の実施にあたっては、上記実施形態に限定されるものではなく、本発明の目的を逸脱しない限りにおいて種々の変更が可能である。 Furthermore, in carrying out the present invention, the present invention is not limited to the above embodiment, and various modifications can be made without departing from the object of the present invention.
上記実施形態においては、ワークWKの各端部に対応させてそれぞれ基準面Pka,Pkbを定義するようにしたが、ワークWKの長さが短い場合など、3次元形状測定装置20A,20Bの測定対象空間が重なる場合は、同ワークWKの両端部に対応する1つの基準面Pkを定義するようにしてもよい。この場合、3次元形状測定装置20A,20Bの両測定対象空間内に基準面設定治具50を配置(例えば、基準物体40の中央部)する。これによれば、基準面Pkを設定する作業が1回で済み、基準面Pkの設定作業を効率的にできる。また、1つの基準面Pkに基づいて基準距離L0の計算や各種平面の設定を行うことができるので、ワークWKの長さ測定をより精度良く行うことができる。
In the above embodiment, the reference planes Pka and Pkb are defined in correspondence with the respective end portions of the workpiece WK. However, when the length of the workpiece WK is short, the measurement by the three-dimensional
また、上記実施形態においては、基準面設定治具50を用いて基準面Pka,Pkbを定義するように構成したが、これに限定されるものではない。例えば、基準物体40における端面40a,40bは、同基準物体40の軸線に対して直交しているため、同端面40a,40bを表す3次元形状データ群を用いて基準面Pka,Pkbを定義することもできる。これによれば、基準面設定治具50が不要になるため基準面設定作業を効率的に行うことができる。なお、この場合、端面40a,40bは面積が小さいため、比較的半径が小さなワークWKの長さ測定において有効である。
In the above embodiment, the reference planes Pka and Pkb are defined using the reference
また、上記実施形態においては、3次元形状測定装置20A,20Bの各座標系A,B内においてそれぞれ3つの領域を予め設定し、同設定した領域内に存在するサブ3次元形状データ群Daw,Dbwを抽出して、3つのワークWKに対応するサブ3次元形状データ群Daw,Dbwをそれぞれ分類したが、これに限定されるものではない。例えば、ステップS506にて抽出したワークWKの表面形状を表すサブ3次元形状データ群Daw,Dbwのうち、3次元形状測定装置20A,20Bに最も近い座標値(図14中、矢印Aで示した付近の3次元データ)および同座標値から図示下側に存在する座標値を所定数だけ抽出し、同抽出した各座標値を前記式1に示される平面の式にそれぞれ代入して最小2乗法により仮の平面を定義する。そして、同定義した各仮の平面に対して所定の範囲に属する各サブ3次元形状データ群Daw,Dbwの各座標値をそれぞれ抽出し、同抽出された各座標値を再度前記式1に代入して最小2乗法により平面をそれぞれ定義する。これにより、3次元形状測定装置20A,20Bにそれぞれ面するワークWKのうち最も3次元形状測定装置20A,20Bに近いワークWKの端面Saを含む平面Pa,Pbがそれぞれ定義される。この平面Pa,Pbは、ワークWKの軸線方向に直交する平面である。
Further, in the above embodiment, three regions are preset in each of the coordinate systems A and B of the three-dimensional
次に、3次元画像データ処理装置32は、3次元形状測定装置20A,20Bにおける測定対象空間を前記基準孔中心計算サブプログラムにおける単位ブロックと同様の単位ブロックによって分割する。基本的には、ワークWKに関するサブ3次元形状データ群Daw,Dbwに基づき、測定対象空間内のうちサブ3次元形状データ群Daw,Dbwが存在する空間を単位ブロックで立体的に分割する。分割は、前記平面Pa,Pbに沿って単位ブロックを並べていく方法で行う。この場合、単位ブロックの大きさは、ワークWKの一部が存在することを確認可能である程度に小さく設定され、例えば、ワークWKの端面Sa,Sbを縦横8個ずつの単位ブロック内において包含するためのサイズに設定する。
Next, the three-dimensional image
そして、この縦横8個ずつの単位ブロックの集合を探索ブロックとして単位ブロックを単位として平面Pa,Pbに沿って移動させ、ワークWKの端面Sa,Sbを探索する。この場合、ワークWKの端面Sa,Sbの探索は、サブ3次元形状データ群Daw,Dbwが存在する単位ブロックを予め抽出しておき、探索ブロック内に存在する単位ブロック(サブ3次元形状データ群Daw,Dbwが存在する単位ブロック)の数および配置の仕方によりワークWKの端面Sa,Sbを検出する。そして、ワークWKの端面Sa、Sbが検出された場合には、平面Pa,Pbに直交する方向(ワークWKの軸線方向)に存在する単位ブロックにおけるサブ3次元形状データをすべて抽出する。これにより、3つのワークWKに関するサブ3次元形状データ群Daw,Dbwをそれぞれ分類することができる。これによっても、上記と同様の効果が期待できる。 Then, the set of 8 unit blocks in the vertical and horizontal directions is moved as a search block along the planes Pa and Pb with the unit block as a unit, and the end surfaces Sa and Sb of the workpiece WK are searched. In this case, for the search of the end faces Sa and Sb of the work WK, unit blocks in which the sub three-dimensional shape data groups Daw and Dbw exist are extracted in advance, and unit blocks (sub three-dimensional shape data group in the search blocks) are extracted. The end surfaces Sa and Sb of the workpiece WK are detected based on the number of unit units (Daw and Dbw) and how they are arranged. When the end surfaces Sa and Sb of the workpiece WK are detected, all the sub three-dimensional shape data in the unit block existing in the direction orthogonal to the planes Pa and Pb (the axial direction of the workpiece WK) are extracted. Thereby, the sub three-dimensional shape data groups Daw and Dbw related to the three workpieces WK can be classified. Also by this, the same effect as the above can be expected.
また、上記実施形態においては、測定用平面Pma,Pmbを定義するためのワークWKの各端面Sa,Sb上の点として、各平面Pwa,Pwbと各中心軸CLa,CLbとの各交点、すなわち、同各端面Sa,Sbの各中心点を用いてそれぞれ測定用平面Pma,Pmbを定義するようにしたが、これに限定されるものではない。例えば、各平面Pwa,Pwbと各中心軸CLa,CLbとの各交点に代えて、図13に示すワーク測定サブプログラムにおけるステップS618による各端面Sa,Sbの各中心座標Cwa,Cwbを用いて測定用平面Pma,Pmbをそれぞれ定義するようにしてもよい。この場合、各中心座標Cwa,Cwbは、各端面Sa,Sbをそれぞれ定義するサブ3次元形状データ群Daw,Dbwにより計算されており、同端面Sa,Sbにおける重心点とも言える点である。これによっても、上記と同様の効果が期待できる。 In the above embodiment, the points on the end surfaces Sa and Sb of the workpiece WK for defining the measurement planes Pma and Pmb are the intersections of the planes Pwa and Pwb and the central axes CLa and CLb, that is, The measurement planes Pma and Pmb are defined using the center points of the end surfaces Sa and Sb, respectively, but the present invention is not limited to this. For example, instead of the intersections between the planes Pwa and Pwb and the central axes CLa and CLb, the measurement is performed using the center coordinates Cwa and Cwb of the end faces Sa and Sb in step S618 in the workpiece measurement subprogram shown in FIG. The planes for use Pma and Pmb may be defined respectively. In this case, the central coordinates Cwa and Cwb are calculated by the sub three-dimensional shape data groups Daw and Dbw that define the end faces Sa and Sb, respectively, and can be said to be the center of gravity points on the end faces Sa and Sb. Also by this, the same effect as the above can be expected.
また、ワークWKの長さ測定の対象となる軸線上において、最も長い長さを測定する場合には、各端面Sa,Sbをそれぞれ定義するサブ3次元形状データ群Daw,Dbwのうち3次元形状測定装置20A,20Bに最も近い座標値を用いて測定用平面Pma,Pmbをそれぞれ定義するようにしてもよい。これによれば、ワークWKの各端面Sa,Sbのうち、それぞれ最も外側に存在する端面Sa,Sb上の点に基づいてワークWKの長さ測定を行うことができる。また、これとは逆に、ワークWKの長さ測定の対象となる軸線上において、最も短い長さを測定する場合には、各端面Sa,Sbをそれぞれ定義するサブ3次元形状データ群Daw,Dbwのうち3次元形状測定装置20A,20Bに最も遠い座標値を用いて測定用平面Pma,Pmbをそれぞれ定義するようにしてもよい。これによれば、ワークWKの各端面Sa,Sbのうち、それぞれ最も内側に存在する端面Sa,Sb上の点に基づいてワークWKの長さ測定を行うことができる。これらによれば、端面Sa,Sbが軸線に対して傾斜している場合(図17(B),(C))、ワークWKの長さとして端面Sa,Sbにおけるどの位置に基づいて測定するかについて、必要に応じて測定用平面Pma,Pmbを定義する位置を設定でき、多様な長さ測定が可能となる。
When measuring the longest length on the axis to be measured for the length of the workpiece WK, the three-dimensional shape of the sub-three-dimensional shape data groups Daw and Dbw defining the end surfaces Sa and Sb, respectively. The measurement planes Pma and Pmb may be defined using coordinate values closest to the
また、上記実施形態においては、前記中心座標補正サブプログラムのステップS810による中心座標Cwa,Cwbの補正において、曲がりが検出された端部における中心軸の曲がり始めである交点P0と端面Saの中心座標Cwaとの円周上の長さLarcを計算し、同長さLarcを中心軸CLa上における交点P0の座標値に加算して中心座標Cwaを補正したが、これに限定されるものではない。すなわち、曲がりが検出された端部において同端部の曲がりがない場合(同端部が直線状である場合)における同端部の端面Sa,Sbの中心座標Cwa’,Cwb’が計算されればよい。例えば、ワークWKの端面Saの中心座標Cwaを通り中心軸CLaに垂直な平面を定義し、同平面と中心軸CLaとの交点を中心座標Cwa’としてもよい。これによれば、上記実施形態における中心座標Cwa’に対する近似値を簡単に計算することができる。 In the above embodiment, in the correction of the center coordinates Cwa and Cwb in step S810 of the center coordinate correction subprogram, the center coordinates of the intersection point P0 and the end surface Sa at which the center axis begins to bend at the end where the bend is detected. Although the length Larc on the circumference with Cwa is calculated and the same length Larc is added to the coordinate value of the intersection point P0 on the center axis CLa to correct the center coordinate Cwa, the present invention is not limited to this. That is, the center coordinates Cwa ′ and Cwb ′ of the end surfaces Sa and Sb of the same end when there is no bend at the end where the bend is detected (when the end is linear) are calculated. That's fine. For example, a plane that passes through the center coordinate Cwa of the end surface Sa of the workpiece WK and is perpendicular to the center axis CLa may be defined, and the intersection of the plane and the center axis CLa may be set as the center coordinate Cwa ′. According to this, it is possible to easily calculate the approximate value for the center coordinate Cwa 'in the above embodiment.
また、上記実施形態においては、前記ワーク長測定プログラムにおけるステップS612およびS620にてワークWKの端部における形状を判定するとともに、ステップS616およびS624にて同端部における端面が傾斜しているまたは同端部が曲がっている場合における各対応処理を実行しているが、測定対象であるワークWKの中に同端部における端面が傾斜しているまたは同端部が曲がっているワークWKが存在しない場合には、前記各処理は不要である。これにより、ワーク長測定プログラムの構成を簡単にすることができる。 In the above embodiment, the shape of the end of the work WK is determined in steps S612 and S620 in the work length measurement program, and the end face of the end is inclined or the same in steps S616 and S624. Each corresponding process is executed when the end is bent, but there is no work WK in which the end face at the end is inclined or the end is bent in the work WK to be measured. In some cases, the processes are not necessary. Thereby, the structure of the workpiece length measurement program can be simplified.
また、上記実施形態においては、2つの3次元形状測定装置20A,20Bを用いてワークWKの長さ測定を行うように構成したが、1つの3次元形状測定装置20を用いてワークWKの長さ測定を行うようにしてもよい。例えば、ワークWKの一端を特定の位置に位置決めする(例えば、ワークWKの一端を位置決めするストッパーを用意する)とともに、同ワークWKの他端の端面が3次元形状測定装置20に面するようにワークWKを配置する。この場合、ワークWKの一端が位置決めされる特定の位置と3次元形状測定装置20の座標系の原点とのワークWKの軸線方向上の距離、または同特定の位置と基準面定義プログラムにより定義される基準面との距離を基準距離として3次元形状測定装置20に予め記憶すればよい。これによっても、上記と同様の効果が期待できる。
In the above embodiment, the length of the workpiece WK is measured using the two three-dimensional
また、上記実施形態においては、3つのワークWKの長さ測定を同時に行うように構成したが、同時に測定するワークWKの数は必要に応じて適宜設定されるものであり、これに限定されるものではない。したがって、1つのワークWKの長さ測定を行うようにしてもよいし、4つ以上のワークWKの長さ測定を同時に行うように構成してもよい。これによっても、上記と同様の効果が期待できる。 Moreover, in the said embodiment, although comprised so that the length measurement of three workpiece | work WK might be performed simultaneously, the number of the workpiece | work WK measured simultaneously is suitably set as needed, and is limited to this. It is not a thing. Therefore, the length measurement of one workpiece WK may be performed, or the length measurement of four or more workpieces WK may be performed simultaneously. Also by this, the same effect as the above can be expected.
また、上記実施形態においては、測定対象である長尺状のワークWKとして丸棒体を用いたが、これに限定されるものではなく、他の断面形状、例えば三角および四角などの多角形状の断面形状を有する長尺材を測定対象としてもよい。これによっても、上記と同様の効果が期待できる。 Moreover, in the said embodiment, although the round bar was used as the elongate workpiece | work WK which is a measuring object, it is not limited to this, For example, polygonal shapes, such as a triangle and a square, are not limited to this. A long material having a cross-sectional shape may be a measurement target. Also by this, the same effect as the above can be expected.
また、上記実施形態においては、直方体状に形成された本体部50aの下面中央部に、支持台10の支持部10bと同様のV溝状の溝部50bを有するとともに、同本体部50aの両端部における上面から下面に貫通する基準孔50c,50dをそれぞれ有して形成された基準面設定治具50を用いて基準面Pka,Pkbを定義したが、基準面設定治具50の形状は、ワークWKの軸線方向に直交する平面を基準面として定義できれば、これに限定されるものでない。例えば、本体部50aにおける3次元形状測定装置20A,20Bに面する側面を大きく形成してもよい。この場合、同側面を含む平面を計算し、同平面を基準面Pka,Pkbとして定義すればよい。これによっても、上記と同様の効果が期待できる。
Moreover, in the said embodiment, while having the V-groove-shaped
また、上記実施形態においては、支持台10上の載置したワークWKに対してワークWKの長さ測定を行う長さ測定装置に本発明を適用した例について説明した。しかし、これに代えて、本発明を、生産ライン、検査ラインなどの各種ライン上を次々に移動するワークWKの長さを順次に測定するようにした長さ測定装置にも適用してもよい。この場合、ワークWKを支持する支持手段として例えば、ローラーの周面に螺旋状にV字溝を形成したローラーテーブルを用いるとよい。
Moreover, in the said embodiment, the example which applied this invention to the length measuring apparatus which measures the length of the workpiece | work WK with respect to the workpiece | work WK mounted on the
WK…ワーク、10…支持台、20A,20B…3次元形状測定装置、31…コントローラ、32…3次元画像データ処理装置、33…入力装置、34…表示装置、40…基準物体、50…基準面設定治具。
WK: Work, 10: Support base, 20A, 20B ... 3D shape measuring device, 31 ... Controller, 32 ... 3D image data processing device, 33 ... Input device, 34 ... Display device, 40 ... Reference object, 50 ... Reference Surface setting jig.
Claims (27)
測定対象物を支持する支持手段と、
測定対象物に向けて光を照射して同測定対象物からの反射光を用いて、同測定対象物における長さ測定の対象となる端面を含む端部を少なくとも含む測定対象物の表面の3次元形状を測定する3次元形状測定装置と、
前記支持手段に支持される測定対象物における長さ測定の対象となる端面間の軸線と直交する平面を基準面として定義する基準面定義手段と、
前記3次元形状測定装置の座標系内における所定の第1測定基準位置と、同3次元形状測定装置により測定される測定対象物の端部の反対側の端部における端面の位置を特定するための所定の第2測定基準位置との測定対象物の前記軸線に沿った距離を基準距離として記憶する記憶手段と、
前記3次元形状測定装置によって測定された測定対象物の3次元表面形状を表す3次元形状データ群を生成する3次元形状データ群生成手段と、
前記生成された3次元形状データ群を用いて、前記測定対象物における長さ測定の対象となる端面を定義する端面定義手段と、
前記端面定義手段により定義された端面内の一点を含み、かつ前記基準面に平行な測定用平面を定義する測定用平面定義手段と、
前記測定用平面定義手段により定義された測定用平面と前記記憶装置に記憶された基準距離とを用いて、測定対象物の長さを計算する長さ計算手段とを備えたことを特徴とする長さ測定装置。 In a length measuring device that measures the length of a measurement object,
A support means for supporting the measurement object;
3 of the surface of the measurement object including at least an end portion including an end surface to be a length measurement target in the measurement object by irradiating light toward the measurement object and using reflected light from the measurement object A three-dimensional shape measuring device for measuring a three-dimensional shape;
Reference plane defining means for defining a plane perpendicular to the axis between the end faces to be measured in the measurement object supported by the support means as a reference plane;
In order to specify the predetermined first measurement reference position in the coordinate system of the three-dimensional shape measuring apparatus and the position of the end face at the end opposite to the end of the measurement object measured by the three-dimensional shape measuring apparatus. Storage means for storing a distance along the axis of the measurement object from the predetermined second measurement reference position as a reference distance;
Three-dimensional shape data group generation means for generating a three-dimensional shape data group representing the three-dimensional surface shape of the measurement object measured by the three-dimensional shape measurement apparatus;
Using the generated three-dimensional shape data group, an end surface defining means for defining an end surface to be a length measurement target in the measurement object;
A measuring plane defining means for defining a measuring plane that includes one point in the end face defined by the end face defining means and is parallel to the reference plane;
A length calculation means for calculating the length of the measurement object using the measurement plane defined by the measurement plane definition means and the reference distance stored in the storage device is provided. Length measuring device.
前記第1測定基準位置は、前記3次元形状測定装置の座標系における座標原点であり、前記第2測定基準位置は、前記3次元形状測定装置により測定される測定対象物の端部とは反対側の端部を特定の位置に位置決めする位置である長さ測定装置。 The length measuring device according to claim 1,
The first measurement reference position is a coordinate origin in the coordinate system of the three-dimensional shape measurement apparatus, and the second measurement reference position is opposite to an end of the measurement object measured by the three-dimensional shape measurement apparatus. A length measuring device which is a position for positioning a side end portion at a specific position.
測定対象物を支持する支持手段と、
測定対象物に向けてそれぞれ光を照射して同測定対象物からの各反射光を用いて、同測定対象物における長さ測定の対象となる2つの端面をそれぞれ含む各端部をそれぞれ少なくとも含む測定対象物の表面の3次元形状をそれぞれ測定する2つの3次元形状測定装置と、
前記支持手段に支持される測定対象物における長さ測定の対象となる2つの端面間の軸線と直交する平面を基準面として定義する基準面定義手段と、
前記2つの3次元形状測定装置のうち、一方の3次元形状測定装置の座標系内における所定の第1測定基準位置と、他方の3次元形状測定装置の座標系内における所定の第2測定基準位置との測定対象物の前記軸線に沿った距離を基準距離として記憶する記憶手段と、
前記2つの3次元形状測定装置によってそれぞれ測定された測定対象物の3次元表面形状を表す3次元形状データ群をそれぞれ生成する3次元形状データ群生成手段と、
前記それぞれ生成された各3次元形状データ群を用いて、前記測定対象物における長さ測定の対象となる2つの端面をそれぞれ定義する端面定義手段と、
前記端面定義手段により定義された各端面内の一点を含み、かつ前記基準面に平行な測定用平面をそれぞれ定義する測定用平面定義手段と、
前記一方の3次元形状測定装置に対応する測定用平面と前記第1測定基準位置との距離を第1距離として計算するとともに、前記他方の3次元形状測定装置に対応する測定用平面と前記第2測定基準位置との距離を第2距離として計算して、前記記憶装置に記憶された基準距離から前記第1距離および第2距離を減算することにより測定対象物の長さを計算する長さ計算手段とを備えたことを特徴とする長さ測定装置。 In a length measuring device that measures the length of a measurement object,
A support means for supporting the measurement object;
Irradiate light toward the measurement object and use each reflected light from the measurement object to include at least each end part including two end surfaces to be subjected to length measurement in the measurement object. Two three-dimensional shape measuring devices for measuring the three-dimensional shape of the surface of the measuring object,
A reference surface defining means for defining, as a reference surface, a plane perpendicular to an axis between two end faces to be measured in length in a measurement object supported by the support means;
Of the two three-dimensional shape measuring devices, a predetermined first measurement reference position in the coordinate system of one three-dimensional shape measuring device and a predetermined second measurement reference in the coordinate system of the other three-dimensional shape measuring device. Storage means for storing, as a reference distance, a distance along the axis of the measurement object with respect to the position;
Three-dimensional shape data group generating means for generating three-dimensional shape data groups each representing a three-dimensional surface shape of the measurement object measured by the two three-dimensional shape measurement devices;
Using each of the generated three-dimensional shape data groups, end face defining means for defining two end faces to be length measurement targets in the measurement object,
Measuring plane defining means for defining a measuring plane that includes one point in each end face defined by the end face defining means and is parallel to the reference plane;
The distance between the measurement plane corresponding to the one three-dimensional shape measurement apparatus and the first measurement reference position is calculated as a first distance, and the measurement plane corresponding to the other three-dimensional shape measurement apparatus and the first 2 A length for calculating the length of the measurement object by calculating the distance from the measurement reference position as the second distance and subtracting the first distance and the second distance from the reference distance stored in the storage device. A length measuring device comprising a calculating means.
前記第1測定基準位置は、前記一方の3次元形状測定装置の座標系における座標原点であり、前記第2測定基準位置は、前記他方の3次元形状測定装置の座標系における座標原点である長さ測定装置。 In the length measuring device according to claim 3,
The first measurement reference position is a coordinate origin in the coordinate system of the one three-dimensional shape measurement apparatus, and the second measurement reference position is a coordinate origin in the coordinate system of the other three-dimensional shape measurement apparatus. Measuring device.
前記端面定義手段により定義された各端面において前記測定用平面に含まれる一点は、同端面における中心点、同端面における重心点、同端面に面する3次元形状測定装置に対して最も近い点および同端面に面する3次元形状測定装置に対して最も遠い点のうちのいずれか1つである長さ測定装置。 In the length measuring device according to any one of claims 1 to 4,
One point included in the measurement plane in each end face defined by the end face defining means is a center point on the end face, a center point on the end face, a point closest to the three-dimensional shape measuring apparatus facing the end face, and A length measuring device which is one of the farthest points from the three-dimensional shape measuring device facing the end face.
前記測定用平面定義手段は、
前記3次元形状データ群のうち測定対象物の端部における外周面の表面形状を表す3次元データを用いて、同測定対象物における中心軸を計算する中心軸計算手段と、
前記端面定義手段により定義された端面と中心軸計算手段により計算された中心軸との交点を前記測定対象物の端面における中心点として計算する端面中心計算手段とを備え、
前記端面中心計算手段にて計算された端面の中心点を含むとともに前記基準面に平行な平面を測定用平面として定義する長さ測定装置。 The length measuring device according to any one of claims 1 to 4, further comprising:
The measurement plane defining means includes:
Center axis calculation means for calculating the center axis of the measurement object using the three-dimensional data representing the surface shape of the outer peripheral surface at the end of the measurement object in the three-dimensional shape data group;
End surface center calculating means for calculating the intersection of the end surface defined by the end face defining means and the central axis calculated by the central axis calculating means as the center point of the end face of the measurement object;
A length measuring device that defines a plane that includes the center point of the end face calculated by the end face center calculating means and is parallel to the reference plane as a measuring plane.
前記端面定義手段により定義された端面の前記基準面に対する角度が所定の範囲内であるとき、測定対象物の長さ測定が可能であると判定する長さ測定可否判定手段を有し、
前記長さ計算手段は、前記長さ測定可否判定手段により測定対象物の長さ測定が可能と判定されたとき、同測定対象物の長さを計算する長さ測定装置。 The length measuring device according to any one of claims 1 to 6, further comprising:
When the angle of the end face defined by the end face defining means with respect to the reference plane is within a predetermined range, there is a length measurement availability determination means that determines that the length of the measurement object can be measured,
The length calculation unit is a length measurement device that calculates the length of the measurement target when the length measurement availability determination unit determines that the length of the measurement target can be measured.
測定対象物を支持する支持手段と、
測定対象物に向けて光を照射して同測定対象物からの反射光を用いて、同測定対象物における長さ測定の対象となる端面を含む端部を少なくとも含む測定対象物の表面の3次元形状を測定する3次元形状測定装置と、
前記支持手段に支持される測定対象物における長さ測定の対象となる端面間の軸線と直交する平面を基準面として定義する基準面定義手段と、
前記3次元形状測定装置の座標系内における所定の第1測定基準位置と、同3次元形状測定装置により測定される測定対象物の端部の反対側の端部における端面の位置を特定するための所定の第2測定基準位置との測定対象物の前記軸線に沿った距離を基準距離として記憶する記憶手段と、
前記3次元形状測定装置によって測定された前記測定対象物の3次元表面形状を表す3次元形状データ群を生成する3次元形状データ群生成手段と、
前記生成された3次元形状データ群を用いて、前記測定対象物における長さ測定の対象となる端面を定義する端面定義手段と、
前記端面定義手段により定義された端面内の一点を含み、かつ前記基準面に平行な測定用平面を定義する測定用平面定義手段と、
前記3次元形状データ群のうち測定対象物における端部の表面形状を表す3次元データを用いて、同測定対象物における端部の曲がりの有無を判定する曲がり判定手段と、
前記曲がり判定手段により測定対象物における端部の曲がりが有りと判定されたとき、前記測定用平面定義手段にて定義された測定用平面を、前記測定対象物における端部が直線状である場合における測定用平面に補正する測定用平面補正手段と、
前記測定用平面定義手段により定義された測定用平面または前記測定用平面補正手段により補正した測定用平面と前記記憶装置に記憶された基準距離とを用いて、測定対象物の長さを計算する長さ計算手段とを備えたことを特徴とする長さ測定装置。 In a length measuring device that measures the length of a measurement object,
A support means for supporting the measurement object;
3 of the surface of the measurement object including at least an end portion including an end surface to be a length measurement target in the measurement object by irradiating light toward the measurement object and using reflected light from the measurement object A three-dimensional shape measuring device for measuring a three-dimensional shape;
Reference plane defining means for defining a plane perpendicular to the axis between the end faces to be measured in the measurement object supported by the support means as a reference plane;
In order to specify the predetermined first measurement reference position in the coordinate system of the three-dimensional shape measuring apparatus and the position of the end face at the end opposite to the end of the measurement object measured by the three-dimensional shape measuring apparatus. Storage means for storing a distance along the axis of the measurement object from the predetermined second measurement reference position as a reference distance;
Three-dimensional shape data group generation means for generating a three-dimensional shape data group representing a three-dimensional surface shape of the measurement object measured by the three-dimensional shape measurement apparatus;
Using the generated three-dimensional shape data group, an end surface defining means for defining an end surface to be a length measurement target in the measurement object;
A measuring plane defining means for defining a measuring plane that includes one point in the end face defined by the end face defining means and is parallel to the reference plane;
Bend determination means for determining the presence or absence of bending of the end of the measurement object using the three-dimensional data representing the surface shape of the end of the measurement object in the three-dimensional shape data group;
When the measurement of the measurement plane defined by the measurement plane definition means is straight when the end of the measurement object is straight when it is determined by the bending determination means that the end of the measurement object is bent Measuring plane correction means for correcting to the measuring plane in
The length of the measurement object is calculated using the measurement plane defined by the measurement plane definition means or the measurement plane corrected by the measurement plane correction means and the reference distance stored in the storage device. A length measuring device comprising a length calculating means.
前記支持手段に支持された複数の測定対象物に対応して生成される3次元形状データ群を、同複数の測定対象ごとに分類する3次元形状データ分類手段を有し、
前記端面定義手段は、前記複数の測定対象物ごとに長さ測定の対象となる端面を定義し、
前記測定用平面定義手段は、前記複数の測定対象物ごとに測定用平面を定義し、
前記長さ計算手段は、前記複数の測定対象物ごとに測定対象物の長さを計算する長さ測定装置。 The length measuring device according to any one of claims 1 to 8, further comprising:
3D shape data classification means for classifying a 3D shape data group generated corresponding to a plurality of measurement objects supported by the support means for each of the plurality of measurement objects;
The end face defining means defines an end face to be subjected to length measurement for each of the plurality of measurement objects,
The measurement plane defining means defines a measurement plane for each of the plurality of measurement objects,
The length calculation unit is a length measurement device that calculates the length of a measurement object for each of the plurality of measurement objects.
測定対象物を支持する支持手段と、物体の表面の3次元形状を測定する3次元形状測定装置とを用意し、
前記3次元形状測定装置の座標系内における所定の第1測定基準位置と、同3次元形状測定装置により測定される測定対象物の端部の反対側の端部における端面の位置を特定するための所定の第2測定基準位置との測定対象物の前記軸線に沿った距離を基準距離として記憶手段に記憶しておくとともに、前記支持手段に支持される測定対象物における長さ測定の対象となる端面間の軸線と直交する平面を基準面として定義しておき、
前記3次元形状測定装置の測定対象空間内に前記支持手段に支持された測定対象物における長さ測定の対象となる端面を含む端部を少なくとも配置した状態で、前記3次元形状測定装置に前記支持手段に支持された測定対象物に向けて光を照射させて同測定対象物からの反射光を用いて前記長さ測定の対象となる端面を含む端部を少なくとも含む測定対象物の表面の3次元形状を測定させ、同測定対象物の3次元表面形状を表す3次元形状データ群を生成する3次元形状データ群生成ステップと、
前記生成された3次元形状データ群を用いて、前記測定対象物における長さ測定の対象となる端面を定義する端面定義ステップと、
前記端面定義ステップにより定義された端面内の一点を含み、かつ前記基準面に平行な測定用平面を定義する測定用平面定義ステップと、
前記測定用平面定義ステップにより定義された測定用平面と前記記憶装置に記憶された基準距離とを用いて、測定対象物の長さを計算する長さ計算ステップとを含むことを特徴とする長さ測定方法。 In the length measurement method for measuring the length of the measurement object,
A supporting means for supporting the measurement object and a three-dimensional shape measuring device for measuring the three-dimensional shape of the surface of the object;
In order to specify the predetermined first measurement reference position in the coordinate system of the three-dimensional shape measuring apparatus and the position of the end face at the end opposite to the end of the measurement object measured by the three-dimensional shape measuring apparatus. The distance along the axis of the measurement object with respect to the predetermined second measurement reference position is stored in the storage means as a reference distance, and the length measurement object is supported on the measurement object supported by the support means. Define a plane perpendicular to the axis between the end faces as the reference plane,
In the state where at least an end portion including an end surface to be a length measurement target in the measurement object supported by the support means is arranged in the measurement target space of the three-dimensional shape measurement apparatus, the three-dimensional shape measurement apparatus The surface of the measurement object including at least an end including the end face to be subjected to the length measurement by irradiating light toward the measurement object supported by the support means and using the reflected light from the measurement object. A three-dimensional shape data group generation step for measuring a three-dimensional shape and generating a three-dimensional shape data group representing the three-dimensional surface shape of the measurement object;
Using the generated three-dimensional shape data group, an end face defining step for defining an end face to be a length measurement target in the measurement object;
A measuring plane defining step that defines a measuring plane that includes a point in the end face defined by the end face defining step and is parallel to the reference plane;
A length calculation step of calculating a length of the measurement object using the measurement plane defined by the measurement plane definition step and the reference distance stored in the storage device. Measuring method.
前記第1測定基準位置は、前記3次元形状測定装置の座標系における座標原点であり、前記第2測定基準位置は、前記3次元形状測定装置により測定される測定対象物の端部とは反対側の端部を特定の位置に位置決めする位置である長さ測定方法。 The length measuring method according to claim 10,
The first measurement reference position is a coordinate origin in the coordinate system of the three-dimensional shape measurement apparatus, and the second measurement reference position is opposite to an end of the measurement object measured by the three-dimensional shape measurement apparatus. A length measurement method which is a position for positioning the end on the side at a specific position.
測定対象物を支持する支持手段と、物体の表面の3次元形状を測定する2つの3次元形状測定装置とを用意し、
前記2つの3次元形状測定装置のうち、一方の3次元形状測定装置の座標系内における所定の第1測定基準位置と、他方の3次元形状測定装置の座標系内における所定の第2測定基準位置との測定対象物の前記軸線に沿った距離を基準距離として記憶手段に記憶しておくとともに、前記支持手段に支持される測定対象物における長さ測定の対象となる端面間の軸線と直交する平面を基準面として定義しておき、
前記2つの3次元形状測定装置の各測定対象空間内にそれぞれ前記支持手段に支持された測定対象物における長さの測定の対象となる2つの端面をそれぞれ含む各端部を少なくとも配置した状態で、前記2つの3次元形状測定装置に前記支持手段に支持された測定対象物に向けてそれぞれ光を照射させて同測定対象物からの各反射光を用いて前記長さ測定の対象となる2つの端面をそれぞれ含む各端部を少なくとも含む測定対象物の表面の3次元形状をそれぞれ測定させ、同測定対象物の各3次元表面形状を表す3次元形状データ群をそれぞれ生成する3次元形状データ群生成ステップと、
前記それぞれ生成された各3次元形状データ群を用いて、前記測定対象物における長さ測定の対象となる2つの端面をそれぞれ定義する端面定義ステップと、
前記端面定義ステップによりそれぞれ定義された各端面内の一点を含み、かつ前記基準面に平行な測定用平面をそれぞれ定義する測定用平面定義ステップと、
前記一方の3次元形状測定装置に対応する測定用平面と前記第1測定基準位置との距離を第1距離として計算するとともに、前記他方の3次元形状測定装置に対応する測定用平面と前記第2測定基準位置との距離を第2距離として計算して、前記記憶装置に記憶された基準距離から前記第1距離および第2距離を減算することにより測定対象物の長さを計算する長さ計算ステップとを含むことを特徴とする長さ測定方法。 In the length measurement method for measuring the length of the measurement object,
Preparing a supporting means for supporting the object to be measured and two three-dimensional shape measuring devices for measuring the three-dimensional shape of the surface of the object;
Of the two three-dimensional shape measuring devices, a predetermined first measurement reference position in the coordinate system of one three-dimensional shape measuring device and a predetermined second measurement reference in the coordinate system of the other three-dimensional shape measuring device. The distance along the axis of the measurement object with respect to the position is stored in the storage means as a reference distance, and orthogonal to the axis between the end surfaces to be measured for the length of the measurement object supported by the support means Define the plane to be used as the reference plane,
In a state where at least each end portion including each of two end faces to be subjected to measurement of the length of the measurement object supported by the support means is disposed in each measurement object space of the two three-dimensional shape measuring apparatuses. The two three-dimensional shape measuring devices are irradiated with light toward the measurement object supported by the support means, and the reflected light from the measurement object is used for the length measurement 2. Three-dimensional shape data for generating a three-dimensional shape data group representing each three-dimensional surface shape of the measurement object by measuring the three-dimensional shape of the surface of the measurement object including at least each end including each of the two end surfaces A group generation step;
Using each of the generated three-dimensional shape data groups, an end face definition step for defining two end faces to be subjected to length measurement in the measurement object,
A measuring plane defining step that defines a measuring plane that includes one point in each end face defined by the end face defining step and is parallel to the reference plane;
The distance between the measurement plane corresponding to the one three-dimensional shape measurement apparatus and the first measurement reference position is calculated as a first distance, and the measurement plane corresponding to the other three-dimensional shape measurement apparatus and the first 2 A length for calculating the length of the measurement object by calculating the distance from the measurement reference position as the second distance and subtracting the first distance and the second distance from the reference distance stored in the storage device. And a calculation step.
前記第1測定基準位置は、前記一方の3次元形状測定装置の座標系における座標原点であり、前記第2測定基準位置は、前記他方の3次元形状測定装置の座標系における座標原点である長さ測定方法。 The length measuring method according to claim 12,
The first measurement reference position is a coordinate origin in the coordinate system of the one three-dimensional shape measurement apparatus, and the second measurement reference position is a coordinate origin in the coordinate system of the other three-dimensional shape measurement apparatus. Measuring method.
前記端面定義ステップにより定義された各端面において前記測定用平面に含まれる一点は、同端面における中心点、同端面における重心点、同端面に面する3次元形状測定装置に対して最も近い点および同端面に面する3次元形状測定装置に対して最も遠い点のうちのいずれか1つである長さ測定方法。 The length measuring method according to any one of claims 10 to 14,
One point included in the measurement plane in each end face defined by the end face definition step is a center point on the end face, a center of gravity point on the end face, a point closest to the three-dimensional shape measuring apparatus facing the end face, and A length measurement method which is any one of the farthest points with respect to the three-dimensional shape measuring apparatus facing the end face.
前記測定用平面定義ステップは、
前記3次元形状データ群のうち測定対象物の端部における外周面の表面形状を表す3次元データを用いて、同測定対象物における中心軸を計算する中心軸計算ステップと、
前記端面定義ステップにより定義された端面と中心軸計算ステップにより計算された中心軸との交点を前記測定対象物の端面における中心点として計算する端面中心計算ステップとを備え、
前記端面中心計算ステップにて計算された端面の中心点を含むとともに前記基準面に平行な平面を測定用平面として定義する長さ測定方法。 The length measurement method according to any one of claims 10 to 14, further comprising:
The measurement plane definition step includes:
A central axis calculation step of calculating a central axis in the measurement object using the three-dimensional data representing the surface shape of the outer peripheral surface at the end of the measurement object in the three-dimensional shape data group;
An end surface center calculation step for calculating an intersection of the end surface defined by the end surface definition step and the center axis calculated by the center axis calculation step as a center point in the end surface of the measurement object,
A length measurement method that defines a plane that includes the center point of the end face calculated in the end face center calculation step and is parallel to the reference plane as a measurement plane.
前記端面定義ステップにより定義された端面の前記基準面に対する角度が所定の範囲内であるとき、測定対象物の長さ測定が可能であると判定する長さ測定可否判定ステップを有し、
前記長さ計算ステップは、前記長さ測定可否判定ステップにより測定対象物の長さ測定が可能と判定されたとき、同測定対象物の長さを計算する長さ測定方法。 The length measurement method according to any one of claims 10 to 15, further comprising:
A length measurement availability determination step that determines that the length of the measurement object can be measured when the angle of the end surface defined by the end surface definition step is within a predetermined range;
The length calculation method is a length measurement method in which, when it is determined by the length measurement availability determination step that the measurement of the length of the measurement object is possible, the length of the measurement object is calculated.
測定対象物を支持する支持手段と、物体の表面の3次元形状を測定する3次元形状測定装置とを用意し、
前記3次元形状測定装置の座標系内における所定の第1測定基準位置と、同3次元形状測定装置により測定される測定対象物の端部の反対側の端部における端面の位置を特定するための所定の第2測定基準位置との測定対象物の前記軸線に沿った距離を基準距離として記憶手段に記憶しておくとともに、前記支持手段に支持される測定対象物における長さ測定の対象となる端面間の軸線と直交する平面を基準面として定義しておき、
前記3次元形状測定装置の測定対象空間内に前記支持手段に支持された測定対象物における長さ測定の対象となる端面を含む端部を少なくとも配置した状態で、前記3次元形状測定装置に前記支持手段に支持された測定対象物に向けて光を照射させて同測定対象物からの反射光を用いて前記長さ測定の対象となる端面を含む端部を少なくとも含む測定対象物の表面の3次元形状を測定させ、同測定対象物の3次元表面形状を表す3次元形状データ群を生成する3次元形状データ群生成ステップと、
前記生成された3次元形状データ群を用いて、前記測定対象物における長さ測定の対象となる端面を定義する端面定義ステップと、
前記端面定義ステップにより定義された端面内の一点を含み、かつ前記基準面に平行な測定用平面を定義する測定用平面定義ステップと、
前記3次元形状データ群のうち測定対象物における端部の表面形状を表す3次元データを用いて、同測定対象物における端部の曲がりの有無を判定する曲がり判定ステップと、
前記曲がり判定ステップにより測定対象物における端部の曲がりが有りと判定されたとき、前記測定用平面定義ステップにて定義された測定用平面を、前記測定対象物における端部が直線状である場合における測定用平面に補正する測定用平面補正ステップと、
前記測定用平面定義ステップにより定義された測定用平面または前記測定用平面補正ステップにより補正した測定用平面と前記記憶装置に記憶された基準距離とを用いて、測定対象物の長さを計算する長さ計算ステップとを含むことを特徴とする長さ測定方法。 In the length measurement method for measuring the length of the measurement object,
A supporting means for supporting the measurement object and a three-dimensional shape measuring device for measuring the three-dimensional shape of the surface of the object;
In order to specify the predetermined first measurement reference position in the coordinate system of the three-dimensional shape measuring apparatus and the position of the end face at the end opposite to the end of the measurement object measured by the three-dimensional shape measuring apparatus. The distance along the axis of the measurement object with respect to the predetermined second measurement reference position is stored in the storage means as a reference distance, and the length measurement object is supported on the measurement object supported by the support means. Define a plane perpendicular to the axis between the end faces as the reference plane,
In the state where at least an end portion including an end surface to be a length measurement target in the measurement object supported by the support means is arranged in the measurement target space of the three-dimensional shape measurement apparatus, the three-dimensional shape measurement apparatus The surface of the measurement object including at least an end including the end face to be subjected to the length measurement by irradiating light toward the measurement object supported by the support means and using the reflected light from the measurement object. A three-dimensional shape data group generation step for measuring a three-dimensional shape and generating a three-dimensional shape data group representing the three-dimensional surface shape of the measurement object;
Using the generated three-dimensional shape data group, an end face defining step for defining an end face to be a length measurement target in the measurement object;
A measuring plane defining step that defines a measuring plane that includes a point in the end face defined by the end face defining step and is parallel to the reference plane;
A bending determination step for determining whether or not the end of the measurement object is bent, using the three-dimensional data representing the surface shape of the end of the measurement object in the three-dimensional shape data group;
When it is determined in the bending determination step that the end of the measurement object is bent, the measurement plane defined in the measurement plane definition step is the end of the measurement object is linear. A measurement plane correction step for correcting to the measurement plane in
The length of the measurement object is calculated using the measurement plane defined by the measurement plane definition step or the measurement plane corrected by the measurement plane correction step and the reference distance stored in the storage device. And a length calculating step.
前記支持手段に支持された複数の測定対象物に対応して生成される3次元形状データ群を、同複数の測定対象ごとに分類する3次元形状データ分類ステップを有し、
前記端面定義ステップは、前記複数の測定対象物ごとに長さ測定の対象となる端面を定義し、
前記測定用平面定義ステップは、前記複数の測定対象物ごとに測定用平面を定義し、
前記長さ計算ステップは、前記複数の測定対象物ごとに測定対象物の長さを計算する長さ測定方法。 The length measurement method according to any one of claims 10 to 17, further comprising:
A three-dimensional shape data classification step of classifying a three-dimensional shape data group generated corresponding to a plurality of measurement objects supported by the support means for each of the plurality of measurement objects;
The end surface definition step defines an end surface to be a length measurement target for each of the plurality of measurement objects,
The measurement plane definition step defines a measurement plane for each of the plurality of measurement objects,
The length calculation step is a length measurement method in which a length of the measurement object is calculated for each of the plurality of measurement objects.
前記3次元形状測定装置の座標系内における所定の第1測定基準位置と、同3次元形状測定装置により測定される測定対象物の端部の反対側の端部における端面の位置を特定するための所定の第2測定基準位置との測定対象物の前記軸線に沿った距離を基準距離として前記記憶装置に記憶させ、
前記支持手段に支持される測定対象物における長さ測定の対象となる端面間の軸線と直交する平面を基準面として定義させ、
前記3次元形状測定装置の測定対象空間内に前記支持手段に支持された測定対象物における長さ測定の対象となる端面を含む端部を少なくとも配置した状態で、前記3次元形状測定装置に前記支持手段に支持された測定対象物に向けて光を照射させて同測定対象物からの反射光を用いて前記長さ測定の対象となる端面を含む端部を少なくとも含む測定対象物の表面の3次元形状を測定させ、同測定対象物の3次元表面形状を表す3次元形状データ群を生成させ、
前記生成された3次元形状データ群を用いて、前記測定対象物における長さ測定の対象となる端面を定義させ、
前記定義させた端面内の一点を含み、かつ前記基準面に平行な測定用平面を定義させ、
前記定義させた測定用平面と前記記憶装置に記憶させた基準距離とを用いて、測定対象物の長さを計算させるようにした長さ測定用コンピュータプログラム。 The length of the measurement object including a support means for supporting the measurement object, a three-dimensional shape measurement device for measuring the three-dimensional shape of the surface of the object, and a computer unit that includes a storage device and executes a computer program. A computer program applied to a length measuring device for measuring, wherein the computer unit includes:
In order to specify the predetermined first measurement reference position in the coordinate system of the three-dimensional shape measuring apparatus and the position of the end face at the end opposite to the end of the measurement object measured by the three-dimensional shape measuring apparatus. A distance along the axis of the measurement object with a predetermined second measurement reference position is stored as a reference distance in the storage device,
A plane perpendicular to the axis between the end faces to be measured in the measurement object supported by the support means is defined as a reference plane;
In the state where at least an end portion including an end surface to be a length measurement target in the measurement object supported by the support means is arranged in the measurement target space of the three-dimensional shape measurement apparatus, the three-dimensional shape measurement apparatus The surface of the measurement object including at least an end including the end face to be subjected to the length measurement by irradiating light toward the measurement object supported by the support means and using the reflected light from the measurement object. Measuring a three-dimensional shape, generating a three-dimensional shape data group representing the three-dimensional surface shape of the measurement object,
Using the generated three-dimensional shape data group, an end face to be a length measurement target in the measurement object is defined,
A measurement plane including a point in the defined end face and parallel to the reference plane is defined;
A length-measuring computer program for calculating the length of a measurement object using the defined measurement plane and a reference distance stored in the storage device.
前記第1測定基準位置は、前記3次元形状測定装置の座標系における座標原点であり、前記第2測定基準位置は、前記3次元形状測定装置により測定される測定対象物の端部とは反対側の端部を特定の位置に位置決めする位置である長さ測定用コンピュータプログラム。 The computer program for length measurement according to claim 19,
The first measurement reference position is a coordinate origin in the coordinate system of the three-dimensional shape measurement apparatus, and the second measurement reference position is opposite to an end of the measurement object measured by the three-dimensional shape measurement apparatus. A computer program for length measurement which is a position for positioning a side end portion at a specific position.
前記2つの3次元形状測定装置のうち、一方の3次元形状測定装置の座標系内における所定の第1測定基準位置と、他方の3次元形状測定装置の座標系内における所定の第2測定基準位置との測定対象物の前記軸線に沿った距離を基準距離として前記記憶装置に記憶させ、
前記支持手段に支持される測定対象物における長さ測定の対象となる端面間の軸線と直交する平面を基準面定義させ、
前記2つの3次元形状測定装置の各測定対象空間内にそれぞれ前記支持手段に支持された測定対象物における長さの測定の対象となる2つの端面をそれぞれ含む各端部を少なくとも配置した状態で、前記2つの3次元形状測定装置に前記支持手段に支持された測定対象物に向けてそれぞれ光を照射させて同測定対象物からの各反射光を用いて前記長さ測定の対象となる2つの端面をそれぞれ含む各端部を少なくとも含む測定対象物の表面の3次元形状をそれぞれ測定させ、同測定対象物の各3次元表面形状を表す3次元形状データ群をそれぞれ生成させ、
前記それぞれ生成された各3次元形状データ群を用いて、前記測定対象物における長さ測定の対象となる2つの端面をそれぞれ定義させ、
前記それぞれ定義させた各端面内の一点を含み、かつ前記基準面に平行な測定用平面をそれぞれ定義させ、
前記一方の3次元形状測定装置に対応する測定用平面と前記第1測定基準位置との距離を第1距離として計算させるとともに、前記他方の3次元形状測定装置に対応する測定用平面と前記第2測定基準位置との距離を第2距離として計算させて、前記記憶装置に記憶された基準距離から前記第1距離および第2距離を減算させることにより測定対象物の長さを計算させるようにした長さ測定用コンピュータプログラム。 The length of the measuring object including supporting means for supporting the measuring object, two three-dimensional shape measuring devices for measuring the three-dimensional shape of the surface of the object, and a computer unit that includes a storage device and executes a computer program A computer program applied to a length measuring device for measuring thickness, wherein the computer unit includes:
Of the two three-dimensional shape measuring devices, a predetermined first measurement reference position in the coordinate system of one three-dimensional shape measuring device and a predetermined second measurement reference in the coordinate system of the other three-dimensional shape measuring device. The distance along the axis of the measurement object with respect to the position is stored in the storage device as a reference distance,
A plane perpendicular to the axis between the end faces to be measured in the measurement object supported by the support means is defined as a reference plane;
In a state where at least each end portion including each of two end faces to be subjected to measurement of the length of the measurement object supported by the support means is disposed in each measurement object space of the two three-dimensional shape measuring apparatuses. The two three-dimensional shape measuring devices are irradiated with light toward the measurement object supported by the support means, and the reflected light from the measurement object is used for the length measurement 2. Measuring the three-dimensional shape of the surface of the measurement object including at least each end including each of the two end surfaces, and generating each three-dimensional shape data group representing each three-dimensional surface shape of the measurement object,
Using each of the three-dimensional shape data groups generated respectively, two end faces to be length measurement targets in the measurement object are respectively defined,
A measuring plane that includes one point in each of the defined end faces and is parallel to the reference plane,
The distance between the measurement plane corresponding to the one three-dimensional shape measuring apparatus and the first measurement reference position is calculated as a first distance, and the measurement plane corresponding to the other three-dimensional shape measuring apparatus and the first 2 The distance from the measurement reference position is calculated as the second distance, and the length of the measurement object is calculated by subtracting the first distance and the second distance from the reference distance stored in the storage device. Computer program for length measurement.
前記第1測定基準位置は、前記一方の3次元形状測定装置の座標系における座標原点であり、前記第2測定基準位置は、前記他方の3次元形状測定装置の座標系における座標原点である長さ測定用コンピュータプログラム。 The computer program for length measurement according to claim 21,
The first measurement reference position is a coordinate origin in the coordinate system of the one three-dimensional shape measurement apparatus, and the second measurement reference position is a coordinate origin in the coordinate system of the other three-dimensional shape measurement apparatus. Computer program for measurement.
前記測定用平面を定義するために用いた各端面内の一点は、同端面における中心点、同端面における重心点、同端面に面する3次元形状測定装置に対して最も近い点および同端面に面する3次元形状測定装置に対して最も遠い点のうちのいずれか1つである長さ測定用コンピュータプログラム。 A computer program for length measurement according to any one of claims 19 to 22,
One point in each end face used to define the measurement plane is a center point on the end face, a centroid point on the end face, a point closest to the three-dimensional shape measuring apparatus facing the end face, and the end face. A computer program for length measurement which is one of the furthest points with respect to the facing three-dimensional shape measuring apparatus.
前記3次元形状データ群のうち測定対象物の端部における外周面の表面形状を表す3次元データを用いて、同測定対象物における中心軸を計算させ、
前記定義させた端面と前記計算させた中心軸との交点を前記測定対象物の端面における中心点として計算させ、
前記計算させた端面の中心点を含むとともに前記基準面に平行な平面を測定用平面として定義させるようにした長さ測定用コンピュータプログラム。 The computer program for length measurement according to any one of claims 19 to 22, wherein the computer unit further includes:
Using the three-dimensional data representing the surface shape of the outer peripheral surface at the end of the measurement object in the three-dimensional shape data group, the central axis of the measurement object is calculated,
The intersection of the defined end surface and the calculated center axis is calculated as the center point on the end surface of the measurement object,
A computer program for length measurement, wherein a plane including the calculated center point of the end face and parallel to the reference plane is defined as a measurement plane.
前記定義させた端面の前記基準面に対する角度が所定の範囲内であるとき、測定対象物の長さ測定が可能であると判定させ、
測定対象物の長さ測定が可能と判定されたとき、同測定対象物の長さを計算するようにした長さ測定用コンピュータプログラム。 25. The computer program for length measurement according to any one of claims 19 to 24, further comprising:
When the angle of the defined end surface with respect to the reference surface is within a predetermined range, it is determined that the length measurement of the measurement object is possible,
A length-measuring computer program for calculating the length of a measurement object when it is determined that the length of the measurement object can be measured.
前記3次元形状測定装置の座標系内における所定の第1測定基準位置と、同3次元形状測定装置により測定される測定対象物の端部の反対側の端部における端面の位置を特定するための所定の第2測定基準位置との測定対象物の前記軸線に沿った距離を基準距離として前記記憶装置に記憶させ、
前記支持手段に支持される測定対象物における長さ測定の対象となる端面間の軸線と直交する平面を基準面として定義させ、
前記3次元形状測定装置の測定対象空間内に前記支持手段に支持された測定対象物における長さ測定の対象となる端面を含む端部を少なくとも配置した状態で、前記3次元形状測定装置に前記支持手段に支持された測定対象物に向けて光を照射させて同測定対象物からの反射光を用いて前記長さ測定の対象となる端面を含む端部を少なくとも含む測定対象物の表面の3次元形状を測定させ、同測定対象物の3次元表面形状を表す3次元形状データ群を生成させ、
前記生成された3次元形状データ群を用いて、前記測定対象物における長さ測定の対象となる端面を定義させ、
前記定義させた端面内の一点を含み、かつ前記基準面に平行な測定用平面を定義させ、
前記3次元形状データ群のうち測定対象物における端部の表面形状を表す3次元データを用いて、同測定対象物における端部の曲がりの有無を判定させ、
測定対象物における端部の曲がりが有りと判定されたとき、前記定義させた測定用平面を、前記測定対象物における端部が直線状である場合における測定用平面に補正させ、
前記定義させた測定用平面または前記補正させた測定用平面と前記記憶装置に記憶させた基準距離とを用いて、測定対象物の長さを計算するようにした長さ測定用コンピュータプログラム。 The length of the measurement object including a support means for supporting the measurement object, a three-dimensional shape measurement device for measuring the three-dimensional shape of the surface of the object, and a computer unit that includes a storage device and executes a computer program. A computer program applied to a length measuring device for measuring, wherein the computer unit includes:
In order to specify the predetermined first measurement reference position in the coordinate system of the three-dimensional shape measuring apparatus and the position of the end face at the end opposite to the end of the measurement object measured by the three-dimensional shape measuring apparatus. A distance along the axis of the measurement object with a predetermined second measurement reference position is stored as a reference distance in the storage device,
A plane perpendicular to the axis between the end faces to be measured in the measurement object supported by the support means is defined as a reference plane;
In the state where at least an end portion including an end surface to be a length measurement target in the measurement object supported by the support means is arranged in the measurement target space of the three-dimensional shape measurement apparatus, the three-dimensional shape measurement apparatus The surface of the measurement object including at least an end including the end face to be subjected to the length measurement by irradiating light toward the measurement object supported by the support means and using the reflected light from the measurement object. Measuring a three-dimensional shape, generating a three-dimensional shape data group representing the three-dimensional surface shape of the measurement object,
Using the generated three-dimensional shape data group, an end face to be a length measurement target in the measurement object is defined,
A measurement plane including a point in the defined end face and parallel to the reference plane is defined;
Using the three-dimensional data representing the surface shape of the end of the measurement object in the three-dimensional shape data group, the presence or absence of bending of the end of the measurement object is determined,
When it is determined that the end of the measurement object is bent, the measurement plane defined above is corrected to the measurement plane when the end of the measurement object is linear,
A length-measuring computer program for calculating the length of a measurement object using the defined measurement plane or the corrected measurement plane and a reference distance stored in the storage device.
前記支持手段に支持された複数の測定対象物に対応して生成される3次元形状データ群を、同複数の測定対象ごとに分類させ、
前記複数の測定対象物ごとに前記長さ測定の対象となる端面を定義させ、
前記複数の測定対象物ごとに前記測定用平面を定義させ、
前記複数の測定対象物ごとに測定対象物の長さを計算させるようにした長さ測定コンピュータプログラム。
The length measurement computer program according to any one of claims 19 to 26, wherein the computer unit further includes:
A three-dimensional shape data group generated corresponding to a plurality of measurement objects supported by the support means is classified for each of the plurality of measurement objects,
For each of the plurality of measurement objects, define an end face to be subjected to the length measurement,
The measurement plane is defined for each of the plurality of measurement objects,
A length measurement computer program that calculates the length of a measurement object for each of the plurality of measurement objects.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2005296737A JP4555762B2 (en) | 2005-10-11 | 2005-10-11 | LENGTH MEASUREMENT DEVICE, LENGTH MEASUREMENT METHOD, AND LENGTH MEASUREMENT COMPUTER PROGRAM |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2005296737A JP4555762B2 (en) | 2005-10-11 | 2005-10-11 | LENGTH MEASUREMENT DEVICE, LENGTH MEASUREMENT METHOD, AND LENGTH MEASUREMENT COMPUTER PROGRAM |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2007107927A true JP2007107927A (en) | 2007-04-26 |
JP4555762B2 JP4555762B2 (en) | 2010-10-06 |
Family
ID=38033911
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2005296737A Expired - Fee Related JP4555762B2 (en) | 2005-10-11 | 2005-10-11 | LENGTH MEASUREMENT DEVICE, LENGTH MEASUREMENT METHOD, AND LENGTH MEASUREMENT COMPUTER PROGRAM |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP4555762B2 (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2012098182A (en) * | 2010-11-02 | 2012-05-24 | Tokyo Electric Power Co Inc:The | Load stress estimation method for support for aerial facility and shape measuring method of pole-like structure |
JP2012242282A (en) * | 2011-05-20 | 2012-12-10 | Omron Corp | Method, device and program for calculating position of head portion and direction of shaft portion of detection object |
JP2012242281A (en) * | 2011-05-20 | 2012-12-10 | Omron Corp | Method, device and program for calculating center position of detection object |
JP2014055955A (en) * | 2012-09-13 | 2014-03-27 | Alstom Technology Ltd | Method and system for measuring quality of tube |
WO2020026677A1 (en) * | 2018-07-31 | 2020-02-06 | 株式会社ニコン | Detection device, processing device, detection method, and processing program |
JP2022063582A (en) * | 2020-10-12 | 2022-04-22 | 株式会社神戸製鋼所 | Round rod body length measurement device and method |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS61130803A (en) * | 1984-11-30 | 1986-06-18 | Noda Plywood Mfg Co Ltd | Centering method of material wood |
JP2000171211A (en) * | 1998-12-04 | 2000-06-23 | Nkk Corp | Pipe length measuring instrument |
JP2001311617A (en) * | 2000-04-28 | 2001-11-09 | Sekisui Chem Co Ltd | Apparatus and method for measuring dimension |
JP2003262514A (en) * | 2002-03-11 | 2003-09-19 | Daido Steel Co Ltd | Management system for round steel product |
-
2005
- 2005-10-11 JP JP2005296737A patent/JP4555762B2/en not_active Expired - Fee Related
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS61130803A (en) * | 1984-11-30 | 1986-06-18 | Noda Plywood Mfg Co Ltd | Centering method of material wood |
JP2000171211A (en) * | 1998-12-04 | 2000-06-23 | Nkk Corp | Pipe length measuring instrument |
JP2001311617A (en) * | 2000-04-28 | 2001-11-09 | Sekisui Chem Co Ltd | Apparatus and method for measuring dimension |
JP2003262514A (en) * | 2002-03-11 | 2003-09-19 | Daido Steel Co Ltd | Management system for round steel product |
Cited By (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2012098182A (en) * | 2010-11-02 | 2012-05-24 | Tokyo Electric Power Co Inc:The | Load stress estimation method for support for aerial facility and shape measuring method of pole-like structure |
JP2012242282A (en) * | 2011-05-20 | 2012-12-10 | Omron Corp | Method, device and program for calculating position of head portion and direction of shaft portion of detection object |
JP2012242281A (en) * | 2011-05-20 | 2012-12-10 | Omron Corp | Method, device and program for calculating center position of detection object |
JP2014055955A (en) * | 2012-09-13 | 2014-03-27 | Alstom Technology Ltd | Method and system for measuring quality of tube |
CN103884275A (en) * | 2012-09-13 | 2014-06-25 | 阿尔斯通技术有限公司 | Method and system for determining quality of tubes |
TWI512262B (en) * | 2012-09-13 | 2015-12-11 | Alstom Technology Ltd | Method and system for determining quality of tubes |
US9491412B2 (en) | 2012-09-13 | 2016-11-08 | General Electric Technology Gmbh | Method and system for determining quality of tubes |
WO2020026677A1 (en) * | 2018-07-31 | 2020-02-06 | 株式会社ニコン | Detection device, processing device, detection method, and processing program |
JPWO2020026677A1 (en) * | 2018-07-31 | 2021-08-02 | 株式会社ニコン | Detection device, processing device, detection method, and processing program |
JP7024876B2 (en) | 2018-07-31 | 2022-02-24 | 株式会社ニコン | Detection device, processing device, detection method, and processing program |
JP2022063582A (en) * | 2020-10-12 | 2022-04-22 | 株式会社神戸製鋼所 | Round rod body length measurement device and method |
JP7335859B2 (en) | 2020-10-12 | 2023-08-30 | 株式会社神戸製鋼所 | ROUND BAR LENGTH MEASURING DEVICE AND METHOD |
Also Published As
Publication number | Publication date |
---|---|
JP4555762B2 (en) | 2010-10-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP4555762B2 (en) | LENGTH MEASUREMENT DEVICE, LENGTH MEASUREMENT METHOD, AND LENGTH MEASUREMENT COMPUTER PROGRAM | |
EP1739391B1 (en) | Image obtaining apparatus | |
JP4443497B2 (en) | Multi-degree-of-freedom robot positioning error correction apparatus and positioning error correction method | |
US7502504B2 (en) | Three-dimensional visual sensor | |
JP2007101197A (en) | Object search system, robot system equipped with object searchsystem and object search method | |
JP5679560B2 (en) | Dimension measuring apparatus, dimension measuring method and program for dimension measuring apparatus | |
US20050154548A1 (en) | Method for calibration of a 3D measuring device | |
WO2015124756A1 (en) | Method of inspecting an object with a vision probe | |
KR20210076205A (en) | Method for the three-dimensional measuring of moving objects during known movement | |
JP2021193400A (en) | Method for measuring artefact | |
JP3944091B2 (en) | 3D image data generation method | |
US11276198B2 (en) | Apparatus for determining dimensional and geometric properties of a measurement object | |
JP4291178B2 (en) | 3D shape measuring system, measuring method, and 3D shape measuring stage device | |
JP5270138B2 (en) | Calibration jig and calibration method | |
JP4863006B2 (en) | 3D shape measurement method | |
Tai et al. | Noncontact profilometric measurement of large-form parts | |
JP6526465B2 (en) | Roundness measuring device | |
JP6751688B2 (en) | Evaluation device and evaluation method | |
JP6554342B2 (en) | Measuring system and measuring method | |
JP4670700B2 (en) | 3D shape measuring device | |
Arko et al. | Automatic Calibration of the Adaptive 3D Scanner-Based Robot Welding System | |
JP6543170B2 (en) | Measuring device and measuring method | |
JP2001091891A (en) | Irradiation position control method and device for wedge prism | |
JP3952467B2 (en) | 3D data extraction method and 3D data extraction apparatus | |
JPS6129709A (en) | Measuring method of shape |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20070627 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20100125 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20100413 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20100511 |
|
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: 20100706 |
|
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20100716 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20130723 Year of fee payment: 3 |
|
R150 | Certificate of patent or registration of utility model |
Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
S533 | Written request for registration of change of name |
Free format text: JAPANESE INTERMEDIATE CODE: R313533 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20130723 Year of fee payment: 3 |
|
R350 | Written notification of registration of transfer |
Free format text: JAPANESE INTERMEDIATE CODE: R350 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20130723 Year of fee payment: 3 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
S111 | Request for change of ownership or part of ownership |
Free format text: JAPANESE INTERMEDIATE CODE: R313115 |
|
R350 | Written notification of registration of transfer |
Free format text: JAPANESE INTERMEDIATE CODE: R350 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
LAPS | Cancellation because of no payment of annual fees |