Abstract
In visual-inertial odometry (VIO) research, combining point and line features can satisfy high requirements of integrity and restoration for scene reconstruction. In this paper, an integrating strategy of two types of line segments is proposed on the basis of utilizing point and line features for VIO frameworks. First, line segments are classified as short and long categories after extraction and tracking to enhance feature utilization. Then, short lines are spliced and long lines are merged on the basis of distance constraint and consistent direction. In the meanwhile, considering epipolar constraints during back-end processing, triangulation of the two line categories is optimized on the premise of correct matching between adjacent frames, so as to improve accuracy of pose estimation. Finally, point and line feature constraints are utilized simultaneously to reconstruct environments with back-end optimization. Evaluation on the EuRoC dataset shows that localization accuracy and robustness are improved with the proposed strategy.1
Introduction
Simultaneous localization and mapping (SLAM) techniques include estimation of robot-sensor states and construction of environment models. In past decades, SLAM has developed rapidly in plenty of robotic fields, and it mainly includes laser SLAM (Badalkhani et al., 2021; Li et al., 2023), visual SLAM (Li et al., 2024), and other methods regarding various sensors (Huang, 2019; Wang et al., 2023). In various types of visual SLAM, monocular vision SLAM has been developed with the most frequency (Li et al., 2016), but the camera is prone to take a variety of blurry photos leading to difficult positioning. To make up for camera shortcomings, camera measurements are usually fused with inertial measurement unit (IMU) ones in practical applications, where an IMU can obtain motion information inside the robot at high frequency without being affected by surrounding environments. On the other hand, a camera completes loopback detection and correction through visual matching, where cumulative IMU drift is corrected effectively. One classic system combining monocular camera and IMU is VINS-Mono (Qin et al., 2018), which integrates point feature extraction and matching, IMU extraction and pre-integration (Forster et al., 2016), system initialization, sliding window optimization (Bartoli et al., 2005), and loop detection, providing a complete visual-inertial odometry framework.
The main element adopted by most map reconstruction methods is point feature, which is large amount, less pixel occupancy, and low computational complexity. However, point features are sensitive to brightness so that tracking process fails under unstable light condition, and they neglect scene structure and are also difficult to be detected in low-texture environments (Leutenegger et al., 2014). On the other hand, the appearance of line features makes up for the shortcomings of point ones. The PL-SLAM method in Gomez-Ojeda et al. (2018) uses BoW technologies to collect descriptors of line segments into total words in the closed-loop detection phase, which improves robustness but decreases real-time performance. He et al. (2018) propose a method by combining point and line features under VIO frameworks, where two parametric representation patterns are introduced for line features and an observation model is defined to integrate line features. The method in Fu et al. (2020) optimizes the line segment detection process on the basis of He et al. (2018), and makes hidden parameters explicit and speeds up feature detection. Lee et al. (2021) design the PLF-VINS method by exploring position correlation of points and line features, and by coupling residual of point and line features with a designed constraint.
In this paper, a point-line visual odometer method is proposed by designing short line splicing and long line fusion strategies for pose estimation and scene reconstruction, which improves feature processing performance and scene restoration degree in the loop detection phase. Firstly, two judgment constraints are designed to filter and classify line features, and integration for line segments is performed on the premise of consistent direction and close distance in adjacent two keyframes. Then, original twice triangulation operations are reduced to once by merging endpoints of two short lines, and triangulation for parallel long line features is made based on correct line segment selection and matching. Consequently, short line splicing enhances triangulation accuracy and long line fusion makes correct matching, and then VIO accuracy can be improved. Then, the reprojection error model of line features is analyzed by deducing Jacobin matrices on normalized planes. Finally, reprojection errors of lines are combined with those of points into sliding windows to achieve state optimization. Performance of the proposed method is verified on the EuRoC micro aerial vehicle dataset. Main contribution of the paper is that line segment utilization is enhanced by designing splicing and fusion strategies, and feature matching accuracy is enhanced and feature processing time is saved in the triangulation process.
Related Work
Back-end Operation of Point-Line Based VIO
Two patterns of back-end processes are filter-based and optimization-based for visual SLAM systems. One classic method of the filter-based pattern is MSCKF (Mourikis et al., 2007), which predicts localization for a new frame through IMU integration and then takes feature reprojection as observation. Zheng et al. (2018) propose a binocular visual-inertial odometer by using a Kalman filter to fuse point and line features and by designing geometric constraints based on normal vectors of lines. Kong et al. (2015) combine points and lines based on trifocal geometry among image triplets, with filtering algorithms to correct pose information in real time. PL-VIO (He et al., 2018) and PL-VINS (Fu et al., 2020) methods are based on the optimization pattern to obtain pose information with point-line feature fusion. Li et al. (2022) utilize tight coupling to combine carrier phase data obtained from GPS measurements with visual inertia to obtain a highly accurate and low-noise P3-VINS system.
Vanishing Points for VIO
Vanishing points are introduced for line feature classification in VIO, which improves localization accuracy but decreases real-time performance. Zou et al. (2019) propose the Manhattan hypothesis, where line features are induced into structural lines in three directions, and points link with lines through vanishing points. Then, Xu et al. (2022) apply the Manhattan hypothesis to VIO frameworks, and define lines that are failed to track as unstructured lines. Without the Manhattan assumption, the method proposed by Lim et al. (2022) directly uses vanishing points to perform structure mapping, and adds a new estimator to back-end optimization according to the relationship between lines and vanishing points. The line feature degradation problem is discussed in Lim et al. (2021), which exists in the triangulation process and is caused by pure translation in point-line visual SLAM algorithms. To extract vanishing points, Lu et al. (2017) propose a polar-grid building method, Camposeco et al. (2015) propose a one-line method to classify line segments, and Bazin et al. (2012) propose a three-line method to solve the minimum sampling problem. Feng et al. (2024) propose an image processing algorithm with an adaptive strategy by grouping and merging line segments, which reduces difficulty of matching line features and improves localization accuracy in low-light environments.
Line Segment Detection
For line feature processing, gradient sorting is performed first by calculating gradient magnitude in the image, and then a region growth algorithm is used to detect line features. Classic line segment detection and matching methods are line segment detector (LSD) (Von Gioi et al., 2010) and line band descriptor (LBD) (Zhang et al., 2013), respectively. In Fu et al. (2020), scale and layer number of the Gaussian pyramid are simplified to speed up the detection process, and a length optimization strategy is proposed to filter short lines. The method proposed in Wen et al. (2020) adds line information to a stereo vision odometer on the basis of VINS-Fusion (Qin et al., 2019). The method proposed in Liu et al. (2021) uses the EDLine method (Akinlar et al., 2011) for taking less time on line extraction than LSD, and designs a line merging algorithm for short lines. Lim et al. (2021) employ the ELSED method (Suarez et al., 2022) to accelerate line feature detection by reducing candidate pixels in pixel chains (Lim et al., 2022). Zhang et al. (2024) propose a vanishing point estimation method with line segment consistency using structural constraints, where line features are classified into structured and unstructured lines on the basis of vanishing points.
Line Feature Integration
System Overview
In this paper, optical flow tracking, point and line feature extraction, and IMU pre-integration are performed in the data preprocessing phase. By filtering and classifying line segments, strategies are designed in the front-end for short line splicing and long line fusion. After feature triangulation, it enters back-end optimization to recover scene information, where point and line reprojection error, IMU motion constraint, and marginalization are jointly optimized in sliding windows.
Point and Line Extraction
For point feature processing in the proposed method, extracted points are Shi-Tomasi corners (Shi et al., 1994), and the Kanade-Lucas-Tomasi (KLT) (Tomasi et al., 1991) algorithm is used to track feature points between adjacent frames. The F-matrix test is preformed and the random sample consensus (RANSAC) scheme (Hartley et al., 2003) is used to eliminate abnormal points.
For line feature processing, the LSD algorithm is employed in the method to detect, recognize, and track line segments without parameter tuning. After line feature tracking, LBD and k-nearest neighbor (KNN) algorithms are adopted to describe and match line features between two adjacent frames.
Regarding line feature detection, parameters of the image pyramid are adjusted to generate an LSD detector, and the detected line segments are gathered together to further calculate line feature descriptors (Fu et al., 2020). Lines are marked by fixed and dynamic flags, and then matched with a binary descriptor in previous and current frames (Liu et al., 2021). Thresholds for descriptor distance are set, and matching is successful if moving distance of line endpoints on adjacent frames is within the thresholds.
Short Line Splicing
A line segment splicing strategy is designed first to tackle the scattering problem caused by line feature detection. In the process of LSD execution, a complete line segment in the space is often divided into several irregular ones, which breaks integrity of line features and increases time costs of back-end triangulation. Symbols
This line representation manner distinguishes start and end points of a line segment, which makes a spatial line segment have direction. Initially, a constraint condition of line direction judgment on each frame is performed after LSD detection:
where
Two screening conditions are then set with respect to distance and angle, respectively, to judge which lines should be tackled and to weed out interfering lines. In the first one, the two closest endpoints are selected among the four endpoints of

