Visual SLAM feature point extraction method, positioning method and system
Through image enhancement technology, the problem of difficulty in extracting feature points in visual SLAM in low-light environments is solved, and high-quality feature points extraction and precise positioning under low-light conditions is achieved, supporting map construction.
Patent Information
- Application Number
- CN202411070540.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-06
- Publication Date
- 2024-11-01
AI Technical Summary
Existing visual SLAM systems are difficult to extract high-quality feature points in low-light environments, resulting in reduced or failure of positioning accuracy, and the inability to achieve precise positioning and map construction in low-light environments.
The input image is processed using image enhancement methods, including light map estimation algorithm, gamma correction and contrast-limited adaptive histogram equalization method, and dynamically adjust the grayscale threshold to extract feature points of sufficient quantity and quality.
Image detail information is improved under low light conditions through image enhancement methods, ensuring that enough and evenly distributed high-quality feature points are extracted under different light conditions, and supporting precise positioning and map construction in low light environments.
Smart Images

Figure CN118887149A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of positioning and navigation technology, and in particular to a feature point extraction method, a positioning method and a system for visual SLAM. Background Art
[0002] Many purely visual SLAM systems may lose accuracy in low-light scenes. Visual SLAM solutions are limited by the strong dependence of camera sensors on ambient light, and cannot obtain clear and sufficient environmental information in low-light and dim scenes. This causes the SLAM front-end module to extract scene features with serious uncertainty and perform incorrect data association, which brings huge challenges to SLAM research. This makes the current visual SLAM solution perform well in normal lighting scenes, but the positioning effect is poor or even impossible in low-light environments. Summary of the invention
[0003] In view of the shortcomings of the existing technology, the present invention proposes a feature point extraction method, positioning method and system for visual SLAM, which can extract feature points of sufficient quantity and quality to provide support for accurate positioning and map construction in low-light environments. The specific technical solution is as follows:
[0004] In a first aspect, a method for extracting feature points of a visual SLAM is provided. In a first implementable manner of the first aspect, the method comprises:
[0005] Acquire an input image, and perform image enhancement on the input image using an image enhancement method to obtain an enhanced image;
[0006] The grayscale threshold is dynamically adjusted according to the image brightness, image intensity and adjustment parameters of the enhanced image, and feature points are extracted from the enhanced image based on the adjusted grayscale threshold.
[0007] In combination with the first implementable manner of the first aspect, in a second implementable manner of the first aspect, performing image enhancement on the input image using an image enhancement method includes:
[0008] For an input image with low brightness, an illumination map estimation algorithm is used to estimate an illumination map corresponding to the input image, and image enhancement is performed on the input image using the illumination map.
[0009] In combination with the first implementable manner of the first aspect, in a third implementable manner of the first aspect, performing image enhancement on the input image using an image enhancement method includes:
[0010] For an input image with normal brightness and low contrast, a gamma correction method is used to enhance the contrast of the input image.
[0011] In combination with the first implementable manner of the first aspect, in a fourth implementable manner of the first aspect, contrast enhancement is performed on the input image using a gamma correction method, including:
[0012] Calculate the probability density function corresponding to each level of pixel intensity in the input image;
[0013] Smoothing the probability density function corresponding to each level of pixel intensity, and determining the cumulative distribution function corresponding to each level of pixel intensity based on the smoothed probability distribution function;
[0014] Based on the cumulative distribution function, the gamma value corresponding to each level of pixel intensity is calculated using the cumulative distribution function truncation method;
[0015] The contrast of each pixel in the input image is enhanced respectively by using the corresponding gamma value.
[0016] In combination with the first implementable manner of the first aspect, in a fifth implementable manner of the first aspect, performing image enhancement on the input image using an image enhancement method includes:
[0017] A contrast-limited adaptive histogram equalization method is used to perform detail enhancement on the input image enhanced by the image enhancement method to obtain the enhanced image.
[0018] In combination with the first implementable manner of the first aspect, in a sixth implementable manner of the first aspect, performing image enhancement on the input image using an image enhancement method includes:
[0019] For an input image with normal brightness and high contrast, a contrast-limited adaptive histogram equalization method is used to perform detail enhancement on the input image to obtain the enhanced image.
[0020] In combination with the first implementable manner of the first aspect, in a seventh implementable manner of the first aspect, dynamically adjusting the grayscale threshold according to image brightness, image intensity, and adjustment parameters includes:
[0021] The adjustment parameters are adjusted according to the application scenario of visual SLAM.
[0022] In a second aspect, a visual SLAM positioning method is provided, comprising:
[0023] The feature point extraction method as described in any one of the first to seventh possible implementations of the first aspect is used to extract feature points from the acquired input image.
[0024] In a third aspect, a feature point extraction system for visual SLAM is provided, comprising:
[0025] An image enhancement module is configured to obtain an input image and perform image enhancement on the input image using an image enhancement method to obtain an enhanced image;
[0026] The feature extraction module is configured to dynamically adjust the grayscale threshold according to the image brightness, image intensity and adjustment parameters of the enhanced image, and extract feature points of the enhanced image based on the adjusted grayscale threshold.
[0027] In a fourth aspect, a visual SLAM positioning system is provided, comprising:
[0028] The feature point extraction module is configured to extract feature points from the acquired input image using the feature point extraction method described in any one of the first to seventh possible implementations of the first aspect.
[0029] Beneficial effects: The feature point extraction method, positioning method and system of the visual SLAM of the present invention can enhance the image collected under low-light conditions through the image enhancement method, enhance the image detail information, and provide a higher quality input image for subsequent feature point extraction. Then, the threshold of feature point detection is adjusted in real time according to the brightness and contrast of the input image, which can ensure that sufficient and evenly distributed high-quality feature points can be extracted under different lighting conditions, providing support for accurate positioning and map construction in low-light environments. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] In order to more clearly illustrate the specific implementation of the present invention, the following will briefly introduce the drawings required for use in the specific implementation. In all the drawings, each element or part is not necessarily drawn according to the actual scale.
[0031] Figure 1 A flowchart of a feature point extraction method for visual SLAM provided by an embodiment of the present invention;
[0032] Figure 2 A system block diagram of a feature point extraction system for visual SLAM provided by one embodiment of the present invention. DETAILED DESCRIPTION
[0033] The following embodiments of the technical solution of the present invention are described in detail in conjunction with the accompanying drawings. The following embodiments are only used to more clearly illustrate the technical solution of the present invention, and are therefore only used as examples, and cannot be used to limit the protection scope of the present invention.
[0034] like Figure 1 The flowchart of the feature point extraction method of visual SLAM shown in FIG. 1 includes:
[0035] Step 1: obtaining an input image, and performing image enhancement on the input image using an image enhancement method to obtain an enhanced image;
[0036] Step 2: dynamically adjust the grayscale threshold according to the image brightness, image intensity and adjustment parameters of the enhanced image, and extract feature points of the enhanced image based on the adjusted grayscale threshold.
[0037] Specifically, first, an image enhancement method can be used to enhance the input image collected under low-light conditions, thereby improving the contrast and brightness of the input image, obtaining an enhanced image with richer image detail information, and providing a basis for the subsequent extraction of sufficient number and high-quality feature points. Then, the grayscale threshold used for feature point extraction can be dynamically adjusted according to the image brightness and image intensity of the enhanced image, and according to the adjusted grayscale threshold, an existing feature point extraction method, such as SIFT, SURF or ORB feature point extraction method, is used to extract feature points from the enhanced image, thereby ensuring that sufficient and evenly distributed feature points can be extracted under different lighting conditions.
[0038] In this embodiment, optionally, in step 1, an image enhancement method is used to enhance the input image, including:
[0039] For an input image with low brightness, an illumination map estimation algorithm is used to estimate an illumination map corresponding to the input image, and image enhancement is performed on the input image using the illumination map.
[0040] Specifically, after obtaining the input image, we can first determine whether the input is a low-brightness image. If it is a low-brightness image, we can use the illumination map estimation algorithm to estimate the illumination map of the input image, and perform image enhancement on the low-brightness input image according to the illumination map, thereby restoring the input image to a normal brightness image.
[0041] In this embodiment, the LIME algorithm can be used to enhance low-brightness images. The LIME algorithm is based on the Retinex model to enhance the image by estimating the illumination map. The Retinex model is specifically:
[0042] R′=L / T;
[0043] Among them, R′ is the normal brightness image that is expected to be restored, L is the low brightness input image, and T is the illumination map of the input image.
[0044] The illumination of each pixel in the input image can be estimated individually by finding the maximum value in the R, G, and B channels as an initial estimate, thereby obtaining the illumination map corresponding to the input image, specifically:
[0045]
[0046] Then, the illumination map is refined using the structure of illumination. To maintain the overall structure and smooth texture details, the following optimization problem can be proposed based on the estimated illumination map:
[0047]
[0048] Among them, α is the coefficient for balancing the illumination map and the lighting map, ||.|| F is the Frobenious norm, ||.||1 is the 1 norm. W is the weight matrix, is a first-order derivative filter. By solving this optimization problem, an enhanced image with enhanced brightness can be generated.
[0049] In this embodiment, optionally, in step 1, an image enhancement method is used to enhance the input image, including:
[0050] For an input image with normal brightness and low contrast, a gamma correction method is used to enhance the contrast of the input image.
[0051] Specifically, for an input image of normal brightness or an input image restored to normal brightness, it can be first determined whether the input image is a low-contrast image. If it is a low-contrast image, the existing gamma correction method can be used to enhance the contrast of the input image.
[0052] In this embodiment, the image intensity standard deviation of the low-contrast input image can be calculated. And the input image is judged to be a low-contrast image according to the image intensity standard deviation. lowc , or high contrast image I highc , specifically:
[0053]
[0054] Among them, λ is the standard deviation of image intensity, and a is the preset threshold.
[0055] It should be understood that the existing gamma correction algorithm selects an arbitrary value within the gamma value range of 0 to 3 for processing, and selects the appropriate gamma value manually by observing the correction results, relying on subjective feelings and experience. Because the overall and specific scene content of different images varies greatly, and the local content of the same image also varies greatly, the required gamma value is also different. Therefore, different areas of the same image may require different gamma values. However, the existing gamma correction algorithm does not have adaptive capabilities and cannot adjust the gamma value according to the image content.
[0056] To this end, in this embodiment, a truncated adaptive gamma correction method is used to enhance the contrast of the input image, which specifically includes:
[0057] Calculate the probability density function corresponding to each level of pixel intensity in the input image;
[0058] Smoothing the probability density function corresponding to each level of pixel intensity, and determining the cumulative distribution function corresponding to each level of pixel intensity based on the smoothed probability distribution function;
[0059] Based on the cumulative distribution function, the gamma value corresponding to each level of pixel intensity is calculated using the cumulative distribution function truncation method;
[0060] The contrast of each pixel in the input image is enhanced respectively by using the corresponding gamma value.
[0061] Specifically, first, the pixel intensity levels included in the input image are determined by the corresponding histogram, and statistical analysis is performed on the intensity levels of each pixel to determine the probability density function corresponding to the intensity level of each pixel in the input image. The specific expression is:
[0062]
[0063] Among them, P(i) is the probability corresponding to the i-th level pixel intensity, H(i) is the number of pixels corresponding to the i-th level pixel intensity, and N is the total number of pixels in the input image.
[0064] Then, the probability distribution function corresponding to each level of pixel intensity can be smoothed by the weighted distribution function. The specific calculation formula is as follows:
[0065]
[0066] Among them, j = -2, -1, 0, 1, 2, and ρ is used to adjust the smoothing level.
[0067] Then, the cumulative distribution function corresponding to each level of pixel intensity can be determined based on the probability distribution function corresponding to each level of pixel intensity after smoothing. The specific expression is:
[0068]
[0069] Among them, l max is the maximum level of pixel intensity.
[0070] Since the gamma value is too low, the bright areas in the darkened image will be degraded. To this end, the following calculation formula can be used to truncate the cumulative distribution function:
[0071] γ wd =1-C wd (i);
[0072] γ′ wd =max(b,γ wd );
[0073] Among them, b is the set truncation threshold, which can ensure that bright areas are not adjusted by low gamma values. According to a large number of experimental observations, b can be set to 0.3 to retain the detailed contour information of bright areas.
[0074] By using the truncated adaptive gamma correction method, the darkened pixels can be processed with a smaller gamma value and the bright pixels can be restricted. The pixel intensity of each pixel in the input image can be transformed by the following formula to enhance the contrast of the input image:
[0075]
[0076] In this embodiment, optionally, in step 1, an image enhancement method is used to enhance the input image, including:
[0077] A contrast-limited adaptive histogram equalization method is used to perform detail enhancement on the input image enhanced by the image enhancement method to obtain the enhanced image.
[0078] Specifically, for an input image with enhanced brightness and contrast, the contrast-limited adaptive histogram equalization method can be used to enhance the details of the input image to reduce the impact of noise on the image and improve the noise resistance of the image, thereby obtaining the final enhanced image. Specifically, it includes:
[0079] First, the input image with enhanced brightness and contrast is evenly divided into multiple image blocks of equal size, continuous and non-overlapping. Then the histogram of each image block is calculated, and the image blocks exceeding the clipping threshold are evenly distributed to the bottom of the histogram through the set clipping threshold to achieve histogram equalization of each image block.
[0080] In this embodiment, the clipping threshold can be calculated according to the total number of pixels of a single image block, a preset threshold, and the number of gray levels of the input image. The specific calculation formula is as follows:
[0081]
[0082] Among them, T c is the clipping threshold, M is the total number of pixels in a single image block, T d is the preset threshold, and I is the gray level.
[0083] The histogram after the image blocks are redistributed is as follows:
[0084]
[0085] B av =floor(E toral / I);
[0086]
[0087] Among them, E toral is the pixel exceeding the clipping threshold, h(x) is the histogram of the image block, and floor(.) is rounded down.
[0088] After performing histogram equalization on all image blocks, the grayscale of each image block changes because the histograms of each image block before and after equalization are different. If the enhanced image is generated directly based on the equalized image blocks, the correlation between adjacent blocks will be ignored, affecting the image enhancement effect. To this end, the bisexual interpolation method can be used to determine the pixels between adjacent image blocks, enhance the image enhancement effect, and improve image processing efficiency.
[0089] In this embodiment, optionally, in step 1, an image enhancement method is used to enhance the input image, including:
[0090] For an input image with normal brightness and high contrast, a contrast-limited adaptive histogram equalization method is used to perform detail enhancement on the input image to obtain the enhanced image.
[0091] Specifically, for an input image with normal brightness and high contrast, or an input image with high contrast and restored to normal brightness after brightness enhancement, the above-mentioned restricted adaptive histogram equalization method can be directly used to perform detail enhancement.
[0092] In this embodiment, optionally, in step 2, dynamically adjusting the grayscale threshold according to the image brightness, image intensity and adjustment parameters includes:
[0093] The adjustment parameters are adjusted according to the application scenario of visual SLAM.
[0094] Specifically, after acquiring the enhanced image, the image intensity standard deviation of the enhanced image can be calculated first, and then the grayscale threshold can be calculated based on the image intensity standard deviation, image brightness and adjustment parameters of the enhanced image. After the grayscale threshold is calculated, the enhanced image can be subjected to feature point extraction using an existing feature point extraction method, such as SIFT, SURF or ORB feature point extraction method, based on the adjusted grayscale threshold, thereby ensuring that sufficient and evenly distributed feature points can be extracted under different lighting conditions.
[0095] The specific calculation formula of the grayscale threshold is as follows:
[0096] t=(ω-A)*λ;
[0097] Wherein, t is the grayscale threshold, ω is the adjustment parameter, and A is the image brightness. The adjustment parameter can be adjusted according to the application scenario of the visual SLAM positioning system to achieve the best feature extraction effect.
[0098] A visual SLAM positioning method, comprising:
[0099] The feature point extraction method described above is used to extract feature points from the acquired input image.
[0100] Specifically, the feature point extraction method described above can be used to extract features from each frame of input images collected by the camera in a low-light environment, thereby extracting enough and evenly distributed feature points, and matching them between different frames to construct the motion trajectory of the feature points. The motion trajectory of the feature points can then be used to estimate the position and posture of the camera, thereby constructing a three-dimensional map.
[0101] like Figure 2 The system block diagram of the feature point extraction system of the visual SLAM shown in FIG. 1 includes:
[0102] An image enhancement module is configured to obtain an input image and perform image enhancement on the input image using an image enhancement method to obtain an enhanced image;
[0103] The feature extraction module is configured to dynamically adjust the grayscale threshold according to the image brightness, image intensity and adjustment parameters of the enhanced image, and extract feature points of the enhanced image based on the adjusted grayscale threshold.
[0104] Specifically, the extraction system is composed of an image enhancement module and a feature extraction module. Among them, the image enhancement module can use an image enhancement method to enhance the input image collected under low light conditions, thereby improving the contrast and brightness of the input image, obtaining an enhanced image with richer image detail information, and providing a basis for the subsequent extraction of sufficient number and high-quality feature points. The feature extraction module can dynamically adjust the grayscale threshold used for feature point extraction according to the image brightness and image intensity of the enhanced image, and according to the adjusted grayscale threshold, use the existing feature point extraction method to extract feature points from the enhanced image, thereby ensuring that sufficient and evenly distributed feature points can be extracted under different lighting conditions.
[0105] A visual SLAM positioning system, comprising:
[0106] The feature point extraction module is configured to extract feature points from the acquired input image using the above feature point extraction method.
[0107] Specifically, the visual SLAM positioning system includes a feature point extraction module, which can use an image enhancement method to enhance the input image collected under low light conditions, thereby improving the contrast and brightness of the input image, obtaining an enhanced image with richer image detail information, and providing a basis for the subsequent extraction of sufficient number and high-quality feature points. The grayscale threshold used for feature point extraction can also be dynamically adjusted according to the image brightness and image intensity of the enhanced image, and the existing feature point extraction method can be used to extract feature points from the enhanced image according to the adjusted grayscale threshold, thereby ensuring that sufficient and evenly distributed feature points can be extracted under different lighting conditions.
[0108] The above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein by equivalents. These modifications or replacements do not make the essence of the corresponding technical solutions deviate from the scope of the technical solutions of the embodiments of the present invention, and they should all be covered by the scope of the claims and the specification.
Claims
1. A feature point extraction method for visual SLAM, characterized in that: include: Acquire an input image, and perform image enhancement on the input image using an image enhancement method to obtain an enhanced image; The grayscale threshold is dynamically adjusted according to the image brightness, image intensity and adjustment parameters of the enhanced image, and feature points are extracted from the enhanced image based on the adjusted grayscale threshold.
2. The feature point extraction method of visual SLAM according to claim 1, characterized in that, The input image is enhanced by using an image enhancement method, comprising: For an input image with low brightness, an illumination map estimation algorithm is used to estimate an illumination map corresponding to the input image, and image enhancement is performed on the input image using the illumination map.
3. The feature point extraction method of visual SLAM according to claim 1, characterized in that, The input image is enhanced by using an image enhancement method, comprising: For an input image with normal brightness and low contrast, a gamma correction method is used to enhance the contrast of the input image.
4. The feature point extraction method of visual SLAM according to claim 3, characterized in that, The input image is contrast enhanced by using a gamma correction method, comprising: Calculate the probability density function corresponding to each level of pixel intensity in the input image; Smoothing the probability density function corresponding to each level of pixel intensity, and determining the cumulative distribution function corresponding to each level of pixel intensity based on the smoothed probability distribution function; Based on the cumulative distribution function, the gamma value corresponding to each level of pixel intensity is calculated using the cumulative distribution function truncation method; The contrast of each pixel in the input image is enhanced respectively by using the corresponding gamma value.
5. The feature point extraction method of visual SLAM according to claim 1, characterized in that, The input image is enhanced by using an image enhancement method, comprising: A contrast-limited adaptive histogram equalization method is used to perform detail enhancement on the input image enhanced by the image enhancement method to obtain the enhanced image.
6. The feature point extraction method of visual SLAM according to claim 1, characterized in that: The input image is enhanced by using an image enhancement method, comprising: For an input image with normal brightness and high contrast, a contrast-limited adaptive histogram equalization method is used to perform detail enhancement on the input image to obtain the enhanced image.
7. The feature point extraction method of visual SLAM according to claim 1, characterized in that: Dynamically adjust grayscale thresholds based on image brightness, image intensity, and adjustment parameters, including: The adjustment parameters are adjusted according to the application scenario of visual SLAM.
8. A visual SLAM positioning method, characterized in that: include: The feature point extraction method according to any one of claims 1 to 7 is used to extract feature points from the acquired input image.
9. A feature point extraction system for visual SLAM, characterized in that: include: An image enhancement module is configured to obtain an input image and perform image enhancement on the input image using an image enhancement method to obtain an enhanced image; The feature extraction module is configured to dynamically adjust the grayscale threshold according to the image brightness, image intensity and adjustment parameters of the enhanced image, and extract feature points of the enhanced image based on the adjusted grayscale threshold.
10. A visual SLAM positioning system, characterized in that: include: The feature point extraction module is configured to extract feature points from the acquired input image using the feature point extraction method according to any one of claims 1 to 7.
Citation Information
Patent Citations
Wheelchair indoor navigation system based on visual SLAM
CN115077532A
Self-adaptive visual SLAM (Simultaneous Localization and Mapping) method adaptive to variable illumination environment
CN115526811A
Low-illumination visual inertial positioning system
CN116592878A
Underground V-SLAM feature matching improvement method based on image defogging and enhancement
CN118379522A
Bipartite histogram equalization apparatus maintain the rate of mean brightness of video using visual threshold
KR101516632B1
