Laser radar depth completion algorithm based on image terrain map
Through deep neural network and circular neighborhood statistical convolution kernel technology, the image terrain map is constructed and the LiDAR data offset is corrected, which solves the efficiency problem of the existing depth completion algorithm in processing depth discontinuous areas and limited resource equipment, and achieves High-precision and robust depth information completion.
Patent Information
- Application Number
- CN202410852095.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-28
- Publication Date
- 2024-10-25
AI Technical Summary
Existing depth completion algorithms are ineffective in processing depth discontinuous areas, resulting in blurred depth edges, unable to accurately represent step changes in depth, and are difficult to run efficiently on devices with limited resources and have poor robustness. Difficulty adapting to different environmental changes.
Perform edge detection and refinement through deep neural networks, construct image topography maps, use circular neighborhood statistical convolution kernels to separate foreground and background of LiDAR data, correct the spatial offset between the RGB camera and LiDAR sensor, and correct the spatial offset between the RGB camera and LiDAR sensor. Calculate the local mean within the weighted neighborhood to complete the depth information.
It achieves high-precision depth information completion, improves the coherence and accuracy of depth information, ensures efficient operation on devices with limited resources, and has good robustness in unfamiliar environments.
Smart Images

Figure CN118840404A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of image processing and computer vision, and in particular to a laser radar depth completion algorithm based on an image relief map. Background Art
[0002] In the field of autonomous driving and autonomous mobile robots, the environment perception module is one of the key components. LiDAR depth completion algorithm based on image terrain map is of great significance in image completion. Existing depth completion algorithms are mainly based on deep learning and the combination of LiDAR data and images to reconstruct dense depth maps. However, these methods have some significant problems:
[0003] Traditional methods directly upsample the original depth information. Although they try to protect the edges of dense depth maps, the depth of objects in the completed results expands significantly compared to the true value, resulting in inaccurate depth edges and loss of the meaning of target boundaries. Existing deep learning methods do not work well when dealing with depth discontinuous areas. The depth edges are blurred and cannot accurately show step changes in depth. Traditional methods find it difficult to effectively protect edges during depth completion, resulting in blurred edges and information loss.
[0004] Traditional technologies have the following deficiencies or defects when facing the above problems:
[0005] Most of the existing end-to-end depth completion algorithms are black box models, lacking in interpretability and difficult to understand and debug. Most deep learning algorithms require a lot of computing resources and are difficult to run efficiently on devices with limited resources. Existing methods have poor robustness in unfamiliar environments and are difficult to adapt to different data sets and environmental changes. Summary of the invention
[0006] In view of the many problems existing in the above-mentioned prior art, the present invention provides a laser radar depth completion algorithm based on image relief map. The present invention combines laser radar (LiDAR) data to complete depth information; the specific steps include: using a deep neural network to detect the edge of the image to obtain the initial edge; performing anisotropic Gaussian filtering and non-maximum suppression processing on the initial edge to obtain a refined edge; removing local noise in the refined edge by a double threshold limiting method to obtain a final single-pixel edge; based on the final single-pixel edge, constructing an image relief map, and updating the relief value of the pixel position by diffusion of the edge area; using a circular neighborhood statistical convolution kernel (CNS) to separate the foreground and background of LiDAR data, correct the spatial offset between the RGB camera and the LiDAR sensor, and using the image relief map to assist in identifying and correcting outliers; finally, in the corrected weighted neighborhood, the missing depth information is completed by calculating the local mean to generate a dense depth map; the present invention realizes high-precision depth information completion with good robustness and interpretability.
[0007] The LiDAR depth completion algorithm based on image relief map includes the following steps:
[0008] The image is edge detected through a deep neural network to obtain the initial edge; the initial edge is processed by anisotropic Gaussian filtering and non-maximum suppression to obtain the refined edge; the local noise in the refined edge is removed by the double threshold limiting method to obtain the single pixel edge;
[0009] The circular neighborhood statistical convolution kernel is used to separate the foreground and background of LiDAR data, correct the spatial offset between the RGB camera and the LiDAR sensor, and identify and correct outliers through the depth information threshold;
[0010] Based on the final single-pixel edge, an image relief map is constructed, and the relief value of the pixel position is diffused and updated through the edge area; the position and scale of the weighted neighborhood are corrected according to the image relief map, and the center position and size of the filter kernel are determined; within the corrected weighted neighborhood, the missing depth information is supplemented by calculating the local mean, and finally a dense depth map is generated.
[0011] Preferably, the anisotropic Gaussian filtering and non-maximum suppression processing process includes the following formula:
[0012]
[0013] Among them, I main Represents the main direction image, which is the image obtained after anisotropic Gaussian filtering; I edge represents the initial edge image, obtained by edge detection; Represents an anisotropic Gaussian filter kernel for convolution operation.
[0014] Preferably, in the non-maximum suppression, the thinned edge I is obtained nms The formula is as follows:
[0015] I nmS =conv(l edge , I main )
[0016] Among them, I nms Represents the refined edge image, the image after non-maximum suppression processing.
[0017] Preferably, the process of removing local noise in the thinned edge by the dual threshold limiting method comprises the following steps:
[0018] By setting a high threshold and a low threshold, the part of the refined edge smaller than the low threshold is removed, and the part higher than the high threshold is retained to obtain the final single-pixel edge I thin .
[0019] Preferably, in the process of separating the foreground and background of LiDAR data using a circular neighborhood statistical convolution kernel, CNS is determined by the following formula:
[0020]
[0021] in, represents the center pixel p i The circular neighborhood statistical convolution kernel of p d represents pixels within a circular neighborhood; represents the center pixel p i The neighborhood set of ; k represents the neighborhood scale.
[0022] Preferably, in the process of constructing the image relief map, the relief value of each pixel position in the image is defined by the following formula:
[0023]
[0024] in, Represents the pixel position p in image I Δ The terrain value of ; Δ represents the Manhattan distance from the pixel position to the nearest edge; step represents the number of diffusion iterations.
[0025] Preferably, during the diffusion process of the terrain value, the diffusion speed is 1 pixel / step, and each time the diffusion operation is iterated, the terrain values of the edge and the adjacent pixels diffused to are synchronously increased by one unit.
[0026] Preferably, in the process of position correction and scale determination, the scale of the weighted neighborhood is determined by the following formula:
[0027]
[0028] in, Represents the pixel position p i The weighted neighborhood scale of ; Indicates the pixel position p i The terrain value.
[0029] Preferably, during the depth completion process, the missing depth information is completed using the following formula:
[0030]
[0031] in, represents the average distribution of each pixel; N represents the number of pixels contained in the CNS; f(p j ) indicates p j The depth value at the pixel location.
[0032] Compared with the prior art, the advantages and beneficial effects of the present invention are:
[0033] The present invention realizes accurate edge information extraction and noise removal through edge detection and thinning technical means, ensuring the accuracy of basic data for constructing relief maps;
[0034] The present invention realizes accurate reflection of pixel position and edge distance by constructing image relief map and performing relief value diffusion, thus providing reliable basic data for subsequent depth completion.
[0035] The present invention realizes effective separation of foreground and background by means of circular neighborhood statistical convolution kernel technology, and corrects the spatial offset between the RGB camera and the LiDAR sensor, ensuring data consistency;
[0036] The present invention complements the missing depth information by calculating the local mean, realizes the generation of dense depth map, and improves the coherence and accuracy of depth information;
[0037] This algorithm can run on the CPU without the need for data training models, achieving efficient operation on devices with limited resources and good robustness in unfamiliar environments. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] Figure 1 It is a schematic diagram of the flow chart of the algorithm of the present invention;
[0039] Figure 2 It is a structural diagram of the circular neighborhood statistical convolution kernel in the present invention;
[0040] Figure 3 This is a schematic diagram for determining the position of the CNS in the present invention;
[0041] Figure 4 Schematic diagram of CNS scale determination in the present invention. DETAILED DESCRIPTION
[0042] Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. However, it should be understood that these descriptions are exemplary only and are not intended to limit the scope of the present disclosure. In the following detailed description, for ease of explanation, many specific details are set forth to provide a comprehensive understanding of the embodiments of the present disclosure. However, it is obvious that one or more embodiments may also be implemented without these specific details. In addition, in the following description, descriptions of known structures and technologies are omitted to avoid unnecessary confusion of the concepts of the present disclosure.
[0043] The terms used herein are only for describing specific embodiments and are not intended to limit the present disclosure. The terms "comprise", "include", etc. used herein indicate the existence of the features, steps, operations and / or components, but do not exclude the existence or addition of one or more other features, steps, operations or components.
[0044] All terms (including technical and scientific terms) used herein have the meanings commonly understood by those skilled in the art, unless otherwise defined. It should be noted that the terms used herein should be interpreted as having a meaning consistent with the context of this specification, and should not be interpreted in an idealized or overly rigid manner.
[0045] In the case of using expressions such as "at least one of A, B, and C, etc.", it should generally be interpreted in accordance with the meaning of the expression generally understood by those skilled in the art (for example, "a system having at least one of A, B, and C" should include but is not limited to a system having A alone, B alone, C alone, A and B, A and C, B and C, and / or A, B, C, etc.). In the case of using expressions such as "at least one of A, B, or C, etc.", it should generally be interpreted in accordance with the meaning of the expression generally understood by those skilled in the art (for example, "a system having at least one of A, B, or C" should include but is not limited to a system having A alone, B alone, C alone, A and B, A and C, B and C, and / or A, B, C, etc.).
[0046] Some block diagrams and / or flow charts are shown in the accompanying drawings. It should be understood that some boxes or combinations thereof in the block diagrams and / or flow charts can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that these instructions can create a device for implementing the functions / operations described in these block diagrams and / or flow charts when executed by the processor. The technology of the present disclosure can be implemented in the form of hardware and / or software (including firmware, microcode, etc.). In addition, the technology of the present disclosure can take the form of a computer program product on a computer-readable storage medium storing instructions, which can be used by an instruction execution system or used in conjunction with an instruction execution system.
[0047] The LiDAR depth completion algorithm based on image relief map includes the following steps:
[0048] The image is edge detected through a deep neural network to obtain the initial edge; the initial edge is processed by anisotropic Gaussian filtering and non-maximum suppression to obtain the refined edge; the local noise in the refined edge is removed by the double threshold limiting method to obtain the single pixel edge;
[0049] Preferably, the anisotropic Gaussian filtering and non-maximum suppression processing process includes the following formula:
[0050]
[0051] Among them, I main Represents the main direction image, which is the image obtained after anisotropic Gaussian filtering; I edge represents the initial edge image, obtained by edge detection; Represents an anisotropic Gaussian filter kernel for convolution operation.
[0052] By setting the anisotropic Gaussian filter kernel With the initial edge I edge Perform convolution to obtain the main direction I corresponding to the edge pixel position main .
[0053] Preferably, in the non-maximum suppression, the thinned edge I is obtained nms The formula is as follows:
[0054] I nms =conv(I edge , I main )
[0055] Among them, I nms Represents the refined edge image, the image after non-maximum suppression processing.
[0056] In the main structural direction corresponding to each edge pixel, the pixel position with the maximum edge strength in the local neighborhood is obtained by non-maximum suppression as a superset of the refined edge result. In the case of non-unique maximum values and residual intensity structures, their influence is eliminated by convolution with the initial edge again.
[0057] Preferably, the process of removing local noise in the thinned edge by the dual threshold limiting method comprises the following steps:
[0058] By setting a high threshold and a low threshold, the part of the refined edge smaller than the low threshold is removed, and the part higher than the high threshold is retained to obtain the final single-pixel edge I thin .
[0059] The refined edges obtained so far have met the conditions for constructing the image relief map, but there are still some unrefined edges or local noise signals, which will lead to unnecessary constraints of non-target boundaries in the relief map results. In this regard, the double threshold method is used to remove local noise less than the lower threshold, and at the same time eliminate the influence of the unrefined boundaries between the upper and lower limits, and finally obtain the single-pixel edge I with uniform confidence. thin .
[0060] The circular neighborhood statistical convolution kernel is used to separate the foreground and background of LiDAR data, correct the spatial offset between the RGB camera and the LiDAR sensor, and identify and correct outliers through the depth information threshold;
[0061] Since there is a spatial offset between the RGB camera and the LiDAR sensor, this will cause the depth information camera coordinate system. i The similarity with neighboring pixels corrects this error.
[0062] like Figure 2 As shown, preferably, in the process of separating the foreground and background of LiDAR data using the circular neighborhood statistical convolution kernel, CNS is determined by the following formula:
[0063]
[0064] in, represents the center pixel p i The circular neighborhood statistical convolution kernel of p d represents pixels within a circular neighborhood; represents the center pixel p i The neighborhood set of ; k represents the neighborhood scale.
[0065] The present invention defines a circular neighborhood statistics convolution kernel (CNS) for counting the distribution of information such as color and depth in the local neighborhood of each pixel. Different from the traditional filter kernel, CNS is a circular area that selects the pixels with the center pixel p. i The set of pixels with the highest correlation coefficient. Its uniqueness is determined by setting the neighborhood scale k and the center position p i to determine (which is also the output of the relief map algorithm).
[0066] On a single target, its depth information should not change dramatically. Therefore, in order to separate the mixed depth information between foreground and background and remove the noise and outliers collected during the sensor sampling process, when the depth sampling in the local neighborhood changes beyond the set threshold, the pixel position is identified as an outlier that needs to be corrected.
[0067] Assuming that each pixel is a potential outlier, the depth value g(p i ), converted to the pixel position p i The foreground depth value g′(p i ) as follows:
[0068]
[0069] Based on the final single-pixel edge, construct an image terrain map, and diffuse through the edge area to update the terrain values of pixel positions; correct the position and scale of the weighted neighborhood according to the image terrain map to determine the center position and size of the filter kernel; within the corrected weighted neighborhood, complete the missing depth information by calculating the local mean, and finally generate a dense depth map.
[0070] Preferably, during the process of constructing the image terrain map, the terrain values of each pixel position in the image are defined by the following formula:
[0071]
[0072] where represents the terrain value of each pixel position p in the image I Δ ; Δ represents the Manhattan distance from this pixel position to the nearest edge; step represents the number of diffusion iterations.
[0073] The process of constructing the terrain map, that is, the process of diffusing through the edge area of the image and updating the terrain values of pixel positions. The terrain value of each pixel position p in the image I Δ is
[0074] Preferably, during the diffusion process of the terrain value, the diffusion speed is 1 pixel / step. Each time the diffusion operation is iterated, the terrain values of the edge and the adjacent pixels that have been diffused are synchronously increased by one unit.
[0075] When constructing the image terrain map, define the initial terrain value of the edge position of the image I as H(I)=1, and H(I)=0 for the remaining positions; then, diffuse simultaneously in both directions along the normal direction of the edge, and define the diffusion speed as 1 pixel / step. Each time the diffusion operation is iterated, the terrain values of the edge and the adjacent pixels that have been diffused are synchronously increased by one unit.
[0076] Similar pixels usually have similar filter kernels. Consider all pixels with terrain values gradually decreasing from the mountaintop (H(I)=step) along the hillside (0<H(I)≤level) until the terrain value is 0 as the same target, and their filter kernels are also similar.
[0077] Correct the center position p of the DMN according to the image terrain map i , and at the same time set the offset rule: starting from the center pixel index position, with the positive x-axis direction as the 0° direction. Shift in the four directions of 0°, 90°, 180°, and 270°. Among them, (a) group: 0°, 90° (b) group: 180°, 270°.
[0078] Each time the diffusion shift is performed, the mutually exclusive directions will be selected first between groups (a) and (b) and then within the same group. When step=4 is set, the weighted neighborhood center correction process of the p0 pixel position is:
[0079] (1) First, determine the edge normal direction of the pixel p0 position and decompose it into and
[0080]
[0081] (2) Diffuse the same number of unit distances along the 0° direction (step value is 4 here) to confirm the pixel position of px;
[0082] (3) Starting from the pixel position px, diffuse the unit distance step in the 90° direction to confirm the pixel position py, which is the corrected filter center position.
[0083] The modified result of the weighted neighborhood center is equivalent to: and is the adjacent side, and the sum of the two vectors is calculated
[0084]
[0085] like Figure 3 As shown, preferably, in the process of position correction and scale determination, the scale of the weighted neighborhood is determined by the following formula:
[0086]
[0087] in, Represents the pixel position p i The weighted neighborhood scale of ; Indicates the pixel position p i The terrain value.
[0088] The point cloud collected by LiDAR is sparse and unevenly dense, so it is impossible to set a weighted neighborhood with a globally consistent scale in the depth completion task. The algorithm uses the Manhattan distance from the core pixel to the edge as the judgment basis to determine the scale of the pixel-by-pixel weighted neighborhood.
[0089] p0 describes the correction method of the weighted neighborhood scale k of the pixel position in the edge area. The value represents the distance between the pixel and the edge.
[0090] like Figure 4 As shown, preferably, in the depth completion process, the missing depth information is completed by the following formula:
[0091]
[0092] in, represents the average distribution of each pixel; N represents the number of pixels contained in the CNS; f(p j ) indicates p j The depth value at the pixel location.
[0093] The missing depth is completed by calculating the local mean in CNS. Since CNS has been calibrated in position and scale, we believe that the depth values of each pixel in the same local neighborhood CNS are strongly correlated. Considering the computational efficiency, the missing depth information is guaranteed by calculating the local mean in CNS. Accuracy of completion results: Since there is no evidence that any sampling point p of CNS j Should have more weight.
[0094] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0095] The present application is described with reference to flowcharts and / or block diagrams of methods, devices (systems) and computer program products according to embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0096] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0097] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process in the computer or other programmable device. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0098] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0099] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0100] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0101] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0102] The above are only embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.
Claims
1. A laser radar depth completion algorithm based on image relief map, characterized in that: The following steps are involved: Perform edge detection on the image through a deep neural network to obtain the initial edge; Perform anisotropic Gaussian filtering and non-maximum suppression processing on the initial edge to obtain a refined edge; remove local noise in the refined edge through a double threshold limiting method to obtain a single pixel edge; The circular neighborhood statistical convolution kernel is used to separate the foreground and background of LiDAR data, correct the spatial offset between the RGB camera and the LiDAR sensor, and identify and correct outliers through the depth information threshold; Based on the final single-pixel edge, an image relief map is constructed, and the relief value of the pixel position is diffused and updated through the edge area; the position and scale of the weighted neighborhood are corrected according to the image relief map, and the center position and size of the filter kernel are determined; within the corrected weighted neighborhood, the missing depth information is supplemented by calculating the local mean, and finally a dense depth map is generated.
2. The laser radar depth completion algorithm based on image relief map according to claim 1 is characterized in that: The anisotropic Gaussian filtering and non-maximum suppression process includes the following formula: Among them, I main Represents the main direction image, which is the image obtained after anisotropic Gaussian filtering; I edge represents the initial edge image, obtained by edge detection; Represents an anisotropic Gaussian filter kernel for convolution operation.
3. The laser radar depth completion algorithm based on image relief map according to claim 2 is characterized in that: In the non-maximum suppression, obtain the refined edge I nms The formula is as follows: I nms =conv(I edge ,I main ) Among them, I nms Represents the refined edge image, the image after non-maximum suppression processing.
4. The laser radar depth completion algorithm based on image relief map according to claim 1 is characterized in that: The dual threshold limiting method for removing local noise in the thin edge process comprises the following steps: By setting a high threshold and a low threshold, the part of the refined edge smaller than the low threshold is removed, and the part higher than the high threshold is retained to obtain the final single-pixel edge I thin .
5. The laser radar depth completion algorithm based on image relief map according to claim 1 is characterized in that: In the process of separating the foreground and background of LiDAR data using the circular neighborhood statistical convolution kernel, CNS is determined by the following formula: in, represents the center pixel p i The circular neighborhood statistical convolution kernel of p d represents pixels within a circular neighborhood; represents the center pixel p i The neighborhood set of ; k represents the neighborhood scale.
6. The laser radar depth completion algorithm based on image relief map according to claim 1, characterized in that: In the process of constructing the image relief map, the relief value of each pixel position in the image is defined by the following formula: in, Represents the pixel position p in image I Δ The terrain value of ; Δ represents the Manhattan distance from the pixel position to the nearest edge; step represents the number of diffusion iterations.
7. The laser radar depth completion algorithm based on image relief map according to claim 1 is characterized in that: During the diffusion process of the terrain value, the diffusion speed is 1 pixel / step, and each time the diffusion operation is iterated, the terrain values of the edge and the adjacent pixels diffused to are synchronously increased by one unit.
8. The laser radar depth completion algorithm based on image relief map according to claim 1 is characterized in that: In the process of position correction and scale determination, the scale of the weighted neighborhood is determined by the following formula: in, Represents the pixel position p i The weighted neighborhood scale of ; Indicates the pixel position p i The terrain value.
9. The laser radar depth completion algorithm based on image relief map according to claim 1, characterized in that: In the depth completion process, the missing depth information is completed using the following formula: in, represents the average distribution of each pixel; N represents the number of pixels contained in the CNS; f(p j ) indicates p j The depth value at the pixel location.