Process sketch of short line splicing and long line fusion (a) short lines that meet the two screening constraints, (b) directions for splicing lines. (c) Long lines that meet the two screening constraints, (d) directions for merged lines.
At last, short lines
Long Line Fusion
The LSD algorithm often reproduces a line to several repeated lines in scenes with regular spatial structure, such as window, sidewalk, and pipeline. These repeated lines are close to each other but not overlapped, which affects line feature matching and back-end feature recovery, and largely affects pose estimation of line features. To make lines concise in reconstructed scenes, two parallel lines are merged by the following conditions.
The fusion sketch for long line features is shown as (c) and (d) in Figure 1. After line segments are detected, two long lines defined as
Considering directivity of lines, there are four situations of two-line combinations as
Figure 2 shows the comparison results of extracted line features between the proposed method and the LSD algorithm. The line segments in the blue boxes in (a) are detected by the LSD algorithm, and they are processed by the proposed short line splicing strategy as shown in (b). Line segments in the blue boxes in (c) and (d) correspond to before and after utilizing the proposed long line fusion strategy, respectively.

Schematic of line features after splicing and fusion (a) short lines detected by LSD, (b) improved regarding short lines, (c) long lines detected by LSD, (d) improved regarding long lines.
Optimization For Line Features
Geometric of 3D Lines
With three degrees of freedom (DoFs) for a single three-dimensional (3D) point
Six-parameter Plücker coordinates have advantages in operation and representation of a line, which is determined by difference and cross of vectors corresponding to two endpoints of a line. It is used in the paper jointly with four parameter orthogonal coordinates to represent a 3D line.
Under the Plücker coordinate system, a 3D line is represented as
In the process of line feature detection from the
where
The constraint (2) in the six-parameter line segment representation implies over-parameterization for back-end optimization, which increases calculation complexity and system instability. Thus, the orthogonal coordinate with minimum standard is adopted when optimizing line features in the back-end. Linear transformation exists between the two representation manners, which can thus be jointly applied. According to QR decomposition (Bartoli et al., 2005), the Plücker coordinates of a line segment are transformed to the orthogonal coordinates
Based on (4) and (5), the Plücker coordinate can be expressed as follows:
The distance
where
Triangulation of Integrated Line Features
In the triangulation process, line feature poses are estimated by the epipolar constraint. Mismatching in line feature triangulation increases depth calculation errors and causes position drift of recovered line features. Mismatching further affects a series of modules, such as transformation from image coordinates to camera coordinates, camera motion estimation, and reprojection errors.
These errors produce a cumulative effect in the whole triangulation process, which leads to inaccurate estimation for 3D line positions. In order to improve accuracy and robustness of the triangulation process, two cases of feature mismatching are analyzed and improved as follows.

