Lidar abnormal data repairing method based on multi-source feature fusion

By using a multi-source feature fusion method, distance candidates on the lidar measurement ray are generated and updated, solving the problem of inconsistent surface correspondence in lidar and camera data fusion, and achieving accuracy and consistency in lidar ranging repair.

CN123176731APending Publication Date: 2026-11-27嘉兴南湖学院 +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611676419.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-10-28
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

In the process of fusion of LiDAR and camera measurement data, how to maintain the consistency between the repair distance and the surface correspondence of image information, and solve the problem of changes in the spatial point projection position and surface changes caused by the non-coincidence of the measurement origin during LiDAR ranging repair.

Method used

Based on the multi-source feature fusion method, distance candidates are generated along the original measurement rays recorded by the lidar to be repaired. The geometric features of the point cloud and the image are used to generate the surface attribution. The surface to be repaired is selected through effective observation and weighted fusion is performed. When the adjacent fusion results are consistent, the distance candidates are reprojected and updated to maintain the consistency of projection correspondence and visibility.

Benefits of technology

This reduces surface mismatches at the ranging position after the old pixel information guides the update. The repair result is constrained by the correspondence between the original ray and the image surface, maintaining the correlation between the output record and the spatial surface calculation involved in the repair, thus avoiding interlayer distance mixing and duplicate estimation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123176731A_ABST
    Figure CN123176731A_ABST
Patent Text Reader

Abstract

The present application relates to computer data processing and laser radar abnormal data repair technical field, specifically to a laser radar abnormal data repair method based on multi-source feature fusion. Along the original measurement ray of the record to be repaired, the distance candidate with surface attribution is generated by using the point cloud geometric feature and the image, the candidate is converted into a three-dimensional point and projected to the image, the corresponding image feature is extracted according to the surface visibility, and the candidate is updated by fusing the geometric feature; the surface is selected according to the effective observation, the same surface candidate is weighted and fused, the fusion result is re-projected and updated, and the corresponding relationship is consistent when the projection corresponding relationship and the visibility of the adjacent two fusion results are consistent, and the repair record is written back along the original ray. The present application synchronously adjusts the corresponding relationship of ranging update and image, constrains the image feature in the corresponding surface to participate in the repair, reduces the error depth caused by the cross-surface feature mismatch and the foreground and background mixing, and maintains the consistency of the repair point and the original measurement direction.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of computer data processing and lidar abnormal data repair technology, specifically a lidar abnormal data repair method based on multi-source feature fusion. Background Technology

[0002] LiDAR anomaly data repair involves calculating and processing erroneous distances and missing data in ranging records, outputting depth data or point clouds suitable for environmental modeling and spatial analysis. In vehicle-mounted perception and mobile robot mapping scenarios, LiDAR provides spatial observations at the distance scale, while camera images contain object outlines and surface textures. Due to the different sampling methods and coordinate representations of these two types of data, image-guided repair typically requires transforming the LiDAR point cloud to the camera coordinate system based on sensor calibration relationships, and then projecting it onto the image plane to form a sparse depth map corresponding to the image location. Locations with valid echoes retain the projected depth, while locations lacking depth observations are encoded as invalid data. The computer then uses existing ranging information and corresponding images to infer the depth of the location to be filled, and corrects any inaccurate input depths.

[0003] An existing implementation employs a depth completion processing flow that combines global and local prediction. The global prediction branch takes a color image and a sparse depth map as input, extracting appearance and depth information within the scene to generate a global depth prediction, guiding features, and corresponding confidence scores. The local prediction branch combines the sparse depth with the global guiding features to generate a local depth prediction and corresponding confidence scores. After normalization, the confidence scores of both branches are weighted for the predicted depth at the same image location to obtain a dense depth map. During training, the prediction error is evaluated using locations with reference depth, and the depth prediction and confidence score calculations are adjusted accordingly. When a 3D output is required, the dense depth can be back-projected into spatial points using camera imaging relationships. The above processing organizes input and output using a camera image grid, with depth correction and branch fusion performed around the image location.

[0004] When the depth completion results from the camera's perspective are further used to repair individual LiDAR ranging records, a consistency issue arises between the ranging correction and the image correspondence. For LiDARs and cameras whose measurement origins do not coincide, changing the distance along the original laser measurement ray typically alters the projected position of spatial points in the camera image, and the corresponding visible surface may also change. If image information is extracted and depth prediction is fused at the original projection position, the image features involved in the repair may correspond to another physical surface; if the corrected depth at the original image position is directly back-projected into a spatial point, the resulting position may not necessarily lie on the original laser measurement ray. Therefore, assuming the original scanning direction and calibration relationship are reliable, ensuring consistency between the repair distance, the image information used to guide the repair, and their surface correspondence is a technical problem that needs to be addressed when applying the aforementioned depth completion process to LiDAR ranging repair. Summary of the Invention

[0005] The purpose of this invention is to provide a method for repairing abnormal lidar data based on multi-source feature fusion, which can solve the problems mentioned in the background art.

[0006] To achieve the above objectives, the technical solution adopted by the present invention is as follows:

[0007] A method for repairing abnormal lidar data based on multi-source feature fusion includes: generating distance candidates with surface attribution by using point cloud geometric features and corresponding images along the original measurement ray recorded by the lidar to be repaired.

[0008] The distance candidates are converted into three-dimensional points on the original measurement ray and projected onto the image according to the calibration relationship. When the three-dimensional points are visible, the image features of the corresponding projection position are fused with the point cloud geometric features and the distance candidates are updated.

[0009] Based on valid observations, a surface to be repaired is selected. The distance candidates within the surface to be repaired are weighted and fused. The three-dimensional points corresponding to the fused distances are reprojected. The candidate update and fusion are re-executed according to the new projection correspondence. When the projection correspondence and surface visibility of two adjacent fusion results are consistent, the lidar record to be repaired is written back along the original measurement ray.

[0010] Preferably, the generation of the distance candidate includes: taking the image and the sparse depth map formed by the effective lidar records as input, generating a global prediction surface, and generating a local fitting surface with the effective scanning neighborhood of the lidar records to be repaired;

[0011] The intersection points of the original measurement ray with the global prediction surface and the local fitting surface are calculated respectively. The distance from the intersection point to the starting point of the original measurement ray is recorded as a distance candidate, and the surface to which the intersection point belongs and the corresponding valid observation are associated.

[0012] Preferably, the determination of surface visibility includes: intersecting the line of sight from the camera projection center to the three-dimensional point with the surface supported by effective observation, and sorting the intersection points by depth;

[0013] When there is a valid intersection point of other surfaces in front of a 3D point, it is marked as an occlusion candidate.

[0014] When the line of sight falls within the surface coverage area supported by effective observations and the surface to which the first intersection belongs is consistent with the surface affiliation, it is marked as a visible candidate;

[0015] When surface coverage is missing or there is competition for attribution, it is marked as undetermined, and the corresponding relationships of competing surfaces are retained, without determining visibility solely based on the order of the distance candidates.

[0016] Preferably, for the visible candidates, the image features of the surface to which the current projection position belongs are fused with the geometric features of the point cloud, and the fusion weight is calculated by combining the geometric residuals of the candidate 3D points relative to the effective observations. The fusion weights are then normalized within the same surface and the fusion distance is calculated.

[0017] The three-dimensional points corresponding to the fusion distance are reprojected, and the projection pixels and their surface affiliations are used to form a projection correspondence.

[0018] When the projection correspondence between two adjacent fusion results changes, candidate groups are reconstructed based on the new surface assignment, and image features and fusion weights are recalculated according to the new projected pixels.

[0019] When the projection correspondence remains consistent but the visibility changes, the image features to be fused are reselected according to the changed visibility, and the fusion distance is recalculated.

[0020] Preferably, the generation of the local fitting surface includes: using the effective observations in the effective scan neighborhood as nodes, establishing connections according to the scan adjacency relationship, breaking the connections that cross geometric discontinuity boundaries, and forming connected patches corresponding to different surfaces respectively;

