JP5222314B2 - Surface measurement method and apparatus - Google Patents

Surface measurement method and apparatus Download PDF

Info

Publication number
JP5222314B2
JP5222314B2 JP2010033747A JP2010033747A JP5222314B2 JP 5222314 B2 JP5222314 B2 JP 5222314B2 JP 2010033747 A JP2010033747 A JP 2010033747A JP 2010033747 A JP2010033747 A JP 2010033747A JP 5222314 B2 JP5222314 B2 JP 5222314B2
Authority
JP
Japan
Prior art keywords
value
measurement
threshold
class
average value
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP2010033747A
Other languages
Japanese (ja)
Other versions
JP2011169742A (en
Inventor
宏 荒井
修久 瀬谷
大輔 五十嵐
博之 中野
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hitachi Ltd
Original Assignee
Hitachi Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP2010033747A priority Critical patent/JP5222314B2/en
Publication of JP2011169742A publication Critical patent/JP2011169742A/en
Application granted granted Critical
Publication of JP5222314B2 publication Critical patent/JP5222314B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本説明は、対象物の表面を計測する方法及び装置に関する。   The present description relates to a method and apparatus for measuring the surface of an object.

加工後の対象物が加工指示値を満足するか否かを判断するために加工後の表面寸法を測定するために使用される表面計測方法及び装置が知られている。   There is known a surface measurement method and apparatus used for measuring a surface dimension after processing in order to determine whether or not a processed object satisfies a processing instruction value.

例えば、特許文献1には、加工後の対象物の凹面計測結果に大きな加工誤差が生じている場合、成形面の誤差分布関数を用いて、この関数から所定値以上逸脱した測定点を除去して、誤差量を推測し、補正加工の工具軌跡を出力する技術が記載されている。   For example, in Patent Document 1, when a large processing error occurs in the concave measurement result of the processed object, a measurement point that deviates from the function by a predetermined value or more is removed using an error distribution function of the molding surface. A technique for estimating an error amount and outputting a tool path for correction machining is described.

このように、表面に凹部が形成される対象物の場合、凹部を除去し、その他の平面部の加工精度を確認する必要がある。   Thus, in the case of the target object in which a recessed part is formed in the surface, it is necessary to remove a recessed part and to confirm the processing precision of other plane parts.

従来、平面部と凹部とを分離する方法として、非特許文献1及び非特許文献2に記載された技術が知られている。   Conventionally, techniques described in Non-Patent Document 1 and Non-Patent Document 2 are known as methods for separating a flat portion and a concave portion.

特開2009−136937号公報JP 2009-136937 A Otsu, Nobuyuki:A Threshold Selection Method From Gray‐Level Histograms, IEEE Transactions on Systems, Man, and Cybernetics, Vol. SMC-9,No.1,pp.62‐66,1979Otsu, Nobuyuki: A Threshold Selection Method From Gray-Level Histograms, IEEE Transactions on Systems, Man, and Cybernetics, Vol. SMC-9, No. 1, pp. 62-66, 1979 大津展之:判別および最小2乗規準に基づく自動しきい値選定法,電子通信学会論文誌D, Vol.63, No.4, pp.349‐356,1980Nobuyuki Otsu: Automatic threshold selection method based on discrimination and least squares criterion, IEICE Transactions D, Vol.63, No.4, pp.349-356, 1980

上記非特許文献に記載の判別分析2値化法は、画像処理手法の一つで、カメラで撮影した画像から背景を分離するための閾値を自動的に定める方法として提案されている。   The discriminant analysis binarization method described in the above-mentioned non-patent document is one of image processing methods, and has been proposed as a method for automatically determining a threshold for separating a background from an image photographed by a camera.

判別分析2値化法を計測対象物の平面部と凹部とを分離する方法に適用する場合を考慮してみる。   Consider the case where the discriminant analysis binarization method is applied to a method for separating a flat portion and a concave portion of a measurement object.

最初に、対象物から得られた複数の計測データから最小二乗法で近似直線を作成する。次に、近似直線と計測データとの差を作成する。その後、当該差の最小値と最大値を作成し、最小値と最大値の間を区間分割し、当該区間内に入る当該差の個数を定める。この区間番号を横軸とし、個数を縦軸としたヒストグラムを作成し、当該ヒストグラムから判別分析2値化法におけるクラス間分散を作成する。   First, an approximate straight line is created by a least square method from a plurality of measurement data obtained from an object. Next, a difference between the approximate line and the measurement data is created. Thereafter, the minimum value and the maximum value of the difference are created, and the interval between the minimum value and the maximum value is divided, and the number of the differences that fall within the interval is determined. A histogram with the interval number as the horizontal axis and the number as the vertical axis is created, and the inter-class variance in the discriminant analysis binarization method is created from the histogram.

次に、クラス間分散の最大値を閾値とする。この閾値は区間番号であるので、区間番号に対応する差の値を定め、近似直線と計測データとの差が閾値から定めた差以上かを判別し、計測データを分離する。このようにして、平面部と凹部とを分離することができる。   Next, the maximum value of interclass variance is set as a threshold value. Since this threshold value is a section number, a difference value corresponding to the section number is determined, it is determined whether the difference between the approximate line and the measurement data is greater than or equal to the difference determined from the threshold value, and the measurement data is separated. In this way, the plane portion and the recess can be separated.

しかしながら、上記方法を、平面部の近辺に小さな凹部(孔部分)が形成されている場合の対象物に適用すると、ヒストグラムに対するクラス間分散の最大値が閾値となるため、近似直線と上記凹部の計測データとの差は、閾値より小となり、孔部分を除去することができない。   However, when the above method is applied to an object in the case where a small concave portion (hole portion) is formed in the vicinity of the flat portion, the maximum value of the interclass variance with respect to the histogram becomes a threshold value. The difference from the measurement data is smaller than the threshold value, and the hole portion cannot be removed.

また、判別分析2値化法を、クラス間分散が大局的に正規分布となるような計測点に適用すると、正規分布の中央部分に閾値を設定してしまうため、平面部でありながら、半分以上の計測データが分離されてしまうという問題がある。   In addition, when the discriminant analysis binarization method is applied to measurement points where the variance between classes is generally a normal distribution, a threshold value is set in the central portion of the normal distribution. There exists a problem that the above measurement data will be isolate | separated.

本発明の目的は、計測対象物の平面部と凹部とを正確に分離可能な表面計測方法及び装置を実現することである。   An object of the present invention is to realize a surface measurement method and apparatus capable of accurately separating a flat portion and a concave portion of a measurement object.

本発明は、上記目的を達成するため、次のように構成される。   In order to achieve the above object, the present invention is configured as follows.

計測対象物の表面の平面部と凹部とを分離する表面計測方法及び装置であり、計測対象物表面の位置データに従って、最小二乗法により近似線を算出し、算出した近似線と計測データとの距離に対応するクラス番号を有する複数のクラスに分割し、分割したクラスに入る上記算出した近似線と計測データとの距離値の個数を算出し、クラス間分散が最大のクラスのクラス番号を第1の閾値とし、クラス番号とそのクラスに入る個数とから全クラスの平均値を算出し、第1の閾値と上記平均値との差が一定値以内となるまで、第1の閾値以下の計測データを除外して得られた計測データについて、再度、上記近似線、上記クラス、上記クラス間分散を算出して、第1の閾値と平均値とを算出し、平均値との差が一定値以内となった第1の閾値に対応する計測データを使用して計測対象物平面部のデータとする。   A surface measurement method and apparatus for separating a planar portion and a concave portion of a surface of a measurement object, calculating an approximate line by a least square method according to position data of the surface of the measurement object, and calculating the approximate line and the measurement data Divide into multiple classes having class numbers corresponding to the distances, calculate the number of distance values between the calculated approximate line and the measured data that enter the divided classes, and determine the class number of the class with the largest interclass variance. The average value of all classes is calculated from the class number and the number of members in the class, and the measurement is less than the first threshold until the difference between the first threshold and the average value is within a certain value. For the measurement data obtained by excluding the data, the approximation line, the class, and the inter-class variance are calculated again, the first threshold value and the average value are calculated, and the difference from the average value is a constant value. To the first threshold within Use response to measurement data to the measuring object plane of the data.

本発明によれば、計測対象物の平面部と凹部とを正確に分離可能な表面計測方法及び装置を実現することができる。   ADVANTAGE OF THE INVENTION According to this invention, the surface measuring method and apparatus which can isolate | separate the plane part and recessed part of a measurement target object correctly are realizable.

本発明の実施例1である表面計測装置の概略構成図である。It is a schematic block diagram of the surface measuring apparatus which is Example 1 of this invention. 図1に示した表面計測装置の計測点分離処理を実行する計算機の内部構成図である。It is an internal block diagram of the computer which performs the measurement point separation process of the surface measuring apparatus shown in FIG. 本発明の実施例1における計測点分離方法の処理フローチャートである。It is a process flowchart of the measurement point separation method in Example 1 of this invention. 本発明が適用される計測データの、近似線、ヒストグラム、閾値を説明するための一例を示す図である。It is a figure which shows an example for demonstrating an approximate line, a histogram, and a threshold value of the measurement data to which this invention is applied. 本発明が適用される計測データの、近似線、ヒストグラム、閾値を説明するための他の例を示す図である。It is a figure which shows the other example for demonstrating an approximate line, a histogram, and a threshold value of the measurement data to which this invention is applied. 本発明が適用される計測データの、近似線、ヒストグラム、閾値を説明するためのさらに他の例を示す図である。It is a figure which shows the further another example for demonstrating an approximate line, a histogram, and a threshold value of the measurement data to which this invention is applied. 本発明が適用される計測データの、近似線、ヒストグラム、閾値を説明するためのさらに他の例を示す図である。It is a figure which shows the further another example for demonstrating an approximate line, a histogram, and a threshold value of the measurement data to which this invention is applied. 本発明における計測点データ、頻度データ、直線データ、しきい値1データを示すデータ構造図である。It is a data structure figure which shows the measurement point data in this invention, frequency data, straight line data, and threshold value 1 data.

以下、本発明の実施形態について、添付図面を参照して説明する。   Embodiments of the present invention will be described below with reference to the accompanying drawings.

図1は、本発明の一実施例である表面計測装置の概略構成図、図2は図1の計測点分類処理108を実施する計算機200の構成図、図3は図1の計測点分類処理108の処理を示すフローチャート、図4〜図7は計測点と近似曲線およびヒストグラムの関係を示す説明図、図8は計測点の分類処理で用いるデータ構造を示す説明図である。   FIG. 1 is a schematic configuration diagram of a surface measuring apparatus according to an embodiment of the present invention, FIG. 2 is a configuration diagram of a computer 200 that performs the measurement point classification process 108 of FIG. 1, and FIG. 3 is a measurement point classification process of FIG. FIG. 4 to FIG. 7 are explanatory diagrams showing the relationship between measurement points, approximate curves and histograms, and FIG. 8 is an explanatory diagram showing the data structure used in the measurement point classification processing.

なお、本発明の実施例においては、計測対象物は、金属加工物等の光を反射する対象物である。そして、加工後の対象物が、加工指示値を満足するか否かを判断するために、加工後の表面位置寸法(位置データ(座標データ))を測定するために使用される表面計測装置の実施例につき説明する。   In the embodiment of the present invention, the measurement object is an object that reflects light, such as a metal workpiece. Then, in order to determine whether or not the processed object satisfies the processing instruction value, the surface measuring device used for measuring the surface position dimension (position data (coordinate data)) after processing. Examples will be described.

図1において、101はセンサ、102はセンサから照射するライン光(計測光)、103は計測対象物、104はライン光102が計測対象物103に照射されたときにできる拡散反射光、105はセンサ101に内蔵されたカメラ(反射光撮像手段)の視野、106はセンサ101に内蔵されたカメラからの画像信号を計測点に変換するコントローラ(計測点変換手段)、107は計測点を格納する記憶装置、108は計算機で実行する計測点分類処理機能ブロックである。   In FIG. 1, 101 is a sensor, 102 is line light (measurement light) emitted from the sensor, 103 is a measurement object, 104 is diffuse reflection light generated when the line light 102 is irradiated on the measurement object 103, and 105 is The field of view of the camera (reflected light imaging means) built in the sensor 101, 106 a controller (measuring point conversion means) for converting an image signal from the camera built in the sensor 101 into measurement points, and 107 for storing the measurement points. A storage device 108 is a measurement point classification processing function block executed by the computer.

図1において、センサ101は計測対象物103の上方に配置され、計測対象物103の上面を撮影可能な状態になっている。計算機200は、図2に示すように、図1のコントローラ106や図示しない他の計算機にデータを送受信するための通信装置201、マウスやキーボードなどの入力装置202、グラフィックディスプレイなどの表示装置203、ハードディスクや外付けメモリなどの記憶装置204、命令データを蓄積するためのメモリ205、入力装置202からの入力データに従って通信装置201、記憶装置204、メモリ205へのデータ授受、表示装置203への表示データを送付するための命令を実行する中央処理装置206を備える。センサ101からスリット光102を計測対象物103に照射し、スリット光102の拡散反射光104をセンサ101が内蔵するカメラで読み取り、当該画像をコントローラ106が画像処理した後、3角測量方式などを用いて3次元空間の点に変換することで作成される。   In FIG. 1, the sensor 101 is disposed above the measurement target 103 and is in a state where the upper surface of the measurement target 103 can be photographed. As shown in FIG. 2, the computer 200 includes a communication device 201 for transmitting and receiving data to the controller 106 in FIG. 1 and other computers (not shown), an input device 202 such as a mouse and a keyboard, a display device 203 such as a graphic display, A storage device 204 such as a hard disk or an external memory, a memory 205 for storing command data, a data transfer to the communication device 201, the storage device 204, and the memory 205 in accordance with input data from the input device 202, and a display on the display device 203 A central processing unit 206 is provided for executing instructions for sending data. The slit light 102 is irradiated from the sensor 101 onto the measurement object 103, the diffuse reflected light 104 of the slit light 102 is read by a camera built in the sensor 101, and the image is processed by the controller 106. It is created by converting to a point in a three-dimensional space.

計算機200が実行する計測点分類処理108の動作を図1〜図8を用いて説明する。   The operation of the measurement point classification process 108 executed by the computer 200 will be described with reference to FIGS.

計算機200が入力装置202から処理実行命令を入力すると、計測点読取処理110により記憶装置107に格納された計測点データを読み取る(図3のステップ301)。計測点読取処理110から読み取った計測点データは、範囲外点排除処理111により、計測範囲外データが排除される(図3のステップ302)。   When the computer 200 inputs a process execution command from the input device 202, the measurement point data stored in the storage device 107 is read by the measurement point reading process 110 (step 301 in FIG. 3). The measurement point data read from the measurement point reading process 110 is excluded by the out-of-range point exclusion process 111 (step 302 in FIG. 3).

ここで、計測範囲外データとは、非数値データ“NaN”、センサ101の仕様により定まり予め記憶装置107に格納しておいた計測範囲上限データ“1000.0”および計測範囲下限データ“−1000.0”である。   Here, the data outside the measurement range is non-numeric data “NaN”, measurement range upper limit data “1000.0” and measurement range lower limit data “−1000” determined by the specifications of the sensor 101 and stored in the storage device 107 in advance. .0 ".

排除処理は、図8に示す計測点データの識別子に排除と設定することである。   The exclusion process is to set exclusion to the identifier of the measurement point data shown in FIG.

より具体的には、識別子を論理データで構成し、採用を示す“True”、排除を示す“False”を設定する。なお、識別子は論理データに限定されるものではなく、整数、実数、文字列などで採用と排除が区別できる値であれば良い。   More specifically, the identifier is composed of logical data, and “True” indicating adoption and “False” indicating exclusion are set. The identifier is not limited to logical data, and may be an integer, real number, character string, or the like that can be distinguished from adoption and exclusion.

次に、最頻点抽出処理(計測データ抽出処理手段)112により、読み取った計測点を必要な計測点に分離する(図3のステップ303〜ステップ308)。   Next, the read mode measurement points are separated into necessary measurement points by the most frequent point extraction process (measurement data extraction processing means) 112 (step 303 to step 308 in FIG. 3).

次に、精度向上処理(精度向上処理手段)113により、予め設定し記憶装置107に格納しておいた閾値2により計測点を分類する(図3のステップ310〜ステップ312)。   Next, the measurement points are classified by the threshold value 2 set in advance and stored in the storage device 107 by the accuracy improvement processing (accuracy improvement processing means) 113 (steps 310 to 312 in FIG. 3).

なお、閾値2は、例えば、計測対象物の仕様、諸元等により定まる最大許容分散値である。このため、閾値2は計測対象物毎に予め定め記憶装置107に格納することとしている。   The threshold value 2 is a maximum allowable dispersion value determined by, for example, the specification of the measurement object, specifications, and the like. For this reason, the threshold value 2 is predetermined for each measurement object and stored in the storage device 107.

最後に、計測点格納処理114により、分離した計測点を記憶装置107に格納する(図3のステップ313)。   Finally, the measurement point storage processing 114 stores the separated measurement points in the storage device 107 (step 313 in FIG. 3).

次に、本発明の特徴である最頻点抽出処理112および制度向上処理113の動作を図3のフローチャートに従い詳細に説明する。   Next, operations of the most frequent point extraction process 112 and the system improvement process 113, which are the features of the present invention, will be described in detail with reference to the flowchart of FIG.

最初に、最頻点抽出処理112を図3のフローチャートのステップ303〜ステップ308を用いて説明する。   First, the most frequent point extraction process 112 will be described using steps 303 to 308 in the flowchart of FIG.

最頻点抽出処理112は、範囲外点排除処理111によって、計測点の採用・排除を識別する識別子に、採用・排除を示す識別符号が設定された計測点データを入力とする。   The most frequent point extraction process 112 receives, as an input, measurement point data in which an identification code indicating adoption / rejection is set as an identifier for identifying adoption / rejection of a measurement point by the out-of-range point removal process 111.

最初に、ステップ303で、計測点データから採用を示す識別符号が設定された計測点データを抽出し、抽出した計測点データから最小二乗法で曲線を作成する。   First, in step 303, measurement point data to which an identification code indicating adoption is set is extracted from the measurement point data, and a curve is created from the extracted measurement point data by the least square method.

本発明の一実施例では、説明を簡単にするため当該曲線を1次曲線(直線)とする。なお、当該曲線は、最小二乗法における正規方程式が決定できることが前提であるが、N次多項式曲線、三角関数による曲線、スプライン曲線等を使用してもかまわない。   In one embodiment of the present invention, the curve is a primary curve (straight line) for the sake of simplicity. The curve is based on the premise that a normal equation in the least square method can be determined. However, an Nth order polynomial curve, a trigonometric curve, a spline curve, or the like may be used.

最小二乗曲線の定義式を(数式1)に示す。   The formula for defining the least squares curve is shown in (Formula 1).

Figure 0005222314
Figure 0005222314

上記(数式1)において、Piはi番目の採用された計測点であり、計測点が2次元ならP=[X,Y]で表すベクトル、3次元ならP=[X,Y,Z]で表すベクトル、Q(t)は曲線上のパラメータtにおける点である。 In the above (Formula 1), P i is the i-th adopted measurement point. If the measurement point is two-dimensional, P i = [X i , Y i ] is a vector represented by P i = [X i = [X i]. , Y i , Z i ], Q (t i ) is a point at the parameter t i on the curve.

ここで、曲線Q(t)は、例えば、1次多項式なら(数式2)に示す式であり、(数式2)におけるQが1次多項式における2次元または3次元の係数ベクトルである。 Here, the curve Q (t i ) is, for example, an expression shown in (Expression 2) if it is a first-order polynomial, and Q j in (Expression 2) is a two-dimensional or three-dimensional coefficient vector in the first-order polynomial.

Figure 0005222314
Figure 0005222314

曲線は、数式(2)で作成した係数ベクトルとパラメータtにより(数式3)で表す。   The curve is expressed by (Expression 3) by the coefficient vector created by Expression (2) and the parameter t.

例えば、2次元の直線の場合なら(数式3)において、Lを2とし、tを変化させて直線上の点を定める。   For example, in the case of a two-dimensional straight line (Equation 3), L is set to 2 and t is changed to determine a point on the straight line.

Figure 0005222314
Figure 0005222314

次に、ステップ304で計測点と当該曲線との差を作成する。この差は曲線に対してプラスマイナスの符号を持つ。距離がプラスとは、曲線の上方を表し、マイナスとは曲線の下方を表す。例えば、図4で言えば、最小二乗曲線502に対して上側の計測点501との距離がプラスであり、下側がマイナスである。   Next, in step 304, a difference between the measurement point and the curve is created. This difference has a plus or minus sign for the curve. A positive distance represents the upper part of the curve, and a negative represents the lower part of the curve. For example, in FIG. 4, the distance from the upper measurement point 501 with respect to the least square curve 502 is positive, and the lower side is negative.

長さ(計測点と当該曲線との差(距離L))の計算方法を(数式4)、(数式5)に示す。 The calculation method of the length (difference (distance L i ) between the measurement point and the curve) is shown in (Formula 4) and (Formula 5).

Figure 0005222314
Figure 0005222314

Figure 0005222314
Figure 0005222314

長さLは、最初に曲線と計測点の最短点の曲線パラメータtを(数式4)で求め、その曲線パラメータtを(数式5)に代入することで得る。ここで、(数式5)は曲線が2次元の平面上の場合であり、nは当該平面の法線である。 The length L i is obtained by first obtaining the curve parameter t of the shortest point of the curve and the measurement point by (Formula 4) and substituting the curve parameter t into (Formula 5). Here, (Formula 5) is a case where the curve is on a two-dimensional plane, and n is a normal line of the plane.

なお、曲線が3次元空間にある場合は、(数式6)で距離Lを求める。 When the curve is in a three-dimensional space, the distance L i is obtained by (Formula 6).

Figure 0005222314
Figure 0005222314

(数式6)において、Cは、曲線の下方にある点(計測データ点)である。 In (Expression 6), C 0 is a point (measurement data point) below the curve.

次に、ステップ305でヒストグラムを作成する。   Next, in step 305, a histogram is created.

最初に、ステップ304で求めた計測点と曲線の距離の差の最大値と最小値とを取り出す。最大値と最小値は、例えば、(数式5)あるいは(数式6)で求めた距離を昇順に並べ替え、並べ替えた距離の最初と最後の値を取り出せば良い。   First, the maximum value and the minimum value of the difference between the distance between the measurement point and the curve obtained in step 304 are extracted. For the maximum value and the minimum value, for example, the distances obtained by (Equation 5) or (Equation 6) are rearranged in ascending order, and the first and last values of the rearranged distances may be extracted.

他の方法としては、(数式5)あるいは(数式6)で求めた距離の最初の値を最大値と最小値の初期値として設定し、当該最小値より小さい距離が現れたときに最小値を入れ替え、当該最大値より大きい距離が現れたときに最大値を入れ替えるといった処理を最後まで繰り返してもよい。   As another method, the initial value of the distance obtained by (Equation 5) or (Equation 6) is set as the initial value of the maximum value and the minimum value, and when the distance smaller than the minimum value appears, the minimum value is set. The process of replacing the maximum value when a distance greater than the maximum value appears may be repeated until the end.

距離の最大値LMax、最小値LMinを(数式7)に示す。 The maximum value L Max and the minimum value L Min of the distance are shown in (Formula 7).

Figure 0005222314
Figure 0005222314

次に、区間毎の最小値と最大値を(数式8)で決定する。   Next, the minimum value and the maximum value for each section are determined by (Formula 8).

Figure 0005222314
Figure 0005222314

(数式8)において、Wは予め定められた区間数(ヒストグラムの横軸の区間数)であり記憶装置107に格納されている。kは0からW−1まで変化する係数である。   In (Equation 8), W is a predetermined number of sections (the number of sections on the horizontal axis of the histogram) and is stored in the storage device 107. k is a coefficient that varies from 0 to W-1.

(数式8)に示すように、距離の最大値LMax、と最小値LMinとの差を区間数Wで除することにより区間幅を作成し、当該区間幅に係数kを乗じて、最小値LMinを加えることにより、区間毎の最小値Lk,Minと最大値Lk,Maxを決定する。 As shown in (Formula 8), a section width is created by dividing the difference between the maximum value L Max of the distance and the minimum value L Min by the number of sections W, and the section width is multiplied by a coefficient k to obtain the minimum By adding the value L Min , the minimum value L k, Min and the maximum value L k, Max for each section are determined.

次に、区間毎の頻度を作成する。   Next, the frequency for each section is created.

頻度はその区間に入る距離を有する計測データ点数であるから、最小値Lk,Min以上であり、最大値Lk,Max以下となる計測点を判別し、その個数を決定すればよい。 Since the frequency is the number of measurement data points having a distance entering the section, the number of measurement points that are equal to or greater than the minimum value L k, Min and equal to or less than the maximum value L k, Max may be determined.

図4の503、513はこのようにして作成したヒストグラムの例である。   503 and 513 in FIG. 4 are examples of histograms created in this way.

次に、ステップ306で第1の閾値(閾値1)を作成する。   Next, in step 306, a first threshold value (threshold value 1) is created.

ステップ305で作成した区間Iにおける頻度をnとする。ここで、Iは1〜Wまで変化する。 The frequency in the interval I that was created in step 305 and n I. Here, I varies from 1 to W.

最初に、(数式9)を用いて頻度を正規化する。   First, the frequency is normalized using (Formula 9).

Figure 0005222314
Figure 0005222314

頻度nを正規化するのは、以下に示す(数式10)〜(数式13)を簡単にするためであり、(数式10)〜(数式13)の正規化した頻度Pを(数式9)の右辺で置き換えて記述すれば、頻度を正規化する必要はない。 The reason for normalizing the frequency n I is to simplify the following (Equation 10) to (Equation 13), and the normalized frequency P I of (Equation 10) to (Equation 13) is expressed as (Equation 9). ), It is not necessary to normalize the frequency.

