1. Introduction
As the largest and most complex terrestrial ecosystem on Earth, forests play an irreplaceable role in maintaining ecological balance and preserving biodiversity. Investigating forest spatial structures and the dynamics of resource changes is of vital significance for forest management, ecological conservation, and carbon cycle analysis [
1]. In urban environments, forest landscapes also constitute a vital component of urban ecosystems [
2]. Urban forests not only improve air quality and regulate microclimates, but also mitigate the urban heat island effect, thereby enhancing the stability of urban ecological systems. Key parameters such as tree height, diameter at breast height (DBH), crown area, crown width, and above-ground biomass serve as critical indicators for assessing forest structure and function. These parameters not only reflect the growth status and spatial characteristics of individual trees but also reveal ecological functions at the community level [
3]. Consequently, the efficient and accurate acquisition of 3D forest structural information is indispensable for forest resource inventory and management.
Traditional forest inventory methods primarily rely on plot sampling and manual measurements. While these approaches offer high accuracy, they are cost-prohibitive and ill-suited for large-scale, rapid surveys [
4,
5,
6]. With the advancement of remote sensing and 3D reconstruction technologies, forest inventory is increasingly trending toward digitization and automation. Among available techniques, Light Detection and Ranging (LiDAR) [
7] and Close-Range Photogrammetry (CPR) [
8] have emerged as the two dominant methodologies [
9]. LiDAR can directly acquire high-precision point cloud data; in particular, Terrestrial Laser Scanning (TLS) [
10] demonstrates superior accuracy in measuring forest structures at the individual tree and small-plot scales. For instance, Lee et al. [
11] utilized LiDAR scanning to achieve 3D reconstruction of citrus trees, quantifying geometric parameters such as crown height, width, and volume. This work laid a foundation for yield estimation and precision irrigation and spraying operations for citrus orchards. Similarly, Torralba et al. [
12] employed TLS to measure the DBH of trees in the Mediterranean region, comparing the performance of single-station versus multi-station scanning configurations. However, TLS faces significant limitations in capturing complete upper canopy structures due to restricted scanning angles and severe canopy occlusion [
13]. Furthermore, the operation of such LiDAR equipment often requires specialized personnel and involves complex data processing workflows, which hinders its widespread adoption for large-scale, routine forest inventories. In contrast, fueled by advancements in computer vision, photogrammetry has become an economically viable alternative, leveraging lightweight equipment and low-cost imagery. The standard workflow typically integrates Structure-from-Motion (SfM) [
14] and Multi-View Stereo (MVS) [
15]. Specifically, SfM estimates camera poses and reconstructs a sparse point cloud through feature detection and matching combined with geometric constraints, while MVS subsequently generates dense point clouds based on these results. Although SfM-MVS-based methods have been widely applied in 3D forest reconstruction [
16,
17,
18,
19], they still suffer from issues such as low efficiency in feature matching and insufficient reconstruction accuracy under occluded conditions.
The core of Structure-from-Motion (SfM) lies in robust feature extraction and matching, which fundamentally determine the accuracy of initial camera pose estimation and the quality of sparse point clouds [
20]. Traditional handcrafted feature extraction methods, such as Scale-Invariant Feature Transform (SIFT) [
21], operate by detecting stable keypoints and computing descriptors for matching. However, when confronted with large-scale, complex scenes and severe occlusion, these conventional approaches often exhibit low matching efficiency and accuracy [
22]. As noted in the review by Iglhaut et al. [
23], environmental factors such as occlusion and complex textures frequently cause traditional geometric features (e.g., SIFT) to suffer from matching breaks or drift. In recent years, deep learning-based feature extraction methods, including SuperPoint [
24], DISK [
25], and ALIKED [
26], have significantly enhanced matching robustness and efficiency by automatically learning image representations through deep neural networks. Concurrently, graph neural network-based matching algorithms, such as SuperGlue [
27] and its accelerated variant LightGlue [
28], have demonstrated superior performance in scenarios characterized by significant viewpoint and illumination variations. These deep learning approaches overcome the limitations of handcrafted features under challenging conditions—such as varying lighting, diverse viewpoints, and texture scarcity—by leveraging high-level semantic features learned from data [
29]. Specific applications in forestry have already shown some promise: Pritchard et al. [
30] fine-tuned LightGlue to achieve accurate camera pose estimation in forest scenes using only 25% of the keypoints required by traditional baseline models. Similarly, Zhang et al. [
31] employed a SuperPoint + LightGlue pipeline to reconstruct densely planted rice seedlings in three-dimension. Furthermore, accurate 3D reconstructions have been achieved for UAV images [
32,
33,
34] and satellite imagery [
35]. In their review on reconstructing unstructured complex terrains, Tong et al. [
36] emphasized that the transition from geometry-driven to data-driven paradigms is key to resolving matching failures in weakly textured scenes, highlighting the advantages of deep neural networks in high-dimensional semantic feature representation. Despite the successful application of deep learning-based image matching in 3D reconstruction of regular objects and structured scenes, existing studies predominantly focus on small-scale environments [
37] or medium-to-small objects [
38]. Research dedicated to vegetation, particularly large-scale forest scenes, remains relatively limited, with most efforts concentrated on precise reconstruction of low-growing crops [
31,
39]. Moreover, there is a notable lack of deep learning-based matching and sparse reconstruction methods specifically designed for multi-tree, multi-layered structures in complex forest environments. In such scenes—characterized by repetitive textures, dense canopies, and branch-leaf occlusion—image matching algorithms are prone to erroneously associating regions that are spatially distinct but visually similar. Therefore, further optimization of image matching algorithms and strategies is essential to enhance their performance in these complex natural settings.
High-quality sparse point clouds and accurate camera poses serve not only as reliable geometric priors for Multi-View Stereo (MVS) but also lay a solid foundation for subsequent optimization processes. Inaccuracies in feature extraction or matching during the Structure-from-Motion (SfM) stage can directly compromise the completeness and precision of the resulting sparse point cloud, ultimately leading to structural artifacts in the final dense reconstruction. Consequently, optimizing the feature detection and matching stages of SfM is critical for enhancing overall 3D reconstruction performance.
This study focuses on the role of SfM initialization quality in downstream 3D reconstruction. Specifically, we address the insufficient accuracy of feature detection and matching in traditional SfM pipelines when applied to forest scenes. By optimizing feature detection and matching algorithms, we aim to significantly enhance the accuracy and robustness of image matching. Furthermore, to mitigate erroneous matches caused by repetitive textures across images, we propose an optimized matching strategy designed to improve the fidelity and precision of the resulting sparse point clouds.
3. Results
3.1. Experimental Results of Feature Extraction and Matching
To verify the effectiveness of the proposed method, we compare our improved algorithm (MS-ALIKED + LightGlue) with the traditional handcrafted method (SIFT) and the baseline method (ALIKED + LightGlue). The experimental comparison and analysis are conducted based on several evaluation metrics, including the number of extracted feature points (Count), feature point coverage (Coverage), Average Number of matched point pairs (AN), Average Inlier Number (AIN), and Average Precision (AP). Specifically, the feature point count refers to the total number of feature points extracted per image. Feature Coverage indicates the distribution extent of the detected feature points within the image pixel space, expressed as a percentage; a larger value (closer to 100%) signifies a broader distribution of the extracted feature points. The Average Number of matched point pairs (AN) represents the average count of matched feature points between images within the dataset. The Average Inlier Number (AIN) refers to the number of inliers, which are matches that fit the estimated geometric constraint (such as a homography or fundamental matrix). In this work, we utilize the LO-RANSAC (Locally Optimized RANSAC) implementation integrated within COLMAP to estimate the fundamental matrix and determine inlier correspondences, with an inlier threshold set to 1 pixel. Finally, the Average Precision (AP) is the ratio of the correctly matched point pairs (inliers) to the initial matched point pairs, expressed as follows:
Comparative experiments regarding feature extraction and feature matching were conducted on the forest stand image datasets from both the urban and wild forest plots, evaluating SIFT, ALIKED + LightGlue, and our algorithm. In the feature extraction results, the extracted feature points are denoted by red dots. As for the feature matching results, incorrect matches are indicated by red lines, while correct matches are represented by yellow lines.
(1) Analysis of Feature Extraction Experimental Results
Figure 3 illustrates the feature extraction results for a selected image from Plot 1. Qualitative analysis reveals that the SIFT algorithm, constrained by the limitations of its handcrafted design, extracts extremely sparse points that are exclusively clustered in the highly salient regions of the canopy. Although the ALIKED algorithm improves the uniformity of the spatial distribution and achieves coverage over the trunks and ground, extraction blind spots persist in certain texture-weak areas. In contrast, by introducing an image pyramid to construct multi-scale feature representations, our method effectively overcomes the extraction bottleneck inherent to a single scale, successfully achieving dense feature coverage even in non-salient regions. Furthermore, the quantitative data presented in
Table 3 demonstrates that our method extracts up to 13,259 feature points—14.2 times and 1.53 times the amounts extracted by SIFT and ALIKED, respectively. This significantly enhances both feature richness and the algorithm’s adaptability to complex scenes.
For the wild forest plot (Plot 2) shown in
Figure 4, it is evident that the feature points extracted by the SIFT algorithm are predominantly concentrated in the ground areas, with relatively few points detected on the trunks, branches, and leaves. While the baseline ALIKED algorithm manages to extract a sufficient overall number of feature points, it still fails to capture an adequate quantity specifically on the tree trunks. In contrast, the proposed method achieves the most widely distributed feature points across the entire scene. Based on the quantitative analysis presented in
Table 4, the SIFT algorithm extracts an average of 9626 feature points. Meanwhile, the ALIKED algorithm and the proposed method extract 10,632 and 20,147 points, respectively, representing approximately 1.1 and 2.09 times the amount extracted by SIFT. Furthermore, the feature coverage rate increases notably from 71.31% to 81.19%.
(2) Analysis of Feature Matching Results
As illustrated by the feature matching results for the forest stand images of Plot 1 in
Figure 5, the SIFT algorithm finds the lowest number of matched points. Furthermore, these points are predominantly distributed in regions with highly distinct features, such as the top of the tree canopy and its surrounding areas. In contrast, the ALIKED+LightGlue method extracts a significantly higher number of matched points, which are not solely concentrated at the canopy top but are widely distributed across the canopy, trunks, and ground regions. However, both of these methods still yield a considerable number of outliers. By integrating a multi-resolution image pyramid and removing redundant feature points within the same region based on confidence scores, our method significantly increases the total number of matched points, achieving a substantial improvement over the SIFT algorithm. Moreover, compared to the baseline ALIKED + LightGlue method, our approach effectively reduces the number of outliers while simultaneously increasing the number of inliers. The quantitative analysis of the feature matching results for Plot 1, as presented in
Table 5, demonstrates that the average number of matched point pairs for the SIFT algorithm is merely 425. In contrast, the ALIKED + LightGlue method and our proposed method achieve 5668 and 7624 pairs, respectively, representing approximately 13 and 18 times the amount obtained by SIFT. Regarding matching accuracy, the precision of the SIFT algorithm is only 43.53%, whereas the ALIKED + LightGlue method reaches 74.37%. Enhanced by the image pyramid and neighborhood constraint strategy, the matching precision of the proposed method is further improved to 82.87%, yielding an increase of 8.5%. Correspondingly, the absolute number of inliers also increases from 4223 to 6318.
As shown in
Figure 6, the feature matching results for the forest stand images of Plot 2 reveal trends similar to those of Plot 1. The SIFT algorithm extracts the fewest matched points, which are predominantly concentrated in areas with distinct features. In contrast, the ALIKED+LightGlue method extracts a greater number of matched points with a significantly broader distribution. Nevertheless, these existing methods still generate a noticeable number of outliers. By comparison, our proposed method significantly surpasses the SIFT algorithm in terms of the absolute number of matched points. It effectively mitigates the influence of outliers while simultaneously boosting the number of inliers. The quantitative analysis of feature matching for this plot (presented in
Table 6) indicates that the Average Number (AN) of matched points for the SIFT algorithm is 3877. Meanwhile, the ALIKED + LightGlue method and our proposed approach achieve 4552 and 7300, respectively—approximately 1.2 and 1.9 times the amount produced by SIFT. In terms of Average Precision (AP), the SIFT algorithm stands at 45.09%, whereas ALIKED + LightGlue reaches 67.90%. Through our algorithmic improvements, the matching precision of the proposed method is further elevated to 72.00%, marking a substantial increase of 26.91% compared to SIFT. Furthermore, the average inlier number (AIN) also increased significantly from 1748 for the SIFT algorithm to 5256.
3.2. Experimental Results and Analysis of Sparse Point Cloud Reconstruction
Extracting a wider distribution and a larger quantity of feature points to obtain higher-accuracy feature matching results is essential for generating a more complete sparse point cloud and recovering more accurate camera poses. To further verify the effectiveness of the proposed method, we performed SfM sparse point cloud reconstruction for Plot 1 and Plot 2 based on the matching results obtained from the three methods discussed in the previous section. In the results, red markers represent the recovered camera positions and orientations (poses); the area enclosed by the camera constitutes the sparse point cloud of the sample plot scene generated by the reconstruction. The SfM sparse reconstruction results are comprehensively evaluated and compared across different methods: completeness is assessed via the sparse point cloud models (the number of points) and the ratio of registered images, while accuracy is evaluated through metrics such as mean reprojection error, mean track length, total observed 3D points, and mean observations per image. Among these, the mean reprojection error represents the average value of the errors of 3D points re-projected onto their respective 2D matching points, measured in pixels. A smaller error indicates higher reconstruction accuracy. Generally, a reprojection error within the range of 0.5 to 2 pixels is considered normal or acceptable. Mean track length refers to the average number of matches for the same 3D point across multiple images. A longer track length typically means the 3D point is subject to more geometric constraints from multiple viewpoints, making its spatial position estimation more stable, which in turn improves the reliability of camera pose recovery and the overall reconstruction results. It should be noted that the mean track length does not directly participate in the calculation of the reprojection error; its role is to reflect the sufficiency of multi-view geometric constraints. Under conditions of sufficient constraint, the reprojection error can more reliably reflect the geometric consistency between camera poses and the 3D structure. When the mean track length is high, multi-view geometric constraints are more adequate, and the reprojection error possesses higher credibility in evaluating the quality of camera pose recovery. Conversely, in cases of insufficient track length, due to inadequate geometric constraints, geometric degradation and spurious reconstructed phenomena may still occur even if the reprojection error is small. The total observed 3D points represent the total number of feature point observations across all images. A higher number of observations generally indicates higher model redundancy. Mean observations per image is the ratio of total observed 3D points to the number of registered images, representing the average number of 2D-3D observations contributed by each image.
An analysis combining the visualizations in
Figure 7 and the quantitative metrics in
Table 7 reveals significant differences in reconstruction quality among the three methods. Constrained by the inadequate representational capacity of handcrafted features in weak-textured regions, the SIFT algorithm generates an extremely sparse point cloud. This makes it challenging to accurately capture key structural details of the forest stand, such as tree trunks, branches, and canopy architectures. Although the ALIKED + LightGlue baseline significantly increases the volume of the point cloud, its camera pose recovery exhibits noticeable flaws. Subject to the interference of repetitive textures within the forest, it suffers from the accumulation of motion estimation errors. This ultimately leads to geometric distortions, including pose drift and ghosting artifacts towards the end of the image sequence. In contrast, by incorporating multi-scale features via an image pyramid alongside a neighborhood constraint strategy, our proposed method effectively overcomes matching ambiguities. It not only eliminates the phenomena of trajectory breakage and spurious reconstruction to achieve precise global pose recovery but also attains optimal values across metrics such as point cloud density, mean track length, and total observations. Although the mean reprojection error exhibits a marginal increase of 0.02 pixels compared to ALIKED+LightGlue, this remains well within acceptable engineering tolerances. The proposed method successfully leverages this minuscule accuracy trade-off to achieve a substantial enhancement in both reconstruction completeness and geometric stability.
Figure 8 illustrates the 3D models generated via sparse reconstruction on the Plot 2 dataset using SIFT, ALIKED + LightGlue, and the proposed method. As observed from the visual results, both the SIFT and ALIKED + LightGlue methods suffer from missing partial sparse point clouds and camera poses in the upper-right region. Furthermore, the SIFT method only manages to register the upper-middle section. In contrast, the proposed method successfully recovers the complete camera poses, featuring a significantly denser point distribution. The specific quantitative reconstruction metrics (
Table 8) demonstrate that the proposed method outperforms the other two approaches across five key indicators: the ratio of registered images, the number of points in the point cloud, total observed 3D points, mean observations per image, and mean track length. Notably, its point cloud count reaches 8,175,591, which is 7.5 times that of the SIFT method and also surpasses the ALIKED + LightGlue baseline. Although the proposed method slightly trails the comparative methods in terms of the mean reprojection error, this is primarily attributed to its successful registration of more challenging images—which the baseline methods simply discarded as difficult cases. This inevitably leads to a statistical accumulation of observation errors. Overall, within the highly complex environment of Plot 2, our method achieves high-density reconstruction while strictly preserving camera recovery completeness. This effectively validates its technical superiority for the 3D reconstruction of complex forest scenes.
3.3. Ablation Study and Analysis
Here, we quantitatively analyze the effectiveness of the image pyramid-based feature enhancement module and the neighborhood constraint-based match pair control module by comparing evaluation metrics of sparse point cloud reconstruction. The baseline method employs the ALIKED + LightGlue combination with a global matching strategy. As shown in
Table 7 and
Table 8, the baseline model not only has more image-pairs to process, which requires longer computation time, but also has limited reconstruction accuracy. The image pyramid feature enhancement module demonstrates the most significant improvement in reconstruction performance. After feature enhancement via image pyramid, the average tracking length is substantially strengthened, and the point cloud quantity is greatly increased. However, due to sub-pixel bias generated by multi-scale mapping, the average reprojection error also increases. To further improve accuracy, a neighborhood constraint strategy is introduced to reduce or eliminate cross-image mismatches caused by repetitive textures in complex forest scenes.
The results show the following: for Plot 1, the sparsely reconstructed point cloud quantity decreased by 6787 points, the mean reprojection error reduced by 0.015 pixels (from 1.327 pixels to 1.312 pixels), and calculations reveal that the average reprojection error of those eliminated 6787 points reached 2.088 pixels, which resulted in a slightly improved mean reprojection error. For Plot 2, a natural forest scene dataset with high overlap repetition, a neighborhood window of 10 was set to ensure sufficient image matching constraints. After feature enhancement via image pyramid, registered images increased from 411 to 608, achieving 100% registration rate. Furthermore, after neighborhood constraint, the point cloud quantity decreased by 12,240 points, the average reprojection error reduced by 0.024 pixels, and the average reprojection error of these eliminated points reached 2.737 pixels. The above data indicate that neighborhood constraints can catch outlier match pairs with large errors, effectively refining observation data while maintaining reconstruction scale, and significantly improving the geometric accuracy of sparse point clouds in forest scenes. Although there are marginal decreases in point cloud quantity, average tracking length, total observed 3D points, and mean observations per image, our method essentially removes geometric noises that have large spatial error while still effectively maintaining key structural information.
In terms of runtime efficiency, SIFT remains the most efficient algorithm even without the matching neighborhood constraint. After the image pyramid feature enhancement, the matching time for learned algorithms (ALIKED + LightGlue) increased a little bit. Following the application of constrained matching pairs, the time was reduced considerably, to the same order as that of SIFT. It is worth noting that the memory usage based on deep learning algorithms is usually higher, peaking at around 25 GB.
3.4. Visual Comparison of Dense Reconstruction Results
To comprehensively evaluate the effectiveness of the proposed sparse reconstruction framework, we conduct MVS dense reconstruction on the aforementioned plots using both the global matching framework (based on ALIKED + LightGlue) and the neighborhood-constrained matching framework (using our improved algorithm), with LiDAR point clouds serving as reference data. We assess the dense reconstruction results only qualitatively in this report; a more thorough, quantitative evaluation about the reconstructed point cloud completeness, accuracy and the resulting tree information (DBH, tree height and number of trees) will be presented in the future. It should be noted that since the SIFT method failed to recover all camera poses for Plot 2, SIFT-based sparse reconstruction results were excluded from the dense reconstruction process for both plots to ensure consistency.
Although the global matching framework based on ALIKED+LightGlue successfully reconstructed the overall structural point cloud, it recovered incorrect camera poses during the sparse reconstruction stage. Consequently, errors accumulated progressively during the dense reconstruction and point cloud registration processes, leading to the appearance of duplicate point cloud regions. As illustrated in
Figure 9 and
Figure 10, visual comparison with our reconstruction result and the LiDAR reference data reveals that for Plot 1, the point cloud on the right side exhibits significant duplication, while the central trunk area shows artifacts and obvious noise within the forest, with relatively sparse canopy coverage. Regarding Plot 2, due to the complexity of the plot, specific variations were difficult to discern from the global point cloud; therefore, a single tree was extracted for detailed comparison. The results demonstrate that while the global matching framework produced severe artifacts, these artifacts were effectively eliminated in the tree generated using our proposed method.
4. Discussion
It is clear that traditional feature detection and matching algorithms can handle most of the cases for forest scene reconstruction from images, as evidenced by these recent [
43,
44,
45,
46,
47] and many earlier studies. Both conventional open-source and commercial computer vision and photogrammetry software were regularly used in the applications. However, there are situations where the complexity and similarity of the forested images can confuse these algorithms, and result in failed reconstruction, yet such failures are rarely reported.
Aiming at the challenges brought by complex scale, illumination changes, and repetitive textures in those difficult forest scenes, the SfM sparse reconstruction framework proposed in this study, which takes the ALIKED + LightGlue algorithms as the core and constructs an image pyramid and uses a neighborhood constraint strategy, demonstrates significant performance advantages. The image pyramid effectively enhances the algorithm’s adaptability to unstructured environments through multi-scale feature extraction. Due to the increase in feature points, its computational load also increases, and the time cost of a single matching pair will increase correspondingly, but thanks to the adaptive token pruning mechanism of LightGlue, the time consumed for matching does not increase linearly; when the number of feature points increases to 1.5 times, the matching time increases to 1.18 times. Meanwhile, the neighborhood constraint strategy fundamentally blocks the occurrence of long-distance cross-image mismatches by restricting the matching search space. This strategy, combining local and global aspects, significantly improves the geometric consistency of feature points, thereby ensuring the accuracy of camera pose recovery, and solves the problems of pose drift, breakage, and point cloud artifacts that are prone to occur in traditional SfM in large-scale dynamic forest scenes. However, when facing different natural scenes and image collection methods, it is still necessary to discreetly determine the constraint method that can be appropriately applied.
We also introduce matching pairs and neighborhood constraints to the SIFT method. Even in complex forest scenes, traditional handcrafted algorithms such as SIFT can also achieve improved sparse reconstruction quality by limiting the number of matches. This experimental result indirectly suggests the effectiveness and generalizability of our approach.
Our findings validate the perspectives of studies [
31,
39], specifically that a deep learning-based feature detection and matching strategy offers significant benefits in complex agricultural and forestry scenarios. Although learned methods bring a larger number of feature points and a greater number of matches, they also bring greater computational requirements. Traditional handcrafted methods generally require less computing power, memory and shorter time to process the same number of image matches. Further study on optimizations should be carried out targeting the computational efficiency bottleneck, studying how to reduce inference latency without sacrificing feature extraction accuracy, thereby promoting the real-time application of this method in resource-constrained environments.
This study focuses on exploring the effectiveness of the improved ALIKED+LightGlue baseline model combination in SfM reconstruction of forest scenes. It does not intend to provide a systematic or exhaustive comparison with other mainstream deep learning feature matching methods, such as SuperPoint + SuperGlue or LoFTR [
48]. This limitation restricts a comprehensive evaluation of the performance advantages of the proposed approach.
Although recently developed unconstrained 3D reconstruction paradigms—such as DUSt3R [
49] and VGGT [
50], which operate without prior information about camera calibration or viewpoint poses—show great potential in terms of robustness and effectiveness, they are currently limited by prohibitive computational overhead and insufficient geometric accuracy when processing long image sequences of natural scenes. We anticipate that future work will also explore the integration of feed-forward neural networks with geometric constraint frameworks to further enhance the automation of high-precision reconstruction in complex environments.