[0021] Establish a local reference plane for each connected component and fit a local surface. Define the coverage area of ​​the connected component on the corresponding local reference plane as the surface support domain.

[0022] The intersection points of the original measurement ray with each local surface are calculated. Only the intersection points projected onto the surface support domain are converted into distance candidates, and the corresponding connected piece identifiers are written into the surface attribution.

[0023] Preferably, for the occlusion candidates, image features corresponding to the projection positions are excluded, while their local fitting surfaces and distance candidates are retained, and effective observations supporting the local fitting surfaces are used to participate in candidate updates;

[0024] For candidates with uncertain visibility, candidate groups for the front and back surfaces are saved separately. Distance weighting is not performed between different candidate groups. The lidar record to be repaired is marked as pending and write-back is paused.

[0025] Preferably, the surface coverage area supported by effective observation is projected as a surface mask. Before extracting image features, the image sampling neighborhood of the projection position is filtered by the surface mask, and only the information of the image position within the mask is aggregated.

[0026] When the projection correspondence changes, the image sampling neighborhood is re-selected according to the new surface assignment and image features are extracted.

[0027] Preferably, the update of the projection correspondence includes: associating the lidar record to be repaired with its projection depth constraint using the original record index, and canceling the depth constraint of the lidar record to be repaired in the original projection position before updating the distance candidate.

[0028] In the mutually separated candidate states, the projection position and surface affiliation of each distance candidate are saved, the image guidance features are recalculated based on the candidate states, and the distance candidates are not written into the effective measured depth set.

[0029] Preferably, the effective observations are projected onto the image, the projected pixels are associated with the global prediction surface, and the attribution correspondence between the global prediction surface and the local fitted surface is established based on the connected component identifier;

[0030] When the same global prediction surface corresponds to different connected pieces, the global surface region is divided according to the projection boundary of the surface support domain of each connected piece in the image, and the intersection of the original measurement ray with each global surface region is calculated respectively.

[0031] The distance candidates formed by each intersection point and the local distance candidates of the same connected component are grouped into the same candidate group;

[0032] For global prediction regions that simultaneously fall within the projection range of different surface support domains, the intersection points and their affiliations with each connected piece are retained, and the corresponding candidate groups are not merged.

[0033] For global distance candidates that cannot be assigned to valid observations, they are retained as undecided candidates and excluded from distance weighting.

[0034] Preferably, when multiple original records correspond to the same projection position, depth constraints are saved according to the original record index, and different projection layers are formed based on the surface attribution organization.

[0035] When removing the depth constraint of the lidar record to be repaired, other original records and corresponding projection layers are retained;

[0036] After the distance candidate is updated, a temporary correspondence is established between the candidate projection position and the projection layer. The inter-layer occlusion relationship is determined by the retained effective measured depth constraint. The surface visibility is updated and a post-fusion verification is performed.

[0037] After review, the repair results are associated with and saved with the corresponding original record index, while maintaining other depth constraints at the same projection position.

[0038] Compared with the prior art, the beneficial effects of the present invention are as follows:

[0039] 1. By generating distance candidates on the original measurement ray and uniformly converting the intersection of the globally predicted surface and the locally fitted surface into LiDAR distances, the spatial orientation of the repair points is constrained by the original scan record. When candidate updates cause changes in the projected position, image features are re-extracted based on the new corresponding position and surface visibility, and the information involved in fusion changes synchronously with the candidate's geometric position. Distance fusion is limited to the selected surface, and the fused 3D points are re-projected. The candidates and fusion weights are reorganized and calculated based on the changes in projection correspondence and visibility. The above processing ensures that the write-back results are simultaneously constrained by the correspondence between the original ray and the image surface, reducing surface mismatches caused by the old pixel information guiding the updated distance measurement position, and limiting the formation of intermediate depths by mixing the distances of the front and rear surfaces. Write-back is performed after the correspondence between adjacent fusion results is consistent, maintaining the computational association between the output record and the spatial surface involved in the repair.

[0040] 2. Projection depth constraints are managed separately using the original record index. When revoking constraints on abnormal records at their original projection positions, other measured records at the same position and their corresponding projection layers are retained, reducing the coverage of other observations within shared pixels by a single record repair. The projection positions and surface affiliations of candidates with different distances are saved in a separate state. Candidates do not enter the effective measured depth set, and subsequent occlusion judgments continue to use the retained measured depth constraints, avoiding the estimation results being repeatedly used as the basis for measurements due to participation in inter-layer sorting. Image-guided features are recalculated after candidate position changes, ensuring that the original projection constraints that have been revoked are no longer used as fixed depth inputs for the current candidate. After the repair results are reviewed, they are saved in association with the original record index, maintaining a separate correspondence between the repaired record, other measured records, and their projection layers, supporting independent updates of multiple ranging records at the same image position. Attached Figure Description

[0041] Figure 1 A flowchart for repairing abnormal LiDAR data based on multi-source feature fusion;

[0042] Figure 2 A parameter analysis diagram showing the variation of candidate reprojection with camera axial depth;

[0043] Figure 3A graph showing the variation of support point residuals fitted to a weighted reference plane;

[0044] Figure 4 A graph showing the relationship between the normalized contribution and fusion distance of candidates on the same surface;

[0045] Figure 5 Here is a flowchart of the projection depth constraint update and candidate isolation process;

[0046] Figure 6 This is a projection constraint diagram for filtering by source index and actual identity. Detailed Implementation

[0047] Please refer to Figure 1 In one embodiment, a method for repairing abnormal lidar data based on multi-source feature fusion is provided, comprising: generating distance candidates with surface affiliation along the original measurement ray of the lidar record to be repaired using point cloud geometric features and corresponding images; converting the distance candidates into three-dimensional points on the original measurement ray and projecting them onto the image according to a calibration relationship; when the three-dimensional points are visible, fusing the image features of the corresponding projection position with the point cloud geometric features and updating the distance candidates; selecting the surface to be repaired based on valid observations, weighted fusing the distance candidates within the surface to be repaired, reprojecting the three-dimensional points corresponding to the fused distances, re-performing the candidate update and fusion according to the new projection correspondence; and writing back the lidar record to be repaired along the original measurement ray when the projection correspondence and surface visibility of two adjacent fusion results are consistent.

[0048] In this embodiment, the processing object is lidar ranging data with original record index. The input also includes color images that have a time correspondence with the ranging data and the obtained sensor calibration relationship. Ranging anomalies refer to records where the emission direction is still usable but the distance value needs to be corrected. For missing measurement records, the corresponding emission direction and acquisition time should be retained. Any spatial position without emission records cannot be interpreted as a missing measurement on the original ray. Data processing is carried out in a coordinate system with a unified reference time. When there is platform movement, the starting point and direction of the measurement ray are converted simultaneously using the existing pose record. It is not possible to only convert the measurement endpoint. Records for which a reliable direction or calibration relationship cannot be obtained are saved separately and are not included in the distance write-back process of this embodiment.

[0049] Specifically, the original record table stores the record index, scan direction, and original distance, and associates them with data quality flags. The image projection table stores continuous image coordinates and their corresponding discrete pixels. The candidate table stores the target record index, distance candidates, and surface identifiers. The candidate number only distinguishes different estimated states of the same target record and does not replace the original record index. The original ranging data remains readable. The repair results are separately associated with the original index and form the output view. Therefore, writing back means updating the repaired distance and coordinate fields provided externally, and does not mean re-registering the estimated distance as the original measured record. Data whose surface ownership has not yet been determined retains an undetermined flag, and its value is not replaced with a zero value.

[0050] In this embodiment, the point cloud geometric features are formed by the relative positions, surface orientations, and local connectivity of the effective measurement points, while the image features are formed by the color changes and boundary responses of the corresponding regions. The two types of features are established locally only after the candidate positions are determined. Adjacent pixels in the image are not directly regarded as the same spatial surface, and different measurement records projected onto the same pixel are not directly merged. The global prediction surface participating in the candidate generation is used to propose spatial position hypotheses, while the local surface formed by the original effective observations is used to provide geometric support. After both surfaces are transformed to the same spatial coordinate system, the ray intersection point is calculated. The intersection point distance, rather than the camera axial depth, is used as the numerical object for subsequent fusion.