正規化した頻度における全平均レベルμを(数式10)とする。 The overall average level mu T in normalized frequency and (Equation 10).

Figure 0005222314
Figure 0005222314

クラスIにおける分散であるクラス間分散σ (I)は(数式11)となる。 The interclass variance σ B 2 (I), which is the variance in class I, is given by (Equation 11).

Figure 0005222314
Figure 0005222314

(数式11)において、ω(I)、μ(I)は(数式12)、(数式13)で表す関数である。   In (Expression 11), ω (I) and μ (I) are functions expressed by (Expression 12) and (Expression 13).

Figure 0005222314
Figure 0005222314

Figure 0005222314
Figure 0005222314

第1の閾値1は(数式11)の区間の間の分散が最大となる区間Iで定める。   The first threshold 1 is determined by a section I in which the variance between the sections of (Formula 11) is maximum.

(数式11)において、分母が0となる場合は、区間の間の分散も0となる。これは、計算機に処理を実装する際の0割りを回避するために考慮する必要がある。   In (Formula 11), when the denominator is 0, the variance between sections is also 0. This needs to be taken into consideration in order to avoid 0 percent when the processing is implemented in the computer.

上記(数式9)から(数式13)で記述した処理を実行することで閾値1を算出する。   The threshold value 1 is calculated by executing the processes described in (Equation 9) to (Equation 13).

