원시데이터 수집 시스템
선정목록으로

Sub-Pixel Extraction of Laser Stripe Center Using an Improved Gray-Gravity Method †

관련 필름·전자재료 · (13) 프리즘 필름

기본 정보

저자
  1. Yuehua Li — School of Mechanical Engineering, Hebei University of Science and Technology, Shijiazhuang 050018, China
  2. Jingbo Zhou — School of Mechanical Engineering, Hebei University of Science and Technology, Shijiazhuang 050018, China
  3. Fengshan Huang — School of Mechanical Engineering, Hebei University of Science and Technology, Shijiazhuang 050018, China
  4. Lijian Liu — School of Mechanical Engineering, Hebei University of Science and Technology, Shijiazhuang 050018, China
DOI
10.3390/s17040814
저널
Sensors
발행년도
2017
발행기관
Multidisciplinary Digital Publishing Institute
피인용수
104
라이선스
cc-by
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.3390/s17040814
토픽
Surface Roughness and Optical Measurements
OpenAlex ID
W2606896615

평가 내용

관련도
관련
사업분야
필름·전자재료 · (13) 프리즘 필름
부 분야
–
R&D 측면
–
확신도
–
근거 용어
–
판단 근거
임베딩 유사도 기반 평가로 '필름·전자재료 > 프리즘 필름' 분야에 선정된 논문입니다.
R&D 활용 포인트
–
평가 입력
–

초록

Laser stripe center extraction is a key step for the profile measurement of line structured light sensors (LSLS). To accurately obtain the center coordinates at sub-pixel level, an improved gray-gravity method (IGGM) was proposed. Firstly, the center points of the stripe were computed using the gray-gravity method (GGM) for all columns of the image. By fitting these points using the moving least squares algorithm, the tangential vector, the normal vector and the radius of curvature can be robustly obtained. One rectangular region could be defined around each of the center points. Its two sides that are parallel to the tangential vector could alter their lengths according to the radius of the curvature. After that, the coordinate for each center point was recalculated within the rectangular region and in the direction of the normal vector. The center uncertainty was also analyzed based on the Monte Carlo method. The obtained experimental results indicate that the IGGM is suitable for both the smooth stripes and the ones with sharp corners. The high accuracy center points can be obtained at a relatively low computation cost. The measured results of the stairs and the screw surface further demonstrate the effectiveness of the method.

본문 42,490자