[0051] To describe the relationship between the original measurement ray and the camera projection, the following formula is used to calculate the continuous image coordinates corresponding to the distance candidate. The camera calibration value in the formula is read from the existing calibration results and will not be changed during the data repair process.

[0052] ;

[0053] Where j is the index of the original distance measurement record. Candidate distances along the original measurement ray. Let j be the starting vector of the j-th measurement ray in the reference coordinate system. Let be the unit direction vector of the j-th measurement ray. Matrix R and vector t represent the rotation and translation from the reference coordinate system to the camera coordinate system, respectively. Matrix K represents the camera intrinsic parameter transformation. , The calculated horizontal and vertical continuous image coordinates, This is a homogeneous coordinate normalization operation, used to divide the first and second components of the input homogeneous vector by the third component to obtain the two-dimensional image coordinates; matrix and vector adjacency represents matrix multiplication; distance candidate values. With unit direction vector Multiply to obtain the displacement along the ray; candidate distances for non-positive camera axial coordinates. Image sampling calculations are not performed.

[0054] For example, after transformation using existing calibration relationships, two candidates on the same original measurement ray will have positions of (0.2, 0, 4) and (0.2, 0, 8) in the camera coordinate system, with corresponding normalized lateral coordinates of 0.05 and 0.025. Since they already have different projection positions before the camera imaging transformation, the image features obtained from the original candidate positions cannot be directly used for the updated distance. The coordinates in the example are calculated values ​​of the data to be processed. A vertical component of 0 indicates that the two candidates are located in the corresponding coordinate plane. The change of the axial component from 4 to 8 does not mean that the laser ranging distance changes in the same way. The actual distance is still calculated from the origin of the original ray to the candidate 3D point.

[0055] Please refer to Figure 2 The horizontal axis represents the camera's axial depth, with an analysis range of 4 to 8 meters; the vertical axis represents the dimensionless normalized image coordinates. Solid black lines and circular markers indicate the lateral projection component, while dashed gray lines and square markers indicate the longitudinal projection component. Figure 2 The horizontal component of the fixed camera coordinates is 0.2m, and the vertical component is 0. The axial depth is changed along the candidate trajectory described in this section to expand the reprojection formula. The perspective normalization effect is applied. The horizontal coordinate decreases continuously from 0.050 to 0.025, and the rate of decrease gradually slows down; the vertical coordinate remains at 0, consistent with the condition that the two example points are on the same corresponding plane.

[0056] The above changes correspond to candidate distances After the change, the original ray origin and unit direction The projection of the determined spatial points is updated after R and t transformations. Figure 2 The coordinates used are normalized and have not yet been converted into pixel coordinates corresponding to the actual intrinsic parameter K. The horizontal axis cannot be directly regarded as the distance along the ray.

[0057] Furthermore, continuous image coordinates are retained until candidate verification is completed, discrete pixel indexes are used for retrieval and organization of records, image features can be obtained by interpolation from adjacent pixels according to continuous coordinates, but the pixels used for interpolation must be located in the image region of the surface corresponding to the candidate. When a candidate moves from one pixel to another, it is necessary to re-obtain the image features and their surface attribution. When a candidate is located outside the image, color information is not extrapolated, but instead, geometric support checks are performed. The case where the original measurement ray is close to the degenerate projection in the image is still processed by the same operation. If the projection position does not change, it is not used as a basis for distance accuracy. Distance candidates still need to undergo local surface and support range checks.

[0058] In this embodiment, after obtaining candidates using global prediction and local fitting, the association between the generated surface and the measured support is saved for each candidate. Based on this association, it is compared whether the candidates correspond to the same physical surface. The global and local estimates of the same surface can have different distance values. Even if the projections of the foreground and background candidates are close, they are kept in different groups. The selection of the surface to be repaired is based on the connection relationship between the candidate and the effective scanning neighborhood and the affiliation of the supported surface. When there is a unique supported affiliation, the corresponding surface is used. When there are multiple indistinguishable affiliations, the surface is not directly selected according to the image confidence level, nor is the distance between different surfaces averaged. Instead, the surface competition state is preserved.

[0059] During distance candidate updates, the local geometric description of the candidate 3D point is combined with the current visible image features as a fusion input. The distance residual predicts the correction amount for the current candidate. The correction amount is applied along the original measurement ray. The output position is still determined by the ray origin, unit direction, and updated distance. It is not allowed to change the emission direction by modifying the spatial coordinate components separately. The updated candidate recalculates the camera projection and checks whether it still belongs to the original group. The update result outside the surface support domain is not used as a determined distance write-back. Instead, the corresponding update is revoked and other supported candidates are retained. When all candidates lose support, the target record is changed to pending.

[0060] In a preferred embodiment, convolutional coding and stepwise decoding are used to calculate image and sparse depth features. Convolutional processing weights and sums the input values ​​in the neighborhood and obtains features through nonlinear activation. During decoding, low-resolution features are restored to the input image grid and connected with shallow features at the same spatial location. Global depth output is used to construct the predicted surface, and local distance correction output is only applied to target records with original ray indices. This means that masks without depth input are stored separately from the true distance, so that missing measurement codes do not participate in the calculation of the distance mean. Guiding features containing image information do not enter the update path of a candidate when the candidate is determined to be occluded.

[0061] The training data consists of registered images and scan records with reliable reference distances. While keeping the emission direction and record index unchanged, a bias is added to the input distance or some distance values ​​are removed. The reference output still uses the original reliable distance. The training error is calculated at the location with the reference value. The absolute difference between the predicted distance and the reference distance and its square can be used to supervise the network output. The confidence level is based on the corresponding depth prediction error. The original abnormal distance to be repaired cannot be directly used as the correct label. The boundary position in the image and the projection of the reference distance together limit the surface to the training sample. Areas whose visibility cannot be determined are not forcibly marked as visible.

[0062] In this embodiment, the projection coordinate calculation can retain the continuous change relationship of the candidate distance. Surface selection and discrete pixel retrieval are performed separately as geometric routing operations. The network training uses the samples after the route is determined to calculate the gradient. It is not required to perform numerical differentiation on the surface number itself. During inference, the candidates and their routing states are recalculated using fixed network parameters. The distance correction caused by changes in image features should be re-processed through the original ray point construction and reprojection. The image correlation learned during training cannot replace the geometric verification. The candidate state retains the actual surface number and support record that participated in the update so as to determine whether the update crosses the surface in the subsequent judgment.

[0063] The comparison between two adjacent fusion results is based on discrete projected pixels, surface attribution, and visibility status. Continuous projected positions are used for resampling and geometric checks. The similarity of these discrete states does not directly indicate that the distance values ​​have converged. Before writing back, it is also checked whether the current fusion position has surface support, and the consistency of the distance recalculated according to the current correspondence is checked. Distance changes need to fall within the allowable range determined by the uncertainty range of the supporting observations. If the surface state switches repeatedly, all candidates are invalid, or the number of calculations reaches the upper limit given by the processing task, the undecided state is retained and no intermediate result is selected. A definite processing exit is reserved for records that do not meet the write-back conditions.

[0064] In a preferred embodiment, the generation of distance candidates includes: generating a global prediction surface using an image and a sparse depth map formed by effective lidar records as input; generating a local fitting surface using the effective scanning neighborhood of the lidar records to be repaired; calculating the intersection points of the original measurement ray with the global prediction surface and the local fitting surface respectively; recording the distance from the intersection point to the starting point of the original measurement ray as a distance candidate; and associating the surface to which the intersection point belongs with the corresponding effective observation.

[0065] Specifically, the sparse depth map is organized according to the camera projection coordinates, and the projection depth adopts the axial component of the camera coordinate system. The effective records have completed the temporal correlation with the input image. When constructing the image mesh, an effective mask is generated at the same time, and the original record list corresponding to each pixel is saved at the bottom layer. When the network needs a single-layer input, the depth is selected from the surface that can be determined to be visible to the camera. Pixels that do not have a determined visible surface retain an invalid mask. Different depth layers cannot be averaged when the data is read in. The single-layer depth map input to the network and the multi-layer record table at the bottom layer are maintained separately so that the input can be regenerated when abnormal records are subsequently undone.

