4.1. Simulation Setup and Evaluation Metrics
This paper constructs a high-fidelity line-scan camera simulation measurement environment to generate simulated observation data with explicit physical ground truth. The simulation system is designed to closely match industrial-grade line-scan camera measurement systems in geometric structure, imaging model, and noise characteristics, thereby ensuring the credibility and reproducibility of simulation results for calibration accuracy evaluation. The simulation measurement system consists of three line-scan cameras. Its core imaging parameters, installation parameters, and scanning modes are configured according to typical industrial application scenarios. The detailed parameter settings are listed in
Table 1.
In terms of geometric configuration, Cam1 serves as the reference camera of the system, and its camera coordinate system is defined as the origin of the global coordinate system. Cam2 and Cam3 are arranged in different directions to enhance spatial constraint capability. Specifically, Cam2 uses the vertical scanning mode, and its optical axis is translated by approximately 400 mm along the -direction relative to Cam1. Cam3 uses the horizontal scanning mode, with a baseline span of approximately 800 mm.
The generation of simulated data strictly follows the real physical motion model. The calibration target undergoes random six-degree-of-freedom rigid-body motion within a depth range of 1200 mm to 3200 mm from the cameras. To enhance imaging parallax and reduce the risk of parameter coupling, each target pose includes large attitude variations. The pitch and yaw angles are both set within (approximately 0.4 rad), so that the observation sequence can effectively decouple key parameters such as focal length, baseline distance, and depth.
Zero-mean Gaussian white noise is added to the ideal projected pixel positions to simulate random errors introduced by subpixel edge extraction or center localization algorithms in actual line-scan camera measurement. On this basis, this paper constructs the simulated observation model, which is expressed as follows:
where
u(·) denotes the theoretical projection function based on the true intrinsic and extrinsic parameters, and σ denotes the observation noise level, which is set to 0.3 pixel by default to represent the statistical error level of high-precision subpixel feature extraction algorithms.
This paper establishes an evaluation metric system that includes fitting accuracy, parameter recovery capability, and spatial measurement accuracy. By computing the absolute deviations between the estimated values of key parameters, such as the focal length
f, camera baseline
Tx, and installation height
Tz, and their physical ground-truth values, this paper evaluates the ability of the algorithm to recover true physical parameters:
After calibration, the estimated camera intrinsic and extrinsic parameters are used to triangulate random test points in the measurement field. This paper then computes the Euclidean distance between each reconstructed point
Pest and its theoretical ground-truth point
Pgt to evaluate the effective accuracy of the system in practical three-dimensional measurement tasks:
Based on the above high-fidelity simulation measurement environment and the evaluation metric system, this chapter systematically analyzes and comparatively validates the performance of the proposed global calibration algorithm from three aspects: reprojection error, key-parameter recovery accuracy, and three-dimensional measurement error.
4.2. Comprehensive Experimental Analysis of Initialization Parameters
This paper conducts a systematic experimental analysis of three key factors, namely initial focal-length perturbation, cross-camera baseline physical-prior constraints, and the number of effective motion frames, to systematically evaluate the numerical stability, parameter robustness, and computational efficiency of the proposed global calibration and three-dimensional reconstruction algorithm under complex engineering conditions. The experiments also comprehensively examine how these factors affect parameter convergence behavior and three-dimensional measurement accuracy. The results are shown in
Figure 3.
First, to evaluate the sensitivity of the system to uncertainty in the initial intrinsic parameters, this paper systematically perturbs the initial focal length within the range of [5000, 12,000] pixels, and records the calibration convergence success rate and the mean three-dimensional reconstruction error under different initial values. The results are shown in
Figure 3a. Across the entire test range, the algorithm maintains a very high convergence success probability. The success rate is never lower than 99.7% and reaches 100% over most of the range. These results indicate that the proposed multi-stage optimization strategy can effectively avoid local minima and divergence, and thus provides excellent global convergence capability.
From the perspective of three-dimensional reconstruction accuracy, as the initial focal length increases from 5000 pixels to 12,000 pixels, the reconstruction error remains stable within the range of 0.51–0.67 mm. The maximum error is 0.6698 mm, and the minimum error is 0.5118 mm. The fluctuation amplitude is less than 0.16 mm, and no significant deterioration is observed as the deviation of the initial value increases. In particular, when the initial focal length lies in the range of 7000–10,000 pixels, the reconstruction error remains stably within 0.53–0.60 mm for most cases, showing a clear plateau behavior. These results demonstrate that the proposed algorithm is strongly insensitive to the initial intrinsic parameters and can still converge stably to a high-accuracy solution under large-range perturbations of the initial values.
Second, with all other parameters fixed, this paper sets
Tx2 to values from 300 mm to 500 mm and analyzes the resulting variations in extrinsic parameter estimation errors and three-dimensional reconstruction error, in order to systematically evaluate the effect of the physical prior constraint on the cross-camera baseline parameter
Tx2 on system geometric stability. The results are shown in
Figure 3b. The experimental results show that variations in
Tx2 have a certain influence on the estimation accuracy of the extrinsic-parameter components, especially in the significant fluctuation of the depth-direction error
Tz2 of Cam2. When
Tx2 deviates from the true mechanical installation value, the error of
Tz2 increases noticeably. However, the corresponding three-dimensional reconstruction error remains within the range of 0.52–0.66 mm overall. It does not show a monotonic trend with changes in
Tx2, nor does it exhibit a clearly optimal baseline configuration. These results indicate that the proposed joint calibration and three-dimensional reconstruction model is insensitive to the initial setting of the cross-camera baseline parameter
Tx2. The method can still converge stably to a consistent solution under a relatively large range of initial-value deviations, demonstrating good convergence consistency and numerical stability of the system optimization framework and thereby ensuring the reliability of three-dimensional measurement results.
Third, this paper analyzes frame efficiency to evaluate the balance achieved by the proposed method between accuracy and computational complexity. By gradually increasing the number of effective frames involved in optimization, this paper records the changes in three-dimensional reconstruction error and total computation time under different frame counts. The results are shown in
Figure 3c. The experimental results show that when the number of frames increases from 20 to 60, the system reconstruction error decreases rapidly from 1.247 mm to 0.581 mm, with an error reduction of more than 53%. This result indicates that, in the low-frame regime, introducing motion redundancy information can significantly enhance the strength of geometric constraints in the system. As the number of frames further increases to the range of 80–110, the reconstruction error gradually becomes stable, with the overall fluctuation controlled within 0.53–0.63 mm, showing a clear convergence plateau behavior.
At the same time, the computation time increases approximately linearly, from 0.298 s at 20 frames to 6.568 s at 110 frames, which verifies that the proposed algorithm maintains good computational controllability while preserving high accuracy. Considering both accuracy and efficiency, the results show that when the number of frames is in the range of 60–80, the system can achieve sub-millimeter three-dimensional reconstruction accuracy with a computation cost of 2–3 s, thus providing a good balance among accuracy, efficiency, and stability. This finding provides a practical basis for selecting engineering parameters in subsequent online calibration and dynamic measurement applications.
Finally, in the comparative simulation experiments, multiple representative discrete points within the focal length range of [5000, 12,000] were selected as initial inputs, and the proposed method was compared with the classical bundle adjustment method and an ablation model. The classical bundle adjustment (Classic BA) method directly applies the LM algorithm to perform one-shot joint optimization of the focal length parameters, camera extrinsic parameters, and multi-frame target pose parameters under the same objective-function framework. The ablation method (Ablation) retains the same two-stage optimization procedure as the proposed method, but removes parameter scaling, that is, all parameters participate directly in the Levenberg–Marquardt iterations using their original numerical scales. The evaluation metrics include convergence rate, three-dimensional reconstruction accuracy, and image fitting residual, with comparisons conducted for focal length initial values of 5000 and 10,000. The representative quantitative comparison results for the different methods are shown in
Table 2.
Table 2 presents a detailed comparison of the algorithm performance under different initialization conditions. When the initial value deviates significantly from the ground truth, with f = 5000, the traditional Classic BA exhibits severe ill-conditioning, with a convergence rate of only 2.2%, and fails to produce valid reconstruction accuracy, reported as N/A. In contrast, the proposed method maintains extremely high robustness under the same condition, achieving a convergence rate of 99.8%, while its 3D reconstruction error of 0.531 mm and fitting residual of 0.230 pixel are both significantly better than those of Ablation. When the initial value lies within an ideal range, with f = 10,000, although all methods achieve relatively high convergence rates, the proposed method still maintains leading or comparable performance across all evaluation metrics. These results strongly demonstrate that the proposed algorithm effectively overcomes the local minimum problem and greatly enlarges the convergence basin of the solver.
In summary, the proposed method is systematically validated from three aspects, namely robustness to initial parameter perturbation, structural physical prior constraints, and frame efficiency. The experimental results show that the method is able to maintain stable convergence and high-precision reconstruction performance under large initial perturbations, structural scale uncertainty, and limited observation frames. Meanwhile, a horizontal comparison among different methods further indicates that the two-stage optimization method with parameter scaling achieves the best robustness and solution accuracy.
4.3. Calibration and Measurement Error Analysis
This paper statistically analyzes the distribution of three-dimensional reconstruction errors in both the calibration stage and the measurement stage using the simulation system, and systematically evaluates the geometric consistency and spatial error propagation characteristics of the proposed global calibration algorithm in practical measurement tasks. In the calibration set, 60 positions are generated, and 40 of them are selected for three-dimensional reconstruction. Subsequently, another 40 points are selected within the calibration field range as the measurement set. On this basis, this paper analyzes how the three-dimensional error evolves with target depth. The corresponding experimental results are shown in
Figure 4.
First, from the perspective of overall error distribution characteristics, the statistical results of the three-dimensional errors in the calibration stage and the measurement stage show high consistency, as illustrated in
Figure 4a. For the 40 groups of spatial point samples, the 3D errors in the calibration stage are mainly concentrated in the range of 0.2–0.9 mm, with a mean error of approximately 0.56 mm and a maximum error of about 1.20 mm. The 3D error range in the measurement stage highly overlaps with that in the calibration stage, with a mean error of approximately 0.54 mm and a maximum error of about 1.32 mm. The two stages remain highly consistent in terms of mean, variance, and extreme-value range. This result indicates that, after parameter estimation, the proposed global calibration model can be stably transferred to practical measurement tasks, without obvious overfitting or geometric-structure degradation.
From the perspective of directional error components, the distribution proportions of the 3D error along the X, Y, and Z directions are basically consistent in both the calibration and measurement stages. Among them, the -direction error is dominant, followed by the -direction error, while the -direction error is the smallest. This result indicates that the proposed multi-stage calibration strategy achieves stable coupled modeling of intrinsic and extrinsic parameters during optimization, thereby ensuring stable three-dimensional geometric consistency in both the calibration and measurement stages.
Second, this paper performs a systematic statistical analysis of the relationship between three-dimensional reconstruction error and target depth. The results are shown in
Figure 4b. In both the calibration stage and the measurement stage, the 3D error shows a highly consistent evolution trend as depth changes. In the near-field region (Z < 1800 mm), the system 3D error remains stably within 0.2–0.5 mm, and the error increases slowly, indicating that the system provides very high spatial resolution under close-range operating conditions. As the target depth increases to the mid-range interval (1800–2600 mm), the error gradually increases and is mainly concentrated in the range of 0.4–0.9 mm, showing an overall near-linear upward trend. In the far-field region (Z > 2600 mm), the error of some points increases to 1.0–1.8 mm, mainly due to the geometric magnification effect caused by the depth resolution degrading approximately with the square of distance. Across the entire working-distance range, the error curves of the calibration stage and the measurement stage remain highly consistent in both magnitude and trend, and no systematic shift or abrupt error change is observed.
The above results show that, within the typical industrial working-distance range of 1.0–3.2 m, the overall three-dimensional measurement error of the proposed system remains stably below 1 mm. In addition, the error distribution varies with depth in a continuous and predictable manner, meeting the stringent requirements for stability and reliability in large-scale, high-precision industrial measurement scenarios.
4.4. Noise Error Analysis
In the simulation environment, this paper gradually increases the standard deviation σ of the observation Gaussian noise and performs repeated experiments on the system calibration process and three-dimensional reconstruction results to evaluate the influence of imaging noise on the calibration accuracy and 3D measurement accuracy of the multi-line-scan measurement system. The noise standard deviation σ takes several typical values in the range of 0–2, including the noise-free condition (σ = 0). The calibration error statistics correspond to the calibration results obtained under each noise level. For the 3D measurement error statistics, this paper uses the system parameters obtained by calibration at σ = 0.3 as fixed calibration inputs, and then performs repeated measurement experiments under different measurement noise levels. Multiple independent trials are conducted at each noise level, and the means and standard deviations of the calibration error and measurement error are computed separately. The results are shown in
Figure 5. The statistics show that, in the range of σ ≤ 0.5, the standard deviations of both calibration error and measurement error are close to zero, and the fluctuations are small; therefore, the error bars for this range are not plotted separately in the figure.
From the calibration error results, the system is relatively sensitive to imaging-noise perturbations. When σ = 0, the calibration error is 0, indicating that under noise-free simulation conditions, the established imaging model and the global calibration solution process can accurately recover the system parameters, which verifies the effectiveness of the modeling and solution pipeline. As the noise level increases, the calibration error increases overall. In the low-noise interval (σ = 0~0.5), the calibration error gradually increases from 0 to 0.9388, with a relatively smooth trend. When the noise level increases to σ = 0.7 and σ = 0.9, the calibration error reaches 1.4367 and 2.876, respectively, while the standard deviation increases to 0.6865 and 1.1557, indicating a clear increase in the dispersion of the calibration solutions. In the higher-noise range, the calibration error remains at a relatively high level with some fluctuations (e.g., 2.8358 at σ = 1.2, 3.247 at σ = 1.5, and 3.6348 at σ = 2), indicating that the stability of parameter estimation decreases under high-noise conditions.
The statistical conditions for the 3D measurement error differ from those for the calibration error, because the calibration parameters are fixed to the calibration results obtained under the noise condition of . The results show that the measurement error increases gradually as the noise level increases, but the trend is much smoother than that of the calibration error. Under the noise-free measurement condition (σ = 0), the measurement error is 0.7442. In the low-noise interval (σ = 0.1~0.5), the measurement error increases from 0.745 to 0.8407, showing only a small overall change. When σ = 0.7 and σ = 0.9, the measurement error is 0.9274 and 1.1015, respectively, and continues to increase smoothly. As the noise level further increases, the measurement error continues to rise (1.3382 at σ = 1.2, 1.4571 at σ = 1.5, and 1.9971 at σ = 2), but remains lower than the corresponding calibration error at all noise levels. In terms of standard deviation, except for the measurement-error standard deviation of 0.1966 at σ = 2, the standard deviations at the other noise levels are all close to zero. This result indicates that, under the current experimental settings, the reconstruction results exhibit small overall fluctuations and good stability.
Overall, imaging noise affects calibration-parameter estimation more directly, and under medium-to-high noise conditions, it clearly leads to increases in both error and fluctuation. In contrast, with fixed calibration parameters, the influence of measurement-stage noise on 3D reconstruction error grows more gradually. These results indicate that the proposed geometric constraint model and joint solution method can maintain relatively stable 3D reconstruction performance under noise perturbations and exhibit a certain degree of error suppression capability.
4.5. Experimental Results and Discussion
A real measurement platform consisting of the multi-line-scan camera system and an I-shaped calibration target was established in this study, and corresponding measurement experiments were carried out. The multi-line-scan camera system was used to acquire target images and perform feature extraction as well as spatial coordinate reconstruction, while the I-shaped calibration target served as the measured object for evaluating the capability of the system in recovering geometric structure and scale information. By constructing the measurement platform under real experimental conditions, the spatial reconstruction capability and dimensional measurement performance of the proposed method can be validated. The experimental platform and measurement scene are shown in
Figure 6.
In the experiment, the multi-line-scan camera system was first calibrated to establish the intrinsic and extrinsic parameter relationships of the cameras and to impose global constraints under a unified coordinate reference. Subsequently, the I-shaped calibration target was moved within the measurement area of the real experimental scene to acquire image data, and the three-dimensional coordinates of the target feature points were reconstructed using the feature extraction and matching method proposed in this paper. Based on these reconstructed points, the distances between key feature points on the calibration target were further calculated. To ensure the rationality and comparability of the experimental analysis, geometric quantities that are insensitive to changes in the coordinate system were selected as evaluation metrics, namely the distances between feature points and the measured rod lengths.
Considering that the I-shaped calibration target has clear structural characteristics and stable geometric dimensions, its reconstruction results can not only reflect the capability of the system to recover the overall spatial shape of the target, but also intuitively reveal the spatial distribution of measurement errors across different frames. Therefore, after completing the analysis of distance measurement and scale recovery, the three-dimensional reconstruction results of all frames after global calibration were further visualized together with the camera positions. In
Figure 6, the true structure of the I-shaped calibration target is taken as the reference, and the reconstructed spatial positions of all frames are restored accordingly. At the same time, different measurement frames are color-coded according to the joint comprehensive error of the entire calibration target, so as to analyze the spatial recovery performance of the system and the error distribution characteristics under real experimental conditions. For visualization purposes, the camera positions were mapped to a closer distance according to a proportional relationship, while the actual coordinate axis values were established with the left camera as the coordinate origin.
As shown in
Figure 7, the reconstructed I-shaped calibration target is highly consistent with the true calibration target in its overall shape. The reconstructed results of different frames can preserve the geometric contour and relative spatial relationships of the target well, indicating that the proposed global calibration method is able to effectively recover the three-dimensional spatial structure of the target. According to the error statistics, when 24 frames of the calibration target were used for calibration, the average reconstruction accuracy of the system reached 0.61 mm. Meanwhile, the maximum joint comprehensive error was 0.9 mm, the minimum was 0.42 mm, and the standard deviation was 0.15 mm, showing that the overall error distribution among frames is relatively concentrated. These results demonstrate that the proposed method achieves good overall accuracy in the global calibration task.
Since
Figure 7 is plotted based on the joint results, the color variation reflects the overall reconstruction quality of the entire I-shaped calibration target rather than the variation in a single dimensional indicator. From the statistics of individual error components, the maximum, minimum, and standard deviation of the top-width error are 1.27 mm, 0.042 mm, and 0.43 mm, respectively, whereas those of the bottom-width error are 1.14 mm, 0.16 mm, and 0.32 mm, respectively. The comparison indicates that the top-width error shows slightly greater dispersion than the bottom-width error, suggesting that the upper part of the calibration target is more strongly affected by imaging conditions, feature extraction, and matching stability during reconstruction, while the reconstruction of the lower part is relatively more stable.
Overall, although the reconstruction accuracy varies to some extent under different observation viewpoints, the spatial position and shape of the I-shaped calibration target can still be recovered stably in most cases. This indicates that the proposed three-dimensional reconstruction method based on global calibration has a certain adaptability to viewpoint variation. The spatial distribution of the joint comprehensive error shown in
Figure 7 is consistent with the statistical results of the top-width and bottom-width errors. The reconstructed results are generally clustered around the reference calibration target, and the small standard deviation of the joint error further verifies the effectiveness of the method. However, the differences in error among different structural parts also suggest that the robustness of the current method under complex observation conditions still has room for further improvement.