次に、ステップ307で、ステップ306で求めた閾値1と平均値とが、同一とみなせるかどうかを判定する。閾値1と後述する平均値とが同一とみなせる範囲は、全体の区間数や計測点の分布度合いに依存する量であり、予め設定して記憶装置107に格納しておく。   Next, in Step 307, it is determined whether or not the threshold 1 obtained in Step 306 and the average value can be regarded as the same. The range in which the threshold value 1 can be regarded as the same as the average value described later is an amount that depends on the total number of sections and the distribution degree of measurement points, and is preset and stored in the storage device 107.

なお、本実施例1で上記同一とみなせる範囲は、本発明による処理を実行可能な表面計測装置で多数の計測点サンプルを実行した結果、全体区間数の5%に入る場合と設定する。   In addition, the range which can be considered to be the same in the first embodiment is set as a case where 5% of the total number of sections is obtained as a result of executing a large number of measurement point samples by the surface measurement apparatus capable of executing the processing according to the present invention.

ステップ307で、閾値と平均値とが同一とみなせると判定された場合、精度向上処理113を実行する。   If it is determined in step 307 that the threshold value and the average value can be regarded as the same, the accuracy improving process 113 is executed.

ステップ307を設けたことにより、後述する図5に示すような頻度が正規分布に近い状態の計測点601が入力された場合に、閾値の区間Iと平均値とが同一と判定されるので、計測点の排除が実行されない。このため、半分以上の計測点が分離されてしまう問題を防ぐことができる。   By providing step 307, when a measurement point 601 having a frequency close to a normal distribution as shown in FIG. 5 described later is input, it is determined that the threshold interval I and the average value are the same. Measurement point elimination is not performed. For this reason, the problem that more than half of measurement points are separated can be prevented.