[0066] In a preferred network implementation, a normalized 3-channel color image, sparse depth, and a validity mask are concatenated as an input tensor. The encoding path consists of continuous convolution and downsampling calculations. The decoding path uses upsampling and encoding features of the same spatial level to reconstruct the image grid. The global output generates positive depth, image guidance features, and non-negative confidence. The local processing end receives the geometric description of the scanned neighborhood and the corresponding guidance features, and outputs distance correction and local confidence. Positive depth is obtained by exponentially mapping the output real number, and confidence is obtained by restricting the output to non-negative values. Occlusion candidates use independent geometric input paths and do not use guidance features containing image components.

[0067] When the global predicted depth is converted into a spatial surface, the camera coordinates are recovered based on the imaging ray and predicted axial depth of each pixel. Triangular patches are formed according to the adjacent positions of the image grid. The patches are then transformed to the reference coordinate system where the measurement ray is located. The vertices that make up the patches must have definite predicted values. Connections that cross the surface boundaries that have been determined by the measured geometry are not included in the determined surface. Image color edges can indicate the location that needs to be verified, but color changes themselves do not determine the separation of front and back surfaces. Predicted areas that have not yet been assigned by actual measurement are retained as global candidate areas and are not directly used to prove that other candidates are unoccluded.

[0068] In a further preferred embodiment, the generation of the local fitted surface includes: using effective observations in the effective scan neighborhood as nodes, establishing connections according to scan adjacency relationships, disconnecting connections that cross geometric discontinuities, and forming connected pieces corresponding to different surfaces; establishing local reference planes for each connected piece and fitting local surfaces, defining the coverage area of ​​the connected piece on the corresponding local reference plane as the surface support domain; calculating the intersection points of the original measurement ray and each local surface, converting only the intersection points projected into the surface support domain into distance candidates, and writing the corresponding connected piece identifier into the surface attribution.

[0069] The scanning adjacency relationship is constructed from the adjacent positions of the original emission record. When the scanning sequence is continuous but the spatial position crosses different targets, the surface connection is not directly established. Specifically, it is checked whether the adjacent points fall within the measurement tolerance zone of their respective local reference surfaces, and whether the local surface orientations are compatible. The measurement tolerance zone is derived from the original data quality information. If the corresponding information is missing, it can be estimated by the distance residual of repeated measurements in the reliable area. Candidate estimates do not participate in the establishment of the tolerance zone. Connections that cannot meet the bidirectional surface consistency are disconnected. Color changes on the same geometric surface do not cause the connection to be disconnected on their own. Areas lacking sufficient non-collinear observations are retained as isolated support records.

[0070] For the formed connected patch, select effective observations with spatial distribution near the target ray, calculate the weighted centroid and the covariance matrix relative to the centroid, take the direction corresponding to the smallest eigenvalue as the normal of the reference plane, and take the other two mutually orthogonal directions as the plane coordinate axes. When all observation points coincide or are collinear, a unique reference plane cannot be determined, so no definite local surface intersection points are generated. During the fitting process, the weight of each observation point reflects its proximity to the target area and the quality of the original data. The weights are normalized within the same support set, and the relevant fitting operation can be expressed by the following formula.

[0071] ;

[0072] Where 'a' represents the identifier of the surface connectivity piece. This is the set of valid observation indices for participating in the corresponding surface fitting. For observation index, For the first The spatial position vector of each observation in the reference coordinate system The subscript represents the non-negative fitting weights corresponding to the observations. The relationship between observations and connected components is represented, where n is the unit normal vector to be solved. A signed offset for the reference plane; , To minimize the normal and bias parameters of the a-th surface connected component obtained from the solution; superscript The symbol represents the vector transpose, and the summation symbol represents the weighted squared distance of the accumulated observations. Represents the Euclidean length, the constraint value of 1 limits the normal length, the real number set symbol limits the range of the bias value, and the minimization operation returns the normal and bias with the minimum corresponding target.

[0073] For example, three non-collinear valid observations are (0, 0, 4), (1, 0, 4), and (0, 1, 4). When given the same fitting weight, the normal along the positive axial direction and the offset of negative 4 are obtained. The algebraic distance from the three points to the reference plane is 0. If another observation at position (1, 1, 4.1) is added, the residuals of each point jointly determine the new reference plane. The first three points cannot be moved individually to follow the new observation. In practice, the solution is completed by weighted center and covariance eigenvalue decomposition. The sign of the normal is unified according to the convention of the starting point of the ray measured towards the target. When the normal needs to be flipped, the offset is flipped at the same time to avoid the use of opposite normals in adjacent calculations, which would lead to the reversal of the compatibility judgment.

[0074] Please refer to Figure 3 , Figure 3This section examines how the weights of newly added support points alter the reference plane. The horizontal axis represents the normalized fitted weights of the newly added points, ranging from 0 to 0.5, while the remaining weights are equally divided by the three reference points. The vertical axis represents the signed distance from each point to the reference plane, in meters. The calculation uses the coordinates of the aforementioned four points, and each weight position is recalculated. and The solid black line corresponds to reference point one, the dashed gray line corresponds to reference points two and three that coincide due to the symmetry of coordinates and weights, and the gray dotted line corresponds to newly added support points; circular, square, and triangular markers are used to distinguish curves.

[0075] When the added weight is 0, the residuals of the three reference points are 0, and the residual of the newly added point is -0.100m; the newly added point is only used to evaluate distance and does not participate in the fitting. As the weight is increased, the residuals gradually approach 0, while the original reference points show residuals located on both sides of the plane, reflecting... The trade-off between weighted squared distance to the target when the weight is changed. When the weight is 0.25, the four points are equally weighted, and the absolute value of the residuals is approximately 0.025m.

[0076] In a preferred local fitting implementation, the height relative to the reference plane is further fitted with a quadratic surface. The two coordinates and the height observed in the reference plane are used to form a sample. A design matrix is ​​constructed with a constant term, two linear terms, and three quadratic terms. The height coefficient is obtained by weighted least squares. When the columns of the design matrix are not independent, it is reduced to the reference plane representation. If the plane still cannot be determined, no definite candidate is output. The quadratic surface is only used within the observation support domain. Just because the polynomial can calculate the height at any position does not mean that its extended part is considered as the observed surface. Regions with curvature changes can be divided into adjacent patches and fitted separately.

[0077] The surface support domain is generated based on the preserved scan connections. Adjacent observations connected within the same connected patch are grouped into triangles, and then the legal triangles are projected onto the reference plane. The union of the projected triangles serves as the support domain. Boundaries formed by disconnected connections and holes not covered by triangles are preserved. The convex hulls of all observation points are not used to fill the internal holes. Although the location to be repaired may lack direct echoes, as long as it is located within a legal patch surrounded by surrounding valid observations, surface support can still be obtained. Conversely, if the location is only within the circumscribed contour of multiple separation points without continuous patch coverage, a definite local intersection cannot be generated.

[0078] When finding the intersection of a ray and a reference plane, the ray's origin is substituted into the plane equation to obtain an initial signed distance. Then, the rate of change of distance is determined by the dot product of the ray's unit direction and the normal. The two are combined to obtain the intersection distance along the ray. There is no intersection when the dot product is 0 and the origin is not on the plane. When the origin is also on the plane, the intersection is not unique. In these two cases, no definite distance is generated. When using a quadratic surface, the ray position is substituted into the height expression to obtain a univariate calculation of the distance. The real solution, the positive distance, and the support domain are checked respectively. When there are multiple qualified solutions, candidates are established respectively. The closer solution cannot be assumed to represent the real surface.