Schematic for triangulation process with short line splicing.
Projection of a short line segment
After line matching between two adjacent frames, image lines are filtrated by short line splicing conditions in Section III.C. For selected image lines
Moreover, a set is arranged regarding
The triangulation process with long line fusion is shown in Figure 4. A long line

Schematic for triangulation process with long line fusion.
For these line segments, they are tackled by the long line fusion strategy in Section III.D, such that
Measurement Model for Line Feature Reprojection
Given a 3D line
where
The residual vector
where
where
Then, Jacobian matrices regarding line features are obtained by minimizing reprojection errors, which mainly include variation of IMU states
where
where
System Optimization Based on Sliding Windows
With initial pose estimation and IMU state prediction, the proposed method is optimized by using the tightly coupled pattern based on sliding windows. In the process of bundle adjustment (BA) optimization, a fixed number of sliding windows (Shen et al., 2015) are used to dynamically delete and add state variables and prior information, so as to constrain scale of optimization variables and maintain real-time performance of the system.
The factor graph is based on sliding window optimization, and features include point and line. According to point and line fusion requirement, a line feature reprojection error term is designed and added for the minimum cost function, which is composed of cost term sum from all state variables as
where
In (18),
Experimental Validation
In the section, experiments on the EuRoC micro aerial vehicle dataset (Burri et al., 2016) and TUM-VI Benchmark dataset (Schubert et al., 2018) are conducted to test performance of the proposed method. The EuRoC dataset contains a synchronized global shutter stereo camera with 20 FPS and IMU measurement data with 200 Hz. The TUM dataset is recorded by a handheld fisheye stereo Kinect camera, and seven sequences are selected for the experiments. For evaluation, the proposed method is compared with VINS-Mono (Qin et al., 2018), PL-VINS (Fu et al., 2020), and UV-SLAM (Lim et al., 2022) under eight sequences without loop closure, and Figure 5 shows experiment snapshots on the eight sequences running by the proposed method.