なお、正規分布状の頻度が入力された場合に、しきい値の区間Iと平均値とが同一となることは、本発明による処理を実行可能な表面計測装置で多数の計測点サンプルを実行した結果から得た事柄である。   When the normal distribution frequency is input, the threshold value interval I and the average value are the same, which means that a large number of measurement point samples are executed by the surface measurement apparatus capable of executing the processing according to the present invention. It is a matter obtained from the result.

ステップ307で、閾値1と平均値とが異なると判定された場合、ステップ308の処理を実施する。   If it is determined in step 307 that the threshold value 1 is different from the average value, the process of step 308 is performed.

ステップ308では、閾値1以下の計測データを排除し、閾値1を越える計測データから分離する。そして、ステップ303に戻り、ステップ303〜308が実行される。   In step 308, the measurement data below the threshold value 1 is excluded and separated from the measurement data exceeding the threshold value 1. Then, returning to step 303, steps 303 to 308 are executed.

ステップ306においては、閾値1は、(数式11)で示すように区間番号Iで与えられる。よって、(数式8)の係数kに閾値1である区間番号Iを設定し、区間の最小値LI,Minと最大値LI,Maxとを作成する。 In step 306, threshold value 1 is given by section number I as shown in (Formula 11). Therefore, the section number I which is the threshold value 1 is set to the coefficient k of (Formula 8), and the minimum value L I, Min and the maximum value L I, Max of the section are created.

