Next Article in Journal
Digital Holographic Interferometry in the Long-Wave Infrared Range for Measuring Large Deformations of Space Components under Thermal-Vacuum Testing
Previous Article in Journal
Analysis of Flood Hydrographs in Order to Predict the Shape of Their Falling Limbs
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Proceeding Paper

3D Shape Measurement Based on Digital Speckle Projection and Spatio-Temporal Correlation †

Opto-electronics Department, Sichuan University, Chengdu 610065, China
*
Author to whom correspondence should be addressed.
Presented at the 18th International Conference on Experimental Mechanics (ICEM18), Brussels, Belgium, 1–5 July 2018.
Proceedings 2018, 2(8), 552; https://doi.org/10.3390/ICEM18-05437
Published: 12 July 2018
(This article belongs to the Proceedings of The 18th International Conference on Experimental Mechanics)

Abstract

:
With the non-periodicity and discrete nature, and unnecessary of phase unwrapping process, digital speckle correlation method shows its significant advantages in three-dimensional (3D) shape measurement. Combining with the spatial correlation and temporal correlation method in the digital speckle correlation, a spatio-temporal digital speckle correlation was developed in this paper, which can improve the accuracy of 3D shape measurement and effectively reduce the number of the recorded speckle images for restoring the corresponding 3D shape at the same time. In the experiment, only 5 frames of the required speckle images was needed to reconstruct the 3D shape of a complex object with spatio-temporal digital speckle correlation method, and its accuracy was same as the result when 20 frames speckle images were used in temporal correlation method.

1. Introduction

Digital Speckle Correlation Method (DSCM) is an optical three-dimensional (3D) measurement method. This method takes the speckle’s gray value as the carrier for the 3D information of a measured object. The essential point of DSCM is to get the whole-field distribution of displacement and strain by studying the distribution of the digital gray field of the object before and after its deformation. This method has many advantages compared with traditional 3D shape measurement method, such as non-contact and full-field measurement, simply structured, white light illumination, low environmental requirements, adjustable measuring range, simple data collection, easy to realize automation, without phase unwrapping process, etc.
At the beginning of the 80s of last century, I. Yamaguchi [1], W. H. Peters and W.F. Ranson [2] proposed DSCM technology independently. In 1982, I. Yamaguchi used DSCM to measure 2D steady laminar flow for the first time. W. H. Peters and W. F. Ranson used DSCMto determine the dynamic parameters of the rigid body (angular velocity and linear velocity) in the same year. In 2001 and 2002, Guanchang Jin brought wavelet denoising algorithm and 2D discrete orthogonal wavelet into digital speckle correlation operation process for the purpose of eliminating the influences from high frequency noise, and improving the operation speed and the measurement accuracy of the displacement field increased to 0.01~0.005 pixels [3,4]. The application of DSCM in the field of 3D shape measurement had also made some progress. In 1990, Kahn-Jetter Z. L. and T. C. Chu [5] combined DSCM with stereo vision principle, and completed the deformation test of a bending cantilever, the displacement test of a planar surface and a elliptical ring. In 2001, Dai Hongjun and Su Xianyu [6,7] proposed the digital speckle temporal sequence correlation method. In their further works, multi correlation peaks optimization method is used to improve the measurement accuracy of method [8], and the fast local search algorithm is help to speed up the computational process. In 2010, Pan Bing proposed an average grayscale gradient [9] for the quality evaluation of actual speckle patterns. In 2014, Junpeng Xue completed the system calibration of digital speckle temporal sequence correlation measurement with a auxiliary camera determined the horizontal world coordinates of the tested object [10]. In 2015, Junpeng Xue adopted the digital speckle correlation method based on color speckle pattern projection to realize the high speed 3D measurement of the human face [11].
Most of these scholars’ research on DSCM can be divided into spatial correlation or temporal correlation. Both of them have their own advantages and disadvantages. The digital speckle spatial correlation method based on stereo vision has low accuracy, but this method only needs one pair of images synchronously shot by the left and right camera to complete the measurement process, which is suitable for the measurement of dynamic objects. The temporal correlation method has high accuracy, but the measurement process needs dozens of images, which is suitable for the measurement of static (quasi-static) objects. In this paper, a new spatio-temporal digital speckle correlation method is proposed, which combines the spatial correlation method with the temporal correlation method. The new method improves the accuracy of the spatial measurement, and also reduces the number of the temporal correlation effectively.
This paper is arranged as following, Section 2 explains the principles of the spatial correlation, temporal correlation and the new spatio-temporal digital speckle correlation method. Section 3 presents some experimental results of three digital speckle correlation methods and compares their accuracy. Section 4 concludes this paper.