[0079] For example, the origin of the original measurement ray is located at the origin of the reference coordinate system, with a unit direction of (0.6, 0, 0.8). When the ray intersects the plane with an axial coordinate of 4, the distance along the ray is 5, and the intersection point is (3, 0, 4). Here, 4 is the depth component of the coordinate axis, and 5 is the distance measured for the original ray. When the global prediction gives an axial depth of 4 and the local geometry gives a ray distance of 5, the two do not constitute a numerical conflict. After surface intersection, they can become candidates for the same distance. Directly weighting 4 and 5 without transformation will mix different physical quantities. Therefore, the candidate table uniformly saves the distance along the ray and separately saves the camera axial depth.

[0080] In a further preferred embodiment, effective observations are projected onto an image, and the projected pixels are associated with the global prediction surface. The attribution correspondence between the global prediction surface and the local fitted surface is established based on the connected component identifier. When the same global prediction surface corresponds to different connected components, the global surface region is divided according to the projection boundary of the surface support domain of each connected component in the image, and the intersection points of the original measurement ray and each global surface region are calculated respectively. The distance candidates formed by each intersection point and the local distance candidates of the same connected component are included in the same candidate group. For global prediction regions that fall within the projection range of different surface support domains, the intersection points and attribution corresponding to each connected component are retained respectively, and the corresponding candidate groups are not merged. Global distance candidates that cannot establish an attribution correspondence with effective observations are retained as undecided candidates and excluded from distance weighting.

[0081] Specifically, the connectivity identifier is obtained by associating the original set of records that make up the surface. The current depth ranking is not used as the surface identity. Instead, the attribution anchor point is established in the global prediction region by projecting the image of the effective observation. Then, the global prediction region is divided into sub-regions with different associations according to the support domain boundaries. The depth of the sub-region still comes from the global prediction, but it can only form the same surface group with the local candidate of the corresponding connectivity piece. When two support domains overlap on the image, the association assumptions pointing to the foreground and background respectively need to be retained. The identifier cannot be merged based solely on pixel consistency. When the candidate moves outside the overlapping region, the available connectivity pieces are searched again.

[0082] A single-layer global prediction depth provides only one axial depth value at an image location. Its calculation result is not interpreted as simultaneously restoring the true depth of the occluded background. The multi-layer relationship between the foreground and background is preserved by different local surfaces supported by the effective point cloud. When the global prediction is temporarily associated with multiple locally connected patches, the geometric residuals and support domain coverage of the prediction region are checked separately. Global candidates that cannot obtain a unique measured belonging remain undecided, while background candidates with independent local support can enter geometric update. During the processing, supported background surfaces in the original point cloud are not deleted on the grounds that the image branch output is complete.

[0083] In a preferred embodiment, determining surface visibility includes: finding the intersection of the line of sight from the camera projection center to the 3D point with the surfaces supported by effective observations, and sorting the intersection points by depth; when there are other effective intersection points of surfaces in front of the 3D point, they are marked as occlusion candidates; when the line of sight falls into the surface coverage area supported by effective observations and the surface to which the first intersection point belongs is consistent with the surface affiliation, it is marked as a visibility candidate; when surface coverage is missing or there is competition for affiliation, it is marked as undetermined in terms of visibility, and the correspondence of competing surfaces is retained respectively, without determining visibility solely based on the order of distance candidates.

[0084] Specifically, occlusion detection uses a line of sight originating from the camera projection center and passing through candidate 3D points. This line of sight is usually different from the original lidar measurement ray. The search target is a bounded surface patch formed by the retained measured records, rather than simply sorting the distance candidates for the current target record. The area enclosed by the patch projection can be used to exclude surfaces that cannot intersect. Then, the line of sight is used to find the intersection with the plane on the remaining patches. The intersection point is determined by the centroid coordinates of the intersection point in the triangular patch to determine whether the intersection point is located inside the finite patch. Intersection points that fall on the extended part of the plane are excluded. The retained intersection points are sorted according to the camera axial depth, and the surface to which the intersection point belongs is compared with the candidate surface markers.

[0085] The internal determination of a facet can be represented as a weighted combination of three vertices. When the sum of the combination coefficients is 1 and each coefficient is not less than 0, the intersection point is located inside the triangle or on the boundary. When it is located on the boundary and simultaneously associated with different physical surfaces, the competition for ownership is retained. The order of the intersection point and the candidate should also be determined in conjunction with the uncertainty range of the original observation. Only when the farthest allowable depth of the foreground intersection point is still less than the nearest allowable depth of the candidate is it treated as a definite occlusion. When the allowable ranges of the two overlap and the competition cannot be eliminated from the surface to which they belong, the state remains undetermined. This processing does not supplement the missing occlusion evidence by expanding the area of ​​the facet.

[0086] When the candidate surface is the first supported surface of the line of sight, the visibility flag indicates that the candidate is consistent with the currently retained visible surface supported by the observation. It does not indicate that the unobserved space has been proven to be unobstructed. When the line of sight passes through holes inside the support domain, when there are no usable patches in the projection area, or when there are only network-predicted surfaces, the visibility flag cannot be set simply because no closer intersection point has been found. The global predicted surface can propose a repair location, but it cannot simultaneously serve as the basis for the actual support of that location. The original missing echo is not encoded as a free space observation. Missing and unobstructed are represented in the state field respectively.

[0087] In a further preferred embodiment, for occlusion candidates, image features corresponding to the projection position are excluded, and their local fitting surfaces and distance candidates are retained. Effective observations that support the local fitting surfaces are used to participate in candidate updates. For candidates with uncertain visibility, candidate groups for the front and back surfaces are saved respectively. Distance weighting is not performed between different candidate groups, and the lidar record to be repaired is marked as pending, and write-back is paused.

[0088] Image deactivation of occluded candidates occurs on feature-dependent paths. Color features directly from the current image location do not participate in local distance updates, and global guiding features that have been mixed with the image do not enter the corresponding geometric update branch. The geometric branch uses the locally fitted surface formed by the actual observation and its residuals to calculate candidates. It is not possible to simply set the color vector of the output layer to zero and continue to reuse the guiding map containing foreground image information. Only when subsequent candidates are reprojected and obtained in a visible state are image features re-extracted according to the updated actual position, the state of multi-source features participating in the calculation is restored, and a new projection version is associated.

[0089] For example, if a background candidate has a camera axial depth of 9.1 meters, and there is a foreground intersection point with a depth of 4.2 meters along its actual camera line of sight that is supported by an effective surface, but the original LiDAR ray does not intersect with the foreground surface, then the background candidate may still be valid in terms of LiDAR geometry, but it is marked as occlusion from the camera's perspective. During the calculation, the local surface of the background is preserved and the image guidance of the foreground pixels is turned off. If 4.2 meters is only the depth of another point within the same discrete pixel bucket and its supporting surface does not cover the line of sight, then the background cannot be determined as occlusion, and it is necessary to continue to perform continuous line of sight intersection or retain the undetermined state.

[0090] The output of undetermined records includes the original index, existing candidate groups, and corresponding support status. The repair distance field remains uncommitted. The processing interface cannot interpret uncommitted as a distance of 0, nor can it directly average the candidates of each competing surface according to the predicted confidence. If subsequent inputs provide new measured support, the surface relationships are re-established and the candidates are recalculated under the new support data version. The previously saved undetermined candidates are only used as hypotheses to be evaluated and do not assume the role of measured surfaces. Static tasks lacking subsequent observations retain undetermined outputs to distinguish between data that have completed geometric verification and data whose surface attribution cannot yet be determined.

[0091] In a preferred embodiment, for visible candidates, the image features of the surface to which the current projection position belongs are fused with the point cloud geometric features. The fusion weight is calculated by combining the geometric residuals of the candidate 3D points relative to the effective observations. The fusion weights are normalized within the same surface and the fusion distance is calculated. The 3D points corresponding to the fusion distance are reprojected, and the projection correspondence is formed by the projection pixels and their surface affiliations. When the projection correspondence of two adjacent fusion results changes, the candidate group is reconstructed according to the new surface affiliations, and the image features and fusion weights are recalculated according to the new projection pixels. When the projection correspondence remains consistent but the visibility changes, the image features participating in the fusion are reselected according to the changed visibility, and the fusion distance is recalculated.

