-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
L515 Point Cloud projection on 2D image with lattice cell on points cloud #9658
Comments
Hi @Ziling169BENZHI I have only seen this grid effect once before, on a case about the SR300 camera model, and it was thought to be related to the infrared stream. Could you try commenting-out of removing the line cfg.enable_stream(RS2_STREAM_INFRARED); from the PCL script to see whether this resolves the problem, please? The script does not seem to need an infrared stream anyway if your camera model is equipped with an RGB sensor (which the L515 is). Regarding the issue with rs2_project_point_to_pixel ... I have not seen this particular described problem on L515. The L515 case #8655 that provides scripting that uses rs2_project_point_to_pixel in its scripting may be worth reading though. |
Hi Marty, Thanks for the quick reply. However, I am not using cfg.enable_stream(RS2_STREAM_INFRARED); in my code.
and I used the method in rs-pcl-color.cpp to get the 2D image plane for the pc.
} I am not sure whether the texture.get_stride_in_bytes() is causing the problem?? |
Does the lattice disappear if you use 1280x720 for color instead of 1920x1080 |
Hi @Ziling169BENZHI Do you require further assistance with this case, please? Thanks! |
Thank you for the answer! The problem was resolved after I change the depth stream. However, I am experiencing new problems that my normal for XYZ is not calculated. Is that ok for you to take a look? I am not quite sure where is wrong. I just copy the calculation procedure from the point cloud.CPP. |
In your script, did you set up int in the line before std::tuple |
Hi @Ziling169BENZHI Do you require further assistance with this case, please? Thanks! |
yeah I still need assistance on calculating the normal of the point cloud, I simply used the code from the rs_export.cpp:
''' however, it did not work, I am not sure where exactly I got it wrong. I did not use the std::tuple to store it. |
Another RealSense L515 user wanted to calculate point cloud normals in #8982 in May 2021 but that particular question did not have an answer provided. In #5120 a RealSense team member recommended calculating normals outside of the SDK. There is a PCL script for RealSense that my research found that computes normals. https://www.twblogs.net/a/5b8e5b682b71771883449636
|
Hi @Ziling169BENZHI Do you require further assistance with this case, please? Thanks! |
Case closed due to no further comments received. |
Before opening a new issue, we wanted to provide you with some useful suggestions (Click "Preview" above for a better view):
All users are welcomed to report bugs, ask questions, suggest or request enhancements and generally feel free to open a new issue, even if they haven't followed any of the suggestions above :)
Issue Description
<Describe your issue / question / feature request / etc..>
I tried to project 3D point clouds onto 2D image pixel coordinates, and I double-checked on the rs2_project_point_to_pixel(...). However, it seems like the output is two float data in meters rather than the int pixel coordinate.
Can I ask the reason for this output and how to fix it?
Later I tried the code from https://github.com/IntelRealSense/librealsense/blob/master/wrappers/pcl/pcl-color/rs-pcl-color.cpp,
in this method:
std::tuple<int, int, int> RGB_Texture(rs2::video_frame texture, rs2::texture_coordinate Texture_XY)
It works, but the output image has some lattice cells on the data. Do you have any idea how I can improve the result to a smooth face without the cells?
Best
@MartyG-RealSense
The text was updated successfully, but these errors were encountered: