Adaptive threshold vslam localization method fusing beblid description
By improving the FAST algorithm and BEBLID descriptor, adaptive thresholding and feature point compensation are implemented in the VSLAM system, solving the localization accuracy problem of the VSLAM system in complex scenarios and improving the accuracy of feature matching and localization.
Patent Information
- Application Number
- CN202611387058.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-08
- Publication Date
- 2026-11-24
AI Technical Summary
Existing feature-point-based VSLAM systems suffer from limitations in positioning accuracy in complex scenes due to issues such as fixed corner detection thresholds that are difficult to adapt to changes in local image regions and insufficient reliability of feature matching.
An improved FAST algorithm is used in conjunction with a gradient direction consistency index to generate a dynamic threshold. The number of feature points is compensated by a two-level orthogonal and diagonal test strategy. The original rBRIEF descriptor is replaced by a BEBLID descriptor generated through multiple rounds of iteration and then integrated into the VSLAM framework.
Adaptive threshold adjustment was achieved, which improved the adaptability of corner detection and the accuracy of feature matching, thereby enhancing the precision and stability of visual localization.
Smart Images

Figure CN123160924A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of visual positioning technology, and in particular to an adaptive threshold VSLAM localization method that integrates BEBLID (Boosted Efficient Binary Local Image Descriptor) description. Background Technology
[0002] VSLAM (Visual Simultaneous Localization and Mapping) is a core technology in computer vision and robotics, widely used in autonomous navigation, augmented reality, intelligent robots, and autonomous driving. In feature-point-based VSLAM systems, stable and sufficient feature point extraction is fundamental to accurate pose estimation. Existing feature-point-based VSLAM systems suffer from two main shortcomings: firstly, corner detection uses fixed thresholds, making it difficult to adapt to variations in texture and brightness in local image regions; secondly, the use of randomly generated rBRIEF (rotation-aware Binary Robust Independent Elementary Features) descriptors results in insufficient reliability of feature matching in complex scenes. These deficiencies gradually expose performance bottlenecks in complex scenarios, limiting the localization accuracy of VSLAM systems.
[0003] Current research mainly focuses on point-line feature fusion methods. However, the stability of line feature extraction in these methods is much lower than that of point features, and it also leads to higher computational complexity. In addition, researchers have begun to focus on improvements in feature extraction, such as the AFE-ORB-SLAM method and the ALE-VSLAM method. These methods improve the limitations of fixed thresholds in feature extraction and improve the localization accuracy of VSLAM. However, these methods contain several empirical parameters and have poor scene adaptability, which limits the final localization accuracy. Summary of the Invention
[0004] The purpose of this invention is to provide an adaptive threshold VSLAM localization method that integrates BEBLID descriptions to solve the aforementioned technical problems.
[0005] To achieve the above objectives, this invention provides an adaptive threshold VSLAM localization method that integrates BEBLID descriptions, comprising the following steps: S1. Collect image grayscale data under different scenarios; S2. Use the improved FAST (Features from Accelerated Segment Test) algorithm to extract image feature points. The improved FAST algorithm calculates the pixel gradient through the 7×7 Sobel operator, and assigns directional weights by combining the gradient direction with the angle between the gradient direction and the FAST sampling point. It also uses the neighborhood gradient direction consistency index to generate a dynamic threshold adjustment symbol to achieve adaptive adjustment of the corner detection threshold. S3. Use an orthogonal and diagonal dual-level testing strategy to compensate for the number of feature points; S4. Generate BEBLID descriptors by filtering pixel comparison pairs through multiple rounds of iteration, and replace the original rBRIEF descriptors of the VSLAM system as the feature matching description rules. S5. Integrate the improved FAST algorithm from S2, the two-level verification strategy from S3, and the BEBLID descriptor from S4 into the VSLAM framework, perform feature extraction and feature matching processes, and output visual localization results.
[0006] Preferably, the improved FAST algorithm in S2 for extracting feature points specifically includes: S21. For any pixel in the image In pixels Take a 7×7 local window centered on the pixel and calculate the pixel points. gradient components: ; ; In the formula, For horizontal gradient components, For vertical gradient components, The grayscale function of the image. For pixels of Pixel coordinates within the neighborhood, and , It is a 7×7 Sobel horizontal gradient operator kernel and a vertical gradient operator kernel. , This is the matrix transpose symbol; S22, Calculate pixel points gradient direction : ; S23. Obtain the orientation angles of 16 sampling points on a circle with a radius of 3 on the FAST detector, and calculate the orientation angles of each sampling point relative to the pixel. The minimum effective angle of the gradient direction is used to obtain the direction weights of each sampling point based on the Gaussian function; S24. Calculate the neighborhood gradient direction consistency index, obtain the threshold adjustment sign factor based on the gradient direction consistency index, and use the threshold adjustment sign factor to dynamically adjust the corner detection threshold.
[0007] Preferably, the execution order of the improved FAST feature extraction image feature points is as follows: calculate the direction weight, judge the gradient consistency, adjust the weight sign, and perform a two-level test to screen the feature points.
[0008] Preferably, in S23, 16 sampling points are evenly distributed on a circle with a radius of 3 of the FAST detector. Direction angle of each sampling point ; Difference in angle between sampling point and original pixel gradient Minimum effective included angle Sampling point orientation weights The calculation formulas are as follows: ; ; ; In the formula, The width of the Gaussian kernel is used to control the rate at which the weights decay with the included angle.
[0009] Preferably, the gradient direction consistency index in S24 C ( p Threshold adjustment sign factor s ( p The formula for calculating ) is: ; ; In the formula, For the neighborhood Inner pixel q gradient vector, Let Euclidean norm be the vector. ,and It is proportional to the degree of uniformity of the gradient direction in the neighborhood.
[0010] Preferably, the two-stage testing strategy in S3 specifically includes: First-level test: Select four orthogonal points with FAST sampling point indices of 1, 5, 9, and 13, and count the number of pixels that meet the brightness difference condition. N 1. If N If 1 ≥ 3, proceed to the complete FAST corner detection process; Second-level test: If N If 1 < 3, select four diagonal points with FAST sampling point indices of 3, 7, 11, and 15, and count the number of pixels that meet the brightness difference condition. N2, if N If 2 ≥ 3, proceed to the complete FAST corner detection process; like N 1 < 3 and N If 2 < 3, skip the current pixel and terminate the corner detection for that pixel.
[0011] Preferably, the S4 method for generating BEBLID descriptors specifically includes: constructing an image patch training set, defining weak classifiers for pixel comparisons, initializing sample weights, calculating the weighted error rate of candidate weak classifiers, selecting the optimal weak classifier in each round, calculating the weight of the optimal weak classifier, and iteratively updating the sample weights; and iterating through K rounds to obtain K sets of optimal pixel comparison pairs as BEBLID descriptor generation rules.
[0012] Preferably, the iteration round K is the preset number of pixel comparison pairs.
[0013] Preferably, constructing the image patch training set specifically includes: Obtain image patch pairs of projected 3D spatial points onto different images. P , Q Labels are set for image blocks corresponding to the same 3D point projection. y =+1, set labels for image block pairs corresponding to different 3D point projections. y =-1, resulting in the training set: ; In the formula, P i , Q i The first i Two image blocks in the group, y i For the first i Matching labels for pairs of image patches. N This represents the total number of samples in the training set. Weak classifier The expression is: ; In the formula, This is an indicator function used to determine whether the grayscale values at the same coordinate position of two image patches are consistent. It outputs 1 if they are consistent and 0 if they are inconsistent. , Image blocks superior , Location pixel grayscale value, , Image blocks superior , Location pixel grayscale value; Initial weights of samples for: ; No. t Wheel of Life m Weighted error rate of candidate weak classifiers for: ; In the formula, It is to label The transformed value obtained by mapping to {0,1} The sample weights for the current round; No. t Optimal weak classifier selection in round: ; In the formula, For the first t The optimal weak classifier selected in the round-robin process. For the first t The minimum weighted error rate of the wheel; Weights of the optimal weak classifier for: ; The formula for updating the sample iteration weights is: ; In the formula, For the sample weights used in the next round, It is a natural constant.
[0014] Preferably, S5 specifically includes: S51. The improved FAST feature extraction and two-level verification strategy is embedded into the VSLAM system framework; S52. Replace the original rBRIEF descriptor in the VSLAM system and use the BEBLID descriptor generated in S4 to perform cross-frame feature matching. S53. Based on the integrated VSLAM system, perform feature extraction and feature matching, and output visual localization results.
[0015] Therefore, the adaptive threshold VSLAM localization method described above in fusion with BEBLID has the following beneficial effects: 1. Utilize pixel gradient direction information to calculate directional weights, and generate dynamic threshold adjustment symbols through neighborhood gradient direction consistency index to achieve adaptive adjustment of FAST corner detection threshold. This can adapt to different local regions of the image and improve the problem that fixed thresholds cannot adapt to scene changes.
[0016] 2. An orthogonal and diagonal dual-level inspection strategy is adopted for quantity compensation, which can compensate for missed corner detection and ensure the comprehensiveness of corner detection.
[0017] 3. By iteratively filtering pixel comparison pairs through multiple rounds, a BEBLID descriptor is generated to replace the original rBRIEF descriptor, thereby improving the accuracy of feature matching.
[0018] 4. Integrating the adaptive threshold improvement FAST algorithm, the two-level verification strategy, and the BEBLID descriptor into the VSLAM framework, and simultaneously optimizing the feature extraction and feature matching stages, can improve the accuracy of visual localization in different scenarios.
[0019] The technical solution of the present invention will be further described in detail below with reference to the accompanying drawings and embodiments. Attached Figure Description
[0020] Figure 1 This is a flowchart of the adaptive threshold VSLAM localization method that incorporates BEBLID description according to the present invention; Figure 2 The image shows a comparison of the feature point extraction results of the method of the present invention and ORB-SLAM3, where (a) is the feature point extraction image of the ORB-SLAM3 method and (b) is the feature point extraction image of the method of the present invention. Figure 3 The image shows a comparison of the feature point matching effects of the method of the present invention and the rBRIEF descriptor, where (a) is the feature point matching image of the rBRIEF descriptor and (b) is the feature point matching image of the method of the present invention. Figure 4 This is a curve comparing the motion trajectories of the method of this invention with those of ORB-SLAM3; Figure 5 This is a comparison curve of the translation error between the method of this invention and ORB-SLAM3. Detailed Implementation
[0021] To make the objectives, technical solutions, and advantages disclosed in the embodiments of the present invention clearer, the embodiments of the present invention will be further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are only used to explain the embodiments of the present invention and are not intended to limit the embodiments of the present invention. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative effort are within the scope of protection of this application. Examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout.
[0022] It should be noted that the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion, such as a process, method, system, product, or server that includes a series of steps or units, not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such process, method, product, or device.
[0023] The embodiments of the present invention will now be described in detail with reference to the accompanying drawings.
[0024] like Figures 1-5 As shown, the adaptive threshold VSLAM localization method fused with BEBLID description provided by this invention is validated using the EuRoC public dataset to verify its effectiveness. The MH05 image sequence is selected as the input image data. This sequence contains images collected under complex factory conditions, exhibiting alternating scenes of varying illumination, sparse textures, and dense textures. This is suitable for testing the feature extraction capability of the improved FAST algorithm, the feature point quantity compensation capability of the double-step verification strategy, and the feature matching capability of the BEBLID descriptor. The key innovation of this invention lies in the BEBLID descriptor generated based on the standard AdaBoost training framework, which, in conjunction with the improved FAST algorithm and the double-step verification strategy, constitutes the key innovation of this invention. Specifically, the following steps are included: S1. Collect image grayscale data under different scenarios. Specifically, read the EuRoC dataset MH05 sequence images, convert the color images into image grayscale data, and use it as input for subsequent feature processing.
[0025] S2. The improved FAST algorithm is used to extract image feature points. This improved algorithm calculates pixel gradients using a 7×7 Sobel operator, assigns directional weights based on the angle between the gradient direction and the FAST sampling point, and generates a dynamic threshold adjustment sign using a neighborhood gradient direction consistency index. This enables adaptive adjustment of the corner detection threshold. Specifically, this includes: S21. For any pixel in the image In pixels A 7×7 local window is taken centered, and the size of this window matches the radius of the FAST detector (3). The number of pixels is then calculated. gradient components: ; ; In the formula, For horizontal gradient components, For vertical gradient components, The grayscale function of the image. For pixels of Pixel coordinates within the neighborhood, and , It is a 7×7 Sobel horizontal gradient operator kernel and a vertical gradient operator kernel. , This is the matrix transpose symbol; S22, Calculate pixel points gradient direction : ; gradient direction Characterizes the direction of the fastest increase in local pixel brightness; S23. Obtain the orientation angles of 16 sampling points on a circle with a radius of 3 on the FAST detector, and calculate the orientation angles of each sampling point relative to the pixel. The minimum effective angle of the gradient direction is used to obtain the direction weight of each sampling point based on the Gaussian function; for 16 sampling points uniformly distributed on a circle with a radius of 3 on the FAST detector, the th... Direction angle of each sampling point ; Difference in angle between sampling point and original pixel gradient Minimum effective included angle Sampling point orientation weights The calculation formulas are as follows: ; ; ; In the formula, The width of the Gaussian kernel is used to control the rate at which the weights decay with the included angle. In this embodiment... Use a preset fixed parameter (e.g., 0.5~1.5). The closer the sampling point direction is to the gradient direction, the larger the obtained directional weight value.
[0026] S24. Calculate the neighborhood gradient direction consistency index, obtain the threshold adjustment sign factor based on the gradient direction consistency index, and dynamically adjust the corner detection threshold using the threshold adjustment sign factor; gradient direction consistency index C ( p Threshold adjustment sign factor s ( p The formula for calculating ) is: ; ; In the formula, For the neighborhood Inner pixel q gradient vector, Let Euclidean norm be the vector. ,and It is directly proportional to whether the gradient direction of the neighborhood is uniform, when A larger value indicates a high degree of uniformity in pixel gradient direction within the local neighborhood, resulting in drastic changes in local image texture. Therefore, the FAST corner detection threshold is increased to suppress false corner detections caused by noise. The smaller the value, the more dispersed the gradient direction in the local neighborhood, corresponding to a weak texture area. Therefore, the FAST corner detection threshold is lowered to improve corner recall and avoid missed detection of feature points.
[0027] S3. A two-stage orthogonal and diagonal testing strategy is used to compensate for the number of feature points. Specifically, the first stage of testing involves selecting four orthogonal points with FAST sampling point indices of 1, 5, 9, and 13, and counting the number of pixels that meet the brightness difference condition. N 1. If N If 1 ≥ 3, proceed to the complete FAST corner detection process; Second-level test: If N If 1 < 3, select four diagonal points with FAST sampling point indices of 3, 7, 11, and 15, and count the number of pixels that meet the brightness difference condition. N 2, if N If 2 ≥ 3, proceed to the complete FAST corner detection process; like N 1 < 3 and N If 2 < 3, skip the current pixel and terminate the corner detection for that pixel.
[0028] This two-stage inspection prioritizes the orthogonal direction. If the orthogonal direction does not meet the conditions, the diagonal direction is then checked. This can eliminate non-corner pixels in advance for a large number of pixels, reducing the computational load of subsequent complete detection, while also compensating for the number of corner points detected in weak texture scenes.
[0029] As can be seen from the above, the execution order of the improved FAST algorithm for extracting image feature points is as follows: calculating directional weights, judging gradient consistency, adjusting weight signs, and performing two-level verification of feature point selection.
[0030] S4. BEBLID descriptors are generated by iteratively selecting pixel comparison pairs through multiple rounds, replacing the original rBRIEF descriptors of the VSLAM system as feature matching description rules. Specifically, first, an image patch training set is constructed, weak classifiers for pixel comparisons are defined, sample weights are initialized, the weighted error rate of candidate weak classifiers is calculated, the optimal weak classifier is selected in each round, the weight of the optimal weak classifier is calculated, and the sample weights are iteratively updated. This process is repeated for K rounds to obtain K sets of optimal pixel comparison pairs as BEBLID descriptor generation rules, where the number of iterations K is the preset number of pixel comparison pairs.
[0031] Then, an image patch training set is constructed, specifically including: obtaining pairs of projected image patches of 3D spatial points on different images (P , Q Labels are set for image blocks corresponding to the same 3D point projection. y =+1, set labels for image block pairs corresponding to different 3D point projections. y =-1, resulting in the training set: ; In the formula, P i , Q i The first i Two image blocks in the group, y i For the first i Matching labels for pairs of image patches. N This represents the total number of samples in the training set. Weak classifier The expression is: ; In the formula, This is an indicator function used to determine whether the grayscale values at the same coordinate position of two image patches are consistent. It outputs 1 if they are consistent and 0 if they are inconsistent. , Image blocks superior , Location pixel grayscale value, , Image blocks superior , Location pixel grayscale value; Initial weights of samples for: ; All samples are weighted equally, so that before the first round begins, each training sample has the same importance and no bias. No. t Wheel of Life m Weighted error rate of candidate weak classifiers for: ; In the formula, It is to label The transformed value obtained by mapping to {0,1} is convenient for... The output comparison, The sample weights for the current round. This is an indicator function; it is 1 when the prediction result of the weak classifier is different from the true label, i.e., it is misclassified, and 0 otherwise. No. t Optimal weak classifier selection in round: ; In the formula, For the first t The optimal weak classifier selected in the round of selection, i.e., the weak classifier with the lowest error rate, For the first t The minimum weighted error rate of the wheel; Weights of the optimal weak classifier for: ; The formula for updating the sample iteration weights is: ; In the formula, For the sample weights used in the next round, if the first... i One sample was For a correct classification, its weight is multiplied by a number less than 1. Therefore, the weight decreases. If it is misclassified, the weight is multiplied by a number greater than 1. Therefore, the weight increases, among which is a natural constant; after K iterations, K sets of pixel comparison pairs are obtained after iterative selection. These pixel comparison pairs are the generation rules for the BEBLID descriptor; the randomly generated rBRIEF descriptor originally used in the VSLAM system is replaced with the BEBLID descriptor trained in this step. Compared with rBRIEF randomly selecting pixel pairs, the BEBLID descriptor has stronger pixel comparison pair discrimination ability after iterative weighted selection, and higher feature matching accuracy in scenes with changes in lighting and viewing angle.
[0032] S5. Integrate the improved FAST algorithm from S2, the two-level verification strategy from S3, and the BEBLID descriptor from S4 into the VSLAM framework, perform feature extraction and feature matching processes, and output visual localization results, specifically including: S51. The improved FAST algorithm and the two-level verification strategy are applied to the feature extraction stage of the VSLAM framework, directly replacing the original FAST corner detection algorithm of VSLAM. The local map tracking, local mapping, loop closure and map merging, and global bundle adjustment of the VSLAM backend follow the original processing logic without modification. S52. Replace the original rBRIEF descriptor in the VSLAM system and use the BEBLID descriptor generated in S4 to perform cross-frame feature matching. S53. Based on the integrated VSLAM system, perform feature extraction and feature matching, and output visual localization results.
[0033] The improved FAST algorithm is applied to the overall framework of the VSLAM system, such as... Figure 2As shown, the quality of extracted feature points is improved by using the improved adaptive threshold FAST extraction. In addition, a two-level test is used to avoid missed detections and compensate for the problem of the number of feature points.
[0034] like Figure 3 As shown, the rBRIEF descriptor in VSLAM is replaced with the BEBLID descriptor. The more discriminative BEBLID descriptor is used to complete feature matching. Compared with the rBRIEF random descriptor used by ORB-SLAM3, the matching stability is better. ORB-SLAM3 is a Simultaneous Localization and Mapping (SLAM) system that can achieve tight coupling based on vision and inertial navigation, and can reuse multiple maps. In addition, it supports monocular / binocular / RGB-D as input and supports pinhole and fisheye camera models.
[0035] The improved VSLAM system is used for feature extraction and feature matching to obtain the final accurate localization result. In this embodiment, the MH05 image data sequence from the EuRoC dataset is selected for experimental verification of the effectiveness of the method of the present invention. The method is mainly compared with the classic visual framework ORB-SLAM3, and RMSE (Root Mean Square Error) is selected as the performance metric in the experiment. Figure 4 As shown, to distinguish between different technical methods, the scheme using only the improved FAST algorithm is named F-SLAM, the scheme using only the BEBLID descriptor is named B-SLAM, and the scheme using both the improved FAST algorithm and the BEBLID descriptor is named FB-SLAM. These schemes are then compared and verified with the original ORB-SLAM3. In terms of specific trajectories, FB-SLAM is closest to the true trajectory, followed by F-SLAM and B-SLAM. ORB-SLAM3 differs the most from the true trajectory, especially showing significant fluctuations in certain time periods.
[0036] like Figure 5As shown, F-SLAM and B-SLAM exhibit a more concentrated and stable overall error distribution compared to ORB-SLAM3, demonstrating that both techniques proposed in this paper improve the positioning accuracy of the VSLAM system. FB-SLAM performs even better than F-SLAM and B-SLAM, further enhancing the final positioning accuracy. Furthermore, both FB-SLAM and F-SLAM / B-SLAM demonstrate superior error extreme value control and fewer outliers compared to ORB-SLAM3. Specifically, ORB-SLAM3 exhibits the highest error metrics across all metrics, with an RMSE of 0.0672m and a standard deviation of 0.0412m. In contrast, F-SLAM and B-SLAM both reduce positioning errors to varying degrees. F-SLAM's RMSE is 0.0533m, a reduction of approximately 20.7% compared to ORB-SLAM3; B-SLAM's RMSE is 0.0560m, a reduction of approximately 16.7%. Therefore, the effectiveness of the improved FAST algorithm and BEBLID descriptor is demonstrated. The FB-SLAM combining the two achieved the best results on all evaluation metrics, with an RMSE of 0.0491m, which is 26.9%, 7.9%, and 12.3% lower than ORB-SLAM3, F-SLAM, and B-SLAM, respectively. This proves that the method of the present invention has better robustness and higher positioning accuracy.
[0037] The test results of this embodiment show that, on the one hand, the present invention enables the FAST detection threshold to change adaptively through gradient consistency and compensates for the number of feature points through a two-level verification strategy; on the other hand, it uses the BEBLID descriptor obtained by iterative training to improve the reliability of cross-frame feature matching. The two work together to effectively improve the visual positioning accuracy in complex scenes without changing the VSLAM backend mapping and optimization logic.
[0038] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and not to limit them. Although the present invention has been described in detail with reference to preferred embodiments, those skilled in the art should understand that modifications or equivalent substitutions can still be made to the technical solutions of the present invention, and these modifications or equivalent substitutions cannot cause the modified technical solutions to deviate from the spirit and scope of the technical solutions of the present invention.
Claims
1. An adaptive threshold VSLAM localization method incorporating BEBLID description, characterized in that, Includes the following steps: S1. Collect image grayscale data under different scenarios; S2. Use the improved FAST algorithm to extract image feature points. The improved FAST algorithm calculates the pixel gradient through the 7×7 Sobel operator, assigns directional weights by combining the gradient direction with the angle between the FAST sampling point, and generates a dynamic threshold adjustment symbol by using the neighborhood gradient direction consistency index to achieve adaptive adjustment of the corner detection threshold. S3. Use an orthogonal and diagonal dual-level testing strategy to compensate for the number of feature points; S4. Generate BEBLID descriptors by filtering pixel comparison pairs through multiple rounds of iteration, and replace the original rBRIEF descriptors of the VSLAM system as the feature matching description rules. S5. Integrate the improved FAST algorithm from S2, the two-level verification strategy from S3, and the BEBLID descriptor from S4 into the VSLAM framework, perform feature extraction and feature matching processes, and output visual localization results.
2. The adaptive threshold VSLAM localization method fused with BEBLID description according to claim 1, characterized in that, The improved FAST algorithm in S2 specifically includes the following for extracting feature points: S21. For any pixel in the image In pixels Take a 7×7 local window centered on the pixel and calculate the pixel points. gradient components: ; ; In the formula, For horizontal gradient components, For vertical gradient components, The grayscale function of the image. For pixels of Pixel coordinates within the neighborhood, and , It is a 7×7 Sobel horizontal gradient operator kernel and a vertical gradient operator kernel. , This is the matrix transpose symbol; S22, Calculate pixel points gradient direction : ; S23. Obtain the orientation angles of 16 sampling points on a circle with a radius of 3 on the FAST detector, and calculate the orientation angles of each sampling point relative to the pixel. The minimum effective angle of the gradient direction is used to obtain the direction weights of each sampling point based on the Gaussian function; S24. Calculate the neighborhood gradient direction consistency index, obtain the threshold adjustment sign factor based on the gradient direction consistency index, and use the threshold adjustment sign factor to dynamically adjust the corner detection threshold.
3. The adaptive threshold VSLAM localization method fused with BEBLID description according to claim 2, characterized in that, The improved FAST feature extraction image feature point execution order is as follows: calculate direction weights, determine gradient consistency, adjust weight sign, and perform two-level verification of feature point selection.
4. The adaptive threshold VSLAM localization method fused with BEBLID description according to claim 3, characterized in that: In S23, 16 sampling points are evenly distributed on a circle with a radius of 3 on the FAST detector. Direction angle of each sampling point ; Difference between sampling point and original pixel gradient angle Minimum effective included angle Sampling point orientation weights The calculation formulas are as follows: ; ; ; In the formula, The width of the Gaussian kernel is used to control the rate at which the weights decay with the included angle.
5. The adaptive threshold VSLAM localization method fused with BEBLID description according to claim 4, characterized in that: Gradient Direction Consistency Index in S24 C ( p Threshold adjustment sign factor s ( p The formula for calculating ) is: ; ; In the formula, For the neighborhood Inner pixel q gradient vector, Let Euclidean norm be the vector. ,and It is proportional to the degree of uniformity of the gradient direction in the neighborhood.
6. The adaptive threshold VSLAM localization method fused with BEBLID description according to claim 1, characterized in that, The two-stage testing strategy in S3 specifically includes: First-level test: Select four orthogonal points with FAST sampling point indices of 1, 5, 9, and 13, and count the number of pixels that meet the brightness difference condition. N 1. If N If 1 ≥ 3, proceed to the complete FAST corner detection process; Second-level test: If N If 1 < 3, select four diagonal points with FAST sampling point indices of 3, 7, 11, and 15, and count the number of pixels that meet the brightness difference condition. N 2, if N If 2 ≥ 3, proceed to the complete FAST corner detection process; like N 1 < 3 and N If 2 < 3, skip the current pixel and terminate the corner detection for that pixel.
7. The adaptive threshold VSLAM localization method fused with BEBLID description according to claim 1, characterized in that, The S4 method for generating BEBLID descriptors specifically includes: constructing an image patch training set, defining weak classifiers for pixel comparisons, initializing sample weights, calculating the weighted error rate of candidate weak classifiers, selecting the optimal weak classifier in each round, calculating the weight of the optimal weak classifier, and iteratively updating the sample weights; and iterating through K rounds to obtain K sets of optimal pixel comparison pairs as the BEBLID descriptor generation rules.
8. The adaptive threshold VSLAM localization method fused with BEBLID description according to claim 7, characterized in that: The iteration round K is the preset number of pixel comparison pairs.
9. The adaptive threshold VSLAM localization method fused with BEBLID description according to claim 8, characterized in that, Constructing an image patch training set specifically includes: Obtain image patch pairs of projected 3D spatial points onto different images. P , Q Labels are set for image blocks corresponding to the same 3D point projection. y =+1, set labels for image block pairs corresponding to different 3D point projections. y =-1, resulting in the training set: ; In the formula, P i , Q i The first i Two image blocks in the group, y i For the first i Matching labels for pairs of image patches. N This represents the total number of samples in the training set. Weak classifier The expression is: ; In the formula, This is an indicator function used to determine whether the grayscale values at the same coordinate position of two image patches are consistent. It outputs 1 if they are consistent and 0 if they are inconsistent. , Image blocks superior , Location pixel grayscale value, , Image blocks superior , Location pixel grayscale value; Initial weights of samples for: ; No. t Wheel of Life m Weighted error rate of candidate weak classifiers for: ; In the formula, It is to label The transformed value obtained by mapping to {0,1} The sample weights for the current round; No. t Optimal weak classifier selection in round: ; In the formula, For the first t The optimal weak classifier selected in the round-robin process. For the first t The minimum weighted error rate of the wheel; Weights of the optimal weak classifier for: ; The formula for updating the sample iteration weights is: ; In the formula, For the sample weights used in the next round, It is a natural constant.
10. The adaptive threshold VSLAM localization method fused with BEBLID description according to claim 1, characterized in that, S5 specifically includes: S51. The improved FAST feature extraction and two-level verification strategy is embedded into the VSLAM system framework; S52. Replace the original rBRIEF descriptor in the VSLAM system and use the BEBLID descriptor generated in S4 to perform cross-frame feature matching. S53. Based on the integrated VSLAM system, perform feature extraction and feature matching, and output visual localization results.