2. Principle of Three Methods of Digital Speckle Correlation

Imitating the human eyes to observe objects, two cameras of a stereo vision system are used to get 2D images of the target from different directions. The parallax map is obtained by matching these information of two 2D images, and the 3D shape of the observed object can be reconstructed according to the calibration of two cameras’ parameters and their location relations.
The geometric model of a stereo vision system is shown in Figure 1. M is an arbitrary point on the measured object, Ml and Mr are the image spots on the left and right camera imaging plane. If the image coordinates of Ml and Mr are known, the parallax of M can be calculated with the system correlation results. Then the 3D shape of the measured object can be reconstructed according to the world coordinates of M. However, when there is no texture or feature point on the tested surface, it will be very difficult to match the corresponding points. In order to solve this problem, digital speckle projection method has been brought into the stereo vision system to encode the tested objectin spatial- or temporal-domain and help the homonymy points’ matching, known as digital speckle correlation measurement.

2.1. Principle of Digital Speckle Spatial Correlation

In the digital speckle spatial correlation method, the grayscale value of the projected random digital speckle pattern is a carrier of the tested object’s height distribution. The correlation calculation is carried out on two subimages chose from the left and right image respectively. The principle of digital speckle spatial correlation is shown in Figure 2. p is the center of the subimage A (with the size of (2m + 1) × (2m + 1) pixels) in the left speckle pattern, and the same size subimage B is chose from the right speckle pattern. The correlation value of two subimages A and B is calculated according to the principle of probability statistics. The Zero-Normalized Cross-Correlation (ZNCC) [7] is a common algorithm for the calculation of the correlation value C shown in the following formula
C = i = 1 m j = 1 m [ ( f ( x i , y j ) f ¯ ) ( g ( x i , y j ) g ¯ ) ] i = 1 m j = 1 m ( f ( x i , y j ) f ¯ ) 2 i = 1 m j = 1 m ( g ( x i , y j ) g ¯ ) 2
In formula (1), f and g is the gray value of the left and right speckle patterns respectively, f ¯   and   g ¯ is the average gray level of the two subimages. When the correlation value C equals 1, it is completely correlated; when the correlation value C equals 0, it is completely uncorrelated.
Once their correlation value reaches the maximum value (or the smallest one), A and B are labeled as the matching areas and the central position of B can be determined by the peak of the correlation function. Their parallax information will be finally used to reconstruct the 3D shape of the tested object. In short, the digital speckle spatial correlation method realizes the extraction of parallax and reconstructs the 3D shape of the object by finding the corresponding matching points one by one through the correlation operation in 2D spatial domain.

2.2. Principle of Digital Speckle Temporal Correlation

