Livox-SDK / livox_camera_lidar_calibration

Calibrate the extrinsic parameters between Livox LiDAR and camera
Other
479 stars 135 forks source link

Remove black points in the generated colored point cloud #30

Open hany606 opened 2 years ago

hany606 commented 2 years ago

This code will generate black points if their RGB values are zero as they are only registered in the "cloud" PointCloud, but isn't the intention of the following snippet: (lines 221-223)

                if (RGB[0] == 0 && RGB[1] == 0 && RGB[2] == 0) {  
                    continue;
                }

to exclude the points in the point cloud that has no colour correspondence in order not to visualize it? If my assumption is correct about the real intention, then just setting the xyz coordinates after the condition will fix that small bug.

Thank you very much for your great package, it is really cool and works pretty good, but had some hard time with detecting the corners in the point cloud.