[0092] Geometric residuals are calculated based on the difference between candidates and common measured support, rather than solely using the distance from a candidate to its own generating surface, since the distance from a candidate to its own surface in an exact intersection is always 0. Specifically, the support quality can be characterized by the prediction residuals of the candidate generating surface to the corresponding valid observations, and then combined with the deviation of the candidate from the common local reference surface to form a geometric evaluation. The residuals are divided by the measurement uncertainty scale of the corresponding observation to become a dimensionless quantity, and a non-negative function that decreases as the residuals increase is used to form the geometric coefficients. For example, the square of the normalized residuals is added to 1 and the reciprocal is taken. Candidates outside the support domain are not retained by reducing their weights, but are excluded from the definite fusion group.

[0093] Image and geometric fusion features are used to predict candidate confidence coefficients. They can connect the image vector sampled within the current surface with the local normal, candidate residuals, and effective observation distribution description. After linear transformation and nonlinear activation, the output is a non-negative value. During training, the corresponding mapping is adjusted according to the error between the fusion distance and the reference distance. During inference, the reference distance is not read. The geometric coefficients participate in the weight formation as independent multiplicative factors calculated by the actual support. Image features can only adjust the distance contribution within the candidate group with geometric belonging. They cannot cross surface groups by increasing the confidence coefficient of a candidate. The specific fusion operation uses the following formula.

[0094] ;

[0095] Where j still represents the original record index, h is the current candidate update round, and m is the candidate number in the corresponding round. Let j be the candidate set of target record j in the currently selected surface during round h. For the h-th round and j-th record, find the candidate distance corresponding to record number m. This is the distance estimate obtained from this round of fusion; The non-negative confidence coefficients are calculated from the features that are allowed to participate in the fusion. These are the non-negative geometric coefficients obtained based on the effective observation residuals; and Multiplication constitutes the distance contribution weight; the numerator is used to accumulate the weighted distances of each candidate, and the denominator is used to accumulate the weights to complete the normalization; the distance dimension adopts a uniform length unit, and both types of coefficients are dimensionless; when the denominator is 0, division calculation is not performed, and the target record is marked as unresolved.

[0096] For example, if two distance candidates for the same supported surface are 4.0 meters and 4.2 meters, and their normalized contributions after combination are 0.75 and 0.25 respectively, the fused distance is 4.05 meters. If one of the candidates does not belong to the selected surface, it will not participate in the above summation. The foreground distance of 2 meters and the background distance of 6 meters cannot generate an intermediate result of 4 meters just because their confidence coefficients are the same. The coefficient change changes the contribution of different distance estimates within the same surface, but does not change the identity of the surface to which the candidate belongs. Occlusion candidates only calculate the distance within their geometric branches and cannot use the fusion confidence coefficient generated before the image was deactivated.

[0097] Please refer to Figure 4 , combined Figure 4 The numerical boundaries of the weighted fusion on the same surface can be verified. The horizontal axis represents the normalized contribution of the second candidate, ranging from 0 to 1, while the contribution of the first candidate decreases from 1 to 0 accordingly. The vertical axis represents the distance along the original measurement ray, in meters. The gray dashed line and gray dotted line are fixed at 4.0m and 4.2m respectively, representing the distances of the two candidates, and the black solid line represents the fusion result. When the contribution of the second candidate is 0.25, the black solid line corresponds to 4.05m; when the contributions of the two candidates are equal, it corresponds to 4.10m, and the endpoints return to 4.0m and 4.2m respectively.

[0098] The horizontal axis here represents the confidence coefficient in the formula. With geometric coefficients After multiplying, then in The contribution is obtained from internal normalization, rather than the confidence coefficient alone. After fixing the two candidate distances, the increase in contribution makes the fusion distance change linearly between the two. Figure 4The premise is that both candidates belong to the same surface that is currently selected and supported; this relationship cannot be extrapolated to an average rule between the foreground and background. The curve is used to show the parameter response of the formula and does not represent the update round or changes in measured error; even if the obtained distance is between two candidates, the spatial point must still be reconstructed from the original ray and then written back after passing the support domain, reprojection, and visibility verification.

[0099] The fusion distance is still converted into a three-dimensional position according to the original ray. This restriction only maintains the spatial direction and does not guarantee that the weighted position is necessarily located within the fitted surface or the support domain. Therefore, the fusion point is reprojected onto the corresponding local reference plane to check the support domain assignment and compare whether its residual to the effective observation reference surface falls within the measurement tolerance range. Then, the camera line intersection is re-performed. If the fusion point falls on a hole in the patch or changes the surface assignment, the current value is not written back. Instead, the candidate group is reconstructed according to the new correspondence. If a supported group cannot be established, it is left unresolved. Mathematical weighted computability is not used as a condition for data rewriting.

[0100] In this embodiment, the most recently used combination of projected pixels, surface markers, and visibility is saved for each target record. After candidate recalculation, the old and new combinations are compared. When the combination changes, the relevant image sampling and fusion calculation are reconstructed. When the combination appears repeatedly but the geometric verification fails, a candidate loop is identified and the decision write-back branch is exited. When the combination is the same and the continuous coordinates change slightly, the interpolation coefficients are recalculated to avoid interpreting the unchanged discrete pixels as the completely unchanged image features. Only when the candidate calculation is re-executed under the current projection relationship, and the obtained fusion result passes the geometric verification and the corresponding state of adjacent rounds is consistent, is the repair distance of the corresponding original index submitted.

[0101] In a further preferred embodiment, the surface coverage area supported by effective observation is projected as a surface mask. Before extracting image features, the image sampling neighborhood of the projection position is filtered using the surface mask, and only the information of the image position within the mask is aggregated. When the projection correspondence changes, the image sampling neighborhood is re-filtered according to the new surface affiliation and image features are extracted.

[0102] Specifically, the image sampling location and the surface mask jointly determine the available pixels. When using interpolation sampling, only adjacent pixels within the mask are retained and the interpolation contribution of the retained pixels is renormalized. When using convolution aggregation, the surface mask is passed for each neighborhood aggregation and inputs outside the mask are excluded. Features cannot be extracted from the foreground and background mixed images first and then the mask is only added at the output. When the retained sampling term is empty, the image features are marked as unusable. Zero features are not used to impersonate valid observations. As the candidate projection crosses the surface region boundary, the old sampling neighborhood and normalization results become invalid and are recalculated according to the new surface assignment.

[0103] The source of the surface mask is kept to the area covered by the currently measured surface in the image. The target contour predicted by the image network can participate in boundary verification, but the mask cannot be extended to the background area without geometric support. For example, when the candidate is close to the vehicle contour, the pixels required for interpolation may fall on both the vehicle and the road behind it. The vehicle candidate only uses the information in the vehicle surface mask, and the road candidate stops using the corresponding image component when the camera's line of sight is blocked by the vehicle. Different candidate groups are retained in the untimed assignment. Therefore, the same image neighborhood can correspond to different actual feature calculation paths. The path selection is determined by the candidate's geometric state.

[0104] Please refer to Figure 5 In a preferred embodiment, updating the projection correspondence includes: associating the LiDAR record to be repaired with its projection depth constraint using the original record index; canceling the depth constraint of the original projection position belonging to the LiDAR record to be repaired before updating the distance candidates; saving the projection position and surface affiliation of each distance candidate in the mutually separated candidate states; recalculating the image guidance features based on the candidate states; and not writing the distance candidates into the effective measured depth set.

[0105] Specifically, the original record table maintains immutable indexes, the active measured constraint table only stores observations that are currently allowed to provide geometric support, the surface support table stores the original indexes of patches and constituent patches, the candidate table stores the target index and the current projection state of each distance hypothesis, and the repair result table stores the outputs that have passed the review. The tables are associated with each other through the original indexes rather than through merging of similar depths. After an original record is listed as to be repaired, its contribution is withdrawn from the active constraint table, but the input values ​​in the original record table are still traceable. Neither the candidate table nor the repair result table directly becomes the data source for the measured support table.