From the principle of digital speckle spatial correlation, it is found that the matching point is located by matching the left and right speckle patterns in 2D spatial domain. It has its obvious advantage that only one pair of digital speckle pattern is need to restored the 3D shape information. But its reconstruction accuracy is lower. So, some scholars have proposed digital speckle temporal correlation method in order to improve the accuracy of DSCM [12]. This method obtains the matching points by doing the correlation calculation along the time axis.
The principle of digital speckle temporal correlation is shown in Figure 3, a projector projects a series of time-varying speckle patterns onto the surface of the measured object to encode the shape in temporal domain. p1(x1,y1) is any point in image getting from camera 1, p2(x2,y2) is any point from camera 2. The ZNCC formula is used to calculate the correlation value of these two points. If the value is maximum, the two points are matching points for each other.
ρ ( p 1 , p 2 ) = t = 1 N [ g 1 ( x 1 , y 1 , t ) g 1 ( x 1 , y 1 , t ) ¯ ] [ g 2 ( x 2 , y 2 , t ) g 2 ( x 2 , y 2 , t ) ¯ ] t = 1 N [ g 1 ( x 1 , y 1 , t ) g 1 ( x 1 , y 1 , t ) ¯ ] 2 t = 1 N [ g 2 ( x 2 , y 2 , t ) g 2 ( x 2 , y 2 , t ) ¯ ] 2
where, g1(x1,y1,t) represents the gray value of p1(x1,y1) in the image recorded at t time by camera 1. g 1 ( x 1 , y 1 , t ) ¯ is the time average gray value of p1(x1,y1) on all N frame images recorded by camera 1. g2(x2,y2,t) represents the gray value of p2(x2,y2) in the image recorded at t time by camera 2. g 2 ( x 2 , y 2 , t ) ¯ is the time average gray value of p2(x2,y2) on all N frame images recorded by camera 2.

2.3. Principle of Digital Speckle Spatio-Temporal Correlation