본문 펼치기
# _sensors_ _Article_ ## Sub-Pixel Extraction of Laser Stripe Center Using an Improved Gray-Gravity Method † Yuehua Li, Jingbo Zhou *, Fengshan Huang and Lijian Liu School of Mechanical Engineering, Hebei University of Science and Technology, Shijiazhuang 050018, China; yuehua.hrbin@163.com (Y.L.); hfs_high@126.com (F.H.); liulijian2002@126.com (L.L.) * Correspondence: zhoujingbo@hebust.edu.cn; Tel.: +86-183-3319-3615 - This paper is an extended version of our paper published in the 10th International Conference on Sensing Technology (ICST), Nanjing, China, 11–13 November 2016. Academic Editors: Ruqiang Yan, Subhas Chandra Mukhopadhyay and Gui Yun Tian Received: 23 January 2017; Accepted: 29 March 2017; Published: 10 April 2017 Abstract: Laser stripe center extraction is a key step for the profile measurement of line structured light sensors (LSLS). To accurately obtain the center coordinates at sub-pixel level, an improved gray-gravity method (IGGM) was proposed. Firstly, the center points of the stripe were computed using the gray-gravity method (GGM) for all columns of the image. By fitting these points using the moving least squares algorithm, the tangential vector, the normal vector and the radius of curvature can be robustly obtained. One rectangular region could be defined around each of the center points. Its two sides that are parallel to the tangential vector could alter their lengths according to the radius of the curvature. After that, the coordinate for each center point was recalculated within the rectangular region and in the direction of the normal vector. The center uncertainty was also analyzed based on the Monte Carlo method. The obtained experimental results indicate that the IGGM is suitable for both the smooth stripes and the ones with sharp corners. The high accuracy center points can be obtained at a relatively low computation cost. The measured results of the stairs and the screw surface further demonstrate the effectiveness of the method. Keywords: line structured light sensor; improved gray-gravity method; adaptive sampling regions; uncertainty analysis; sub-pixel center extraction 1. Introduction As a non-contact measuring apparatus, the line structured light sensor (LSLS) can effectively obtain a huge amount of surface data from objects with the advantages of simple construction, low cost and moderate precision. It has been widely used for profile measurement [1], reverse engineering [2], welding inspection [3], visual tracking [4], etc. The principle of the LSLS is to project a linear laser stripe onto the cross-section profile to be measured, and then compute the profile’s world coordinates according to the stripe image that is captured by the camera and the system parameters from the calibration process [5]. The laser stripe usually has a width of several to tens of pixels and the center extraction is a critical step for the measurement process [6]. Many researchers have studied the center extraction methods aiming at better precision, higher efficiency, more robustness, and lower noise. According to the minimum coordinate value, these algorithms can be divided into two categories: pixel level center extraction and sub-pixel center extraction. The simplest pixel level center extraction method is the extreme value method. It is achieved just by choosing the pixel with the maximum gray value as the center of the specific transverse profile. Its disadvantages are also obvious: low precision and sensitive to noise [7]. The direction template [8] and the improved direction template methods [9] can also obtain the stripe center at the pixel level. _Sensors_ 2017, _17_, 814; doi:10.3390/s17040814 [www.mdpi.com/journal/sensors](http://www.mdpi.com/journal/sensors) _Sensors_ 2017, _17_, 814 2 of 13 The influence of noise on the center line extraction can be suppressed effectively, but these methods require a large amount of calculation due to the cross-correlation processes. With the demand for higher measurement precision, the sub-pixel center extraction methods are receiving more and more attention. An important one is the gray-gravity method (GGM) which is simple and easy to use [10,11]. In contrast, due to its sensitivity to noise, the measurement results of the smooth profiles are coarse. Usamentiaga et al. proposed a fast center extraction method which is based on the GGM and the subsequent Split-and-Merge process [12]. It can be successfully applied for the 3D reconstruction of steel stripes and weld seam tracking. By setting a specific window, the preliminary center data can be smoother than that of the traditional GGM. However, the center extraction is achieved in the column direction, not in the normal direction of the stripe. This would introduce significant extraction error, especially for the steep stripe with uneven intensity distributions. Moreover, by adopting a fixed window width, the extracted points would have a large deviation at the sharp corner region. The FIR (Finite Impulse Response) filter approach also simply treats the direction of stripe’s cross section as the direction of the column/row [13]. Therefore, it is suitable for the smooth stripes with the normal vectors generally in the column/row direction. The curve fitting method that is based on the Laplacian of the Gaussian operator can be adopted to detect the center of the laser stripe [14]. To use this method, the distribution of the gray value in the cross-section direction is assumed to be symmetrical, but very often it is not. The Steger method [15], which was originally designed to analyze the aerial and the medical images, is one of the commonly used methods for the center extraction of laser stripes thanks to its high robustness and accuracy [16]. During the center extraction process, all the image pixels need to be convolved with the Gaussian kernel five times, and the eigenvalues and the eigenvectors of each Heissen-matrix need to be solved to obtain the sub-pixel center [17]. This involves an enormous amount of computation and thus needs a long computation time. To achieve the real-time processing of the light stripe, Xu et al. used the Steger method to detect the first feature point of the stripe and then searched the left points by utilizing the local orientations of the light stripe [18]. Beside this, the GPU (Graphics Processing Unit) [19] or FPGA (Field Programmable Gate Array) [20] can also be applied for the center detection using the Steger method to further reduce the computation time. However, the center extraction result of the Steger method highly relies on the parameters of the extraction algorithm such as the standard deviation of the Gaussian kernel and the threshold of the eigenvalues [21]. With a fixed set of parameters, the Steger method is hardly adapted to the stripes with different widths and noise amplitudes. The center points from the Steger method may also be fitted using straight lines [22]. The linear fitting is only appropriate for inspecting planar surfaces. There are also many other methods for the center extraction of the laser stripes. Cai et al. used principle component analysis to estimate the normal direction and then the sub-pixel center points were calculated by second order Taylor expansion [23]. This method is also based on the Gaussian convolution process and the computational expense is high. Sun et al. proposed a robust center extraction method which is based on the grey level moment and the smoothing spline algorithm [24]. This analysis is on the basis that the light intensity has a uniform distribution. While, the intensities of the cross section for most laser stripes follow the Gaussian distribution [17]. The cross-correlation based curve fitting method [25] and the multi-scale analysis method [26] both can robustly obtain the center coordinates of the stripe. The computation time is long due to the complex processes. From the above analysis, it can be seen that the GGM and other similar methods are of high computation efficiency, and the convolution based methods can usually leads to better accuracy. Focusing on the sub-pixel precision, an improved gray-gravity method (IGGM) is proposed with a competitive computational efficiency. The center points of the laser stripe can be first computed using the GGM and then each point can be modified within an adaptive rectangular region. The sub-pixel coordinates with high accuracy can be successfully achieved. _Sensors_ 2017, _17_, 814 3 of 13 2. Methods for Center Extraction _2.1._ _Traditional Gray-Gravity Method (GGM)_ Assume I M _×_ N is the image that contains the perturbed laser stripe. It is captured by the camera with the pixels of M rows and N columns. The gray value for the pixel at the _i_ th row and _j_ th column is denoted by I( _i_, _j_ ) and the maximum gray value of the image is Imax. Thus, the normalized gray value for I( _i_, _j_ ) can be calculated as: I _n_ ( _i_, _j_ ) = I( _i_, _j_ )/Imax. The sequence number for the center point at the _j_ th column is denoted as _p_ with a center coordinate of C _p_ ( _xp_, _yp_ ). Using the GGM, the center coordinates can be computed as: _M_ ### ∑ _j_ =1 _In_ ( _i_, _j_ ) _× i_ / _In_ ( _i_, _j_ ) - = _j_, (1) _M_ ### ∑ _j_ =1 C _p_ - _xp_, _yp_ To successfully obtain the center coordinates using the GGM, the relationship between the camera and the linear laser projector should be carefully adjusted to guarantee that each column of the image only intersects with the stripe once at most. Some columns may not intersect with the stripe, so _p_ is no larger than _N_ . It can be seen from Equation (1) that the GGM is simple and therefore fast. Its disadvantages are also obvious: the center extraction is not in the transverse direction of the stripe and it is sensitive to noise. _2.2._ _Improved Gray-Gravity Method (IGGM)_ The computation principle of the IGGM is shown in Figure 1. The dots are the pixels of the image with I _n_ larger than the threshold value T0. C _p_ is the center coordinate for the _j_ th column computed using the GGM; n _j_ and t _j_ are the normal and the tangential vectors at C _p_, respectively. _Fp_ denotes the line function that crosses C _p_ and coincides with t _j_ expressed by: _Ax + By + C_ = 0. The coordinate of the new center point C _p_ <sup>’</sup> computed using the IGGM is achieved in the rectangular region. The width of the rectangular region, _wj_, adapts to the radius of curvature at C _p_ . Figure 1. Principle for center extraction using the improved gray-gravity method (IGGM). Sometimes, the stripe that is captured by camera is discontinuous. The center coordinates obtained by the GGM need to be divided into several sections based on the discontinuity points. In each continuous section, n _j_, t _j_, and the radius of curvature _ρj_ for C _p_ are calculated using the moving least square method [27]. Assuming the fitting Equation is: _f_ ( _x_ ) = _m_ ### ∑ _i_ =1 _αi_ _pi_ ( _x_ ) = _p_ <sup>_T_</sup> ( _x_ ) _α_ (2) _Sensors_ 2017, _17_, 814 4 of 13 where _p_ ( _x_ ) = [ _p_ 1( _x_ ), _p_ 2( _x_ ), . . ., _pm_ ( _x_ )] <sup>_T_</sup> is a _m_ th-degree basis function, and _α_ = [ _α_ 1, _α_ 2, . . ., _αm_ ] <sup>_T_</sup> is the vector of the undetermined coefficients. The weighted fitting error can be computed as: - <sup>2</sup> (3) _J_ ( _α_ ) = _n_ ### ∑ _j_ =1 _ω_ ( _rj_ ) - _p_ <sup>_T_</sup> ( _x_ ) _α_ _−_ _yj_ In function (3), _n_ is the number of center points in the selected area named C _j_ ; _rj_ is the normalized distance between C _j_ and C _p_, and can be computed as: _rj_ = _||_ C _j −_ C _p|| · R_ <sup>_−_</sup> _s_ <sup>1</sup> (4) where _Rs_ is the supporting radius of the fitting domain, and ω( _rj_ ) is a spline weighted function with fourth-degree, computed as: _ω_ ( _rj_ ) = - 1 _−_ 6 _r_ <sup>2</sup> _j_ <sup>+ 8</sup> <sup>_r_</sup> <sup>3</sup> _j_ _j_ (5) 0 _rj_ _>_ 1 <sup>3</sup> _j_ <sup>_−_</sup> <sup>3</sup> <sup>_r_</sup> <sup>4</sup> _j_ <sup>4</sup> _j_ _rj_ _≤_ 1 The undetermined coefficients, _α,_ can be obtained by solving the linear Equation of @ _J_ ( _α_ )/@α _l_ = 0, where _l_ = 0,1, . . ., _m_ . Using the fitting Equation (2), n _j_, t _j_ and _ρj_ can be easily computed. The minimum radius of curvature is denoted as _ρ_ min and the maximum radius of curvature is _ρ_ max. The complexity of the laser stripes relies on the surface being measured. The stripe may contain arc segments, sharp corners and straight-line segments. For the straight-line portion, the value of its radius of curvature is infinite, while for the sharp corner, the radius of curvature is very small. If the width of the rectangular region, _wj_, linearly depends on _ρj_, it could be extremely large. To limit _wj_ in a reasonable range, a nominal radius of curvature is defined as: _<u>ρ</u>_ min = _ρ_ min _ρ_ min _>_ 1 (6) 1 _ρ_ min _≤_ 1 _<u>ρ</u>_ max = _s · ρ_ min (7) _<u>ρ</u>_ min _ρj_ _≤_ _<u>ρ</u>_ min _ρj_ _<u>ρ</u>_ min _<_ _ρj_ _≤_ _<u>ρ</u>_ max _<u>ρ</u>_ max _ρj_ _>_ _<u>ρ</u>_ max _<u>ρj</u>_ =    Furthermore, _wj_ can be computed by _<u>ρj</u>_ _−_ _<u>ρ</u>_ <u>max</u> _· w_ max + _<u>ρ</u>_ min _−_ _<u>ρ</u>_ max (8) _· w_ min (9) _wj_ = _<u>ρj</u>_ _−_ _<u>ρ</u>_ <u>min</u> _<u>ρ</u>_ max _−_ _<u>ρ</u>_ min where _s_ is a scale factor; _wmax_ and _wmin_ are the upper and lower limits of _wj_, respectively. The length of the rectangular region, _lj_, is manually set according to the different surface reflective characteristics of the objects. To enhance the computation efficiency for C _p_ <sup>’</sup>, a searching region can be defined based on the four corner coordinates of the rectangular region, named D _j_,1( _xj_,1, _yj_,1), D _j_,2( _xj_,2, _yj_,2), D _j_,3( _xj_,3, _yj_,3) and D _j_,4( _xj_,4, _yj_,4), as shown by Figure 1. However, only the pixels that are within the rectangular region contribute to the computation of the new center and the selection criteria for I _n_ ( _i_, _j_ ) is: ���� D _j_,2 I _n_ �� _×_ �� D _j_,2 D _j_,1��� _·_ ��� D _j_,3 I _n_ �� _×_ �� D _j_,3 D _j_,4��� _≤_ 0 (10) ��� D _j_,1 I _n_ �� _×_ �� D _j_,1 D _j_,4��� _·_ ��� D _j_,2 I _n_ �� _×_ �� D _j_,2 D _j_,3��� _≤_ 0 _Sensors_ 2017, _17_, 814 5 of 13 When I _n_ ( _i_, _j_ ) meets the selection criteria, its distance to _Fp_ can be calculated as: _dk_ = _sign ·_ <sup>_<u>|A ·</u>_</sup> _~~√~~_ <sup>_<u>j</u>_</sup> <sup><u>+</u></sup> <sup>_<u>B · i</u>_</sup> <sup><u>+</u></sup> <sup>_<u>C|</u>_</sup> (11) _A_ <sup>2</sup> + _B_ <sup>2</sup> If I _n_ is above _Fp_, the sign is positive, otherwise it is negative. Then, the modified distance in the normal direction can be achieved by: _K_ ### ∑ _k_ =1 _dp_ = _K_ ### ∑ dk · In ( i, j )/ _k_ =1 _In_ ( _i_, _j_ ) (12) The new center C <sup>_′_</sup> <sup>_′_</sup> _p_ <sup>,</sup> <sup>_y′_</sup> <sup>_′_</sup> _p_ <sup>(</sup> <sup>_x′_</sup> <sup>_′_</sup> _p_ <sup>) can be computed as:</sup> - _x_ <sup>_′_</sup> _p_ _x_ <sup>_′_</sup> _p_ <sup>=</sup> <sup>_xp_</sup> <sup>_−_</sup> <sup>_dp_</sup> <sup>_·_</sup> <sup>sin</sup> <sup>_θ_</sup> _y_ <sup>_′_</sup> _p_ <sup>=</sup> <sup>_yp_</sup> <sup>+</sup> <sup>_dp_</sup> <sup>_·_</sup> <sup>cos</sup> <sup>_θ_</sup> (13) <sup>_′_</sup> _p_ <sup>=</sup> <sup>_yp_</sup> <sup>+</sup> <sup>_dp_</sup> <sup>_·_</sup> <sup>cos</sup> <sup>_θ_</sup> where _θ_ is the angle between t _j_ and the X axis. _2.3._ _Model of Uncertainty Analysis_ Because the pixel coordinates of the center points are obtained one by one in the transverse direction of the stripe using the same computing strategy, the uncertainty analysis is carried out only in one transverse section using the Monte Carlo method which is a numerical method and can be achieved by adding uniform random noise to the input data [28]. Most of the time, the intensity of the laser stripes in the transverse direction follows the Gaussian distribution [17] and can be expressed by _Ik_ = _H ·_ exp _−_ ( _dk −_ _d_ 0) <sup>2</sup> / _σ_ <sup>2�</sup> + _a_ 0 _εk_ (14) where _H_ is the amplitude of the laser stripe; _d_ 0 determines the position of the center; _dk_ is the pixel coordinate of the _k_ th pixel in the transverse direction; _σ_ is the standard deviation; _εk_ is the noise value generated by a uniform random generator; and _a_ 0 is the amplitude; on this basis, the cross profile can be generated with various noise amplitudes. For each cross section with different noise amplitudes, its center coordinates can be obtained using different center extraction methods and the extraction uncertainty can be computed as [29] _dp_ = <sup><u>1</u></sup> _M_ _dp_ = <sup><u>1</u></sup> _M_ ### ∑ _r_ =1 _dp_, _r_ (15) - <sup>2</sup> (16) _u_ ( _dp_ ) = - <u>1</u> _M −_ 1 _M_ ### ∑ _r_ =1 _dp_, _r −_ _dp_ where _dp_ is the average value of the multiple sampling; _dp,r_ is the _r_ th sampling value; _M_ is the sampling number; and _u_ ( _dp_ ) is the uncertainty value of center extraction. 3. Experiment Results and Discussion _3.1._ _Uncertainty Analysis for Center Extraction_ To analyze the uncertainty of the center extraction, the simulated transverse profiles of the laser stripe can be generated using Equation (14). For easy analysis, _d0_ is assumed to be 0 and _H_ = 1. Before the center calculation, the profile data should be normalized as I _n_ = I _k_ /max( I ). Thus, only two parameters are left to determine the cross-section profile: _σ_ and _a_ 0. The parameter _σ_ determines the width of the laser stripe. With the decrease of _σ_, the cross section becomes smaller and smaller, as _Sensors_ 2017, _17_, 814 6 of 13 shown in Figure 2a,b. _a_ 0 is the amplitude of the uniform noise generator. The smaller _a_ 0 is, the better the intensity of the laser stripe conforms to the Gaussian distribution. In Figure 2, _a_ 0 was set as 0.05 and the threshold value T0 = 0.1. The normalized gray value that is smaller than T0 was set to be 0 for the su ~~bsequent computation.~~ ( a ) ( b ) ( c ) Figure 2. Normalized cross-section profiles at different simulation parameters: ( a ) _σ =_ 4 and _s_ p = 1; ( b ) _σ =_ 2 and _s_ p = 1; ( c ) _σ =_ 2 and _s_ p = 0.2. Different from the traditional GGM which has a minimum point interval, _s_ p, of 1 pixel across the stripe, the proposed IGGM computes the center coordinate by projecting the pixels of the nearby rectangular region onto the cross section. Thus, the number of points for the center computation increased significantly within the same width of the stripe and the _s_ p decreased, as shown in Figure 2c. The uncertainty analysis was carried out by adopting different system parameters to the Gaussian distribution with a point step of 1, and the sampling number _M_ = 4000; this means that for a specific cross section, its center was computed 4000 times at a given random generated noise amplitude. After that, the center coordinate was computed using the GGM, and the uncertainty value was computed using Equation (16). The results are shown in Figure 3a; they clearly indicate that the uncertainty of the center increases in accordance with the amplitude of the noise. For a given noise amplitude, the thinner the laser cross section, the smaller the center uncertainty will be. σ=6 σ=4 σ=2 a0 ( a ) ( b ) Figure 3. Uncertainty analysis for center computation: ( a ) Uncertainty values using the gray-gravity method (GGM) at different simulation parameters; ( b ) Comparison of the center uncertainty using different center extraction methods. Then, the width of the stripe was fixed ( _σ =_ 2), and the random generated noise with different amplitudes was added to the cross-section profile. Three different methods were used for the center computation. One is the GGM; its uncertainty values under different noise amplitudes have been _Sensors_ 2017, _17_, 814 7 of 13 obtained. The second method is the Gaussian fitting (GF), which is achieved by fitting the cross section using the Gaussian distribution Equation [30]. The third method is the proposed IGGM. The sampling number is _M_ = 4000 for all of the cases. It should be noted that when the IGGM is adopted, the number of cross-section points is related with the width of the selected rectangular region. For most of the cases, the width of the adaptive region _wj_ is within 2~8 pixels. Thus, the mean value of five pixels was chosen for the simulation which corresponds to a point interval of 0.2 pixels. The uncertainty values are shown in Figure 3b. From this figure, it can also be seen that the uncertainty values for the three methods increase with the noise amplitudes. Furthermore, the proposed IGGM can achieve smaller uncertainty values than the other two for all of the noise amplitudes. This validates the advantages of the proposed method. _3.2._ _Center Extraction of Laser Stripes_ To extract the center using the IGGM, the traditional GGM should be firstly adopted to obtain the initial center point C _p_ for each column. Then, the tangent vector, the normal vector and the radius of curvature for each point can be achieved via the moving least squares method. The base function of the moving least squares method is _p_ ( _x_ ) = [ _x_ <sup>3</sup>, _x_ <sup>2</sup>, _x_, 1] <sup>_T_</sup> ; the supporting radius is _Rs_ = 5; and the scale factor is _s_ = 5. Different from the GGM which only considered one cross-section profile for the center calculation, the IGGM would consider all the pixels within the rectangular region around _Cp_ . To analyze the effluence of the width of the rectangular region, _wj_, on the center extraction, two rectangular regions were established for the same laser stripe and at the same initial center point, but with different width values, as shown in Figure 4a,b. For each pixel point within the rectangular region, its distance _dk_ to the line Equation _Fp_ can be computed using Equation (11). Figure 4c,d denotes the gray pixels that were taken into account for the center computation. The offsets of the new centers in the normal direction are _dp_ = _−_ 0.036 pixel, and _dp_ = _−_ 0.022 pixel, respectively. From the uncertainty analysis, it can be seen that the uncertainty value of the center coordinates would become smaller with the increase of the width of the rectangular region. ( a ) ( b ) ( c ) ( d ) Figure 4. Center computation within a specific rectangular region: ( a ) rectangular region with _wj_ = 4; ( b ) rectangular region with _wj_ = 9; ( c ) pixels for the center computation of ( a ); ( d ) pixels for the center computation of ( b ). _Sensors_ 2017, _17_, 814 8 of 13 For the actual center extraction process, the width of the rectangular region adapts to the radius of the curvature. To better show the advantages of the IGGM, a comparison experiment was carried out for a laser stripe with a sharp corner, as shown in Figure 5. In Figure 5a, the width of the rectangular region is fixed during the center extraction. In Figure 5b, the width decreased with the radius of the curvature accordingly. To clearly show the rectangular regions during the center extraction process, they were plotted every seven points. This figure shows that the recalculated centers are smoother than the GGM. When the width of the rectangular region is fixed, the extracted centers have a large deviation with the expected stripe center at the corner region. When using this proposed IGGM, fine extraction results can also be obtained at the corner region. ( a ) ( b ) Figure 5. Center extraction at a sharp corner: ( a ) using rectagular regions with fixed width; ( b ) using rectagular regions with adaptive width. The proposed IGGM can be applied for the center extraction of various laser stripes. Figure 6 lists four representative laser stripes together with the center extraction results. Though the complexity of the stripe increased accordingly, the obtained center curves of the stripes all conform well to the expected centers of the stripes. The quantitative analysis of the center extraction results can be found in the following sections. ( a ) ( b ) ( c ) ( d ) Figure 6. Center extraction results for different stripes: ( a ) the sloping straight line; ( b ) the steps; ( c ) the arc; ( d ) the random stripe. _Sensors_ 2017, _17_, 814 9 of 13 _3.3._ _Accuracy Analysis_ The evaluation of center accuracy was conducted by comparing the center extraction methods with the classical Steger method which can reach sub-pixel accuracy when proper parameters are selected. Thus, it can be used as the reference for the accuracy evaluation. For this study, the sizes of the Guassian kernels are all 7 _×_ 7, and their values are all generated out of the center extraction program to enhance the computation efficiency. Fine standard deviation of the Gaussian kernels and the threshold of the eigenvalues were found by many center extraction experiments to exclude the excess center points [21], and guarantee a fine center extraction result. The center pixels and the sub-pixel center points that were detected by the Steger method for Figure 6a, are shown in Figure 7a. It can be seen that although there may be multiple pixel responses to the stripe, their sub-pixel location conforms with the center perfectly. ( a ) ( b ) Figure 7. Center extraction results by different methods: ( a ) Steger method, ( b ) Comparision of the center extraction results. Then, the center points of the stripe images in Figure 6 were computed by use of the Usamentiaga’s method (UM) and the proposed IGGM. It should be noted that, in order to analyze the sub-pixel center extraction accuracy, the Split-and-Merge approach was not employed. Figure 7b is an enlarged portion of the center extraction result of Figure 6d. In this figure, it can be seen that the center points obtained by the proposed IGGM are closer to the center curve computed by the Steger method, than that of the UM. This is because the center extraction of the UM computes the center coordinates in the column direction as illustrated by R1, not in the normal direction. The computation region of the IGGM denoted by R2, on the other hand, is along the normal direction which conforms with that of the Steger method. <u>To analyze the center extraction error quantitatively, the stripe center of the images in Figure 6</u> was computed by the Steger method, the UM and the IGGM, respectively. <u>For the</u> _<u>p</u>_ <u>th point that was</u> obtained by the UM, its distance to the center curve of the Steger method is denoted as _<u>ep</u>_ <u>, and can be</u> considered as the extraction error of this point. Then, the maximum deviation, the meam value and the root mean squares value of the UM can be easily computed. The center extraction error of the IGGM can be obtained using the same procedure as listed in Table 1. To better compare the accuracy of the center extraction, the relative error reduction (RER) from of the UM to the IGGM was also computed. Table 1. Center extraction error by the Usamentiaga’s method (UM) and IGGM (pixels). Maximum Mean Root Mean Square No. UM IGGM RER UM IGGM RER UM IGGM RER Figure 6a 0.908 0.662 27.1% 0.205 0.152 25.9% 0.266 0.192 27.8% Figure 6b 0.752 0.723 3.9% 0.204 0.184 9.8% 0.264 0.241 8.7% Figure 6c 2.805 1.325 52.8% 0.661 0.267 59.6% 0.799 0.345 56.8% Figure 6d 1.196 0.960 19.7% 0.249 0.205 17.7% 0.328 0.268 18.3% _Sensors_ 2017, _17_, 814 10 of 13 It can be concluded from Table 1 that (1) the center extraction errors of the IGGM are all smaller than those of the UM; (2) the center extraction error is affected by the shape and the noise of the stripe. When the stripe lies in a horizontal direction and has low noise, as shown in Figure 6b, the center extraction error of the IGGM is a bit less than that of the UM. This is because the normal direction of the laser stripe is generally in the column direction which is the same as the UM. However, when the noise is increasing and the shape of the stripe is becoming complicated as shown in Figure 6c, the IGGM shows significant advantages over the UM. The three error evaluation parameters can all be reduced by more than 50%. In addition, when the stripe has a sharp corner, the center points obtained by the UM would have a large deviation from the true stripe center, similar to that of Figure 5a. The deviation value grows with the width of the window for the center computation. Furthermore, this deviation error is hard to fix by the subsequent Split-and-Merge procedure. The IGGM, on the other hand, can alter the width of the window according to the radius of the curvature of the stripe. Thus, it can precisely obtain the center of the stripe both at the smooth region and the corner region. _3.4._ _Run Time_ In this experiment, the computer for the image processing has a CPU of Intel i5-3470 3.2GHz and a RAM of 4GB. The software environment is Matlab R2012b. For ease of comparison studies, the sizes of the images of Figure 6 are all 500 _×_ 250 pixels. For each image, the center extraction program was run 10 times, and the average times of different center extraction methods are illustrated in Table 2. From this table, it can be seen that the GGM is the most efficient and the Steger method always needs the longest computation time. This is because the GGM has the simplest computational strategies as shown by Equation (1), while the Steger method needs to convolve all the pixels of the image with the Gaussian kernels five times. The UM was realized by the center extraction and subsequent Split-and-Merge process. The window size for the center calculation is W = 4 and the Akiama splines are used for the fitting with a threshold of _ε_ = 2. Unlike other methods, its center extraction time is related with the stripe images. The more complex the stripe is, the more interactive steps are needed to restrict the fitting error within the threshold, and the more computation time is needed. Table 2. Average run time for the center extraction (s). No. Steger GGM UM IGGM Figure 6a 2.806 0.006 0.015 0.091 Figure 6b 2.811 0.006 0.023 0.089 Figure 6c 2.802 0.005 0.020 0.095 Figure 6d 2.819 0.006 0.047 0.096 The IGGM has a longer computation time than that of the UM. This is because the moving least squares method is applied to estimate the normal vector of each center point. Furthermore, the center extraction in the normal direction leads to better accuracy. Moreover, the computation time of the IGGM is less than 0.1 s which is only one thirtieth of the Steger method. Thus, it can be applied for the 2D profile measurement and also for the 3D shape measurements by combining it with other motional axes. A lower computation time can be expected by transferring the algorithm to another software environment. 4. 2D and 3D Measurement _4.1._ _2D Profile Measurement_ For accuracy evaluation, a workpiece with stairs was fabricated by a precision milling machine, as shown in Figure 8a. The LSLS was calibrated by using of the numerical calibration method [5]. It can effectively eliminate the effect of lens distortion on the measuring results. Besides this, the bottom face _Sensors_ 2017, _17_, 814 11 of 13 of the workpiece also needs to fit well with the supporting plane to make the stairs perpendicular to the laser plane. The measured stair profile is shown in Figure 8b. A reference line was firstly defined by linear fitting of the line segments from the reference surface. Then, the value of the stair heights, named H1, H2 and H3, are defined as the average distance between the stair points and the reference line. The profile was also inspected by CMM (Coordinate Measuring Machine). The height values were computed using the same procedure and were taken as the true value. The measuring results are shown in Table 3. It can be seen that the maximum deviation is 0.0352 mm and the maximum relative error is 0.1933%. This indicates the high accuracy of the LSLS. ( a ) ( b ) Figure 8. Measuring the stairs profile: ( a ) the workpiece with the stairs; ( b ) the measured results. <u>Table 3.</u> <u>Measured results of the stairs.</u> ~~No.~~ ~~CMM (mm)~~ ~~LSLS (mm)~~ ~~Error (mm)~~ ~~Relative Error (%)~~ H1 10.0021 9.9851 _−_ 0.0170 _−_ 0.1700 H2 18.0027 18.0375 0.0348 0.1933 <u>H</u> ~~<u>3</u>~~ <u>24.0039</u> <u>23.9687</u> _<u>−</u>_ <u>0.0352</u> _<u>−</u>_ <u>0.1466</u> _4.2._ _3D Measurement_ The IGGM was also used to extract the center coordinates of the laser stripe during the measurement of a screw surface, as shown in Figure 9. ( a ) ( b ) Figure 9. Measuring applications: ( a ) The system setup; ( b ) The measured screw surface. Figure 9a is the measurement system that consisted of a linear laser projector, a CCD camera, a rotation axis and a linear stage. The LSLS, which has a linear laser projector and a CCD camera, was well calibrated before assembling with the motional axes. For this study, two motional axes are used for the surface inspection. One is the rotation axis that is driven by a servo motor with a resolution of 0.0055 <sup>_◦_</sup> . Another is a linear stage from NSK Ltd. (Tokyo, Japan) with a resolution of 0.5 µm. Figure 9b _Sensors_ 2017, _17_, 814 12 of 13 is the measured result of the screw surface mounted on the rotation axis. The linear stage carries the screw surface linearly under the LSLS; the position of the stage and the cross profile of the rotor were recorded. Then, the rotation axis moves to the position of 120 <sup>_◦_</sup> and 240 <sup>_◦_</sup>, and the same procedure was carried out. The measurement results further prove that the proposed IGGM can also be used for the measurement of the complex 3D surfaces. 5. Conclusions An IGGM was proposed which can precisely extract the laser stripe center at sub-pixel level. Using this method, each center coordinate was not obtained by considering only one transverse section of the laser stripe, but a rectangular region nearby. Based on the relationship established between the width of the rectangular region and the radius of curvature of the stripe, the width of the rectangular region would automatically change with the radius of curvature within a reasonable range. Thus, the precise sub-pixel center coordinates can be obtained from the perturbed stripe not only for the smooth region, but also for the region with sharp corners. From the Monte Carlo simulation, it can be seen that the uncertainty values for the center extraction are lower than the GGM and the GF under different noise amplitudes. The center coordinates of the sloping straight line, the steps, the arc, and the irregular laser stripe are all successfully extracted by use of the IGGM. Compared with the UM, the proposed IGGM can achieve higher center extraction accuracy. Its average run time is only one thirtieth of the Steger method. Thus, the IGGM is suitable for precision measurement of the workpieces. The measurement results of a stairs profile and a 3D screw surface further prove that the IGGM can be used for actual applications. Acknowledgments: The authors thank for the support from Hebei Province Department of Education Fund (No. QN2015123, QN2015179) and Hebei Nature Science Foundation (No. E2015208015, E2016208084). Author Contributions: Jingbo Zhou conceived and designed the experiments; Yuehua Li performed the experiments and analyzed the data; Fengshan Huang and Lijian Liu contributed to the system setup of the senor; Jingbo Zhou wrote the paper. Conflicts of Interest: The authors declare no conflict of interest. References 1. Zhan, D.; Yu, L.; Xiao, J.; Chen, T. Multi-camera and structured-light vision system (MSVS) for dynamic high-accuracy 3d measurements of railway tunnels. _Sensors_ 2015, _15_, 8664–8684. [[CrossRef] [PubMed]](http://dx.doi.org/10.3390/s150408664) 2. Carbone, V.; Carocci, M.; Savio, E.; Sansoni, G.; De Chiffre, L. Combination of a vision system and a coordinate measuring machine for the reverse engineering of freeform surfaces. _Int._ _J. Adv._ _Manuf._ _Technol._ 2001, _17_, 263–271. [[CrossRef]](http://dx.doi.org/10.1007/s001700170179) 3. Shen, H.; Lin, T.; Chen, S.; Li, L. Real-time seam tracking technology of welding robot with visual sensing. _J. Intell._ _Robot._ _Syst._ 2010, _59_, 283–298. [[CrossRef]](http://dx.doi.org/10.1007/s10846-010-9403-1) 4. Zhang, L.; Sun, J.; Yin, G.; Zhao, J.; Han, Q. A cross structured light sensor and stripe segmentation method for visual tracking of a wall climbing robot. _Sensors_ 2015, _15_, 13725–13751. [[CrossRef] [PubMed]](http://dx.doi.org/10.3390/s150613725) 5. Li, Y.; Zhou, J.; Huang, F. High precision calibration of line structured light sensors based on linear transformation over triangular domain. _Proc._ _SPIE_ 2016, _9684_, 968407. 6. Zhang, Z.; Lin, Y. Building a 3D scanner system based on monocular vision. _Appl._ _Opt._ 2012, _51_, 1638–1644. [[CrossRef] [PubMed]](http://dx.doi.org/10.1364/AO.51.001638) 7. Perona, P.; Malik, J. Scale-space and edge detection using anisotropic diffusion. _IEEE Trans._ _Pattern Anal._ _Mach._ _Intell._ 1990, _12_, 629–639. [[CrossRef]](http://dx.doi.org/10.1109/34.56205) 8. Hu, B.; Li, D.; Jin, G.; Hu, H. New method for obtaining the center of the structured light stripe by direction template. _Comput._ _Eng._ _Appl._ 2002, _38_, 59–60. 9. Lei, H.; Li, D.; Wang, J.; Hu, B. A method for fast detecting the center of structured light stripe. _J. Huazhong._ _Univ._ _Sci._ _Technol._ 2003, _31_, 74–76. 10. Subbarao, M.; Choi, T. Accurate recovery of three-dimensional shape from image focus. _IEEE Trans._ _Pattern_ _Anal._ _Mach._ _Intell._ 1995, _17_, 266–274. [[CrossRef]](http://dx.doi.org/10.1109/34.368191) _Sensors_ 2017, _17_, 814 13 of 13 11. Lv, Z.; Zhang, Z. Build 3D scanner system based on binocular stereo vision. _J. Comput._ 2012, _7_, 399–404. [[CrossRef]](http://dx.doi.org/10.4304/jcp.7.2.jcp0702399404) 12. Usamentiaga, R.; Molleda, J.; García, D.F. Fast and robust laser stripe extraction for 3D reconstruction in industrial environments. _Mach._ _Vis._ _Appl._ 2012, _23_, 179–196. [[CrossRef]](http://dx.doi.org/10.1007/s00138-010-0288-6) 13. Forest, J.; Salvi, J.; Cabruja, E.; Pous, C. Laser stripe peak detector for 3D scanners. A FIR filter approach. In Proceedings of the ICPR 2004—the 17th International Conference on Pattern Recognition, Cambridge, UK, 23–26 August 2004; pp. 646–649. 14. Goshtasby, A.; Shyu, H.L. Edge detection by curve fitting. _Image Vis._ _Comput._ 1995, _13_, 169–177. [[CrossRef]](http://dx.doi.org/10.1016/0262-8856%0x2895%0x2990837-X) 15. Steger, C. An unbiased detector of curvilinear structures. _IEEE Trans._ _Pattern Anal._ _Mach._ _Intell._ 1998, _20_, 113–125. [[CrossRef]](http://dx.doi.org/10.1109/34.659930) 16. Wei, Z.; Zhou, F.; Zhang, G. 3D coordinates measurement based on structured light sensor. _Sens._ _Actuators_ _A Phys._ 2005, _120_, 527–535. [[CrossRef]](http://dx.doi.org/10.1016/j.sna.2004.12.007) 17. Qi, L.; Zhang, Y.; Zhang, X.; Wang, S.; Xie, F. Statistical behavior analysis and precision optimization for the laser stripe center detector based on Steger’s algorithm. _Opt._ _Express._ 2013, _21_, 13442–13449. [[CrossRef]](http://dx.doi.org/10.1364/OE.21.013442) [[PubMed]](http://www.ncbi.nlm.nih.gov/pubmed/23736597) 18. Chen, X.; Zhang, G.; Sun, J. An efficient and accurate method for real-time processing of light stripe images. _Adv._ _Mech._ _Eng._ 2013, _5_, 56927. [[CrossRef]](http://dx.doi.org/10.1155/2013/456927) 19. Liu, X.; Zhao, H.; Zhan, G.; Zhong, K.; Li, Z.; Chao, Y.; Shi, Y. Rapid and automatic 3D body measurement system based on a GPU—Steger line detector. _Appl._ _Opt._ 2016, _55_, 5539–5547. [[CrossRef] [PubMed]](http://dx.doi.org/10.1364/AO.55.005539) 20. Jiang, J.; Deng, J.; Zhang, G.; Zhou, F. Real-time implementation of light stripe center extraction. _Opt._ _Tech._ 2008, _34_, 170–173. 21. Xu, G.; Sun, L.; Li, X.; Su, J.; Hao, Z.; Lu, X. Adaptable center detection of a laser line with a normalization approach using Hessian-matrix eigenvalues. _J. Opt._ _Soc._ _Korea_ 2014, _18_, 317–329. [[CrossRef]](http://dx.doi.org/10.3807/JOSK.2014.18.4.317) 22. Zhou, F.; Wang, F.; Zhang, G. Three-step extraction method for line-stripe in structured light vision. _Chin._ _J._ _Mech._ _Eng._ 2008, _11_, 038. [[CrossRef]](http://dx.doi.org/10.3901/JME.2008.11.215) 23. Cai, H.; Feng, Z.; Huang, Z. Centerline extraction of structured light stripe based on principal component analysis. _Chin._ _J. Lasers_ 2015, _42_, 0308006. [[CrossRef]](http://dx.doi.org/10.3788/CJL201542.0308006) 24. Sun, Q.; Chen, J.; Li, C. A robust method to extract a laser stripe centre based on grey level moment. _Opt. Lasers._ _Eng._ 2015, _67_, 122–127. [[CrossRef]](http://dx.doi.org/10.1016/j.optlaseng.2014.11.007) 25. Liu, Z.; Li, S.; Feng, C. Laser stripe center extraction based on cross-correlation algorithm. _Chin._ _J. Lasers_ 2013, _40_, 0508004. 26. Li, F.; Li, X.; Liu, Z. A multi-scale analysis based method for extracting coordinates of laser light stripe centers. _Acta._ _Opt._ _Sin._ 2014, _34_, 1110002. 27. Li, G.; Meng, Z.; Ma, F.; Zhao, H.; Ding, D.; Liu, Q.; Cheng, W. Calculation of stratum surface principal curvature based on a moving least square method. _J. China Univ._ _Min._ _Technol._ 2008, _18_, 59–63. [[CrossRef]](http://dx.doi.org/10.1016/S1006-1266%0x2808%0x2960013-9) 28. Kamran, S.; Pooneh, N. A new optimized uncertainty evaluation applied to the Monte-Carlo simulation in platinum resistance thermometer calibration. _Measurement._ 2010, _43_, 901–911. 29. ISO/IEC. Uncertainty of measurement, Part 3: Guide to the Expression of Uncertainty in Measurement (GUM: 1995), Supplement 1: Propagation of distributions using a Monte Carlo method. Available online: [https://www.iso.org/standard/50461.html (accessed on 30 March 2017).](https://www.iso.org/standard/50461.html) 30. Wang, S.; Xu, J.; Zhang, Y.; Zhang, X.; Xie, F. Reliability evaluation method and application for light-stripe-center extraction. _Acta._ _Opt._ _Sin._ 2011, _31_, 1115001. [[CrossRef]](http://dx.doi.org/10.3788/AOS201131.1115001) © 2017 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution [(CC BY) license (http://creativecommons.org/licenses/by/4.0/).](http://creativecommons.org/licenses/by/4.0/.)