[0106] After removing the old projection constraints, it is necessary to reconstruct the sparse depth and validity masks of the affected locations, and recalculate the global depth features and cross-branch guided features that depend on these inputs. The hybrid features used for local updates are also regenerated. The image base data that is completely independent of the depth input can be retained, but intermediate results that have been mixed with the distance to be repaired cannot be reused. If the original input location uses the minimum value selection or neighborhood aggregation of multiple measured values, the selection and aggregation are re-executed from the remaining measured records after removal, instead of just setting one position in the final tensor to zero. The recalculation range is determined by the actual data dependencies.

[0107] When multiple distance hypotheses are evaluated in parallel, each candidate is associated with the currently used support data version and projection state. Changes in the candidate projection position only update the temporary correspondence in the candidate table and do not directly modify the original input of other candidates. Image guiding features are also re-acquired according to their respective surface masks. When a candidate moves from one pixel to another, the original abnormal constraints in the old pixel are not restored, and the measured constraints of other records in the new pixel are not covered. Candidates can read the measured support of the new position, but cannot increase the number of measured support at the new position by their own distance. The source index and estimated identity jointly determine the computation path that the data can enter.

[0108] For the constraint cancellation of a single record to be repaired in a certain projected pixel, the following formula can be used to represent the set of retained constraints. Other records that have been determined to be invalid are excluded before forming the input set. The formula only describes the cancellation of the current target index and the actual identity screening.

[0109] ;

[0110] Where p and q are the row index and column index used for image storage and retrieval, respectively. For pixels The original set of projection constraints involved in this processing. This is the set of projection constraints obtained after filtering and elimination. For a single projection constraint record within the set; The source extraction operation returns the original record index corresponding to the constraint; This operation reads the identity and returns the data type identifier of the constraint; j is the index of the original record to be repaired. This serves as a data type identifier, representing the measured data. This indicates that constraints that are from the same source as the target record will be removed. This indicates that only measured constraint records are retained; vertical line This represents the set filtering conditions; multiple conditions must be met simultaneously. This indicates that the filtered elements are taken from the set of projection constraints corresponding to the original pixels.

[0111] For example, a pixel stores the camera axial depth of 4.2 meters for record 268, 7.0 meters for record 417, and 9.1 meters for record 913. When the current index to be repaired is 417, the reserved set only contains the active measured constraints corresponding to 268 and 913. Even if the candidate depth of 417 is estimated to be 8.8 meters, it will not be added to the reserved set. If the two remaining records belong to different surfaces, their projection layers are saved separately. When constructing the single-layer input of the network, the available surface is selected based on the visibility relationship. The remaining depths cannot be averaged to obtain a new measured value. If all remaining records are excluded, the measured mask of the corresponding pixel is set to invalid, and the state of lacking support is retained.

[0112] Please refer to Figure 6 , Figure 6 The constraint filtering is illustrated using four discrete objects. The horizontal axis distinguishes between the measured values ​​of record 268, the target measured value of record 417, the measured value of record 913, and the candidate of record 417. The vertical axis represents the camera axial depth in meters. The heights of the bars correspond to 4.2, 7.0, 9.1, and 8.8 meters, respectively. Diagonal textures indicate that the measured value is retained, cross textures indicate that the target is withdrawn, and dot textures indicate that the candidate is excluded. The bar height only represents the input depth; the processing status is distinguished by the legend. Therefore, bars that have been withdrawn or excluded are still drawn, but this does not mean that the object has entered the filtering results.

[0113] When the target index j is 417 Records 268 and 913 both meet the conditions that their source is different from the target and their identity is the actual test result, and thus enter... Although the original target's measured values ​​are numerical, they are also... Cancelled because it shares the same origin as the target; the 8.8m candidate is both a source of the target and its... This is not based on actual testing and cannot be considered new support. The two retained depths maintain the original index and surface layer respectively, without using average values ​​to replace them.

[0114] In a further preferred embodiment, when multiple original records correspond to the same projection position, depth constraints are saved according to the original record index and classified into different projection layers based on the surface attribution organization; when the depth constraints of the lidar record to be repaired are revoked, other original records and corresponding projection layers are retained; after the distance candidate is updated, a temporary correspondence is established between the candidate projection position and the projection layer, and the inter-layer occlusion relationship is determined with the retained effective measured depth constraints, the surface visibility is updated and a fusion review is performed; after the review, the repair result is associated with the corresponding original record index and saved, while maintaining other depth constraints at the same projection position.

[0115] The projection layers are organized with stable surface identifiers. Each layer stores its original record list, continuous projection position, and corresponding spatial depth. Depth sorting is used to retrieve surfaces that may be in front of the candidate. The sorting order does not replace the surface identifier. When records 268 and 913 fall into the same discrete pixel, their continuous projection positions may still be different. Therefore, it is necessary to find the intersection between the candidate's actual camera line of sight and the finite support surface corresponding to 268. Only when the intersection point exists and is in front of the candidate does it constitute occlusion support. If two lines of sight just fall in the same pixel bucket without passing through the same support surface, their respective geometric relationships are preserved, and foreground and background deletion is performed directly without pixel collision.

[0116] The cancellation of activity measurement records may also change the support conditions of the original facets. Therefore, the surface support table saves the original record indexes that make up the triangles and participate in the fitting. After the record is cancelled, the facets that depend on the corresponding index are retrieved, the triangles that are missing the vertices are deleted, and the same connected piece that is still retained is used to observe and refit. The coordinates of the cancelled points cannot be left in the grid used for visibility judgment. After refitting, the position of the support domain shrinks and becomes the unsupported area. The candidates that were originally judged to be visible should also be re-judged under the new support version. When the candidate distance is the same but the support surface changes, it is still necessary to check.

[0117] In a batch processing embodiment, the original indexes that have been identified as needing repair in this batch are uniformly excluded from the active measured constraints. A shared support snapshot is established with the remaining valid records. Each target record uses an independent candidate state for distance updates. The estimation results completed by a certain target first are not added to the measured support of other targets in the same batch. When the support snapshot changes, the visibility conclusions and fusion weights that rely on the old version are invalidated and recalculated. The results are submitted according to the original index of the target. Before submission, it is checked whether the support snapshot version is consistent with the review version. If they are inconsistent, they are reviewed again. The result cannot be submitted to the output view simply because the distance field has generated a value.

[0118] In a specific processing scenario, the original target record is identified as an anomalous ranging near the boundary. Its initial projection falls on the foreground image region. The measured observation is retained, forming local surfaces of the foreground and background. After the old constraints of the target are removed, the intersection points of the original laser ray and the supported surface are calculated respectively. If the background intersection point is consistent with the scanning neighborhood and the foreground patch does not cover the original laser ray, the background candidate is retained. Then, it is checked whether the camera line of sight passes through the foreground patch. If it does, the distance is corrected by the background geometric path. If it does not pass through and the supported visibility condition is met, the background image features are introduced at the updated image position. If the surface relationship still has competition, the write-back is paused.

[0119] In another specific processing scenario, after fusion, the candidate pixels within the same surface group are still located on the original laser beam, but their camera projection moves from the original pixel to the adjacent pixel. The new image sampling neighborhood contains the edge of another object. The processor re-selects available pixels based on the new surface mask and recalculates the candidate weights. The high-confidence results of the original pixels cannot be used. In subsequent fusion, if the projected pixel and the surface state remain consistent, but the continuous projection position changes, the interpolation contribution is updated and the geometric residual is checked again. If the fusion position moves out of the measured support domain, the fusion value is revoked and other legal candidates are retained. If there are no legal candidates, the target record is saved as pending.

[0120] In a preferred implementation of data quality, the uncertainty scale of the observation is obtained from the repeated ranging residuals on the confirmed surface. The median of the residuals and the median absolute value of the deviation from the median of the residuals are calculated separately. The latter is multiplied by 1.4826 under the Gaussian approximation to obtain the scale estimate. The measurement allowable band is constructed using the corresponding scale and propagated to the camera axial depth through the existing coordinate transformation. When the sample is insufficient or the scale is degraded, the quality range provided by the data source is used. When neither is available, no determination of the order of precedence is performed. These numerical processing only apply to the input data quality description and do not modify the sensor's transmission or reception settings.