そして、(LI,Min+LI,Max)/2で平均値を求め、閾値1を距離閾値とする。 Then, an average value is obtained by (LI , Min + LI , Max ) / 2, and threshold 1 is set as a distance threshold.

次に、ステップ307で閾値1と平均値とが同一(両者の差が所定範囲内)か否かが判断され、同一でなければ、ステップ308において、計測点の距離と距離閾値1とを比較し、距離閾値1以下の距離を持つ計測点に対して、図8に示す計測点データの識別子に排除と設定する。設定後、上述と同様にして、ステップ303〜308の処理を繰り返す。   Next, in step 307, it is determined whether or not the threshold value 1 and the average value are the same (the difference between them is within a predetermined range). If not, in step 308, the distance between the measurement points and the distance threshold value 1 are compared. Then, with respect to the measurement points having a distance equal to or less than the distance threshold value 1, exclusion is set as the identifier of the measurement point data shown in FIG. After the setting, the processes in steps 303 to 308 are repeated in the same manner as described above.

このように、ステップ303からステップ308の処理を行うことにより、図4に示す計測点501や計測点511のヒストグラム503や513を閾値1により分離し、最終的に図5のヒストグラム603のような正規分布に近いヒストグラムを作成することが可能になる。このため、図4に示した計測点501や計測点511から孔部分を排除することができる。   As described above, by performing the processing from step 303 to step 308, the histograms 503 and 513 of the measurement points 501 and 511 shown in FIG. 4 are separated by the threshold value 1, and finally, as shown in the histogram 603 of FIG. A histogram close to a normal distribution can be created. For this reason, a hole part can be excluded from the measurement point 501 and the measurement point 511 shown in FIG.

また、ステップ307において、閾値1と平均値とが一致するかどうかの関係は、クラス分離度のように計測点の分布状態により変化する量ではないため、ステップ303からステップ308の繰り返し処理を確実に終了させることが可能になる。このため、自動的な分離処理が実現可能になる。   In step 307, the relationship between whether the threshold value 1 and the average value match is not an amount that changes depending on the distribution state of the measurement points as in the class separation degree. Can be terminated. For this reason, automatic separation processing can be realized.

図6は、計測点701、近似直線702に対してステップ303からステップ309の処理を実行した結果を示す図である。図6のヒストグラム703からクラス間分散704を作成し、その最大値705を閾値1として、平均値706を用いて、計測点701を分離する。これにより、正規分布状のヒストグラムを持つ計測点に分離することが可能になり、計測点701に生じていたV字状の孔データ(図6の右側部分の計測データ701)を排除することが可能になる。   FIG. 6 is a diagram illustrating a result of executing the processing from step 303 to step 309 on the measurement point 701 and the approximate straight line 702. The interclass variance 704 is created from the histogram 703 in FIG. 6, and the measurement value 701 is separated using the average value 706 with the maximum value 705 as the threshold value 1. As a result, it is possible to separate the measurement points having a normally distributed histogram, and to eliminate the V-shaped hole data (measurement data 701 on the right side in FIG. 6) generated at the measurement point 701. It becomes possible.

次に、図1に示した精度向上処理113を、図3のフローチャートに示すステップ310からステップ312を用いて説明する。   Next, the accuracy improvement processing 113 shown in FIG. 1 will be described using steps 310 to 312 shown in the flowchart of FIG.

ステップ310において、最頻点抽出処理112(ステップ303〜ステップ308)で抽出した計測データに対し、図5に示す平均値605からヒストグラム603の両端までの長さを算出する。   In step 310, the length from the average value 605 shown in FIG. 5 to both ends of the histogram 603 is calculated for the measurement data extracted in the most frequent point extraction process 112 (steps 303 to 308).

平均値605は、(LI,Min+LI,Max)/2であり、距離の最大、最小はLMin、LMaxであることから、(数式14)のように、平均値605からヒストグラム603の両端までの長さLLeft、LRightを作成する。 The average value 605 is (L I, Min + L I, Max ) / 2, and the maximum and minimum distances are L Min and L Max. Therefore, the average value 605 is represented by the histogram 603 from the average value 605 as shown in (Formula 14). The lengths L Left and L Right up to both ends are created.

Figure 0005222314
Figure 0005222314

次に、ステップ311で、長さLLeft、LRightが、予め設定し記憶装置107に設定しておいた第2の閾値2より小さいか否かを判定する。 Next, in step 311, it is determined whether or not the lengths L Left and L Right are smaller than the second threshold value 2 set in advance and set in the storage device 107.

長さLLeft、LRightが閾値値2より小さい場合は、ステップ313で計測点を記憶装置107に格納し、処理を終了する。 If the lengths L Left and L Right are smaller than the threshold value 2, the measurement points are stored in the storage device 107 in step 313, and the process is terminated.