In the above two digital speckle correlation methods, spatial correlation method only needs one speckle pattern to reconstruct the 3D shape of objects, but the accuracy is low. The temporal correlation method has high accuracy, but more speckle patterns are needed. For improving the accuracy of spatial measurement and reducing the image number of the speckle patterns of temporal correlation method, spatio-temporal correlation operations is helpful and has been used in DSCM. The principle of digital speckle spatio-temporal correlation method is shown in Figure 4.
A series of time-varying speckle patterns are projected onto the surface of the measured object, and two cameras in the stereo vision system shot the speckle patterns synchronously. Takingp1,one matching point in the left image, as the center, a region Ω with the width of sx, length of sy and depth of st on temporal domain along the sampling time axis is formed. The same size speckle volume from camera 2 is chose to do the spatio-temporal correlation operation with the speckle volume around p1.
ρ ( p 1 , p 2 ) = i , j , k Ω w i j k ( p 1 , t 0 ) × I 1 i j k ( p 1 , t 0 ) M 1 ( p 1 , t 0 ) V 1 ( p 1 , t 0 ) × I 2 i j k ( p 2 , t 0 ) M 2 ( p 2 , t 0 ) V 2 ( p 2 , t 0 )
Ω is the spatio-temporal correlation area. And the value of i, j and k is shown in the following formula (4):
i , j , k = s x , y , t 1 2 , s x , y , t 1 2 + 1 , , s x , y , t 1 2
Usually, sx, sy and st are odd.
I a ijk ( p a , t 0 ) is the gray value of pa (a=1,2) in t0 frame, M a ( p a , t 0 ) is the mean value of the spatio-temporal correlation area, V a ( p a , t 0 ) is the variance of the spatio-temporal correlation area. Their specific calculation process is shown in the following formula (5).
{ I a i j k ( p a , t 0 ) = I a ( x a + i , y a + j , t 0 + k ) M a ( p a , t 0 ) = i , j , k Ω w i j k ( p 1 , t 0 ) I a i j k ( p a , t 0 ) V a ( p 1 , t 0 ) = i , j , k Ω w i j k ( p 1 , t 0 ) × [ I a i j k ( p a , t 0 ) M a ( p a , t 0 ) ] 2
Comparing with the spatial correlation and temporal correlation, the spatio-temporal correlation method is mainly improved in the weight factor wijk. And this weight factor wijk has its normalized property. In our research work, wijk = 1/(sx·sy·st).
After doing the spatio-temporal correlation and searching for the maximum value of correlation curves, the matching points of the left and right speckle patterns can be obtained, then the parallax map can also be calculated according to the calibrated external parameters and internal parameters of the stereo vision system, so that the 3D shape of a object can be reconstructed.

3. Experimental Results

The experimental setup has been established for principle-proof and is shown in Figure 5. The employed cameras are German IDS UI-1240SE-M-GL, with the resolution of 1280 × 1024 pixels and 12 mm focal length lens. The projector is developed on DMD-based DLP4500 chip, whose resolution is 1280 × 800 pixels. To form a changing speckle pattern, the projector moved at 1 mm intervals along the baseline of the stereo vision driven by a linear translation platform. So, tens of frame digital speckle were projected onto the surface of the measured object and synchronously recorded by two cameras. A relief of the petal model has been taken as a measured object in first experiment. Figure 6 show one pair of speckle patterns which two cameras captured synchronously at a certain time.
Totally, 20 frames speckle patterns have been recorded by each camera. In digital spatial correlation method, the window size of speckle is 9 × 9 pixels, and only one frame pattern from each camera was used to do spatial correlation, which parallax map is shown in Figure 7a. In digital temporal correlation method, the window size (sx, sy) of speckle is also 9 × 9 pixels, and all 20 frames pattern (N = 20) from each camera were used to do temporal correlation, which parallax map is shown in Figure 7b. In digital spatio-temporal correlation method, the window size (sx, sy) of speckle is also9 × 9 pixels, and only 5 frames pattern (st = 5) from each camera were used to do spatio-temporal correlation, which parallax map is shown in Figure 7c.
In Figure 7. the invalid value marked with white color are caused by the inherent shadow of triangulation and the effect of region mismatch. In Figure 7a, the invalid point in the edge of the petal model is the mismatching which caused by the height mutation of the flower. And the spatial correlation window makes the high frequency information of the petal model smoothed. It can be seen from Figure 7b that the petal model is more detailed, the parallax information on the edge is better than that of the spatial correlation method, and the number of invalid points which produced by mismatching is less. For the third method, digital speckle spatio-temporal correlation, only 5 frame speckle patterns need to reconstruct the 3D shape of the petal model, and the parallax information on the edge of the flower is significantly more detailed compared with the result of the digital speckle spatial correlation operation.
In order to evaluate the accuracy of the three correlation methods, a precision machined standard step-like workpiece with step height of 20 mm and a high precision ceramic plane are measured in this second experiment. Figure 8 shows the speckle pattern of the measured step-like workpiece. Figure 9 show the results of three methods. Figure 10 shows the height distribution on the cross section of step-like workpiece measured by three methods.
The average step height of most points is 19.78 mm measured by the spatial correlation method, 19.85 mm by the temporal correlation method, and 19.81 mm by the spatio-temporal correlation method.
For the testing of the high precision ceramic plane, the correlation window in X- and Y-direction of three methods is 7 × 7 pixels. In temporal domain, the temporal correlation method involved all 20 frames speckle pattern, but the spatio-temporal correlation method only used 5 frames speckle pattern to restore the corresponding 3D shape. Figure 10 shows the height difference distribution between the plane restored by three speckle correlation methods and the fitted plane. And the standard deviation of three methods is 0.069 mm, 0.041 mm and 0.068 mm respectively.
From the results of second experiment, we can see that the accuracy of spatio-temporal correlation method is between that of spatial correlation and temporal correlation. But its required number of speckle patterns is less than temporal correlation method. Therefore, spatio-temporal correlation method is simple and effective.
In addition, we made further analysis on the relationship between the number of speckle images and the accuracy of reconstruction results in spatio-temporal correlation method. Table 1 lists the standard deviations of the reconstruction results of the standard plane by using different numbers of speckle images. From the table, it can be seen that the measuring accuracy presents a growth trend with the increasing number of the speckle images. But this growth is not linear change, when the number of speckle pattern reaches a certain value, the growth of the accuracy is slow down, that is to say, although the image number continues to increase, the benefits of accuracy won’t increase obviously any more. In actual measurement, the number of speckle images in spatio-temporal correlation is related to the complexity of objects. When the object’s surface is relatively simple, the number of speckle images can be reduced. But for measuring a complex shape, the reconstruction accuracy is sensitive to the number of speckle images.

4. Conclusions

On the basis of two existing methods, spatial correlation and temporal correlation method of digital speckle correlation measurement, a new method is proposed in this paper. The new method combines two methods to execute a spatio-temporal correlation to reconstruct the 3D shape of the measured objects. The corresponding reconstruction accuracy of three correlation methods is compared by actual experiments, the results show that the spatial correlation only needs one frame image for further reconstruction, which is suitable for measuring the dynamic object, but the accuracy is relatively low. The temporal correlation method needs to synchronously acquire dozens of speckle patterns, its accuracy is higher than that of the spatial correlation, which is suitable for measuring the static (or quasi static) object. The spatio-temporal correlation method presented in this paper is simple and effective, which can output the dense parallax map to restore 3D shape of the measured object. Above all, the number of the required speckle patterns of this method is effectively reduced from dozens to 4 or 5 while keeping the reconstruction accuracy is relatively high.

Author Contributions

Qican Zhang and Yihang Liu wrote the paper, Qican Zhang and Renchao Xu conceived and designed the experiments; Renchao Xu performed the experiments; Renchao Xu and Zhenyi Chen analyzed the data.

Acknowledgments

The authors acknowledge the support by National Key Scientific Instrument and Development Project (2013YQ490879) and the National Natural Science Foundation (No. 61675141) of China.

Conflicts of Interest

The authors declare no conflict of interest. The founding sponsors had no role in the design of the study; in the collection, analyses, or interpretation of data; in the writing of the manuscript, and in the decision to publish the results.

References

  1. Yamaguchi, I. Simplified Laser-Speckle Strain Gauge. Opt. Eng. 1982, 21, 436–440. [Google Scholar] [CrossRef]
  2. Peters, W.H.; Ranson, W.F. Digital imaging techniques in experimental stress analysis. Opt. Eng. 1982, 21, 427–431. [Google Scholar] [CrossRef]
  3. Yao, X.; Jin, G.; Zhen, W. Application of wavelet de-noise in digital speckle correlation method. In Proceedings of the SPIE 4221, Optical Measurement and Nondestructive Testing: Techniques and Applications International Society for Optics and Photonics, Beijing, China, 9 October 2000. [Google Scholar]
  4. Lin, B.; Jin, G. The application of orthogonal wavelet transform on digital speckle correlation method. Acta Photonica Sin. 2002, 31, 235–240. [Google Scholar]
  5. Kahn-Jetter, Z.L.; Chu, T.C. Three-dimensional displacement measurements using digital image correlation and photogrammic analysis. Exp. Mech. 1990, 30, 10–16. [Google Scholar] [CrossRef]
  6. Dai, H.; Su, X. Shape measurement by digital speckle temporal sequence correlation with digital light projector. Opt. Eng. 2001, 40, 793–800. [Google Scholar] [CrossRef]
  7. Dai, H.; Su, X. Shape measurement by digital speckle temporal sequence correlation method. Acta Optica Sin. 2001, 21, 1208–1213. [Google Scholar]
  8. Dai, H.; Su, X. The precision enhancement method in shape measurement by digital speckle temporal sequence correlation method. Laser J. 2001, 22, 46–48. [Google Scholar]
  9. Pan, B.; Wu, D.; Xia, Y. Study of Speckle Pattern Quality Assessment used in Digital Image Correlation. J. Exp. Mech. 2010, 25, 120–129. [Google Scholar]
  10. Xue, J.; Su, X.; Zhang, Q. Using the auxiliary camera for system calibration of 3D measurement by digital speckle. In Proceeding of the SPIE 9234, International Conference on Experimental Mechanics 2013 and Twelfth Asian Conference on Experimental Mechanics2013, Bangkok, Thailand, 2 June 2014. [Google Scholar]
  11. Xue, J.; Su, X.; Zhang, Q. High-speed 3D face measurement based on color speckle projection. In Proceedings of the SPIE 9302, International Conference on Experimental Mechanics 2014, Singapore, Singapore, 4 March 2015. [Google Scholar]
  12. Schaffer, M.; Große, M.; Harendt, B.; Kowarschik, R. Statistical patterns: AN approach for high-speed and high-accuracy shape measurements. Opt. Eng. 2014, 53, 112205. [Google Scholar] [CrossRef]
Figure 1. Geometric model of stereo vision.
Figure 1. Geometric model of stereo vision.
Proceedings 02 00552 g001
Figure 2. Spatial correlation of DSCM.
Figure 2. Spatial correlation of DSCM.
Proceedings 02 00552 g002
Figure 3. Digital speckle temporal correlation of DSCM.
Figure 3. Digital speckle temporal correlation of DSCM.
Proceedings 02 00552 g003
Figure 4. Digital speckle spatio-temporal correlation of DSCM.
Figure 4. Digital speckle spatio-temporal correlation of DSCM.
Proceedings 02 00552 g004
Figure 5. Experimental setup of DSCM.
Figure 5. Experimental setup of DSCM.
Proceedings 02 00552 g005
Figure 6. One pair of speckle patterns captured synchronously by two cameras.
Figure 6. One pair of speckle patterns captured synchronously by two cameras.
Proceedings 02 00552 g006
Figure 7. Parallax map of three methods. (a) The spatial correlation; (b) The temporal correlation; (c) The spatio-temporal correlation.
Figure 7. Parallax map of three methods. (a) The spatial correlation; (b) The temporal correlation; (c) The spatio-temporal correlation.
Proceedings 02 00552 g007
Figure 8. Speckle pattern onthe standard step-like workpiece.
Figure 8. Speckle pattern onthe standard step-like workpiece.
Proceedings 02 00552 g008
Figure 9. Restored 3D shape of the workpiece by three methods. (a)by spatial correlation; (b) by temporal correlation; (c) by spatio-temporal correlation.
Figure 9. Restored 3D shape of the workpiece by three methods. (a)by spatial correlation; (b) by temporal correlation; (c) by spatio-temporal correlation.
Proceedings 02 00552 g009
Figure 10. Height difference distribution of three methods. (a) spatial correlation; (b) temporal correlation; (c) spatio-temporal correlation.
Figure 10. Height difference distribution of three methods. (a) spatial correlation; (b) temporal correlation; (c) spatio-temporal correlation.
Proceedings 02 00552 g010
Table 1. Relation between the measuring accuracy and the number of speckle image.
Table 1. Relation between the measuring accuracy and the number of speckle image.
DescriptionNumerical Value
Number of speckle images (frame)345678910
Standard deviation (mm)0.06860.06830.06830.05510.05230.04730.04790.0452
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Zhang, Q.; Xu, R.; Liu, Y.; Chen, Z. 3D Shape Measurement Based on Digital Speckle Projection and Spatio-Temporal Correlation. Proceedings 2018, 2, 552. https://doi.org/10.3390/ICEM18-05437

AMA Style

Zhang Q, Xu R, Liu Y, Chen Z. 3D Shape Measurement Based on Digital Speckle Projection and Spatio-Temporal Correlation. Proceedings. 2018; 2(8):552. https://doi.org/10.3390/ICEM18-05437

Chicago/Turabian Style

Zhang, Qican, Renchao Xu, Yihang Liu, and Zhenyi Chen. 2018. "3D Shape Measurement Based on Digital Speckle Projection and Spatio-Temporal Correlation" Proceedings 2, no. 8: 552. https://doi.org/10.3390/ICEM18-05437

Article Metrics

Back to TopTop