Next Article in Journal
Escalator: An Autonomous Scheduling Scheme for Convergecast in TSCH
Next Article in Special Issue
Improved Seam-Line Searching Algorithm for UAV Image Mosaic with Optical Flow
Previous Article in Journal
Continuous-Wave Fiber Cavity Ringdown Pressure Sensing Based on Frequency-Shifted Interferometry
Previous Article in Special Issue
Delving Deep into Multiscale Pedestrian Detection via Single Scale Feature Maps
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Comparative Analysis of Warp Function for Digital Image Correlation-Based Accurate Single-Shot 3D Shape Measurement

1
School of Mechanical Engineering, Shanghai Jiao Tong University, Shanghai 200240, China
2
Shanghai Key Laboratory of Advanced Manufacturing Environment, Shanghai 200030, China
3
State Key Laboratory of Mechanical System and Vibration, Shanghai 200240, China
*
Author to whom correspondence should be addressed.
Sensors 2018, 18(4), 1208; https://doi.org/10.3390/s18041208
Submission received: 11 February 2018 / Revised: 23 March 2018 / Accepted: 12 April 2018 / Published: 16 April 2018
(This article belongs to the Special Issue Visual Sensors)

Abstract

:
Digital image correlation (DIC)-based stereo 3D shape measurement is a kind of single-shot method, which can achieve high precision and is robust to vibration as well as environment noise. The efficiency of DIC has been greatly improved with the proposal of inverse compositional Gauss-Newton (IC-GN) operators for both first-order and second-order warp functions. Without the algorithm itself, both the registration accuracy and efficiency of DIC-based stereo matching for shapes with different complexities are closely related to the selection of warp function, subset size, and convergence criteria. Understanding the similarity and difference of the impacts of prescribed subset size and convergence criteria on first-order and second-order warp functions, and how to choose a proper warp function and set optimal subset size as well as convergence criteria for different shapes are fundamental problems in realizing efficient and accurate 3D shape measurement. In this work, we present a comparative analysis of first-order and second-order warp functions for DIC-based 3D shape measurement using IC-GN algorithm. The effects of subset size and convergence criteria of first-order and second-order warp functions on the accuracy and efficiency of DIC are comparatively examined with both simulation tests and real experiments. Reference standards for the selection of warp function for different kinds of 3D shape measurement and the setting of proper convergence criteria are recommended. The effects of subset size on the measuring precision using different warp functions are also concluded.

1. Introduction

Optical 3D shape measurement has become one of the research hotspots in the field of measurement due to the advantages of high precision, non-contact, and high speed, etc. Laser scanning [1,2,3], structured light [4,5], and digital image correlation (DIC) [6,7,8] are commonly used for accurate 3D shape measurement. According to previous researches [6,9], all of the three methods can achieve the same level of precision. The principle of laser scanning can be briefly summarized as: a laser line stripe plane is projected onto a measuring surface, then a laser stripe is formed and modulated by the depth of the surface. By calibrating the line stripe plane previously and recording the laser stripe by a well-calibrated camera, the 3D information along the stripe line on the surface can be characterized. For structured light measurement, coded fringe patterns are projected onto a measuring surface, the captured images are processed by relative decoding method, whereby an exact phase is computed for each pixel. The phase value is used as a measure for getting depth information of the pixel during 3D reconstruction. Laser scanning is robust to severe environment, but it needs several scans to obtain a complete shape. Structured light measurement is fast at obtaining full-field shape, which can be classified into single-shot and multiple-shot methods according to the number of projected fringe patterns. Multiple-shot structured light measurement can achieve high precision but is sensitive to vibration. Single-shot structured light measurement does not have synchronization problem between projector and camera(s) but is inaccurate at large slope or discontinuities [10]. DIC-based shape measurement is an accurate single-shot method, which is usually accompanied with speckle projection to enhance the surface characteristic, but the calculation amount is much larger than laser scanning and structured light measurement.
The principle basis of DIC-based 3D shape measurement is binocular stereovision. The key component of 3D reconstruction by the way of stereovision is stereo matching. DIC is adopted as a region-matching algorithm to get the disparity of the same characteristic in the left (reference) image and right (target) image: it is assumed that a warp function can be used to describe the mapping relation of two local regions around the same characteristic with proper warp parameters. The warp parameters are optimized by sub-pixel registration algorithm, which is usually the most time-consuming step. The forward additive Newton-Raphson (FA-NR) algorithm is a typical iterative updating method, which is widely used with first-order [11,12] and second-order [13,14] warp functions in last decade. However, the limitation of FA-NR is that the Hessian matrix must be re-computed and inverted in each iteration, which leads to a heavy calculation burden. A more efficient algorithm called inverse compositional Gauss-Newton (IC-GN) [15] was proven to have the same accuracy as classical forward additive image alignment algorithm, but the Hessian matrix remains the same in each iteration of IC-GN [16]. Pan et al. first combined IC-GN and zero-mean normalized sum of square difference (ZNSSD) criterion in DIC with first-order warp function [17]. Since then, almost all the researches related to DIC adopted IC-GN algorithm for sub-pixel registration, which can be summed up as first-order and second-order IC-GN. First-order IC-GN is extensively used for real-time human pulse monitoring [18], real-time dynamic strain measurement [19], and 3D shape measurement [7]. It is worth noting that first-order warp function is a linear transformation, which can only characterize local translation, rotation, and uniform mapping. Therefore, Gao et al. [20] and Bai et al. [21] proposed operators for second-order IC-GN, which is effective to handle non-uniform complex mapping. Additionally, some researches have been done to study the factors that may influence the efficiency or accuracy of DIC, such as subset size [22], convergence criteria [23]. However, only first-order warp function is used in the studies. As far as we know, there is no comparative analysis about the measurement effectiveness and different characteristics of first-order and second-order warp functions until now. Therefore, it is hard to select a proper warp function and set optimal parameters according to the characteristics of different measurements.
In this work, we present a comparative analysis of first-order and second-order warp functions for DIC-based 3D shape measurement using IC-GN algorithm. The influences of convergence criteria, subset size on the convergence efficiency and accuracy are comparatively studied by simulations and real tests. The remainder of this paper is organized as follows: The principle of DIC-based single-shot 3D shape measurement is introduced in Section 2. Experimental results and discussions are reported in Section 3. Finally, conclusions are drawn in Section 4.