Experiment snapshots on eight sequences of the EuRoC dataset by the proposed method.
Parameters of the compared methods are based on default values for comparison, and the threshold distance
APE Comparison
As a common evaluation index in the visual SLAM system, absolute pose error (APE) directly reflects VIO accuracy and global consistency of a trajectory. The root mean square error (RMSE) is obtained by comparing localization on trajectory with truth value, so as to show effect of the designed line integration process. Table 1 shows RMSE results in translation of the three methods without loop closure, where data in bold are closest to benchmark trajectories. It can be found that the proposed method shows superior performance in five sequences.
RMSE APE(meter) of VINS-MONO, PL-VIN, UV-SLAM, and the proposed method without loop closure regarding the EuRoC dataset.
Compared with VINS-Mono, PL-VINS, and UV-SLAM methods, pose estimation accuracy of proposed algorithm is improved by 6.45%, 1.46%, and 12.9%, respectively. Figure 6 shows scene reconstruction during MH_04_difficult and V1_03_medium experiments by the proposed method, where the real environment is described with rich line features.

Scene reconstruction maps of MH_04_difficult (top) and V1_02_medium (bottom) experiments by the proposed method regarding the EuRoC dataset.
To demonstrate the results more intuitively, localization paths on the

Comparative paths with respect to MH_04_difficult (top) and V1_03_difficult (bottom) regarding the EuRoC dataset (blue dashed lines: the proposed method; green solid lines: PL-VINS; red solid lines: VINS-Mono; green dashed lines: UV-SLAM; thick dashed lines: ground truth).
Table 2 shows the RMSE values of VINS-Mono, UV-SLAM, and the proposed method regarding seven sequences of the TUM dataset, where data in bold are closest to benchmark trajectories. It is seen that the proposed method performs well in five sets of sequences compared with the two compared methods.
RMSE APE(meter) of VINS-MONO, UV-SLAM and the proposed method without loop closure regarding the TUM dataset.
Figure 8 and Figure 9 show the localization paths of VINS-Mono, UV-SLAM, and the proposed method for room1_512_16 and room5_512_16 sequences, respectively. It can be seen that the paths by the proposed method is closest to truth value.

