Research Article  Open Access
Jianying Yuan, Qiong Wang, Xiaoliang Jiang, Bailin Li, "A HighPrecision Registration Technology Based on Bundle Adjustment in Structured Light Scanning System", Mathematical Problems in Engineering, vol. 2014, Article ID 897347, 9 pages, 2014. https://doi.org/10.1155/2014/897347
A HighPrecision Registration Technology Based on Bundle Adjustment in Structured Light Scanning System
Abstract
The multiview 3D data registration precision will decrease with the increasing number of registrations when measuring a large scale object using structured light scanning. In this paper, we propose a highprecision registration method based on multiple view geometry theory in order to solve this problem. First, a multiview network is constructed during the scanning process. The bundle adjustment method from digital close range photogrammetry is used to optimize the multiview network to obtain highprecision global control points. After that, the 3D data under each local coordinate of each scan are registered with the global control points. The method overcomes the error accumulation in the traditional registration process and reduces the time consumption of the following 3D data global optimization. The multiview 3D scan registration precision and efficiency are increased. Experiments verify the effectiveness of the proposed algorithm.
1. Introduction
As one of the most effective methods of obtaining threedimensional (3D) surface data of objects, structured light scanning system based on binocular stereo vision has been widely applied in the fields of reverse engineering, relic preservation, biomedicine, and so forth [1, 2]. Due to the sensors’ limited field of view, only partial surface data of the object can be obtained when scanned from a single view. In order to obtain the complete 3D surface data of an object, the object should be scanned from multiple views. At each scanning view, the local 3D data is in its corresponding local coordinate, which means that the 3D data in different views are in different coordinates. Thus, the key to obtain complete surface 3D data is to integrate all 3D data in different local coordinates into a unified coordinate. Currently, there are several typical methods. (1) Find the two point clouds’ transformation matrix with the help of precision hardware such as rotary tables, robotic arms, and robots [3, 4]. This kind of registration methods requires highprecision equipment. The measuring range is limited by the working range of the equipment. Additionally, the cost of the equipment is high. (2) Find the transformation matrix by using the twopoint 3D invariants [5–7]. The advantage of this method lies in the fact that the 3D characteristics of the object surface are directly used without any processing to the object to be scanned. The method has better performance for objects with complex shapes but can fail for planes and spheres. (3) Find the transformation matrix by artificial markers, serving as control points, that are pasted on the surface of the object [8]. Compared to method (1), this method has larger measurement range and requires low equipment cost. Except for few cases where markers are not allowed (e.g., relic scanning), it can be used for objects with any curvature and shape. This is the most widely used registration method in structured light scanning system. The method usually considers the local coordinate of the first scan as the global coordinate. From the second scan, the transformation matrix between the current scanning local coordinate and the global coordinate is calculated using the common control points that lie in the overlapping area of the two views, and the point cloud and control points under current local coordinate are then integrated to the global coordinate through the calculated transformation matrix. Although this registration approach is simple, it performs registration between every two consecutive scans, which lies error accumulation among all scans. Due to the error in the transformation matrix (we called it transformation error), when the nonhomonymous control points in the current local scanning coordinate are oriented to the global coordinate, they have larger error than them in the local coordinate because the last transformation error propagated to them. In the next scan, if they are used to calculate a new transformation matrix, the error in them will be propagated to the new transformation matrix. Thus, when the number of scans increases, the transformation error will be larger and larger accordingly due to error propagation among each scanning, which will finally cause stratification between two registration point clouds, as shown in Figure 1.
The stratification phenomenon is very common in most structured light scanning systems. So, we address this problem in this paper and propose a stepwise highprecision registration algorithm to avoid the accumulated error which causes stratification between two point clouds in the traditional registration method. In the first step, initial global coordinates of the control points are calculated based on multiple view geometry theory and refined by bundle adjustment. In the second step, the 3D data of each scan will be registered with the global control points as shown in Figure 2. The key of the proposed method is that the local 3D data from each scan is always registered with the global control points. Each registration is independent with each other so that the registration error will not propagate from this scanning to the next scanning, thus the registration error will not propagate among each scan, and the registration precision can be guaranteed. Central to our method is computation of all the control points with high accuracy in a global coordinate.
The remainder of this paper is organized as follows. Section 2 reviews related work. In Section 3, details of the proposed method are given, which mainly focus on how to obtain global control points with high precision; Section 4 gives the scanning and registration process; in Section 5, experimental results are given to verify the effectiveness of the algorithm; conclusions are discussed in Section 6.
2. Related Work
In order to solve this problem, Yunbo et al. [9] use common control points with high precision in the calculation of transformation matrix during each registration to reduce the error in a single registration. The method was proved to be effective when measuring small scale objects. However, it in nature is still a cumulative registration method. The point cloud stratification will be inevitable when measuring large scale objects due to error propagation. Zhang et al. [10] and Li et al. [11] introduced theodolites and laser trackers separately to unify all the measures to the global coordinate. Although this method has high registration precision, the measuring system cost is high due to the expensive theodolites and laser trackers. Li et al. [11] and Gong et al. [12] proposed an approach where the global control points of the object are first reconstructed and then the scanned local data were registered with the global control data. The approach needs to rely on a third party photogrammetric system in order to get the global control points. Although the registration precision is high with this method, the system cost dramatically increases for the same reason as introducing theodolites and laser trackers methods.
3. The Proposed Algorithm
As described in the second paragraph in Section 1, the core of our method is computing 3D coordinates of global control points in the scanning process. We solve this problem using the following method. When the structured light scanner scans the object from different views, the acquired images at different positions form a multiview images network. If the matching points of the control points as well as the internal and external parameters of the camera under a global coordinate are known, the 3D coordinate of the control points can be obtained based on the multiple view geometry theory. Thus, the main tasks in this paper are image control points matching and camera calibration at each scan location.
3.1. Image Control Points Matching among All Images
The matching of corresponding image control points in each image is the key to the construction of multiview network. The structured light scanner generally uses the center of circles or concentric circles as control points. The circles pasted on the surface of an object are not distinguishable. Therefore, a unique ID needs to be labeled for each circle.
Assuming that the scanned point clouds of the and th scans are and , respectively, the transformation matrix between the two viewpoints is then , where is the rotation matrix of and and is the translation matrix of the two. When three or more pairs of common object points exist in and , the transformation matrix can be calculated. The method for finding the common object points between two 3D point sets can be found in [14] and the solution method for the transformation matrix can be found in [15] as well. The control points in the first scan are labeled as . Suppose that is the set of coordinates of control points in the second scan; after converting the coordinates of to the coordinate system of the first scan by , the distance between each point in and each point in is then calculated; we call it transformation error in this paper. If the transformation error is less than some given threshold value, 1 mm in this paper, it means that the control point has already been scanned in the first round; otherwise, the control point is a new one to the second scan. The new control point is then labeled as , . The labeling method for the new control points in the third scan follows the same rule.
3.2. Camera Calibration in Each Scan Location
The structured light scanning system includes two cameras, which have already been calibrated before scanning. When the scanner moves from one position to another position during the scanning, we assume that the internal parameters of cameras are consistent. This assumption can be easily satisfied by using fixed focus lens. So, only external parameters of cameras at different positions are needed to be calibrated.
In this paper, we give a very simple method to solve the external parameters under a global coordinate of each image at any scanning position. The scanning process is shown in Figure 3. First, images in each scan position are divided into several groups by scanning sequence; each group has a unique coordinate system (highlighted in pink in Figure 3; we call it group coordinate system). Second, images in different groups are oriented to a unified coordinate system. The second step can easily be satisfied when the number of common 3D points between two different groups is equal to or more than three, as described in Section 3.1. So, in the following, we only focus on the problem in the first step.
The left camera coordinate at the first scan position is defined as the first group coordinate. From the second scan, transformation matrix between the current local coordinate and the first group coordinate is calculated. If the transformation error is larger than a given threshold value (0.1 mm is chosen in this paper), images in the current scan position are divided into a new group; otherwise, they are divided into the last group. As shown in Figure 3, there are three groups. For each group, the initial external parameters of images can be deduced with the following method.
For the first group, variables are defined as follows. , , , and are the external parameters (rotation matrix and translation matrix) of the left and right cameras in each local coordinate, which can be calculated with high precision through camera calibration method before scanning. Usually, the local coordinate is established on the left camera coordinate, which means and . We also define the left camera coordinate at the first scan position as the first group coordinate, as highlighted in pink in Figure 3. Assume that a 3D point is denoted by and under the first group coordinate and the second local scan coordinate, respectively. Its corresponding image point coordinates on the left camera at the first and second scan positions are denoted by and , respectively. The relationship between the image point and space point is shown by formula (1) with the pinhole imaging principle, where is the internal parameter of the left camera. is the transformation matrix between and and is denoted by . With formulas (1) and (2), formula (3) can be derived. Formula (3) describes the relationship between the image point on the left camera at the second scan position and space point coordinate under the first group coordinate, so the external parameters of the left camera at the second scan position under the first group coordinate are and . The external parameters of the right camera at the second scan position can be deduced with the same rule, which are and . For the rest of scan positions, the external parameters of the left camera are , , and the external parameters of the right camera are , , where and are the rotation matrix and transformation matrix between common 3D points under the th scan local coordinate and the first group coordinate. For images in other groups, the computation method is the same as described above. Consider
From Sections 3.1 and 3.2, we obtain the matching points of the control points in the multiview network and the external parameters of each image in the network. The internal parameters and the distortion factor can be obtained by calibration before the scan. As a result, the 3D coordinate of the control points can be solved. Taking into account the errors in the collection of images, there are also errors in the calculated image external parameters and the 3D coordinates of the control points. Therefore, the results need to be optimized. In this paper, the bundle adjustment method in photogrammetry is used to optimize the external parameters and the coordinates of object points.
3.3. Refine 3D Coordinates of All the Control Points and Image External Parameters Using Bundle Adjustment
The bundle adjustment method is originated from analytic photogrammetry. Using collinear equations as mathematical model, the observed values of the image plane coordinates of the image point are then nonlinear functions of the unknowns. The least square errors method is then applied after the nonlinear functions being linearized. The principle of the method is elucidated as follows. The relation between the image point and the object point can be expressed by (4), where is the coordinate of the image point, and are the effective focal length, is the camera coordinate, , , are the three components of the object coordinate, represents the rotation matrix between the coordinate system of the camera and the global coordinate, and is the translation vector between the coordinate system of the camera and the global coordinate. , , are the internal parameters of the camera, which can be obtained by calibration. , , , , , and are unknowns to be optimized. One has
In (4), is a nonlinear function of , , , , , , . Take the first order approximation of the Taylor expansion to linearize the perspective projection equation and we have (5), where , , are Euler angles which are parameters of in the rotation matrix, and are the approximations of (4), , , , , , are the correction values of the corresponding external parameters, respectively, and , , are the correction values of the three components of the object point. Consider the following:
The and obtained from the image are the observed values, which involve errors. The corresponding correction values , should be added. According to the fact that observed value + correction of the observed value = approximation + correction of the approximation, we have (6). Substituting (5) to (6), we then have (7). Minimizing , where , we can find the correction values of each unknown. Compare each correction value with a set tolerance value; if the correction is smaller, then the iterations can be terminated; otherwise, the new value of the unknown is then used as the approximation in the next iteration until the tolerance is satisfied. One has the following:
4. Scan and Registration Process
The scanning and registration process proposed in this paper is shown in Figure 4. During each scan, the 3D point cloud under the local coordinate system is saved. In the first scan, the control points are labeled. After the second scan, the transformation matrix between two viewpoints is calculated; at the same time, the initial external parameters of images at the second scan position also are obtained with method described in Section 3.2. The 3D point cloud of the second scan is sampled and oriented to the coordinate system of the first scan. The new control points are labeled as shown in Section 3.2. The goal of sampling is to facilitate the monitoring of scanned area by the operators and at the same time reduce the memory cost. The sample rate in this paper is 5%. Then, the following scans are performed until all scans are done. After the scans, all the control points should be labeled. According to the method described in Sections 3.2 and 3.3, the initial value of 3D control points and external parameters are solved. The coordinate of each control point is then optimized using the bundle adjustment method. Finally, the 3D data under each local coordinate system are registered with the global control points. In order to further increase the precision of the registration, the iterative closest point (ICP) algorithms are used to optimize the entire data.
5. Experimental Results
The following experiments were designed in order to verify the effectiveness of the proposed algorithm. The structured light scanning system is shown in Figure 5, which includes two cameras and a projector. Two cameras and projector are placed on a platform fixed on the top of a trivet. The resolution of the camera was 1280 1024 pixels. The focal length of the lens was 12 mm. The model of the projector was Acer k132. The scan distance was about 800 mm. The sensor’s field of view was about 300 mm 250 mm. The computer system configuration was Intel(R) Core i33110 M CPU @ 2.40 GHz with a 4.0 G memory. The accuracy in a single scan is about 0.05–0.03 mm by computing the difference between the measured surface 3D data with our structured light system and with other third party measuring equipment.
Experiment One: Verification of the Algorithm Precision. A pair of standard balls, as shown in Figure 6, were used. The standard balls were scanned multiple times. The regression diameters and the error of the distance between the centers of two balls were both calculated using methods with the multiview constraint (the proposed method) and without the constraint (method in [8]). The diameter of the standard balls and the distance between centers were checked by Shenzhen Academy of Metrology and Quality Inspection. The diameter of ball A was 30.0060 mm and the diameter of ball B was 30.0064 mm. The distance between the centers was 60.4344 mm. In order to avoid accidental errors, six experiments were performed under the same conditions. The process of one of the experiments is shown in Figure 6. The standard balls were scanned from six different angles. The white dots around the two balls are the reference points for registration.
In order to have a clear visual analysis on the registration precision, the point cloud of each scan is shown by different colors as shown in Figure 7. In the place where two point clouds overlap, the more aliasing of the two colors, the better the registration of the two point clouds. If there is only one color that can be seen, there is stratification between the two point clouds and the registration precision is low. The results of [8] are shown in Figure 7(a). There is less aliasing between the green color and other colors in the center part, indicating that the green point cloud is floating above other point clouds, whereas, in the results of the proposed algorithm (Figure 7(c)), different colors are displayed uniformly in the overlapping areas. Different colors are mixed together, indicating that the registration precision of the proposed method is higher than that of [8]. The sampled display results during the scanning are shown in Figure 7(b).
(a) Results of article [8]
(b) Results of the proposed method with a sampling rate of 5%
(c) Results of the proposed method
The above conclusion is qualitative. The comparisons between the results of the proposed method and the method in [8] are shown in Tables 1 and 2. For the six experiments, the average error of the method in [8] for the diameter of ball A is 0.0853 mm and the average error for the diameter of ball B is 0.0855 mm. The error in the center distance is 0.0353 mm. The corresponding errors for the proposed method are 0.0268 mm, 0.0253 mm, and 0.0094 mm, respectively, which is more precise than the method in [8].