ステップ311で、長さLLeft、LRightが閾値2より大きい場合は、ステップ312を実行し、閾値2以下の計測点を排除する。 If the lengths L Left and L Right are larger than the threshold value 2 in step 311, step 312 is executed and measurement points equal to or less than the threshold value 2 are excluded.

つまり、最初に、距離LLeft,LLightの内、小さい方をLthredとしておき、次に、Lthredと閾値2とを比較し、小さい方をLthredと定義し直す。 That is, first, the smaller one of the distances L Left and L Light is set as L thred , then L thred is compared with the threshold 2 and the smaller one is redefined as L thred .

続いて、(数式15)に示すように平均値にLthredをプラスしたものとマイナスした閾値を作成する。 Subsequently, as shown in (Formula 15), a threshold value is created by subtracting the average value plus L thred .

Figure 0005222314
Figure 0005222314

最後に、(数式15)で作成した閾値の間(図8の閾値808、809の間)に入らない距離を持つ計測点を判別し、図8に示す計測点データの識別子に排除と設定し、ステップ313の計測点格納を実行する。   Finally, a measurement point having a distance that does not fall between the threshold values created in (Equation 15) (between the threshold values 808 and 809 in FIG. 8) is determined, and the identifier of the measurement point data shown in FIG. Then, the measurement point storage in step 313 is executed.

以上のように、ステップ310からステップ312の処理を実行することによって、図7の計測点803に示す幅を持った計測点から、閾値2に従った幅を持つ計測点に分離することができるので、カメラや計測対象物に依存して大きくなる振動幅を小さくすることができる。   As described above, by executing the processing from step 310 to step 312, the measurement point having the width indicated by the measurement point 803 in FIG. 7 can be separated into the measurement points having the width according to the threshold value 2. Therefore, the vibration width that increases depending on the camera and the measurement object can be reduced.

なお、上記区間、つまり、クラスは、算出した距離の最大値と最小値との間を予め定めた分割数で、上記距離に対応するクラス番号を有する複数のクラスと定義することができる。   The section, that is, the class, can be defined as a plurality of classes having a class number corresponding to the distance with a predetermined number of divisions between the maximum value and the minimum value of the calculated distance.

また、平均値とは、クラス番号とそのクラスに入る個数とを乗算し、全クラス分を加算した数を全個数で除算した値と定義することができる。   The average value can be defined as a value obtained by multiplying the class number by the number of classes and adding the number of all classes and dividing by the total number.

次に、図4〜図7を参照して、本発明を適用しない場合の例について説明する。   Next, an example when the present invention is not applied will be described with reference to FIGS.

図4の左下は判別分析2値化法を図4の左上の計測点501に適用した例である。図4に示した例では、最初に、計測点501から最小二乗法で近似直線502を作成する。次に、直線502と計測点501との差を作成する。   The lower left of FIG. 4 is an example in which the discriminant analysis binarization method is applied to the measurement point 501 at the upper left of FIG. In the example shown in FIG. 4, first, an approximate straight line 502 is created from the measurement point 501 by the least square method. Next, a difference between the straight line 502 and the measurement point 501 is created.

その後、直線502と計測点501との差の最小値と最大値を作成し、最小値と最大値の間を複数の区間に分割し、各区間内に入る上記差の個数を定める。分割した区間に番号を付けて、それを横軸とし、上記差の個数を縦軸としたヒストグラム503を作成し、ヒストグラム503から判別分析2値化法におけるクラス間分散504を作成する。   Thereafter, a minimum value and a maximum value of the difference between the straight line 502 and the measurement point 501 are created, and the interval between the minimum value and the maximum value is divided into a plurality of sections, and the number of the differences that enter each section is determined. A number is assigned to the divided sections, and a histogram 503 having the horizontal axis and the number of differences as the vertical axis is created, and an interclass variance 504 in the discriminant analysis binarization method is created from the histogram 503.

次に、クラス間分散504の最大値505を取り出して閾値とする。この閾値は区間番号であるので、区間番号に対応する差の値を定め、計測点501と近似直線502との差が閾値から定めた差以上か否かを判別し、直線502より上方の上記差未満である計測点501を分離する。このようにして、上部の計測点のみを分離することができる。   Next, the maximum value 505 of the interclass variance 504 is extracted and set as a threshold value. Since this threshold value is a section number, a difference value corresponding to the section number is determined, it is determined whether or not the difference between the measurement point 501 and the approximate straight line 502 is greater than or equal to the difference determined from the threshold value, The measurement points 501 that are less than the difference are separated. In this way, only the upper measurement point can be separated.

ここで、図4の右上に示すような孔部分517を有する計測データ511に判別分析2値化法を単に適用すると、ヒストグラム513に対するクラス間分散514の最大値515が閾値となる。この場合、計測データ517は、閾値から定めた差未満であるため、計測点511に計測点517に示す孔部分が残ってしまう。   Here, when the discriminant analysis binarization method is simply applied to the measurement data 511 having the hole portion 517 as shown in the upper right of FIG. 4, the maximum value 515 of the interclass variance 514 with respect to the histogram 513 becomes the threshold value. In this case, since the measurement data 517 is less than the difference determined from the threshold value, the hole portion indicated by the measurement point 517 remains at the measurement point 511.

つまり、計測対象物の平面部分を特定し、その加工精度を確認しようとする場合、平面部分の近辺に設計範囲内の微小な孔部分が存在するときには、この孔部分も、計測データ511の一部と判断してしまう。このため、平面部の計測値の精度が低下する可能性がある。   That is, when specifying a planar portion of the measurement object and confirming the processing accuracy, if a minute hole portion within the design range exists in the vicinity of the planar portion, this hole portion is also a part of the measurement data 511. It will be judged as a part. For this reason, there is a possibility that the accuracy of the measurement value of the flat surface portion is lowered.

また、判別分析2値化法を、図5に示すような大局的に正規分布となるような計測点に適用すると、クラス間分散604の中央部分に閾値605を設定してしまうため、近似直線602より下方の半分以上の計測点が除去されてしまい、平面部の計測値の精度が低下する可能性がある。   Further, when the discriminant analysis binarization method is applied to measurement points having a globally normal distribution as shown in FIG. 5, a threshold value 605 is set in the center portion of the interclass variance 604, and therefore an approximate straight line More than half of the measurement points below 602 are removed, which may reduce the accuracy of the measurement values on the flat surface.

クラス分離度は絶対的な量ではなく、計測点の分布度合いにより変化する。例えば、図4に示す分布の場合、クラス分離度は、最初が0.978であり、このクラス分離度により決定した閾値で分離した後がクラス分離度0.764となり、次に決定した閾値で分離した後が0.547となり、このときに孔部517が除去された計測点が得られる場合がある。   Class separation is not an absolute quantity, but varies depending on the distribution of measurement points. For example, in the case of the distribution shown in FIG. 4, the class separation degree is 0.978 at the beginning, and after separation with the threshold value determined by this class separation degree, the class separation degree becomes 0.764, and with the next determined threshold value. After separation, the value becomes 0.547, and at this time, a measurement point from which the hole 517 is removed may be obtained.

一方、図6に示す計測データの分布の場合、クラス分離度は、最初が0.633、次が0.621となり、このときに決定した閾値で分離した後で、V字型の孔部が除去された計測データが得られる場合がある。   On the other hand, in the case of the distribution of measurement data shown in FIG. 6, the class separation degree is 0.633 for the first and 0.621 for the second. The removed measurement data may be obtained.

このように、クラス分離度は計測点の分布状態により変動し、一般に、計測点がどのような分布状態で与えられるかは予想できない。このため、孔部を除去するための繰り返しを終了する明確な、指標が定まらず、自動的な分離処理が困難である。   As described above, the degree of class separation varies depending on the distribution state of measurement points, and in general, it is impossible to predict the distribution state of measurement points. For this reason, a clear index for ending the repetition for removing the hole is not determined, and automatic separation processing is difficult.

これに対して、本発明においては、図3のステップ303〜308に示すように、判別2値化法により、閾値と平均値とを算出し、閾値と平均値とが一定差以内となるまで、閾値以下の計測データを除去し、除去した計測データを使用して、閾値と平均値とを算出し、閾値と平均値とが一定差以内となるまで処理を繰り返す。   On the other hand, in the present invention, as shown in steps 303 to 308 in FIG. 3, the threshold value and the average value are calculated by the discrimination binarization method, and the threshold value and the average value are within a certain difference. The measurement data below the threshold value is removed, the removed measurement data is used to calculate the threshold value and the average value, and the process is repeated until the threshold value and the average value are within a certain difference.

これにより、処理の繰り返し終了を明確に判断でき、自動的な分離処理が可能となる。   As a result, it is possible to clearly determine the end of repeated processing, and automatic separation processing is possible.

さらに、本発明においては、図3のステップ310〜312に示すように、ステップ303〜308により抽出された計測データに対して、許容最大分散値により決定される閾値2を用いて、計測データを選別しているので、表面計測精度をさらに向上することができる。   Furthermore, in the present invention, as shown in steps 310 to 312 of FIG. 3, the measurement data is extracted from the measurement data extracted in steps 303 to 308 using a threshold 2 determined by the allowable maximum dispersion value. Since the sorting is performed, the surface measurement accuracy can be further improved.

なお、図4〜図7に示したグラフは、表示装置203に表示される。また、図3に示した処理を実行した結果のデータを表示装置203に表示することができる。   The graphs shown in FIGS. 4 to 7 are displayed on the display device 203. Further, data obtained as a result of executing the processing shown in FIG. 3 can be displayed on the display device 203.

101・・・計測センサ、102・・・ライン光、103・・・計測対象物、104・・・散乱光、105・・・カメラ視野、106・・・計測センサ用コントローラ、107・・・記憶装置、108・・・計測点分類処理部、110・・・計測点読取手段、111・・・範囲外点排除手段、112・・・最頻点抽出手段、113・・・精度向上処理手段、114・・・計測点格納処理手段、200・・・計算機、201・・・通信装置、202・・・入力装置、203・・・表示装置、204・・・記憶装置、205・・・メモリ、206・・・中央処理装置   DESCRIPTION OF SYMBOLS 101 ... Measurement sensor, 102 ... Line light, 103 ... Measurement object, 104 ... Scattered light, 105 ... Camera visual field, 106 ... Measurement sensor controller, 107 ... Memory | storage 108, measurement point classification processing unit, 110, measurement point reading means, 111, out-of-range point exclusion means, 112, most frequent point extraction means, 113, accuracy improvement processing means, 114 ... Measurement point storage processing means, 200 ... computer, 201 ... communication device, 202 ... input device, 203 ... display device, 204 ... storage device, 205 ... memory, 206 ... Central processing unit

Claims (4)

