Gradient tensor-based terrain structure feature extraction method and system
Through the gradient tensor-based terrain structure feature extraction method, the problem of inaccurate UAV navigation in harsh climates is solved, and all-weather autonomous navigation capabilities in harsh environments are achieved.
Patent Information
- Application Number
- CN202410630844.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-21
- Publication Date
- 2024-08-23
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Traditional UAV navigation is unable to carry out all-weather autonomous navigation in harsh climate conditions, and existing image processing methods cannot accurately identify terrain features in heterogeneous images collected by different sensors, resulting in inaccurate navigation.
The terrain structure feature extraction method based on the gradient tensor is used, the cubic spline difference method is used for oversampling processing, the two-dimensional tensor is calculated, the sliding window processing and tensor decomposition are performed, and the curve significance coefficient is combined for tensor voting and fusion. , to generate the final gradient tensor map to extract terrain structure features.
It retains image details while suppressing noise, improves the adaptability of image matching to noise, and supports all-weather autonomous navigation of drones in harsh weather conditions.
Smart Images

Figure CN118537582A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of visual image processing, and in particular to a method and system for extracting terrain structure features based on gradient tensor. Background Art
[0002] Traditional UAV navigation relies on satellites, which are susceptible to external interference in wartime environments and cannot guarantee the safety and reliability of flight. Visual navigation is an effective navigation method under satellite denial conditions, but the existing image processing methods are mostly visible light-visible light and visible light-infrared matching navigation, which cannot cope with severe weather conditions. According to the airborne laser aperture radar (SAR) to collect ground images and match them with pre-bound visible light reference maps to obtain current position information is an important field in the research of UAV all-weather navigation. According to the strong penetration ability of SAR, it can effectively deal with the problem of ground feature extraction under severe weather conditions such as rain, snow, and fog. Heterogeneous matching with visible light images has a very broad application prospect in the field of autonomous navigation of UAVs. However, the traditional image feature extraction method is based on grayscale features and is realized by comparing the pixel size around the corner point. For the same object or scene, the grayscale information of the image collected by different types of visual sensor equipment is very different. When using this method to extract features from heterogeneous images collected by different sensors, it is impossible to accurately identify them. Therefore, in the field of UAV navigation, it is impossible to extract accurate contour information in scenes covered by rain, snow, and smoke. Summary of the invention
[0003] The present invention provides a terrain structure feature extraction method and system based on gradient tensor, which can solve the technical problem in the prior art that all-weather autonomous navigation cannot be performed in bad weather under satellite denial conditions.
[0004] According to one aspect of the present invention, a method for extracting terrain structure features based on gradient tensor is provided, the method comprising:
[0005] S1, using a cubic spline interpolation method to perform supersampling processing on the original image to obtain a supersampled image;
[0006] S2, calculating the two-dimensional tensor of each pixel in the super-sampled image to obtain a gradient tensor map of the super-sampled image;
[0007] S3, sliding windows of different scales are used to slide pixels in the original image to obtain images of different scales, and the two-dimensional tensor of each pixel in the image of each scale is calculated to obtain a gradient tensor map corresponding to the image of each scale;
[0008] S4, each two-dimensional tensor is divided into Decompose, where T represents a two-dimensional tensor, λ1 represents the first eigenvalue, λ2 represents the second eigenvalue, e1 represents the first eigenvector, e2 represents the second eigenvector, and λ1-λ2 represents the curve significance coefficient;
[0009] S5, using the decomposed two-dimensional tensor to calculate the tensor voting result of each pixel in each of the aforementioned gradient tensor maps within the preset voting area;
[0010] S6, fusing the tensor voting results in all the aforementioned gradient tensor graphs according to the curve significance coefficient to obtain a final gradient tensor graph;
[0011] S7, extracting terrain structure features through the final gradient tensor map.
[0012] Furthermore, the two-dimensional tensor is calculated by the following formula in both S2 and S3:
[0013]
[0014] In the above formula, I x ,I y are the partial derivatives of the corresponding image in the x and y directions respectively.
[0015] Furthermore, using the decomposed two-dimensional tensor to calculate the tensor voting result of each pixel in each of the aforementioned gradient tensor images within the preset voting area includes:
[0016] Calculate the voting tensor field for each pixel using a two-dimensional tensor to vote for any pixel;
[0017] The final voting result of the voting two-dimensional tensor voting on any pixel is calculated based on the curve significance coefficient of the aforementioned voting two-dimensional tensor and the corresponding voting tensor field;
[0018] The tensor voting result of the voted pixel is calculated based on the final voting result of voting on the voting pixel according to the two-dimensional tensor of all pixels in the preset voting area of the voted pixel.
[0019] Furthermore, the voting tensor field for any pixel is calculated by the two-dimensional tensor of each pixel using the following formula:
[0020]
[0021]
[0022]
[0023] In the above formula, O and P are any two pixels, S OP(l,θ,σ) represents the voting tensor field of the two-dimensional tensor of pixel O for any pixel P, DF(s,κ,σ) represents the voting strength, and α represents the direction of the two-dimensional tensor of pixel O and the voting direction , σ represents the scale parameter of the two-dimensional tensor for voting, its value is a positive integer greater than or equal to 1, the unit is pixel, and l represents the geometric distance between pixel O and pixel P.
[0024] Furthermore, the final voting result of the voting two-dimensional tensor voting on any pixel is calculated according to the curve significance coefficient of the aforementioned voting two-dimensional tensor and the corresponding voting tensor field by the following formula:
[0025] V OP =(λ1-λ2)S OP (l,θ,σ),
[0026] In the above formula, V OP A two-dimensional tensor representing the final voting result of pixel O voting for any pixel P.
[0027] Furthermore, the tensor voting result of the voted pixel is calculated by the following formula according to the final voting result of voting on the voting pixel based on the two-dimensional tensor of all pixels in the preset voting area of the voted pixel:
[0028]
[0029] In the above formula, TP represents the tensor voting result of the voted pixel P, and R represents the preset voting area, whose radius is r and is obtained by the following formula:
[0030]
[0031] In the above formula, λ is the set threshold.
[0032] Furthermore, S6 includes:
[0033] The maximum value of the curve significance coefficient of the two-dimensional tensor of the pixels at the same position in all gradient tensor images is obtained by comparison;
[0034] The tensor voting results in the gradient tensor map corresponding to the maximum value of the curve significance coefficient of each position pixel are fused to obtain the final gradient tensor map.
[0035] Furthermore, the tensor voting results in the gradient tensor map corresponding to the maximum value of the curve significance coefficient of each position pixel are fused by the following formula to obtain the final gradient tensor map:
[0036]
[0037] In the above formula, TP' represents the tensor voting result of each pixel in the final gradient tensor map obtained by fusion, Represents the first eigenvalue of the two-dimensional tensor of the pixel at the same position in the nth gradient tensor map, Represents the second eigenvalue of the two-dimensional tensor of the pixel at the same position in the nth gradient tensor map, Represents the curve significance coefficient of the two-dimensional tensor of the pixel at the same position in the nth gradient tensor map, where N represents the total number of gradient tensor maps.
[0038] Furthermore, the method further comprises, after S1 and before S2, using a Gaussian filter to smooth the super-sampled image.
[0039] According to another aspect of the present invention, a terrain structure feature extraction system based on gradient tensor is provided, the system comprising an image processing module, a gradient tensor map generation module, a tensor decomposition module, a tensor voting and fusion module and a feature extraction module;
[0040] The image processing module is used to perform supersampling processing on the original image using the cubic spline interpolation method to obtain a supersampled image; and to slide and traverse the pixels in the original image using sliding windows of different scales to obtain images of different scales;
[0041] The gradient tensor map generation module is used to calculate the two-dimensional tensor of each pixel in the super-sampled image to obtain the gradient tensor map of the super-sampled image; calculate the two-dimensional tensor of each pixel in the image of each scale to obtain the gradient tensor map corresponding to the image of each scale;
[0042] The tensor decomposition module is used to decompose each two-dimensional tensor into Decompose, where T represents a two-dimensional tensor, λ1 represents the first eigenvalue, λ2 represents the second eigenvalue, e1 represents the first eigenvector, e2 represents the second eigenvector, and λ1-λ2 represents the curve significance coefficient;
[0043] The tensor voting and fusion module is used to calculate the tensor voting result of each pixel in each of the aforementioned gradient tensor maps within the preset voting area using the decomposed two-dimensional tensor; the tensor voting results in all the aforementioned gradient tensor maps are fused according to the curve significance coefficient to obtain the final gradient tensor map;
[0044] The feature extraction module is used to extract terrain structure features through the final gradient tensor map.
[0045] By applying the technical solution of the present invention, a method and system for extracting terrain structure features based on gradient tensors are provided. The method obtains images of different scales by supersampling and sliding window processing the original image, obtains gradient tensor maps of different scales by calculating two-dimensional tensors for each pixel in the images of different scales, and then decomposes the two-dimensional tensor, and performs tensor voting and fusion on the gradient tensor maps of different scales based on the decomposed two-dimensional tensors and the curve significance coefficient to obtain the final gradient tensor map, and uses the final gradient tensor map to extract terrain structure features. The method can retain the detailed information of the image as much as possible while suppressing noise, so that the local tensor can best highlight the structural information in the image, thereby improving the adaptability of image matching to noise. The method has a very broad application prospect in many fields such as all-weather visual navigation of unmanned aerial vehicles, and can support the all-weather autonomous navigation capability of unmanned aerial vehicles under adverse weather conditions. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] The included drawings are used to provide a further understanding of the embodiments of the present invention, which constitute a part of the specification, are used to illustrate the embodiments of the present invention, and together with the text description, explain the principles of the present invention. Obviously, the drawings in the following description are only some embodiments of the present invention, and for ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0047] Figure 1 A schematic diagram of the process of extracting terrain structure features based on gradient tensor according to a specific embodiment of the present invention is shown;
[0048] Figure 2 A schematic diagram of a stick tensor and a spherical tensor provided according to a specific embodiment of the present invention is shown;
[0049] Figure 3 A schematic diagram of the decomposition principle of a two-dimensional tensor provided according to a specific embodiment of the present invention is shown;
[0050] Figure 4 A schematic diagram showing the meaning of related parameters of two-dimensional tensor voting provided according to a specific embodiment of the present invention is shown;
[0051] Figure 5 A schematic diagram of a voting tensor field provided according to a specific embodiment of the present invention is shown;
[0052] Figure 6 A schematic diagram of the structure of a terrain structure feature extraction system based on a gradient tensor provided according to a specific embodiment of the present invention is shown. DETAILED DESCRIPTION
[0053] It should be noted that, in the absence of conflict, the embodiments in this application and the features in the embodiments can be combined with each other. The technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. The following description of at least one exemplary embodiment is actually only illustrative and is by no means intended to limit the present invention and its application or use. Based on the embodiments in the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0054] It should be noted that the terms used herein are only for describing specific embodiments and are not intended to limit the exemplary embodiments according to the present application. As used herein, unless the context clearly indicates otherwise, the singular form is also intended to include the plural form. In addition, it should be understood that when the terms "comprise" and / or "include" are used in this specification, it indicates the presence of features, steps, operations, devices, components and / or combinations thereof.
[0055] Unless otherwise specifically stated, the relative arrangement of the parts and steps described in these embodiments, numerical expressions and numerical values do not limit the scope of the present invention. At the same time, it should be understood that, for ease of description, the sizes of the various parts shown in the accompanying drawings are not drawn according to the actual proportional relationship. The technology, method and equipment known to ordinary technicians in the relevant field may not be discussed in detail, but in appropriate cases, the technology, method and equipment should be regarded as a part of the authorization specification. In all examples shown and discussed here, any specific value should be interpreted as being merely exemplary, rather than as a limitation. Therefore, other examples of exemplary embodiments may have different values. It should be noted that similar reference numerals and letters represent similar items in the following drawings, so once a certain item is defined in an accompanying drawing, it does not need to be further discussed in subsequent drawings.
[0056] Extracting structural features such as lines and topological figures from images is an important area of research in visual image processing. For the same object or scene, different types of visual sensor devices collect image grayscale information that is very different, but the structural features are similar. Based on this, Figure 1 As shown, according to a specific embodiment of the present invention, a method for extracting terrain structure features based on gradient tensor is provided, and the method includes:
[0057] S1, using a cubic spline interpolation method to perform supersampling processing on the original image to obtain a supersampled image;
[0058] S2, calculating the two-dimensional tensor of each pixel in the super-sampled image to obtain a gradient tensor map of the super-sampled image;
[0059] S3, sliding windows of different scales are used to slide pixels in the original image to obtain images of different scales, and the two-dimensional tensor of each pixel in the image of each scale is calculated to obtain a gradient tensor map corresponding to the image of each scale;
[0060] S4, each two-dimensional tensor is divided into Decompose, where T represents a two-dimensional tensor, λ1 represents the first eigenvalue, λ2 represents the second eigenvalue, e1 represents the first eigenvector, e2 represents the second eigenvector, and λ1-λ2 represents the curve significance coefficient;
[0061] S5, using the decomposed two-dimensional tensor to calculate the tensor voting result of each pixel in each of the aforementioned gradient tensor images within the preset voting area;
[0062] S6, fusing the tensor voting results in all the aforementioned gradient tensor graphs according to the curve significance coefficient to obtain a final gradient tensor graph;
[0063] S7, extracting terrain structure features through the final gradient tensor map.
[0064] By applying this configuration, a method for extracting terrain structure features based on gradient tensors is provided. The method obtains images of different scales by supersampling and sliding window processing the original image, obtains gradient tensor maps of different scales by calculating two-dimensional tensors for each pixel in the images of different scales, and then decomposes the two-dimensional tensor, and performs tensor voting and fusion on the gradient tensor maps of different scales based on the decomposed two-dimensional tensors and the curve significance coefficient to obtain the final gradient tensor map, and uses the final gradient tensor map to extract terrain structure features. The method can retain the detailed information of the image as much as possible while suppressing noise, so that the local tensor can best highlight the structural information in the image, thereby improving the adaptability of image matching to noise. The method has a very broad application prospect in multiple fields such as all-weather visual navigation of unmanned aerial vehicles, and can support the all-weather autonomous navigation capability of unmanned aerial vehicles under severe weather conditions. Compared with the prior art, the technical solution of the present invention can solve the technical problem that all-weather autonomous navigation cannot be performed in severe weather under satellite denial conditions in the prior art.
[0065] Among them, in the embodiment of the present invention, the sliding window scale is determined according to the actual situation. Different sliding window scales can be used to obtain images of different scales. When the sliding window scale is a×a, it means that the sliding window contains a rows and a columns of pixels, that is, a total of a×a pixels. When the sliding window scale is 1×1, it means that the sliding window contains only one pixel, so the image obtained by sliding window processing is actually the original image. In the present invention, the two-dimensional tensor calculation of pixels in different scales actually uses multiple local pixels in the original image. This local calculation process will lose image details to a certain extent. Therefore, in order to reduce the loss of details, the aforementioned process of the present invention also includes supersampling the original image to obtain a supersampled image, and then calculate the gradient tensor map of the supersampled image. By processing the original image in two ways, supersampling and sliding window processing can take into account both structural feature amplification and image detail processing, thereby improving the feature extraction accuracy.
[0066] Furthermore, in the embodiment of the present invention, the two-dimensional tensor is calculated by the following formula in both S2 and S3:
[0067]
[0068] In the above formula, I x ,I y are the partial derivatives of the corresponding image in the x and y directions respectively.
[0069] In addition, in order to reduce the noise of the super-sampled image, in an embodiment of the present invention, the feature extraction method further includes smoothing the super-sampled image using a Gaussian filter after S1 and before S2. Specifically, assuming that the pixel size of the original image I is m×m, a super-sampled image I′ is obtained using a cubic spline interpolation method, and the size is (2ξ+1)m×(2ξ+1)m, where ξ≥1. Then, a Gaussian filter with a kernel size of (2ξ+1)×(2ξ+1) is used to smooth the image I′. For the super-sampled image after Gaussian filtering, the two-dimensional tensor of its pixels is calculated according to the following formula:
[0070]
[0071] In the above formula, G ξ represents a Gaussian filter with a kernel size of (2ξ+1)×(2ξ+1).
[0072] The two-dimensional tensor obtained based on the above embodiment is a 2×2 matrix, so the dimension of the gradient tensor of the super-sampled image is (2ξ+1)m×(2ξ+1)m×2×2, and the size of the original image is fixed m×m, so the dimension of the gradient tensor of the original image is m×m×2×2.
[0073] Furthermore, in the embodiment of the present invention, the decomposition formula for the two-dimensional tensor is The larger the λ1-λ2 is, the more likely the pixels corresponding to the two-dimensional tensor are on the curve structure. For two-dimensional images, the curve structure usually corresponds to edge features. Figure 2 and Figure 3 According to the eigenvalues λ1 and λ2, the two-dimensional tensor can be decomposed into a stick tensor (λ2=0) and a spherical tensor (λ1=λ2). An arbitrary two-dimensional tensor can be decomposed into a linear combination of a stick tensor and a spherical tensor.
[0074] It can be seen from the calculation process of the above two-dimensional tensor that each two-dimensional tensor can only reflect the information within a very small window (depending on the size of the sliding window, such as 3×3, 5×5), which limits the directional distinguishability of the gradient tensor map and the ability to highlight the image structure. In order to solve this problem, the embodiment of the present invention designs a tensor voting algorithm based on the Gestalt principle. Specifically, the decomposed two-dimensional tensor is used to calculate the tensor voting result of each pixel in each gradient tensor map in the preset voting area, including:
[0075] Calculate the voting tensor field for each pixel using a two-dimensional tensor to vote for any pixel;
[0076] The final voting result of the voting two-dimensional tensor voting on any pixel is calculated based on the curve significance coefficient of the aforementioned voting two-dimensional tensor and the corresponding voting tensor field;
[0077] The tensor voting result of the voted pixel is calculated based on the final voting result of voting on the voting pixel according to the two-dimensional tensor of all pixels in the preset voting area of the voted pixel.
[0078] Please refer to Figure 4 In the embodiment, O and P are two pixel positions on the same image. After the above two-dimensional tensor calculation is completed, each pixel has a 2×2 tensor description, that is, the corresponding two-dimensional tensor. The voting process is similar to weighted filtering, that is, the tensor voting result of each pixel is obtained by the two-dimensional tensors of itself and the surrounding pixels. The result of the vote of pixel O on the two-dimensional tensor P is calculated by the following formula:
[0079]
[0080]
[0081]
[0082] In the above formula, S OP (l,θ,σ) represents the result of the two-dimensional tensor of pixel O voting on pixel P, DF(s,κ,σ) represents the voting strength, and α represents the direction of the two-dimensional tensor of pixel O and the voting direction , σ represents the scale parameter of the two-dimensional tensor for voting, and its value is a positive integer greater than or equal to 1, in pixels. The larger its value, the larger the range of points participating in the voting. l represents the geometric distance between pixel O and pixel P.
[0083] From the calculation results of the above tensor voting, it can be seen that the vote of the two-dimensional tensor of pixel O on pixel P is actually a stick tensor. If pixel P is regarded as an arbitrary pixel point, a voting tensor field describing the two-dimensional tensor of pixel O voting on any pixel P in the surrounding area can be obtained, such as Figure 5 In this way, the voting tensor field for each pixel's two-dimensional tensor to vote for any pixel can be calculated.
[0084] Based on the above embodiment, in the embodiment of the present invention, the curve significance of the two-dimensional tensor (voting tensor) of pixel O multiplied by the voting tensor field is the final voting result. That is, the present invention calculates the final voting result of the voting two-dimensional tensor voting on any pixel according to the curve significance coefficient of the aforementioned voting two-dimensional tensor and the corresponding voting tensor field through the following formula:
[0085] V OP =(λ1-λ2)S OP (l,θ,σ),
[0086] In the above formula, V OP A two-dimensional tensor representing the final voting result of pixel O voting for any pixel P.
[0087] Further, in the embodiment of the present invention, the tensor voting result of any pixel point P can be obtained by accumulating the final voting results of the two-dimensional tensor of the surrounding area on the pixel. That is, the present invention calculates the tensor voting result of the voted pixel according to the final voting result of the two-dimensional tensor of all pixels in the preset voting area of the voted pixel by the following formula:
[0088]
[0089] In the above formula, TP represents the tensor voting result of the voted pixel P, and R represents the preset voting area, whose radius is r and is obtained by the following formula:
[0090]
[0091] In the above formula, λ is the set threshold, which is a configurable parameter. Its value is determined according to the actual situation. For example, it can be 0.01, indicating that the voting weight above the distance r is less than 0.01.
[0092] Through the above tensor voting method, local tensors can be correlated with each other as a whole, thereby highlighting the image structure more effectively.
[0093] In addition, a too small tensor calculation window (sliding window scale) will not only reduce the ability of the gradient tensor graph to highlight the image structure, but also make the tensor calculation susceptible to noise. Blindly expanding the size of the tensor calculation window will reduce the ability of the gradient tensor graph to reflect the image detail information. The goal of the gradient tensor graph extraction is to highlight the structural information of the image. Therefore, in an embodiment of the present invention, the tensors are fused after the tensor voting. Specifically, each pixel P in the original image has a corresponding position P on images of different scales (including super-sampled images). n , P is calculated on the tensor gradient map corresponding to images of different scales n According to the aforementioned tensor voting method, the tensors TP of pixel P at different scales are calculated. n Then, the tensor voting results in all the above-mentioned gradient tensor graphs are fused according to the curve significance coefficient using the following formula to obtain the final gradient tensor graph.
[0094] That is, in the embodiment of the present invention, S6 includes:
[0095] The maximum value of the curve significance coefficient of the two-dimensional tensor of the pixels at the same position in all gradient tensor images is obtained by comparison;
[0096] The tensor voting results in the gradient tensor map corresponding to the maximum value of the curve significance coefficient of each position pixel are fused to obtain the final gradient tensor map.
[0097] Specifically, in the embodiment of the present invention, the tensor voting results in the gradient tensor map corresponding to the maximum value of the curve significance coefficient of each position pixel are fused by the following formula to obtain the final gradient tensor map:
[0098]
[0099] In the above formula, TP' represents the tensor voting result of each pixel in the final gradient tensor map obtained by fusion, Represents the first eigenvalue of the two-dimensional tensor of the pixel at the same position in the nth gradient tensor map, Represents the second eigenvalue of the two-dimensional tensor of the pixel at the same position in the nth gradient tensor map, Represents the curve significance coefficient of the two-dimensional tensor of the pixel at the same position in the nth gradient tensor map, where N represents the total number of gradient tensor maps.
[0100] It can be seen from the above formula that the idea of tensor fusion in the present invention is to select the tensor with the largest curve significance coefficient from the tensor voting results obtained from the gradient tensor graphs of each scale as the final tensor. In this way, the detailed information of the image can be retained as much as possible while suppressing the noise, so that the local tensor can best highlight the structural information in the image, thereby improving the adaptability of image matching to noise.
[0101] Please refer to Figure 6 According to another aspect of the present invention, a terrain structure feature extraction system based on gradient tensor is provided, the system comprising an image processing module, a gradient tensor map generation module, a tensor decomposition module, a tensor voting and fusion module and a feature extraction module;
[0102] The image processing module is used to perform supersampling processing on the original image using the cubic spline interpolation method to obtain a supersampled image; and to slide and traverse the pixels in the original image using sliding windows of different scales to obtain images of different scales;
[0103] The gradient tensor map generation module is used to calculate the two-dimensional tensor of each pixel in the super-sampled image to obtain the gradient tensor map of the super-sampled image; calculate the two-dimensional tensor of each pixel in the image of each scale to obtain the gradient tensor map corresponding to the image of each scale;
[0104] The tensor decomposition module is used to decompose each two-dimensional tensor into Decompose, where T represents a two-dimensional tensor, λ1 represents the first eigenvalue, λ2 represents the second eigenvalue, e1 represents the first eigenvector, e2 represents the second eigenvector, and λ1-λ2 represents the curve significance coefficient;
[0105] The tensor voting and fusion module is used to calculate the tensor voting result of each pixel in each of the aforementioned gradient tensor maps within the preset voting area using the decomposed two-dimensional tensor; the tensor voting results in all the aforementioned gradient tensor maps are fused according to the curve significance coefficient to obtain the final gradient tensor map;
[0106] The feature extraction module is used to extract terrain structure features through the final gradient tensor map.
[0107] In summary, the present invention provides a method and system for extracting terrain structure features based on gradient tensors. The method obtains images of different scales by supersampling and sliding window processing the original image, obtains gradient tensor maps of different scales by calculating two-dimensional tensors for each pixel in the images of different scales, and then decomposes the two-dimensional tensor, and performs tensor voting and fusion on the gradient tensor maps of different scales based on the decomposed two-dimensional tensors and the curve significance coefficient to obtain the final gradient tensor map, and uses the final gradient tensor map to extract terrain structure features. The method can retain the detailed information of the image as much as possible while suppressing noise, so that the local tensor can best highlight the structural information in the image, thereby improving the adaptability of image matching to noise. The method has a very broad application prospect in multiple fields such as all-weather visual navigation of unmanned aerial vehicles, and can support the all-weather autonomous navigation capability of unmanned aerial vehicles under severe weather conditions. Compared with the prior art, the technical solution of the present invention can solve the technical problem that all-weather autonomous navigation cannot be performed in severe weather under satellite denial conditions in the prior art.
[0108] For ease of description, spatially relative terms such as "above", "above", "on the upper surface of", "above", etc. may be used here to describe the spatial positional relationship between a device or feature and other devices or features as shown in the figure. It should be understood that spatially relative terms are intended to include different orientations of the device in use or operation in addition to the orientation described in the figure. For example, if the device in the accompanying drawings is inverted, the device described as "above other devices or structures" or "above other devices or structures" will be positioned as "below other devices or structures" or "below other devices or structures". Thus, the exemplary term "above" can include both "above" and "below". The device can also be positioned in other different ways (rotated 90 degrees or in other orientations), and the spatially relative descriptions used here are interpreted accordingly.
[0109] In addition, it should be noted that the use of terms such as "first" and "second" to limit components is only for the convenience of distinguishing the corresponding components. If not otherwise stated, the above terms have no special meaning and therefore cannot be understood as limiting the scope of protection of the present invention.
[0110] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A terrain structure feature extraction method based on gradient tensor, characterized in that: The method comprises: S1, using a cubic spline interpolation method to perform supersampling processing on the original image to obtain a supersampled image; S2, calculating a two-dimensional tensor of each pixel in the super-sampled image to obtain a gradient tensor map of the super-sampled image; S3, respectively slidingly traversing the pixels in the original image using sliding windows of different scales to obtain images of different scales, and calculating the two-dimensional tensor of each pixel in the image of each scale to obtain a gradient tensor map corresponding to the image of each scale; S4, each two-dimensional tensor is divided into Decompose, where T represents a two-dimensional tensor, λ1 represents the first eigenvalue, λ2 represents the second eigenvalue, e1 represents the first eigenvector, e2 represents the second eigenvector, and λ1-λ2 represents the curve significance coefficient; S5, using the decomposed two-dimensional tensor to calculate the tensor voting result of each pixel in each of the aforementioned gradient tensor maps within the preset voting area; S6, fusing the tensor voting results in all the aforementioned gradient tensor graphs according to the curve significance coefficient to obtain a final gradient tensor graph; S7, extracting terrain structure features through the final gradient tensor map.
2. The method according to claim 1, characterized in that In both S2 and S3, the two-dimensional tensor is calculated using the following formula: In the above formula, I x ,I y are the partial derivatives of the corresponding image in the x and y directions respectively.
3. The method according to claim 2, characterized in that The decomposed two-dimensional tensor is used to calculate the tensor voting results of each pixel in each gradient tensor map in the preset voting area, including: Calculate the voting tensor field for each pixel using a two-dimensional tensor to vote for any pixel; The final voting result of the voting two-dimensional tensor voting on any pixel is calculated based on the curve significance coefficient of the aforementioned voting two-dimensional tensor and the corresponding voting tensor field; The tensor voting result of the voted pixel is calculated based on the final voting result of voting on the voting pixel according to the two-dimensional tensor of all pixels in the preset voting area of the voted pixel.
4. The method according to claim 3, characterized in that The voting tensor field for any pixel is calculated as a two-dimensional tensor for each pixel using the following formula: In the above formula, O and P are any two pixels, S OP (l,θ,σ) represents the voting tensor field of the two-dimensional tensor of pixel O for any pixel P, DF(s,κ,σ) represents the voting strength, and α represents the direction of the two-dimensional tensor of pixel O and the voting direction , σ represents the scale parameter of the two-dimensional tensor for voting, its value is a positive integer greater than or equal to 1, the unit is pixel, and l represents the geometric distance between pixel O and pixel P.
5. The method according to claim 4, characterized in that The final voting result of the voting two-dimensional tensor voting on any pixel is calculated by the following formula based on the curve significance coefficient of the aforementioned voting two-dimensional tensor and the corresponding voting tensor field: V OP =(λ1-λ2)S OP (l,θ,σ), In the above formula, V OP A two-dimensional tensor representing the final voting result of pixel O voting for any pixel P.
6. The method according to claim 5, characterized in that The tensor voting result of the voted pixel is calculated by the following formula based on the two-dimensional tensor of all pixels in the preset voting area of the voted pixel to obtain the final voting result of the voting pixel: In the above formula, TP represents the tensor voting result of the voted pixel P, and R represents the preset voting area, whose radius is r and is obtained by the following formula: In the above formula, λ is the set threshold.
7. The method according to claim 1, characterized in that S6 include: The maximum value of the curve significance coefficient of the two-dimensional tensor of the pixels at the same position in all gradient tensor images is obtained by comparison; The tensor voting results in the gradient tensor map corresponding to the maximum value of the curve significance coefficient of each position pixel are fused to obtain the final gradient tensor map.
8. The method according to claim 7, characterized in that The tensor voting results in the gradient tensor map corresponding to the maximum value of the curve significance coefficient of each pixel at each position are fused by the following formula to obtain the final gradient tensor map: In the above formula, TP' represents the tensor voting result of each pixel in the final gradient tensor map obtained by fusion, Represents the first eigenvalue of the two-dimensional tensor of the pixel at the same position in the nth gradient tensor map, Represents the second eigenvalue of the two-dimensional tensor of the pixel at the same position in the nth gradient tensor map, Represents the curve significance coefficient of the two-dimensional tensor of the pixel at the same position in the nth gradient tensor map, and N represents the total number of gradient tensor maps.
9. The method according to any one of claims 1 to 8, characterized in that The method further comprises smoothing the super-sampled image using a Gaussian filter after S1 and before S2.
10. A terrain structure feature extraction system based on gradient tensor, characterized in that: The system includes an image processing module, a gradient tensor map generation module, a tensor decomposition module, a tensor voting and fusion module, and a feature extraction module; The image processing module is used to perform supersampling processing on the original image using a cubic spline interpolation method to obtain a supersampled image; Using sliding windows of different scales to slide and traverse the pixels in the original image to obtain images of different scales; The gradient tensor map generation module is used to calculate the two-dimensional tensor of each pixel in the super-sampled image to obtain the gradient tensor map of the super-sampled image; calculate the two-dimensional tensor of each pixel in the image of each scale to obtain the gradient tensor map corresponding to the image of each scale; The tensor decomposition module is used to decompose each two-dimensional tensor according to Decompose, where T represents a two-dimensional tensor, λ1 represents the first eigenvalue, λ2 represents the second eigenvalue, e1 represents the first eigenvector, e2 represents the second eigenvector, and λ1-λ2 represents the curve significance coefficient; The tensor voting and fusion module is used to calculate the tensor voting result of each pixel in each of the aforementioned gradient tensor maps within a preset voting area using the decomposed two-dimensional tensor; and fuse the tensor voting results in all the aforementioned gradient tensor maps according to the curve significance coefficient to obtain a final gradient tensor map; The feature extraction module is used to extract terrain structure features through the final gradient tensor map.
Citation Information
Patent Citations
Heterologous image matching method based on multi-scale dense structure feature extraction
CN109657717A
Cited By
Bagging machine conveying detection system based on industrial vision
CN122066697A
Industrial vision-based bagging machine conveying detection system
CN122066697B