Experiment Two: Verification of System Time Consumption. There is no doubt that the proposed registration method needs to construct the multiview network first and then solve for the coordinates of control points, which could require longer time consumption. Taking into account that, after normal 3D scans, the entire data need to be globally optimized using ICP and the time consumption of ICP depends on the initial precision of the registration of different point clouds, we compare the time consumption of the proposed method and the method in [8] under the same ICP iteration conditions. The time consumption of the construction of multiview network was denoted by . For the same termination condition, the ICP time consumption of the proposed method is and the time consumption of [8] is . Therefore, the total time consumption of the proposed method is . The total time consumption of the method in [8] is . The iteration termination condition was set to reaching the maximum number of iterations, the norm of the difference between the calculated rotation matrix and identity matrix being smaller than , and the norm of the difference between the translation matrix and the zero vector being smaller than . During the ICP iterations, the sampling rate was set to be 30%. The results are shown in Table 3. It can be seen that the proposed method has more time consumption in the registration, but the registration precision is increased accordingly. Therefore, the ICP iteration costs less time and the overall efficiency of the scan system is increased.

Experiment Three: Large Size Object Scanning. We choose a dragon and Buddha model with a size of 1500 mm 400 mm 500 mm and 500 mm 400 mm 1500 mm separately to test the validity of the method proposed. As for dragon testing, by the 22nd scanning with the method proposed in article [8], two sets of 3D data at the beaten part of the dragon are stratified, as shown in Figure 8(b). We use the same image data to calculate the whole 3D data of the dragon with the method proposed; the results are illustrated in Figure 8(c). There are no stratified data, which indicate that the method proposed has higher precision. Another example is scanning Buddha model. The scanning results with the method in paper [8] and in this paper are shown in Figure 9. In Figure 9(b), at the head part of the Buddha, there are two pieces of 3D data which are not aligned. More specifically, there are two noses on the face, while the 3D data with the proposed method are in aligned well, and there is no stratified phenomenon. Figures 8(a) and 9(a) illustrate one view scanning of the experiments.
(a) Scanning from one view
(b) Result of article [8] shown in two different angles
(c) Result of proposed method shown in two different angles
(a) Scanning from one view
(b) Result of article [8]; the left is the whole 3D data, while the right is the head 3D data enlarged
(c) Result of proposed method; the left is the whole 3D data, while the right is the head 3D data enlarged
6. Conclusions
The precision of multi viewpoints point clouds registration is one of the major indices that measure the performance of the structured light 3D scanner system. Using a consecutive registration approach cannot avoid error propagation and accumulation. When scanning large scale objects, with the increase of number of registrations, the registration would tend to fail. In this paper, the point cloud data under local coordinates during scans were saved. Additionally, all image information was used to construct a multiview network and the bundle adjustment method was used to optimize the precision of all the control points. Finally, the saved point clouds under each local coordinate were registered with the global control points. Experiments showed that the proposed method effectively increased the registration precision as well as the system efficiency. The proposed method has already been applied to the design of structured light scan systems.
Conflict of Interests
The authors declare that there is no conflict of interests regarding the publication of this paper.
Acknowledgments
This paper is financially supported by Education Department Scientific Research Fund in Yunnan province, China (2013Y257), National Natural Science Foundation of China (51275431), and Science and Technology Plan Projects in Sichuan province, China (2013GZ0032).
References
 J. Salvi, S. Fernandez, T. Pribanic, and X. Llado, “A state of the art in structured light patterns for surface profilometry,” Pattern Recognition, vol. 43, no. 8, pp. 2666–2680, 2010. View at: Publisher Site  Google Scholar  Zentralblatt MATH
 J. Gühring, “Dense 3D surface acquisition by structured light using offtheshelf components,” in Proceedings of the SPIE 4309, Videometrics and Optical Methods for 3D Shape Measurement, vol. 4309, pp. 220–231, 2000. View at: Google Scholar
 M. Callieri, A. Fasano, G. Impoco et al., “RoboScan: an automatic system for accurate and unattended 3D scanning,” in Proceedings of the 2nd International Symposium on 3D Data Processing, Visualization, and Transmission (3DPVT '04), pp. 805–812, IEEE, September 2004. View at: Publisher Site  Google Scholar
 V. Carbone, M. Carocci, E. Savio, G. Sansoni, and L. de Chiffre, “Combination of a vision system and a coordinate measuring machine for the reverse engineering of freeform surfaces,” International Journal of Advanced Manufacturing Technology, vol. 17, no. 4, pp. 263–271, 2001. View at: Publisher Site  Google Scholar
 N. Gelfand, N. J. Mitra, L. Guibas, and H. Pottmann, “Robust global registration,” in Proceedings of the Symposium on Geometry Processing, vol. 2, pp. 197–206, 2005. View at: Google Scholar
 P. Li, P. Cheng, M. A. Sutton, and S. R. McNeill, “Threedimensional point cloud registration by matching surface features with relaxation labeling method,” Experimental Mechanics, vol. 45, no. 1, pp. 71–82, 2005. View at: Publisher Site  Google Scholar
 A. Beinat, F. Crosilla, and F. Sepic, “Automatic morphological prealignment and global hybrid registration of close range images,” International Archives of the Photogrammetry, Remote Sensing and Spatial Information Sciences, vol. 36, part 5, pp. 25–27, 2006. View at: Google Scholar
 S. Barone, A. Paoli, and A. V. Razionale, “Threedimensional point cloud alignment detecting fiducial markers by structured light stereo imaging,” Machine Vision and Applications, vol. 23, no. 2, pp. 217–229, 2012. View at: Publisher Site  Google Scholar
 L. Yunbo, D. Wenyi, L. Xiaoping, and L. Naiguang, “Automatic registration method of multi view 3D data based on marked points,” Journal of Beijing Information Science and Technology University, vol. 25, no. 1, pp. 30–33, 2010. View at: Google Scholar
 G. Zhang, J. Sun, Z. Wei, and F. Zhou, “3D data registration method based on single theodolite in vision measurement,” Chinese Journal of Scientific Instrument, vol. 28, no. 3, pp. 441–445, 2007. View at: Google Scholar
 Z. Li, Z.L. Ding, and F. Yuan, “Global calibration method for multivision measurement system with coplanar targets,” Optics and Precision Engineering, vol. 16, no. 3, pp. 467–472, 2008. View at: Google Scholar
 W. Gong, Z. Yuexian, Y. Chaolong, M. A. Yangbiao, and L. I. Renju, “Study on 3D data connection of large part in 3D noncontact measurement,” Machiney Design & Manufacture, vol. 9, pp. 90–92, 2007. View at: Google Scholar
 D. Wenyi, L. Yunbo, and L. Naiguang, “Registration method for large free form profile based on vision measurement,” Journal of Beijing Information Science and Technology University, vol. 25, no. 1, pp. 30–33, 2010. View at: Google Scholar
 L. Yunbo, D. Wenyi, and L. Xiaoping, “Automatic registration method of multiview 3D data based on marked points,” Journal of Beijing Information Science and Technology University, vol. 25, no. 1, pp. 30–33, 2010. View at: Google Scholar
 S. K. Arun, S. T. Huang, and S. D. Blostein, “Least squares fitting of two 3D point sets,” IEEE Transaction on Pattern Analysis and Machine Intelligence, vol. 9, no. 5, pp. 698–700, 1987. View at: Google Scholar
Copyright
Copyright © 2014 Jianying Yuan et al. This is an open access article distributed under the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.