섹션 본문

섹션 본문이 없습니다.

참고문헌 28건

  1. A Cross Structured Light Sensor and Stripe Segmentation Method for Visual Tracking of a Wall Climbing Robot Sensors · Multidisciplinary Digital Publishing Institute · 2015 10.3390/s150613725
  2. Three-step Extraction Method for Line-stripe in Structured Light Vision Journal of Mechanical Engineering · Chinese Journal of Mechanical Engineering · 2008 10.3901/jme.2008.11.215
  3. Statistical behavior analysis and precision optimization for the laser stripe center detector based on Steger's algorithm Optics Express · Optica Publishing Group · 2013 10.1364/oe.21.013442
  4. Fast and robust laser stripe extraction for 3D reconstruction in industrial environments Machine Vision and Applications · Springer Science+Business Media · 2010 10.1007/s00138-010-0288-6
  5. Build 3D Scanner System based on Binocular Stereo Vision Journal of Computers · Academy Publisher · 2012 10.4304/jcp.7.2.jcp0702399404
  6. Edge detection by curve fitting Image and Vision Computing · Elsevier BV · 1995 10.1016/0262-8856(95)90837-x
  7. Calculation of stratum surface principal curvature based on a moving least square method Journal of China University of Mining and Technology · Elsevier BV · 2008 10.1016/s1006-1266(08)60013-9
  8. 3D coordinates measurement based on structured light sensor Sensors and Actuators A Physical · Elsevier BV · 2005 10.1016/j.sna.2004.12.007
  9. Combination of a Vision System and a Coordinate Measuring Machine for the Reverse Engineering of Freeform Surfaces The International Journal of Advanced Manufacturing Technology · Springer Science+Business Media · 2001 10.1007/s001700170179
  10. Multi-Camera and Structured-Light Vision System (MSVS) for Dynamic High-Accuracy 3D Measurements of Railway Tunnels Sensors · Multidisciplinary Digital Publishing Institute · 2015 10.3390/s150408664
  11. Real-Time Seam Tracking Technology of Welding Robot with Visual Sensing Journal of Intelligent & Robotic Systems · Springer Science+Business Media · 2010 10.1007/s10846-010-9403-1
  12. A robust method to extract a laser stripe centre based on grey level moment Optics and Lasers in Engineering · Elsevier BV · 2014 10.1016/j.optlaseng.2014.11.007
  13. A new optimized uncertainty evaluation applied to the Monte-Carlo simulation in platinum resistance thermometer calibration Measurement · Elsevier BV · 2010 10.1016/j.measurement.2010.03.008
  14. Adaptable Center Detection of a Laser Line with a Normalization Approach using Hessian-matrix Eigenvalues Journal of the Optical Society of Korea · Optical Society of Korea · 2014 10.3807/josk.2014.18.4.317
  15. Building a 3D scanner system based on monocular vision Applied Optics · Optica Publishing Group · 2012 10.1364/ao.51.001638
  16. Scale-space and edge detection using anisotropic diffusion IEEE Transactions on Pattern Analysis and Machine Intelligence · IEEE Computer Society · 1990 10.1109/34.56205
  17. An unbiased detector of curvilinear structures IEEE Transactions on Pattern Analysis and Machine Intelligence · IEEE Computer Society · 1998 10.1109/34.659930
  18. An Efficient and Accurate Method for Real-Time Processing of Light Stripe Images Advances in Mechanical Engineering · SAGE Publishing · 2013 10.1155/2013/456927
  19. Accurate recovery of three-dimensional shape from image focus IEEE Transactions on Pattern Analysis and Machine Intelligence · IEEE Computer Society · 1995 10.1109/34.368191
  20. GUIDE TO THE EXPRESSION OF UNCERTAINTY IN MEASUREMENT 2006
  21. Laser Stripe Center Extraction Based on Cross-Correlation Algorithm Chinese Journal of Lasers · Science Press · 2013 10.3788/cjl201340.0508004
  22. A Multi-Scale Analysis Based Method for Extracting Coordinates of Laser Light Stripe Centers Acta Optica Sinica · Shanghai Institute of Optics and Fine Mechanics · 2014 10.3788/aos201434.1110002
  23. Centerline Extraction of Structured Light Stripe Based on Principal Component Analysis Chinese Journal of Lasers · Science Press · 2015 10.3788/cjl201542.0308006
  24. Reliability Evaluation Method and Application for Light-Stripe-Center Extraction Acta Optica Sinica · Shanghai Institute of Optics and Fine Mechanics · 2011 10.3788/aos201131.1115001
  25. Real-time implementation of light stripe center extraction Optical Technique · Shanghai Institute of Optics and Fine Mechanics · 2008
  26. Rapid and automatic 3D body measurement system based on a GPU–Steger line detector Applied Optics · Optica Publishing Group · 2016 10.1364/ao.55.005539
  27. High precision calibration of line structured light sensors based on linear transformation over triangular domain Proceedings of SPIE, the International Society for Optical Engineering/Proceedings of SPIE · SPIE · 2016 10.1117/12.2242945
  28. Laser stripe peak detector for 3D scanners. A FIR filter approach Proceedings of the 17th International Conference on Pattern Recognition, 2004. ICPR 2004. · 2004 10.1109/icpr.2004.1334612