2. Principle of DIC-Based Single-Shot 3D Shape Measurement

A single-shot stereo system, composed of two Charge Coupled Device (CCD) cameras and a digital projector, was introduced in our previous work [7]. A speckle pattern is projected onto the measuring object to enhance surface characteristics. With accurate stereo calibration and rectification [24], the same points locates on the same row of left image and right image due to the epipolar constraint. DIC can be used as a local stereo matching method to measure the disparity of the two same points that locate on the left and right images. Speckle projection-based DIC has been proven to have good performances in single-shot 3D measurement and the principle is introduced in this section [25,26].

2.1. Warp Function of DIC

The captured images of a same local region from two different angles of view have obvious difference due to rotation and deformation. By setting a reference subset in the reference image, the position and shape of the relative target subset in the target image can be described by a warp function with proper parameters.
The first-order and second-order warp functions can be represented as:
W 1 ( x , y ; p 1 ) = [ x y 1 ] = [ 1 + u x u y u v x 1 + v y v 0 0 1 ] [ x y 1 ]
p 1 = ( u , u x , u y , v , v x , v y ) T
Δ p 1 = ( Δ u , Δ u x , Δ u y , Δ v , Δ v x , Δ v y ) T
W 2 ( x , y ; p 2 ) = [ x y 1 ] = [ 1 2 u x x u x y 1 2 u y y 1 + u x u y u 1 2 v x x v x y 1 2 v y y v x 1 + v y v 0 0 0 0 0 1 ] [ x 2 x y y 2 x y 1 ]
p 2 = ( u , u x , u y , u x x , u x y , u y y , v , v x , v y , v x x , v x y , v y y ) T
Δ p 2 = ( Δ u , Δ u x , Δ u y , Δ u x x , Δ u x y , Δ u y y , Δ v , Δ v x , Δ v y , Δ v x x , Δ v x y , Δ v y y ) T
where ( x , y ) denotes the local coordinate of the pixel in reference subset, ( x , y ) is the mapped coordinate of ( x , y ) . W 1 ( x , y ; p 1 ) and W 2 ( x , y ; p 2 ) are the first-order and second-order warp functions with parameter vector p 1 and p 2 , respectively. Δ p 1 and Δ p 2 denote the incremental parameter vectors. u and v denote the displacement components of center pixel of the reference subset in x direction and y direction, respectively. The other parameters are the first-order gradient components (i.e., u x , u y , v x , v y ) and second-order gradient components (i.e., u x x , u x y , u y y , v x x , v x y , v y y ).

2.2. Principle of DIC-Based Stereo Matching Using IC-GN Algorithm

Figure 1 [7] shows the schematic principle of DIC-based stereo matching using IC-GN algorithm. The first-order and second-order warp functions are adopted in Figure 1a,b, respectively. Subscript 1 and 2 are used hereinafter to distinguish the first-order and second-order IC-GN algorithms: IC-GN1 and IC-GN2. f   and g denote the gray level intensities of reference subset and target subset, respectively. A whole DIC process using IC-GN algorithm can be concluded as three steps. Firstly, compute the optimal parameter incremental vector Δ p according to current p , which need to be estimated before the first iteration. The most commonly used ZNSSD criterion is employed in this step [20].
C Z N S S D ( Δ p ) =   y = M y = M x = M x = M [ f ( W ( x , y ; Δ p ) ) f ¯ Δ f g ( W ( x , y ; p ) ) g ¯ Δ g ] 2
Δ f = y = M y = M x = M x = M ( f ( x , y ) f ¯ ) 2 ,   Δ g = y = M y = M x = M x = M ( g ( x , y ) g ¯ ) 2
where x and y in Equation (8) are usually sub-pixel values, g ( x , y ) is calculated by B-spline interpolation [18]. f ¯ and g ¯ are the mean values of gray level intensities of the reference subset and target subset. f ¯ is constant during the iterations, while g ¯ need to be calculated in each iteration. Equation (7) can be simplified by first-order Taylor expansion with respect to Δ p :
C Z N S S D ( Δ p ) =   y = M y = M x = M x = M [ f ( W ( x , y ; 0 ) + f ( W p ) Δ p f ¯ ) Δ f g ( W ( x , y ; p ) ) g ¯ Δ g ] 2
where f = ( f / x , f / y ) is the gray level intensity gradient in x and y directions of the reference subset. W p is the Jacobian of the warp function. For first-order and second-order warp functions, the Jacobians can be expressed respectively as:
W 1 p 1 = [ 1 x y 0 0 0 0 0 0 1 x y ]
W 2 p 2 = [ 1 x y 1 2 x 2 x y 1 2 y 2 0 0 0 0 0 0 0 0 0 0 0 0 1 x y 1 2 x 2 x y 1 2 y 2 ]
From Equation (9) Δ p can be solved by least-squares method:
Δ p = H 1 y = M y = M x = M x = M { [ f ( W p ) ] T [ f ( W ( x , y ; 0 ) ) f ¯ Δ f Δ g g ( W ( x , y ; p ) ) + Δ f Δ g g ¯ ] }
H = y = M y = M x = M x = M { [ f ( W p ) ] T [ f ( W p ) ] }
where H is the Hessian matrix in the IC-GN algorithm, which is constant during the iterations because f and W p are independent of the target subset.
Secondly, exert Δ p on the reference subset to get the incremental warp W ( x , y ; Δ p ) . Subsequently, compose current warp W ( x , y ; p ) with the inverse incremental warp W 1 ( x , y ; Δ p ) to obtain an updated warp:
W ( x , y ; p ) = W ( x , y ; p ) W 1 ( x , y ; Δ p )
Thirdly, repeat the above two steps with the updated p obtained by Equation (14) until preset convergence conditions have been met. In Equation (14), the warp function must be invertible. The first-order warp function can be inverted directly, while the second-order warp function need to be expanded to make it invertible [20].
There are usually two steps to get dense disparity map in DIC-based stereo matching, namely seed point generation and seed point propagation. Scale-invariant feature transform (SIFT) [27] is a classical feature detection method, features extracted by which is invariant to affine transformation, rotation, and scale. In this paper, SIFT-based feature detection, feature matching [28], and affine transformation are adopted to estimate initial values for p to generate seed points. The detailed procedure can be found in our previous work [7]. The initial values for p 1 can be estimated directly. For IC-GN2, the initial values for the second-order components (i.e., u x x , u x y , u y y , v x x , v x y , v y y ) of p 2 are set to zeros. To improve the calculation efficiency, a fast recursive scheme [29] and reliability-guided seed point propagation [14] are utilized. Based on the disparity map, 3D reconstruction can be finished via triangulation.

