The extraction of the valid measurement region from the interference fringe pattern is a significant step when measuring gear tooth flank form deviation with grazing incidence interferometry, which will affect the measurement accuracy. In order to overcome the drawback of the conventionally used method in which the object image pattern must be captured, an improved segmentation approach is proposed in this paper. The interference fringe patterns feature, which is smoothed by the nonlinear diffusion, would be extracted by the structure tensor first. And then they are incorporated into the vector-valued Chan-Vese model to extract the valid measurement region. This method is verified in a variety of interference fringe patterns, and the segmentation results show its feasibility and accuracy.
The form deviation of tooth flank is one critical characteristic of gears. Laser interferometry is an effective way of measuring it, because of its high efficiency, precision and the fact that it is a noncontact measurement. According to the characteristic of gear tooth flank, the grazing incidence interferometry should be applied [1]. When measuring the form deviation of tooth flank with the interferometry, the captured interference fringe pattern (IFP) contains not only the valid measurement region (VMR), but also the background, as is shown in Fig. 1(a). The tooth flank region contains the information of the measured tooth flank, it is essential to extract it from the IFP. Also, it is the first step in the image-processing of the IFP, its result affects the accuracy of the following steps and the final measurement result of the form deviation [2, 3].
By far the most commonly used method of image extraction is gray thresholding, one of which is the modulation [4]. And the fringe contrast method introduced by Ino and Yatagai can also be used to extract the VMR [5]. Nevertheless, these methods are not well performed in extracting the VMR from the IFP of the gear tooth flank, the segmentation results contain not only the false background region, but also the false valid measurement region, as shown in Fig. 1. It is because the histogram of the interference fringe pattern has only one peak and the gray level of the VMR changes periodically, as well as the effect of noise, hence, the VMR cannot be distinguished precisely with these methods. One more effective method, object-based segmentation, is introduced by our research group [6]. However, with this method, an object image pattern must be captured under the identical experiment conditions, which makes the process complicated, and it is hard to guarantee the identical experiment conditions. Besides, some interference measurement systems could not capture the object image at all. Other popular image segmentation techniques are level-set methods [7], but they cannot work well on IFP.
Several texture feature based segmentation methods have been studied over the past few decades [8-12]. So far, there is no relevant research proposed which works on processing the interference fringe pattern as texture. This paper extracts the VMR with the texture segmentation method, which consists of two steps: identifying the texture feature of the interference fringe pattern by structure tensor and smoothing them with nonlinear diffusion combined with the fringe density, as well as incorporating the feature into the adaptive partitioning model to extract the profile of the VMR.
Recently, a linear structure tensor is proposed to extract the texture feature [13-16]. However, the edges of the tooth flank region will be blurred and dislocated in the results, which leads to ambiguous segmentation results. The nonlinear structure tensor seems to be applicable to improve this problem. Rousson, Brox and Catte
In Section 2, the proposed texture feature extraction method based on structure tensor and nonlinear diffusion is described in detail. In Section 3, the incorporation of the feature into the vector valued Chan-Vese model is introduced. In Section 4, the proposed method is applied to a sequence of interference fringe patterns, the experiment results of the proposed method are also compared with the traditional methods. Finally in Section 5, the conclusion is summarized briefly.
II. STRUCTURE TENSOR AND NONLINEAR DIFFUSION
The feasibility of the structure tensor matrix has been manifested in many applications, fields such as corner detection, diffusion filtering and texture analysis. The VMR in IFP could be considered as one kind of texture image. The classical structure tensor which is described in Eq. (1) is used to extract our interference fringe pattern features.
The
The Gaussian convolution is actually equivalent to linear diffusion [22]. Several addressed methods replace the Gaussian smoothing of the linear structure tensor with a nonlinear diffusion method to improve this problem [23]. Based on this idea, we propose a method with better effect in segmenting VMR from interference fringe patterns.
2.1. Nonlinear Structure Tensor
Based on the edge detection theory Perona and Malik introduced nonlinear diffusion [24]. They replace the heat equation by a nonlinear equation:
In this equation,
where
To better understand Eq. (3), the local coordinate system has to be introduced as shown in Fig. 2. In the local coordinate system,
Eq. (3) can also be written as:
where
According to the form of Eq. (5) we could see the Eq. (3) is composed of two parts. The term
But the above model has its own limitation. When it is applied in VMR segmentation, density of the fringe pattern is a critical feature of IFP. However, the model does not diffuse well at the edge of IFP, which has a non-uniform density distribution. From the model we could figure that the major work is the selection of the diffusion function
The function
The term
(1) Gσ is a Gaussian smoothing kernel function for noise elimination in the fringe pattern. Generally, there is strong speckle noise in the fringe pattern,, with Gaussian convolution the negative effect introduced by random noise can be removed. (2) The diffusion function g(|Gσ ∗∇u|⋅uρ) controls the speed of the diffusion and enhances the edges of the fringe pattern. q ∈[0,1], as Iρ is the gray value of image, in which the density of IFP is normalized, so uρ = 1−qIρ ∈ [1−q, 1]. The diffusion can be slowed down at the edge of VMR and lower density region, on the contrary, inside the inner VMR and higher density region there is high speed of diffusion. In the equation, q plays a role in balancing the speed of the diffusion between the lower density region and the higher density region.
This equation could only be used with a scalar-valued image so far. Gerig
where
Compared with the model Eq. (3), the proposed model has better controlled diffusion speed at the edge region and is more suitable for IFP.
2.2. Fringe-density Recognition
The fringe density is one of the most significant features of the IFP, which could be estimated by the method of accumulated differences along different orientations [27]. Calculating with a fixed rectangle window is a common way to process a fringe pattern. Thus, in a fixed window, the gray value of the fringe differs slightly along the fringe normal direction in the wide fringe region. On the other hand, the gray level of the fringe differs obviously along the fringe normal direction in the high density fringe region.
Suppose that is parallel to the fringe normal direction, and is orthogonal to . The accumulated difference reaches its maximum along direction , while noise introduces the difference along direction which should be zero for ideal fringe.
where
In this equation,
Define eight lines in a kernel matrix of
Calculate the mean value in every direction
where the subscript
Calculate the variance in every calculated direction
As it is above, reaches its minimum value in the local tangent direction of fringe, and reaches its maximum value in the local normal direction of fringe.
Based on the normal and tangent directions of fringe, the fringe density can be estimated as follows:
where
Combined with the fringe density, the nonlinear structure tensor could be calculated by Eq. (9) with
Basically, the difference between object region and background could be represented by mean gray value. Based on this kind of image we can define the evolving curve
where
The final result of this minimization problem is to seek the best approximation
The minimal problem of this energy function could be solved by level set method. Define the level set function
However, the Chan-Vese equation can only be used to scalar-valued image. Tony F. Chan [29] introduced an improved Chan-Vese equation for vector-valued images. Based on which the vector version of Eq. (20) can be written as
The
The
The finite difference method could be applied to obtain the discretized type of Eq. (23). We could define
where
Therefore, all the details of the calculation process are described as above, and the process of the proposed method is as shown in Fig. 7.
To examine the proposed method, a simulated fringe pattern (256 × 256) with an irregular boundary is generated for segmenting its VMR, as shown in Fig. 8(a). The amplitude of the simulated fringe pattern takes a value in the interval [−4 4]. Gaussian white noise, salt and pepper noise and speckle noise are injected to the image, they are shown in Fig. 8(b), Fig. 8(c) and Fig. 8(d), respectively. The segmentation results of Fig. 8 are as shown in Fig. 9 in which the red lines are the results of the calculated boundaries and the white lines are the ground truth. The results are seen to be satisfactory. The red lines are always close to the white boundaries which means the proposed method shows better robustness to noise.
In order to verify the performance of the proposed method further, then an experimental study has been conducted on the IFPs, which are captured from four-step phase-shifting interferometry.
The measured objects are two gears. The first one is an involute helical gear, which the module is 3, face width is 15mm, the helix angle is 20 degree and the number of teeth is 60. Another one is an involute spur gear with module of 2.5, 50 teeth, and a face width of 20 mm. One four-step phase-shifting interference fringe pattern is as shown in Fig. 10(a), and Fig. 11(a) is the interference fringe pattern of another gear tooth flank. First, the estimation density of Fig. 10(a) is calculated under the window of 5 × 5, as shown in Fig. 5(b). Then the calculated nonlinear structure tensors, as shown in Fig. 6, are incorporated into the segmentation model to extract the final VMR, the result are as shown in Fig. 10(b). The main parameters are set as follows:
During the segmentation process, the initial contour must be set first. In Fig. 12(a), we set a rectangle as the initial contour for segmentation. Different final results can be obtained with different numbers of iterations, as shown in Fig. 12(b) and Fig. 12(c), the number of iterations are 200 and 500, respectively. Fig. 13 shows the segmentation results on some interference fringe patterns of gear tooth flank. From left to right in Fig. 13 are the original interference fringe patterns, estimated density, nonlinear diffusion results and the segmentation results, respectively.
In order to compare the traditional nonlinear diffusion (TND) and traditional object-image-based method (TOIB) [6], these methods are applied to extract VMR of the same involute helical gear and spur gear. Their segmentation results are as shown in Fig. 14 and Fig. 15 respectively. The red boundary is obtained by the proposed method, the yellow is obtained by the traditional object-image-based method, and the green one is the result of the traditional nonlinear diffusion.
In Fig. 15, a large part of non-valid measured region is segmented as VMR by TND method. And in Fig. 14(b), the TND method shows more obvious error. The results of TOIB method are better than the TND shows. However, in Fig. 14(c) a small portion of VMR missing in the root region of the gear will result in the false phase unwrapping value and error of image registration, and finally affect the measuring accuracy of shape deviation. On the contrary, in Fig. 14(a) and Fig. 15 the red boundary encloses the exact measurement region of the gear even the root part of the gear which is more difficult in VMR segmentation. In these experiments, the proposed method always performs better than TOIB especially in the tough region. It is well known that in many interference measurement systems, it is difficult or even impossible to obtain the object image. The proposed method breaks through the limit of TOIB and even shows better segmentation results without this extra object image. This makes the measurement process simpler and meanwhile guarantees the precision of the measurement results.
By comparing Fig. 14 and Fig. 15, it can be seen that the proposed method performs more precisely and robustly than TND method, furthermore, it is simpler than the TOIB method in the experiments for extracting the VMR of the spur gear and the helical gear.
In order to make a quantitative evaluation of these experimental results further, we introduce the Probabilistic Rand Index, Global Consistency Error, and Variation of Information, three measures to evaluate the segmentation algorithms. Assume an image
The Probabilistic Rand Index (PRI) makes statistics for the consistent pixel pairs between the manual segmentation result and the segmentation result through the algorithm[30]. The more number of the consistent pixel pairs it has, the more the result of the algorithm is similar to the manual segmentation result. We mark
where N is the number of pixels, and
Global consistency error (GCE) evaluates overlap between the manual segmentation result and the segmentation result through the algorithm [31]. The definition could be described as follows:
For any given pixel
where \ denotes set difference, and |
The output value is in the range [0,1] where zero signifies no error. So the smaller this value attains, the better result it shows.
For a given manual segmentation result, the conditional entropies of the algorithm based segmentation result is calculated to measure the distance of these two segmentation results which is evaluated with this index. The definition of it is as follows:
A clustering
Let the number of data points in
The probability of any pixel not only belongs to cluster
We define
Based on that, the variation of information (VI) can be written as [32]:
VI takes a value in the interval [0,∞], the smaller VI one result has, the better segmentation it shows.
According to these segmentation evaluation indices, Tables 1 and 2 show the segmentation evaluation of spur tooth flank and helical tooth flank with different methods respectively. Based on the definition of these evaluation indices, the proposed method performs best in both experiments.
[TABLE 1.] The spur tooth flank’s comparison
The spur tooth flank’s comparison
[TABLE 2.] The helical tooth flank’s comparison
The helical tooth flank’s comparison
It is well known that the unwrapped phase value of the continuous surface should be also continuous and have almost the same trend. Based on this theory, we unwrap the data of the experiment with the weighted least-squares phase unwrapping algorithm based on a non-interfering image. In ref [33], it is demonstrated that the phase unwrapping algorithm performs better and has higher unwrapping precision in the field of gear tooth flank interferometric measurement. By applying this phase unwrapping algorithm, two lines of unwrapped data are extracted as shown in Fig. 16. These unwrapped phase values obtained by the object-image-based method, traditional nonlinear diffusion method and the proposed method are shown with blue, green and red lines respectively. The data comes from the proposed method shows smooth phase values, on the contrary, the other two methods have great fluctuation at both ends of points compared with its adjacent points.
Traditional nonlinear structure tensor is applied in a number of segmentation methods. However, these structure tensor methods have several drawbacks we have discussed. To address these problems and according to our application, an improved segmentation method is proposed and applied to segment the valid measurement region of interference fringe pattern. First, the idea of using the optimized nonlinear diffusion based structure tensor for interference fringe pattern features extraction has been analyzed. Second, the features have been incorporated into the vector-valued Chan-Vese model to complete the segmentation.
In order to verify the performance of the proposed method, a series of experiments are carried out, the proposed methods are applied to segment the measured tooth flank region of different gears. And the experimental results show that the valid measurement region of interference fringe pattern can be better segmented compared with the traditional methods, which also prove the feasibility of this method. This method can also be used to segment the measured region of other parts by the grazing incidence interferometry.