計測対象物の表面の平面部と凹部とを分離する表面計測方法において、
計測対象物の表面部の位置を計測し、計測したデータに従って、最小二乗法により近似線を算出し、
算出した近似線と計測データとの距離を算出し、
算出した距離の最大値と最小値との間を予め定めた分割数で、上記距離に対応するクラス番号を有する複数のクラスに分割し、分割したクラスに入る上記算出した近似線と計測データとの距離値の個数を算出し、
上記複数のクラスのクラス間分散を算出して、クラス間分散が最大のクラスのクラス番号を第1の閾値とし、クラス番号とそのクラスに入る個数とから全クラスの平均値を算出し、
上記第1の閾値と上記平均値との差が一定値以内か否かを判断し、
上記第1の閾値と上記平均値との差が一定値以内ではない場合には、上記第1の閾値以下の計測データを除外して得られた計測データについて、再度、上記近似線、上記クラス、上記クラス間分散を算出して、第1の閾値と平均値とを算出して、第1の閾値と上記平均値との差が一定値以内か否かを判断し、
上記第1の閾値と上記平均値との差が一定値以内となるまで、第1の閾値と平均値とを算出し、
上記平均値との差が一定値以内となった第1の閾値に対応する計測データを使用して計測対象物平面部のデータとすることを特徴とする表面計測方法。
In the surface measurement method for separating the flat portion and the concave portion of the surface of the measurement object,
Measure the position of the surface part of the measurement object, calculate the approximate line by the least square method according to the measured data,
Calculate the distance between the calculated approximate line and the measurement data,
Dividing into a plurality of classes having a class number corresponding to the distance by a predetermined number of divisions between the maximum value and the minimum value of the calculated distance, and the calculated approximate line and measurement data entering the divided class Calculate the number of distance values of
By calculating the inter-class variance of the plurality of classes, the class number of the class having the maximum inter-class variance is set as a first threshold, and the average value of all classes is calculated from the class number and the number of classes included in the class,
Determining whether the difference between the first threshold and the average value is within a certain value;
If the difference between the first threshold value and the average value is not within a certain value, the approximate line, the class, and the measurement data obtained by excluding the measurement data less than the first threshold value are again used. Calculating the inter-class variance, calculating the first threshold value and the average value, determining whether the difference between the first threshold value and the average value is within a certain value,
Calculating the first threshold value and the average value until the difference between the first threshold value and the average value is within a certain value;
A surface measurement method characterized in that measurement data corresponding to a first threshold value whose difference from the average value is within a certain value is used as measurement object plane data.
請求項1に記載の表面計測方法において、
上記平均値との差が一定値以内となった第1の閾値に対応する計測データに対して、第2の閾値である予め定めた最大許容分散値外の計測データを除外し、第2の閾値内の計測データを使用して計測対象物平面部のデータとすることを特徴とする表面計測方法。
The surface measurement method according to claim 1,
For the measurement data corresponding to the first threshold whose difference from the average value is within a certain value, the measurement data outside the predetermined maximum allowable dispersion value that is the second threshold is excluded, and the second A surface measurement method, wherein measurement data within a threshold is used as data of a measurement object plane part.
計測対象物の表面の平面部と凹部とを分離する表面計測装置において、
計測対象物に計測光を照射し、計測対象物からの反射光を撮像するセンサと、
上記センサにより撮像された画像を計測点に変換する計測点変換手段と、
上記計測点変換手段により変換された計測データについて、最小二乗法により近似線を算出し、算出した近似線と計測データとの距離を算出し、算出した距離の最大値と最小値との間を予め定めた分割数で上記距離に対応するクラス番号を有する複数のクラスに分割し、分割したクラスに入る上記算出した近似線と計測データとの距離値の個数を算出し、上記複数のクラスのクラス間分散を算出して、クラス間分散が最大のクラスのクラス番号を第1の閾値とし、クラス番号とそのクラスに入る個数とから全クラスの平均値を算出し、上記第1の閾値と上記平均値との差が一定値以内か否かを判断し、上記第1の閾値と上記平均値との差が一定値以内ではない場合には、上記第1の閾値以下の計測データを除外して得られた計測データについて、再度、上記近似線、上記クラス、上記クラス間分散を算出して、第1の閾値と平均値とを算出して、第1の閾値と上記平均値との差が一定値以内か否かを判断し、上記第1の閾値と上記平均値との差が一定値以内となるまで、第1の閾値と平均値とを算出し、上記平均値との差が一定値以内となった第1の閾値に対応するデータを計測データとする計測データ抽出処理手段と、
を備えることを特徴とする表面計測装置。
In the surface measuring device that separates the flat part and the concave part of the surface of the measurement object,
A sensor that irradiates the measurement object with measurement light and images reflected light from the measurement object;
Measurement point conversion means for converting an image captured by the sensor into a measurement point;
For the measurement data converted by the measurement point conversion means, an approximate line is calculated by the least square method, the distance between the calculated approximate line and the measurement data is calculated, and the distance between the maximum value and the minimum value of the calculated distance is calculated. Dividing into a plurality of classes having a class number corresponding to the distance by a predetermined number of divisions, calculating the number of distance values between the calculated approximate line and the measurement data entering the divided class, The inter-class variance is calculated, the class number of the class having the maximum inter-class variance is set as the first threshold value, the average value of all classes is calculated from the class number and the number of classes, and the first threshold value is It is determined whether or not the difference from the average value is within a certain value. If the difference between the first threshold value and the average value is not within a certain value, measurement data equal to or less than the first threshold value is excluded. About the measurement data obtained The approximate line, the class, and the inter-class variance are calculated again, the first threshold value and the average value are calculated, and whether or not the difference between the first threshold value and the average value is within a certain value. The first threshold value and the average value are calculated until the difference between the first threshold value and the average value is within a certain value, and the difference between the first value and the average value is within a certain value. Measurement data extraction processing means using the data corresponding to the threshold value of 1 as measurement data;
A surface measuring device comprising:
請求項1に記載の表面計測装置において、
上記平均値との差が一定値以内となった第1の閾値に対応する計測データに対して、第2の閾値である予め定めた最大許容分散値外の計測データを除外し、第2の閾値内の計測データを使用して計測対象物平面部のデータとする精度向上処理手段をさらに備えることを特徴とする表面計測装置。
The surface measurement apparatus according to claim 1,
For the measurement data corresponding to the first threshold whose difference from the average value is within a certain value, the measurement data outside the predetermined maximum allowable dispersion value that is the second threshold is excluded, and the second An apparatus for measuring a surface, further comprising an accuracy improvement processing unit that uses measurement data within a threshold to obtain data of a measurement object plane part.
JP2010033747A 2010-02-18 2010-02-18 Surface measurement method and apparatus Expired - Fee Related JP5222314B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2010033747A JP5222314B2 (en) 2010-02-18 2010-02-18 Surface measurement method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2010033747A JP5222314B2 (en) 2010-02-18 2010-02-18 Surface measurement method and apparatus

Publications (2)

Publication Number Publication Date
JP2011169742A JP2011169742A (en) 2011-09-01
JP5222314B2 true JP5222314B2 (en) 2013-06-26

Family

ID=44684025

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2010033747A Expired - Fee Related JP5222314B2 (en) 2010-02-18 2010-02-18 Surface measurement method and apparatus

Country Status (1)

Country Link
JP (1) JP5222314B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013167445A (en) * 2012-02-14 2013-08-29 Aisin Seiki Co Ltd Defect extraction apparatus and defect extraction method

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2671818B2 (en) * 1994-09-21 1997-11-05 日本電気株式会社 Image processing device
JP2000356581A (en) * 1999-06-11 2000-12-26 Seiko Instruments Inc Surface shape data correction method of scanning probe microscope
JP2002296761A (en) * 2001-03-29 2002-10-09 Toshiba Corp Method and device for measuring pattern
JP2002357414A (en) * 2001-06-01 2002-12-13 Denso Corp Step measuring method
JP2009136937A (en) * 2007-12-04 2009-06-25 Olympus Corp Working method, program and apparatus
JP5036637B2 (en) * 2008-06-16 2012-09-26 株式会社神戸製鋼所 Image processing method and image processing apparatus for extracting uneven characters

Also Published As

Publication number Publication date
JP2011169742A (en) 2011-09-01

Similar Documents

Publication Publication Date Title
US9984291B2 (en) Information processing apparatus, information processing method, and storage medium for measuring a position and an orientation of an object by using a model indicating a shape of the object
US10532459B2 (en) Information processing apparatus, information processing method, and storage medium for grasping an object
US8971637B1 (en) Method and system for identifying an edge in an image
EP3220353B1 (en) Image processing apparatus, image processing method, and recording medium
CN109740609B (en) Track gauge detection method and device
US10275682B2 (en) Information processing apparatus, information processing method, and storage medium
JP5262705B2 (en) Motion estimation apparatus and program
CN116563282B (en) Drilling tool detection method and system based on machine vision
US10043276B2 (en) Image processing method, image processing apparatus, robot apparatus, program, and recording medium
JP7348588B2 (en) Anomaly detection system and anomaly detection program
US20220113171A1 (en) Sensor diagnosis device and computer readable medium
JP4230980B2 (en) Pattern matching method and program
EP3611695A1 (en) Generating annotation data of tissue images
JP5222314B2 (en) Surface measurement method and apparatus
JP4685711B2 (en) Image processing method, apparatus and program
KR101101372B1 (en) Parking lot management method based on learning using sample elimination method
JP2006292615A (en) Visual examination apparatus, visual inspection method, program for making computer function as visual inspection apparatus, and recording medium
JP5036637B2 (en) Image processing method and image processing apparatus for extracting uneven characters
US20210364638A1 (en) Object recognizing device
JP4894747B2 (en) Partial region detection device, object identification device, and program
CN114998194A (en) Product defect detection method, system and storage medium
CN113096024A (en) Flying spot removing method for depth data, system and electronic equipment thereof
CN114140730A (en) Target matching method, device, equipment and storage medium
CN111046878A (en) Data processing method and device, computer storage medium and computer
CN111076667A (en) Dynamic and rapid measuring method for scratches on metal surface

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20111205

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20130222

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20130308

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

Free format text: PAYMENT UNTIL: 20160315

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Ref document number: 5222314

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313111

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

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

S533 Written request for registration of change of name

Free format text: JAPANESE INTERMEDIATE CODE: R313533

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

LAPS Cancellation because of no payment of annual fees