[0121] One feasible approach for determining the measurement tolerance zone is to use three times the credible residual scale as the local observation allowable deviation range. The larger of this range and the observation error range declared by the data source is used for geometric consistency checks. The distance difference before and after the candidate update is also tested using the allowable range of the corresponding supporting observation. When the depth allowable intervals of the foreground intersection point and the background candidate intersect, no occlusion order is forcibly established. The allowable range is not used for merging candidates across surfaces, but only determines whether the numerical residuals and their order within the same surface can be distinguished by the current observation. Therefore, larger measurement uncertainties will generate more unresolved records without expanding the effective measured support domain.

[0122] The complete processing results can be checked through data consistency conditions, including whether each submitted point is located on the corresponding original measurement ray, whether the candidates participating in distance weighting have the same surface affiliation, and whether the support version used during write-back is consistent with the review version. The check also reads the active measured constraint table to confirm that the revoked target index does not remain in the original projection position, the candidate and repair results have not entered the measured support set, and other original indexes in the shared pixels are still kept as independent records. The above checks are performed on the calculation relationship itself and do not replace the geometric and source verification of each record with a preset error improvement ratio.

[0123] In the output interface of this embodiment, the repair record carries the original index, repair distance and its three-dimensional coordinates, and is associated with the selected surface and the verification status. The unresolved record saves the candidate group and the geometric conditions that were not met. When generating the camera view depth map, only the output consistent with the visible surface of the camera is used. When generating the lidar repair point cloud, the result that has passed the geometric verification is saved according to the original measurement ray. Even if the background point cannot enter the camera foreground depth layer, it is not deleted from the lidar output. The original range, candidate estimate and submitted repair value of the same record remain distinguishable in the storage relationship. Subsequent reading selects the corresponding data view through the original index.

Claims

1. A method for repairing abnormal lidar data based on multi-source feature fusion, characterized in that, include: Along the original measurement rays recorded by the lidar to be repaired, distance candidates with surface attribution are generated using point cloud geometric features and corresponding images; The distance candidates are converted into three-dimensional points on the original measurement ray and projected onto the image according to the calibration relationship. When the three-dimensional points are visible, the image features of the corresponding projection position are fused with the point cloud geometric features and the distance candidates are updated. Based on valid observations, a surface to be repaired is selected. The distance candidates within the surface to be repaired are weighted and fused. The three-dimensional points corresponding to the fused distances are reprojected. The candidate update and fusion are re-executed according to the new projection correspondence. When the projection correspondence and surface visibility of two adjacent fusion results are consistent, the lidar record to be repaired is written back along the original measurement ray.

2. The method for repairing abnormal lidar data based on multi-source feature fusion according to claim 1, characterized in that, The generation of the distance candidate includes: taking the image and the sparse depth map formed by the effective lidar records as input, generating a global prediction surface, and generating a local fitting surface with the effective scanning neighborhood of the lidar records to be repaired. The intersection points of the original measurement ray with the global prediction surface and the local fitting surface are calculated respectively. The distance from the intersection point to the starting point of the original measurement ray is recorded as a distance candidate, and the surface to which the intersection point belongs and the corresponding valid observation are associated.

3. The method for repairing abnormal lidar data based on multi-source feature fusion according to claim 1, characterized in that, The determination of surface visibility includes: intersecting the line of sight from the camera projection center to the three-dimensional point with the surface supported by effective observation, and sorting the intersection points by depth; When there is a valid intersection point of other surfaces in front of a 3D point, it is marked as an occlusion candidate. When the line of sight falls within the surface coverage area supported by effective observations and the surface to which the first intersection belongs is consistent with the surface affiliation, it is marked as a visible candidate; When surface coverage is missing or there is competition for attribution, it is marked as undetermined, and the corresponding relationships of competing surfaces are retained, without determining visibility solely based on the order of the distance candidates.

4. The method for repairing abnormal lidar data based on multi-source feature fusion according to claim 3, characterized in that, For the visible candidates, the image features of the surface to which the current projection position belongs are fused with the geometric features of the point cloud. The fusion weight is calculated by combining the geometric residuals of the candidate 3D points relative to the effective observations. The fusion weights are normalized within the same surface and the fusion distance is calculated. The three-dimensional points corresponding to the fusion distance are reprojected, and the projection pixels and their surface affiliations are used to form a projection correspondence. When the projection correspondence between two adjacent fusion results changes, candidate groups are reconstructed based on the new surface assignment, and image features and fusion weights are recalculated according to the new projected pixels. When the projection correspondence remains consistent but the visibility changes, the image features to be fused are reselected according to the changed visibility, and the fusion distance is recalculated.

5. The method for repairing abnormal lidar data based on multi-source feature fusion according to claim 2, characterized in that, The generation of the local fitting surface includes: taking the effective observations in the effective scan neighborhood as nodes, establishing connections according to the scan adjacency relationship, breaking the connections that cross geometric discontinuity boundaries, and forming connected patches corresponding to different surfaces respectively; Establish a local reference plane for each connected component and fit a local surface. Define the coverage area of ​​the connected component on the corresponding local reference plane as the surface support domain. The intersection points of the original measurement ray with each local surface are calculated. Only the intersection points projected onto the surface support domain are converted into distance candidates, and the corresponding connected piece identifiers are written into the surface attribution.

6. The method for repairing abnormal lidar data based on multi-source feature fusion according to claim 3, characterized in that, For the occlusion candidates, image features corresponding to the projection positions are excluded, while their local fitting surfaces and distance candidates are retained, and effective observations supporting the local fitting surfaces are used to participate in the candidate update. For candidates with uncertain visibility, candidate groups for the front and back surfaces are saved separately. Distance weighting is not performed between different candidate groups. The lidar record to be repaired is marked as pending and write-back is paused.

7. The method for repairing abnormal lidar data based on multi-source feature fusion according to claim 1, characterized in that, The surface coverage area supported by effective observation is projected as a surface mask. Before extracting image features, the image sampling neighborhood of the projection position is filtered by the surface mask, and only the information of the image position within the mask is aggregated. When the projection correspondence changes, the image sampling neighborhood is re-selected according to the new surface assignment and image features are extracted.

8. The method for repairing abnormal lidar data based on multi-source feature fusion according to claim 6, characterized in that, The update of the projection correspondence includes: associating the lidar record to be repaired with its projection depth constraint using the original record index, and canceling the depth constraint of the lidar record to be repaired in the original projection position before updating the distance candidate. In the mutually separated candidate states, the projection position and surface affiliation of each distance candidate are saved, the image guidance features are recalculated based on the candidate states, and the distance candidates are not written into the effective measured depth set.

9. The method for repairing abnormal lidar data based on multi-source feature fusion according to claim 5, characterized in that, The effective observations are projected onto the image, the projected pixels are associated with the global prediction surface, and the attribution correspondence between the global prediction surface and the local fitted surface is established based on the connected component identifier. When the same global prediction surface corresponds to different connected pieces, the global surface region is divided according to the projection boundary of the surface support domain of each connected piece in the image, and the intersection of the original measurement ray with each global surface region is calculated respectively. The distance candidates formed by each intersection point and the local distance candidates of the same connected component are grouped into the same candidate group; For global prediction regions that simultaneously fall within the projection range of different surface support domains, the intersection points and their affiliations with each connected piece are retained, and the corresponding candidate groups are not merged. For global distance candidates that cannot be assigned to valid observations, they are retained as undecided candidates and excluded from distance weighting.

10. The method for repairing abnormal lidar data based on multi-source feature fusion according to claim 8, characterized in that, When multiple original records correspond to the same projection position, depth constraints are saved according to the original record index, and different projection layers are formed based on the surface attribution. When removing the depth constraint of the lidar record to be repaired, other original records and corresponding projection layers are retained; After the distance candidate is updated, a temporary correspondence is established between the candidate projection position and the projection layer. The inter-layer occlusion relationship is determined by the retained effective measured depth constraint. The surface visibility is updated and a post-fusion verification is performed. After review, the repair results are associated with and saved with the corresponding original record index, while maintaining other depth constraints at the same projection position.