Comparative paths of VINS-Mono, UV-SLAM, and the proposed method for the room1_512_16 sequence regarding the TUM dataset (blue dashed lines: the proposed method; green solid lines: UV-SLAM; red solid lines: VINS-Mono; red dashed lines: ground truth).

Comparative paths of VINS-Mono, UV-SLAM, and the proposed method for room5_512_16 sequence regarding the TUM dataset (blue dashed lines: the proposed method; green solid lines: UV-SLAM; red solid lines: VINS-Mono; red dashed lines: ground truth).
The VINS-Mono system extracts point features, the PL-VINS system uses the LSD algorithm to extract line features, and the UV-SLAM system uses ELSED algorithm to detect line features. As a comparison, the proposed method corrects false detection phenomenon of LSD on the basis of PL-VINS. The line features in the actual scene are restored by utilizing the splicing and fusion strategies, which improves localization accuracy of the system. Due to the number and distribution of line features in different scenes, these datasets show different performance enhancements. For example, since spatial structures are rich in the MH_04_difficult and MH_05_difficult datasets, the trajectory errors are obviously smaller than those of the compared three methods.
RPE Comparison
The relative pose error (RPE) (Hartley et al., 2003) is usually utilized to evaluate visual odometer drift in a fixed time interval, and translation and rotation errors are selected to evaluate estimated trajectories. The time interval for evaluation is set to be the default value 0.01 s. Table 3 shows RPE evaluation results of VINS-Mono, PL-VINS, and the proposed method under eight sequences. By jointly optimizing point and line features, the proposed method provides best performance in translation and rotation errors with six and four sets of data, respectively, as shown in Table 3.
RMSE RPE evaluation of VINS-MONO, PL-VINS, and the proposed method regarding the EuRoC dataset.
After comparing with PL-VINS, the proposed line processing algorithms play a key role in reducing cumulative drift. Since different sequences correspond to various environments, results in Table 2 show that the proposed line integration algorithms improve accuracy and stability of localization in both complex factories and simple indoors. Moreover, the proposed method reduces local drift of camera rotation and translation, which enhances reliability and robustness of the VIO system.
Time Cost Comparison
It is mentioned in Section IV.B that time in the triangulation process is shortened by integrating lines. To illustrate the effectiveness of the proposed method, time for designed line segment detection and matching algorithms is recorded and compared with PL-VINS, and results are shown in Table 4. The test is also carried out on the above eight sequences, and each final result is obtained through averaging five sets of experiments.
Line detection and matching time of PL-VINS and proposed methods regarding the EuRoC dataset.
For VIO systems of point and line combination, it is noted that line feature processing costs much time, and real-time performance is enhanced with decreased line feature processing time. It is seen from Table 4 that the proposed method reduces time cost in different degrees for both laboratory and factory environments, especially the time cost of LSD+LBD+KNN being reduced by 19.63% for MH_02_easy. Thus, the proposed method improves efficiency of VIO systems by enhancing line feature processing.
Conclusion
A novel visual-inertial odometry method is proposed in the paper based on point-line feature fusion and line feature integration processing. In feature processing of the front-end stage, algorithms for line segment splicing and fusion are designed, which improves utilization of valid line segments and makes feature information more abundant in scene reconstruction. In optimization of the back-end stage, triangulation processes of two types of line features are designed, which reduce triangulation time of line features and improve matching rate of line features without loss of localization accuracy. Finally, IMU error, updated line feature residual, point feature reprojection error, and prior information are fused into sliding windows, and the cost function of each part is provided for optimizing system states. Through comparative experiments, it is found that the proposed method has good accuracy especially in challenging scenes.
Footnotes
Declaration of conflicting interests
The author(s) declared no potential conflicts of interest with respect to the research, authorship, and/or publication of this article.
Funding
The author(s) disclosed receipt of the following financial support for the research, authorship, and/or publication of this article: This work was supported in part by the National Natural Science Foundation of China under grant 62473282, 62303349, 62203326, and 61973234.