3. Experiments and Discussions

To conduct the comparative analysis quantitatively, two groups of experiments are investigated. In the first group, numerical simulations with two speckle images generated by computer are conducted to compare performances of first-order and second-order warp functions. In the second group, a set of experiments with different real objects are performed to evaluate the applicability and efficiency of first-order and second-order warp functions for the measurement of surfaces with different complexities. All the experiments are executed on a normal Intel(R) Core(TM) i7-4710MQ CPU 2.50 GHz laptop by C++ language with the additional library of Open Source Computer Vision (OpenCV).
In the following experiments, the modulus of the incremental displacement components Δ u and Δ v , Δ P m a i n = Δ u 2 + Δ v 2 , is used to examine the convergence. Also the optimized ZNSSD correlation coefficient is converted to zero-mean normalized cross-correlation (ZNCC) coefficient, which is equivalent to ZNSSD but more straightforward [30]. The judging conditions for the success of IC-GN are that Δ P m a i n is less than the preset convergence threshold and the optimized ZNCC coefficient is larger than 0.8 , as well as the number of iterations is less than 30.

3.1. Comparative Analysis by Numerical Simulations

In the following tests, a simulated image pair is equalized as a rectified stereo image pair: the displacements between the two images only occur along the along the x -axis. Therefore, the measurement of the displacements between the reference image and target image is equivalent to the process of stereo matching (getting dense disparity map) in DIC-based 3D shape measurement. As shown in Figure 2, the reference image and target images are generated by the well-known simulation algorithm proposed by Zhou [31] and widely used in previous researches [32,33,34]:
I ( x , y ) = k = 1 S I 0 exp ( ( x x k ) 2 + ( y y k ) 2 r 2 )
where I is the generated intensity of the simulated speckle image. S is the total number of speckles, r is speckle size. ( x k , y k ) is a randomly generated speckle position. I 0 is the peak intensity of each speckle, which is usually set to be 255.
In Figure 2a, there are totally 150 , 000 randomly generated speckles in the reference image with a resolution of 1280 × 960 pixels, and the speckle radius is 1.2 pixels. Figure 2b is the corresponding target image generated by exerting specific displacements on the reference image:
U ( x , y ) = { sin ( 2 π E ( x ) / t ) sin ( 2 π E ( y ) / t ) x < 640 E ( x ) E ( y ) x 640
E ( x ) = { e ( x u 1 ) 2 / ( 2 σ 1 2 ) x < 640 e ( x u 2 ) 2 / ( 2 σ 2 2 ) x 640
E ( y ) = { e ( y v 1 ) 2 / ( 2 σ 1 2 ) x < 640 e ( y v 2 ) 2 / ( 2 σ 2 2 ) x 640
Two different forms of displacements along the x -axis are exerted on the reference image according to the displacement function U ( x , y ) . The displacements for the left part and right part are generated by an analogous sinusoidal-Gaussian function and an analogous Gaussian function, respectively. In Figure 2a, two preset regions of interest (ROI) are marked by yellow rectangles in the left part (ROI1) and right part (ROI2). ( u 1 , v 1 ) and ( u 2 , v 2 ) are the coordinates of the center pixels of ROI1 and ROI2, which are set to be ( 320 , 480 ) and ( 960 , 480 ) , respectively. σ denotes the Gaussian Root-Mean-Square (RMS) width, where σ 1 and σ 2 are set to be 50 and 200 , respectively. t is the period of sinusoidal function, which is set to be 1. The displacement fields of ROI1 and ROI2 are shown in Figure 2c,d, it is obvious that the displacement field of ROI1 is much more complex than that of ROI2.
The displacements of all the pixels in ROI1 and ROI2 are measured by IC-GN1 and IC-GN2. The measured data are analyzed statistically:
s U = i = 1 i = N ( | U m e i U t h i | e ¯ U ) 2 / ( N 1 ) , e ¯ U = 1 N i = 1 i = N | U m e i U t h i |
R M S E U = i = 1 i = N ( U m e i U t h i ) 2 / N
where e ¯ U is the mean bias error, s U is the standard deviation, and R M S E U is the root-mean-square error (RMSE). U m e i and U t h i denote the measured and theoretical displacements along the x -axis of the sampling pixel with index i . N is the number of sampling pixels. It is necessary to state here that the influence of subset size and convergence criterion on the accuracy of IC-GN1 and IC-GN2 in different displacement fields are compared.

3.1.1. Comparative Analysis with Different Subset Sizes

Three groups of data (namely, measured data of ROI1, ROI2, both ROI1 and ROI2) are analyzed with subset size changed from 15 × 15 to 35 × 35 pixels, where the three groups of data are denoted as ROI1, ROI2, and ROI1&2 hereinafter. Figure 3 shows the s U and R M S E U as a function of subset size, where the convergence threshold for Δ P m a i n is set to be 0.001. The corresponding data are listed in Table 1. To compare the characteristics of the errors measured by IC-GN1 and IC-GN2 of the two displacement fields, the error distribution maps with a specific subset size as 27 × 27 pixels are shown in Figure 4.
It can be easily seen in Figure 3 that for IC-GN1, s U and R M S E U of ROI1 both increase as the subset size becomes larger. However, s U and R M S E U of ROI2 decrease as the subset size becomes larger. For IC-GN2, s U and R M S E U of ROI1 get the minimums with the subset size of 27 × 27 pixels. s U and R M S E U of ROI2 decrease as the subset size becomes larger. For both IC-GN1 and IC-GN2, s U and R M S E U of ROI2 are always smaller than that of ROI1, which indicates that the precision of IC-GN can be reduced by complex displacement field. It should be noted that IC-GN2 is more accurate than IC-GN1 for ROI1. However, IC-GN1 is more accurate for ROI2 with all tested subset sizes. The errors of ROI1&2 are the tradeoff of errors of ROI1 and ROI2.
The error distribution maps of ROI1 and ROI2 measured by IC-GN1 and IC-GN2 are shown in Figure 4a–d, respectively. By horizontal comparison, it is obvious that the errors of ROI1 measured by IC-GN1 and IC-GN2 are both mainly concentrate on the peak areas of the shape of displacement field, while the error distribution of ROI2 likes a random distribution. By vertical comparison, we can see that the concentrated errors in the peak areas measured by IC-GN1 can be suppressed by IC-GN2, while the errors of ROI2 measured by IC-GN2 are about double of that measured by IC-GN1. Therefore, it can be concluded that IC-GN2 is more accurate for complex displacement (disparity) field measurement, while IC-GN1 is more accurate for general uniform displacement (disparity) field measurement.

3.1.2. Comparative Analysis with Different Convergence Criteria

In Figure 3b, the curves of R M S E U of ROI1&2 measured by IC-GN1 and IC-GN2 have an intersection around the side length of subset of 17 pixels. Therefore, the subset size is set to be 17 × 17 pixels to compare the performances of IC-GN1 and IC-GN2 under different convergence criteria. As shown in Figure 5, the convergence threshold for Δ P m a i n is set to be 0.1 , 0.01 , 0.001 , and 0.0001 , respectively. To compare the convergence efficiency of IC-GN1 and IC-GN2 under different convergence thresholds, the average numbers of iterations (denoted as n ¯ i t o r ) of ROI1, ROI2, and ROI1&2 are listed in Table 2.
It can be concluded from Figure 5 that the same characteristic of IC-GN1 and IC-GN2 for the three groups is that the errors under the convergence thresholds of 0.01 , 0.001 , and 0.0001 are almost the same from each other. The difference is that the errors of IC-GN1 under the convergence threshold of 0.1 are significantly larger than that under the other thresholds, while the errors of IC-GN2 under the convergence threshold of 0.1 are slightly larger or smaller than under the other thresholds. Furthermore, s U and R M S E U of ROI1&2 measured by IC-GN2 under the convergence threshold of 0.1 are smaller than that measured by IC-GN1 under any one of the tested convergence thresholds. Also, it is evident in Table 2 that the preset convergence threshold directly affects the convergence efficiency. For all ROI1, ROI2, and ROI1&2, the average numbers of iterations of IC-GN2 under the convergence threshold of 0.1 are about the same as those of IC-GN1 under the convergence threshold of 0.01 . If only ROI1&2 is considered, IC-GN2 under the convergence threshold of 0.1 is more accurate than IC-GN1 under the convergence threshold of 0.01 . Considering both the efficiency and accuracy, conclusions can be drawn that the convergence threshold of 0.01 is the best choice for IC-GN1, while 0.1 is more suitable for IC-GN2.

3.2. Comparative Anslysis by Real Tests

As Shown in Figure 6a [7], a single-shot stereo system is used to perform real experiments, which is composed of two CCD cameras with a resolution of 1280 × 960 pixels (Basler acA1300-30 gm. Manufactured by Basler AG, Ahrensburg, Germany. Supplied by Shanghai Vision-Light Tech Co., Ltd. Pudong New Area, Shanghai, China), two camera lenses (Computar 8 mm 1:1.4 2/3. Manufactured by Computar®, Tokyo, Japan. Supplied by Shanghai Vision-Light Tech Co., Ltd. Pudong New Area, Shanghai, China), and a projector with a resolution of 1140 × 912 pixels (TI DLP LightCrafter4500. Manufactured by TEXAS INSTRUMENTS, Dallas, Texas, America. Supplied by Texas Instruments Semico…es (Shanghai) Co. Ltd. Pudong New Area, Shanghai, China). Figure 6b shows the projected speckle pattern with the same resolution as the projector: there are totally 120,000 speckles with a fixed radius of 1.2 pixels.
Three objects are employed to compare the real measurement performances of IC-GN1 and IC-GN2. The measured surfaces are shown in Figure 7a–c, namely, plane surface, cylinder surface, and back surface of a plaster head (named as head hereinafter for short). The plane surface and cylinder surface are used as standard surfaces, which are measured by a Coordinate Measuring Machine (CMM (2 + (L/350) µm. Manufactured by Thome Präzision GmbH, Messel, Germany. Supplied by THOME China, Minhang District, Shanghai, China)). The 3D coordinates of the measured points are fitted into plane and cylinder surface by least square method, respectively, and the fitted results are listed in Table 3. In the calculations of real tests, a ROI is set in the left image of each rectified stereo image pair. The shape of the ROI in the head is much more complex compared to that of the plane or cylinder. The disparity maps and 3D shapes of the three ROIs are shown in Figure 8 to enable a visual comparison. In the following comparative analysis, both IC-GN1 and IC-GN2 are used for all the ROIs except for that in Figure 8, which refers to different warp function for different ROI: the ROIs in the plane and cylinder are measured by IC-GN1 under a convergence threshold of 0.01, and the ROI in the head is measured by IC-GN2 under a convergence threshold of 0.1. In addition, the subset size is set to be 27 × 27 pixels in Figure 8.
To verify the conclusions drawn by simulation tests. The pixels in each ROI are matched by IC-GN1 and IC-GN2 with the convergence threshold of 0.001, and the subset size ranges from 15 × 15 to 35 × 35 pixels. For the plane surface and cylinder surface, the standard deviation (denoted as s ) of plane or cylinder surface fitting in each measurement is plotted in Figure 9a.
It can be seen that IC-GN1 is always more accurate than IC-GN2 with all tested subset sizes for both surfaces. To compare the measuring abilities of IC-GN1 and IC-GN2 for different surfaces, the statistics of matching rates with different subset size of each ROI are listed in Table 4. The matching rate is denoted as r m , which is the ratio of number of matched pixels to the number of total pixels (denoted as N p i x ) in the ROI. The matching rates of IC-GN1 and IC-GN2 are all equal or very close to 100% for the plane and cylinder surfaces. However, the matching rates of IC-GN1 for the ROI of head are all below 70%, while the matching rates of IC-GN2 are all very close to 100%. Therefore, the measurement ability of IC-GN1 for complex shape measurement is limited, which is almost unrelated to the change of subset size.
The accuracy of IC-GN1 and IC-GN2 are also compared under different convergence thresholds with a specific subset size of 27 × 27 pixels. The standard deviations of plane fitting and cylinder surface fitting versus convergence threshold are plotted in Figure 9b. It can be seen that for IC-GN1, only the differences of standard deviations under convergence thresholds of 0.1 and 0.01 are relevant. For IC-GN2, the standard deviations are almost the same under different convergence thresholds. As shown in Figure 10, the 3D data of the ROI of head measured by IC-GN2 under two different convergence thresholds are compared. That means for every pixel in the ROI that has been matched, the spatial distance of the corresponding two 3D points reconstructed under the two convergence thresholds are calculated. The distance distribution maps by comparison of convergence threshold of 0.1 to 0.01 and 0.001 are shown in Figure 10a,b, respectively. Furthermore, comparison of shapes measured by IC-GN2 and structured light of the head are shown in Figure 11.
It needs to declare that the distance values for unmatched pixels are set to be zeros in Figure 10. There is no significant difference between Figure 10a,b; the corresponding standard deviations are 4.318 μ m and 4.496 μ m . To further verify the measurement effectiveness of IC-GN2 under the threshold of 0.1, the head is measured at the same position by both IC-GN2 and three-frequency three-step structured light using the same system. The same ROI is set in the rectified left images of DIC measurement and structured light measurement, and the shapes of the ROI measured by IC-GN2 and structured light are shown in Figure 11a,b, respectively. For every pixel in the ROI, the spatial distance of the two 3D coordinates measured by IC-GN2 and structured light is calculated. The standard deviation of all the calculated distance values is 0.023 mm, which is in the same level of precision of the above plane fitting and cylinder surface fitting. Therefore, conclusions can be drawn from the above comparisons that the convergence threshold of 0.01 is suitable for IC-GN1, while 0.1 is recommended for IC-GN2. The conclusions are consistent with that drawn in the simulation tests.

4. Conclusions

In this paper, a comparative analysis of first-order and second-order warp functions for DIC-based stereo 3D shape measurement is presented. Both simulation tests and real experiments with different objects are performed to compare the impacts of subset size and convergence criteria on the measuring ability, efficiency, and precision by IC-GN using first-order and second-order warp functions. Conclusions are summarized as follows:
(1)
The first-order warp function is more suitable for surfaces with a shape of flat or small curvature, such as plane, cylinder, and flat Gaussian surface, etc. Under the same convergence criteria, IC-GN1 is always more efficient and accurate than IC-GN2 with all tested subset sizes.
(2)
The second-order warp function is more suitable for surfaces with a complex shape or large curvature, such as the tested back surface of head and analogous sinusoidal-Gaussian surface, etc. IC-GN1 is not capable or accurate enough for such kind of 3D shape measurement; the matching rate of tested ROI of head is under 70% with any of the tested subset size.
(3)
The convergence thresholds for IC-GN1 and IC-GN2 are recommended to be that the variation of the modulus of incremental displacement vector is less than 0.01 pixel, and 0.1 pixel, respectively. Both the recommended convergence thresholds can achieve considerable measurement precision compared to smaller thresholds according to the simulation tests and real experiments.

Acknowledgments

This work is supported by the National Natural Science Foundation of China (51575354), the National Key Technology Research and Development of the Ministry of Science and Technology of China (973 Program 2014CB046604), the Ministry of Industry and Information Technology of China (17GFB-ZB02-194), and the Shanghai Municipal Science and Technology project (16111106102).

Author Contributions

Xiao Yang and Juntong Xi designed the experiments; Xiao Yang and Xiaobo Chen performed the experiments and analyzed the data; and Xiao Yang wrote the paper.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Chi, S.; Xie, Z.; Chen, W. A laser line auto-scanning system for underwater 3D reconstruction. Sensors 2016, 16, 1534. [Google Scholar] [CrossRef] [PubMed]
  2. Yu, C.; Chen, X.; Xi, J. Modeling and calibration of a novel one-mirror galvanometric laser scanner. Sensors 2017, 17, 164. [Google Scholar] [CrossRef] [PubMed]
  3. Jung, J.; Yoon, S.; Ju, S.; Heo, J. Development of kinematic 3D laser scanning system for indoor mapping and as-built bim using constrained slam. Sensors 2015, 15, 26430–26456. [Google Scholar] [CrossRef] [PubMed]
  4. Chen, X.; Xi, J.T.; Jiang, T.; Jin, Y. Research and development of an accurate 3D shape measurement system based on fringe projection: Model analysis and performance evaluation. Precis. Eng. 2008, 32, 215–221. [Google Scholar]
  5. Nguyen, T.T.; Slaughter, D.C.; Max, N.; Maloof, J.N.; Sinha, N. Structured light-based 3D reconstruction system for plants. Sensors 2015, 15, 18587–18612. [Google Scholar] [CrossRef] [PubMed]
  6. Kieu, H.; Pan, T.; Wang, Z.; Le, M.; Nguyen, H.; Vo, M. Accurate 3D shape measurement of multiple separate objects with stereo vision. Meas. Sci. Technol. 2014, 25, 1–7. [Google Scholar] [CrossRef]
  7. Yang, X.; Chen, X.; Xi, J. Efficient background segmentation and seed point generation for a single-shot stereo system. Sensors 2017, 17, 2782. [Google Scholar] [CrossRef] [PubMed]
  8. Yan, T.H.; Yong, S.; Zhang, Q.C. Precise 3D shape measurement of three-dimensional digital image correlation for complex surfaces. Sci. China Technol. Sci. 2017, 61, 68–73. [Google Scholar] [CrossRef]
  9. Nguyen, H.; Wang, Z.; Quisberth, J. Accuracy Comparison of Fringe Projection Technique and 3D Digital Image Correlation Technique. In Advancement of Optical Methods in Experimental Mechanics; Springer: Cham, Switzerland, 2016; pp. 195–201. [Google Scholar]
  10. Zhang, Z.H. Review of single-shot 3D shape measurement by phase calculation-based fringe projection techniques. Opt. Las. Eng. 2012, 50, 1097–1106. [Google Scholar] [CrossRef]
  11. Xie, H. Full-field strain measurement using a two-dimensional savitzky-golay digital differentiator in digital image correlation. Opt. Eng. 2007, 46, 033601. [Google Scholar]
  12. Huang, J.; Pan, X.; Peng, X.; Yuan, Y.; Xiong, C.; Fang, J.; Yuan, F. Digital image correlation with self-adaptive gaussian windows. Exp. Mech. 2013, 53, 505–512. [Google Scholar] [CrossRef]
  13. Lu, H.; Cary, P.D. Deformation measurements by digital image correlation: Implementation of a second-order displacement gradient. Exp. Mech. 2000, 40, 393–400. [Google Scholar] [CrossRef]
  14. Pan, B. Reliability-guided digital image correlation for image deformation measurement. Appl. Opt. 2009, 48, 1535–1542. [Google Scholar] [CrossRef] [PubMed]
  15. Baker, S.; Dellaert, F.; Matthews, I. Aligning Images Incrementally Backwards. 2001. Available online: http://pdfs.semanticscholar.org/11e4/f603e2cacf4533a919ba3fbdf79939423c74.pdf (accessed on 2 February 2018).
  16. Baker, S.; Matthews, I. Lucas-kanade 20 years on: A unifying framework. Int. J. Comput. Vis. 2004, 56, 221–255. [Google Scholar] [CrossRef]
  17. Pan, B.; Li, K.; Tong, W. Fast, robust and accurate digital image correlation calculation without redundant computations. Exp. Mech. 2013, 53, 1277–1289. [Google Scholar] [CrossRef]
  18. Dai, X.; He, X.; Shao, X.; Chen, Z. Real-time 3D digital image correlation method and its application in human pulse monitoring. Appl. Opt. 2016, 55, 696. [Google Scholar]
  19. Wu, R.; Kong, C.; Li, K.; Zhang, D. Real-time digital image correlation for dynamic strain measurement. Exp. Mech. 2016, 56, 1–11. [Google Scholar] [CrossRef]
  20. Gao, Y.; Cheng, T.; Su, Y.; Xu, X.; Zhang, Y.; Zhang, Q. High-efficiency and high-accuracy digital image correlation for three-dimensional measurement. Opt. Lasers Eng. 2015, 65, 73–80. [Google Scholar] [CrossRef]
  21. Bai, R.; Jiang, H.; Lei, Z.; Li, W. A novel 2nd-order shape function based digital image correlation method for large deformation measurements. Opt. Las. Eng. 2017, 90, 48–58. [Google Scholar] [CrossRef]
  22. Pan, B.; Xie, H.; Wang, Z.; Qian, K.; Wang, Z. Study on subset size selection in digital image correlation for speckle patterns. Opt. Express 2008, 16, 7037. [Google Scholar] [CrossRef] [PubMed]
  23. Pan, B. An evaluation of convergence criteria for digital image correlation using inverse compositional gauss–newton algorithm. Strain 2014, 50, 48–56. [Google Scholar] [CrossRef]
  24. Silva, L.C.; Petraglia, M.R.; Petraglia, A. A robust method for camera calibration and 3-D reconstruction for stereo vision systems. In Proceedings of the 2004 12th European Signal Processing Conference, Vienna, Austria, 6–10 September 2004; pp. 1151–1154. [Google Scholar]
  25. Asundi, A.; Pan, B.; Xie, H.; Gao, J. Improved speckle projection profilometry for out-of-plane shape measurement. Appl. Opt. 2008, 47, 5527–5533. [Google Scholar]
  26. Barone, S.; Neri, P.; Paoli, A.; Razionale, A. Digital image correlation based on projected pattern for high frequency vibration measurements. Procedia Manuf. 2017, 11, 1592–1599. [Google Scholar] [CrossRef]
  27. Lowe, D.G. Distinctive image features from scale-invariant keypoints. Int. J. Comput. Vis. 2004, 60, 91–110. [Google Scholar] [CrossRef]
  28. Muja, M. Flann-Fast Library for Approximate Nearest Neighbors User Manual. 2009. Available online: https://www.cs.ubc.ca/research/flann/uploads/FLANN/flann_manual-1.6.11.pdf (accessed on 2 February 2018).
  29. Huang, J.; Zhu, T.; Pan, X.; Qin, L.; Peng, X.; Xiong, C.; Fang, J. A high-efficiency digital image correlation method based on a fast recursive scheme. Meas. Sci. Technol. 2010, 21, 35101–35112. [Google Scholar] [CrossRef]
  30. Pan, B.; Xie, H.; Wang, Z. Equivalence of digital image correlation criteria for pattern matching. Appl. Opt. 2010, 49, 5501–5509. [Google Scholar] [CrossRef] [PubMed]
  31. Zhou, P.; Goodson, K.E. Subpixel displacement and deformation gradient measurement using digital image/speckle correlation (disc). Opt. Eng. 2001, 40, 1613–1620. [Google Scholar] [CrossRef]
  32. Huang, J.; Pan, X.; Shanshan, L.I.; Peng, X.; Xiong, C.; Fang, J. A digital volume correlation technique for 3-D deformation measurements of soft gels. Int. J. Appl. Mech. 2011, 3, 335–354. [Google Scholar] [CrossRef]
  33. Yuan, Y.; Huang, J.; Peng, X.; Xiong, C.; Fang, J.; Yuan, F. Accurate displacement measurement via a self-adaptive digital image correlation method based on a weighted znssd criterion. Opt. Lasers Eng. 2014, 52, 75–85. [Google Scholar] [CrossRef]
  34. Yuan, Y.; Zhan, Q.; Xiong, C.; Huang, J. Digital image correlation based on a fast convolution strategy. Opt. Lasers Eng. 2017, 97, 52–61. [Google Scholar] [CrossRef]
Figure 1. Schematic principle of DIC-based stereo matching using IC-GN algorithm: (a) First-order warp function; and (b) Second-order warp function.
Figure 1. Schematic principle of DIC-based stereo matching using IC-GN algorithm: (a) First-order warp function; and (b) Second-order warp function.
Sensors 18 01208 g001
Figure 2. Synthetic speckle images: (a) Simulated reference image; (b) Simulated target image; (c) Theoretical displacements along x-axis of ROI1; and (d) Theoretical displacements along x-axis of ROI2.
Figure 2. Synthetic speckle images: (a) Simulated reference image; (b) Simulated target image; (c) Theoretical displacements along x-axis of ROI1; and (d) Theoretical displacements along x-axis of ROI2.
Sensors 18 01208 g002
Figure 3. Measured displacement errors ( s U , R M S E U ): (a) Standard deviation as a function of side length of subset; and (b) RMSE as a function of side length of subset.
Figure 3. Measured displacement errors ( s U , R M S E U ): (a) Standard deviation as a function of side length of subset; and (b) RMSE as a function of side length of subset.
Sensors 18 01208 g003
Figure 4. Error distribution maps with a subset size of 27 × 27 pixels: (a) Error distribution map of ROI1 measured by IC-GN1; (b) Error distribution map of ROI2 measured by IC-GN1; (c) Error distribution map of ROI1 measured by IC-GN2; and (d) Error distribution map of ROI2 measured by IC-GN2.
Figure 4. Error distribution maps with a subset size of 27 × 27 pixels: (a) Error distribution map of ROI1 measured by IC-GN1; (b) Error distribution map of ROI2 measured by IC-GN1; (c) Error distribution map of ROI1 measured by IC-GN2; and (d) Error distribution map of ROI2 measured by IC-GN2.
Sensors 18 01208 g004
Figure 5. Measured displacement errors ( s U , R M S E U ) under different convergence criteria: (a) Standard deviation as a function of convergence threshold for Δ P m a i n ; and (b) RMSE as a function of convergence threshold for Δ P m a i n .
Figure 5. Measured displacement errors ( s U , R M S E U ) under different convergence criteria: (a) Standard deviation as a function of convergence threshold for Δ P m a i n ; and (b) RMSE as a function of convergence threshold for Δ P m a i n .
Sensors 18 01208 g005
Figure 6. Experimental setup for real tests: (a) A single-shot stereo system with speckle projection; and (b) Projected speckle pattern.
Figure 6. Experimental setup for real tests: (a) A single-shot stereo system with speckle projection; and (b) Projected speckle pattern.
Sensors 18 01208 g006
Figure 7. Rectified stereo image pairs for real tests, the left images are listed on the up row and the corresponding right images are listed in the bottom row: (a) Plane surface; (b) Cylinder surface; and (c) Back surface of a plaster head.
Figure 7. Rectified stereo image pairs for real tests, the left images are listed on the up row and the corresponding right images are listed in the bottom row: (a) Plane surface; (b) Cylinder surface; and (c) Back surface of a plaster head.
Sensors 18 01208 g007
Figure 8. Measured disparity maps and corresponding 3D shapes, the disparity maps are listed on the up row and the corresponding 3D shapes are listed in the bottom row: (a) The ROI of plane; (b) The ROI of cylinder; and (c) The ROI of head.
Figure 8. Measured disparity maps and corresponding 3D shapes, the disparity maps are listed on the up row and the corresponding 3D shapes are listed in the bottom row: (a) The ROI of plane; (b) The ROI of cylinder; and (c) The ROI of head.
Sensors 18 01208 g008
Figure 9. Comparisons of IC-GN1 and IC-GN2 by the standard deviations of plane fitting and cylinder surface fitting: (a) Comparison with the change of subset size; and (b) Comparison with the change of convergence threshold.
Figure 9. Comparisons of IC-GN1 and IC-GN2 by the standard deviations of plane fitting and cylinder surface fitting: (a) Comparison with the change of subset size; and (b) Comparison with the change of convergence threshold.
Sensors 18 01208 g009
Figure 10. Distribution maps of spatial distance of the ROI in the head, which are measured by IC-GN2 under two different convergence thresholds: (a) Under convergence thresholds of 0.1 and 0.001; and (b) Under convergence thresholds of 0.01 and 0.001.
Figure 10. Distribution maps of spatial distance of the ROI in the head, which are measured by IC-GN2 under two different convergence thresholds: (a) Under convergence thresholds of 0.1 and 0.001; and (b) Under convergence thresholds of 0.01 and 0.001.
Sensors 18 01208 g010
Figure 11. Rectified left image of head and reconstructed 3D data of the ROI marked by yellow rectangle: (a) Measured by IC-GN2 under the convergence threshold of 0.1; and (b) Measured by three-frequency three-step structured light.
Figure 11. Rectified left image of head and reconstructed 3D data of the ROI marked by yellow rectangle: (a) Measured by IC-GN2 under the convergence threshold of 0.1; and (b) Measured by three-frequency three-step structured light.
Sensors 18 01208 g011
Table 1. Comparison of measured displacement errors with different subset sizes (SS) by IC-GN1 (1st) and IC-GN2 (2nd) of ROI1, ROI2, and ROI1&2 (unit: pixel).
Table 1. Comparison of measured displacement errors with different subset sizes (SS) by IC-GN1 (1st) and IC-GN2 (2nd) of ROI1, ROI2, and ROI1&2 (unit: pixel).
SS s U -ROI1 s U -ROI2 s U -ROI1&2 R M S E U -ROI1 R M S E U -ROI2 R M S E U -ROI1&2
1st2nd1st2nd1st2nd1st2nd1st2nd1st2nd
150.020290.017550.007490.016610.016210.017090.028690.028000.012110.026730.022020.02738
170.024670.014220.006320.013240.019490.013750.033650.022840.010180.021490.024860.02218
190.029810.012070.005520.011080.023540.011590.039820.019420.008860.018000.028840.01872
210.035530.010650.004960.009520.028150.010120.046880.017130.007930.015400.033620.01629
230.041730.009770.004500.008260.033190.009080.054680.015630.007190.013420.039000.01457
250.048300.009410.004160.007360.038580.008510.063070.014840.006650.011920.044850.01346
270.055170.009410.003890.006670.044220.008270.071940.014570.006250.010730.051060.01280
290.062280.009940.003690.006120.050090.008440.081200.014970.005920.009780.057570.01264
310.069600.010990.003500.005670.056150.009040.090790.016010.005690.009030.064330.01299
330.077070.012540.003350.005300.062330.010060.100650.017630.005550.008410.071280.01381
350.084660.014540.003210.004980.068620.011480.110720.019850.005480.007860.078390.01510
Table 2. Comparison of average number of iterations of matched pixels in ROI1, ROI2, and ROI1&2 with different convergence thresholds for IC-GN1 and IC-GN2.
Table 2. Comparison of average number of iterations of matched pixels in ROI1, ROI2, and ROI1&2 with different convergence thresholds for IC-GN1 and IC-GN2.
Threshold for Δ P m a i n n ¯ i t o r -ROI1 n ¯ i t o r -ROI2 n ¯ i t o r -ROI1&2
IC-GN1IC-GN2IC-GN1IC-GN2IC-GN1IC-GN2
0.11.01101.42931.00241.39891.00631.4141
0.011.49272.48751.38742.44571.44012.4666
0.0012.47873.81822.38303.76932.43083.7937
0.00013.61105.17623.52125.10983.56615.1430
Table 3. Plane and cylinder surface fitting results of 3D coordinates measured by CMM.
Table 3. Plane and cylinder surface fitting results of 3D coordinates measured by CMM.
Point NumberStandard DeviationPositive MaximumNegative Maximum
Plane150.001 mm0.003 mm−0.004 mm
Cylinder440.004 mm0.011 mm−0.008 mm
Table 4. Statistics of matching rates with different subset sizes measured by IC-GN1 and IC-GN2.
Table 4. Statistics of matching rates with different subset sizes measured by IC-GN1 and IC-GN2.
SSPlaneCylinderBack of Head
N p i x r m (%) N p i x r m (%) N p i x r m (%)
IC-GN1IC-GN2IC-GN1IC-GN2IC-GN1IC-GN2
1590,00099.9399.8490,00010099.0162,50063.9598.77
1790,00099.9999.9790,00010099.2962,50064.5298.93
1990,00010099.9790,00010099.3162,50065.0999.00
2190,00010099.9890,00010099.3562,50065.5598.99
2390,00010099.9890,00010099.3862,50065.6298.99
2590,00010099.9890,00010099.3862,50066.2798.98
2790,00010099.9890,00010099.3862,50067.0199.01
2990,00010099.9890,00010099.3562,50067.7198.99
3190,00010099.9890,00010099.4062,50068.1598.97
3390,00010099.9890,00010099.4162,50068.6098.89
3590,00010099.9890,00010099.3862,50068.8098.88

Share and Cite

MDPI and ACS Style

Yang, X.; Chen, X.; Xi, J. Comparative Analysis of Warp Function for Digital Image Correlation-Based Accurate Single-Shot 3D Shape Measurement. Sensors 2018, 18, 1208. https://doi.org/10.3390/s18041208

AMA Style

Yang X, Chen X, Xi J. Comparative Analysis of Warp Function for Digital Image Correlation-Based Accurate Single-Shot 3D Shape Measurement. Sensors. 2018; 18(4):1208. https://doi.org/10.3390/s18041208

Chicago/Turabian Style

Yang, Xiao, Xiaobo Chen, and Juntong Xi. 2018. "Comparative Analysis of Warp Function for Digital Image Correlation-Based Accurate Single-Shot 3D Shape Measurement" Sensors 18, no. 4: 1208. https://doi.org/10.3390/s18041208

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop