-
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
Getting the 'vertices' of my D435 Depth Camera after aligning the depth frame to colour frame MATLAB #6763
Comments
Hi @hshorty The link below has a MATLAB script contributed by a RealSense user for aligning depth to color, generating the point cloud and getting the vertices with vertices = pnts.get_vertices. It may be a useful reference for comparing to your own script's approach. https://community.intel.com/t5/Items-with-no-label/MATLAB-RGB-point-cloud/m-p/584724#M10956 |
Hi @MartyG-RealSense , Initially, I stared my code with code in the link you provided. However, it also had the same issue with MATLAB. |
Thanks for the reply. However, the script you send me doesn't align the depth frame to colour frame (in this way you will not find any issue). depth = fs.get_depth_frame(); I guess there is an issue in pointcloud.m-->realsense.librealsense_mex. Actually the real issue is not in 'get_vertices()'. This is my code: pipe = realsense.pipeline(); cfg = realsense.config(); % Make Colorizer object to prettify depth output % define point cloud object % Start streaming with default settings % Get streaming device's name % Get frames. We discard the first couple to allow for i = 1:5 %create a point cloud player %%
end error msg Error in realsense.pointcloud/calculate (line 29) |
Yes, I realised that it did not have alignment and deleted the comment. I researched the subject again carefully but could not find information that would be helpful. I will therefore seek assistance within Intel. I apologise for the delay that this will cause to your work in the meantime. |
@MartyG-RealSense Thanks (y) |
Something that you could also do is try re-calibrating your D435 to eliminate the possibility that the apparent alignment problems are not due to camera mis-calibration. |
Hi @hshorty , I have run your script with the latest librealsense (development branch). I can't reproduce the issue. |
@hshorty Did you get chance to try the latest librealsense v2.38.1? Looking forward to your update. Thanks! |
Hi,
Thanks for the updat. I will try the new update and let you know.
I am currently using an error handling loop to stop getting crashed, but definitely I will try the new update.
Regards,
hs
Get Outlook for Android<https://aka.ms/ghei36>
…________________________________
From: RealSenseSupport <[email protected]>
Sent: Friday, September 4, 2020, 11:13 PM
To: IntelRealSense/librealsense
Cc: hshorty; Mention
Subject: Re: [IntelRealSense/librealsense] Getting the 'vertices' of my D435 Depth Camera after aligning the depth frame to colour frame MATLAB (#6763)
@hshorty<https://github.com/hshorty> Did you get chance to try the latest librealsense v2.38.1? Looking forward to your update. Thanks!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#6763 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AP5YOXTX4S6ZSDE3RTIW5WTSEDRW3ANCNFSM4ORLNRBA>.
|
@hshorty Any update from your side? Thanks! |
@hshorty Any chance to try the new update? Looking forward to your reply. Thanks! |
@hshorty Did you get it through? Thanks! |
@hshorty Sorry that we didn't get update from you for weeks. Will close it at this point. Please feel free to create new one if you still have questions or issues. Thanks! |
I have a problem getting the 'vertices' of my D435 Depth Camera after aligning the depth frame to colour frame. The error I get is as follow. (Sometimes the code works fine). I do change the resolution of my camera. As I noted 'pnts.get_vertices()' works fine when I don't align the frames.
**Error using librealsense_mex
null pointer passed for argument "frame"
Error in realsense.points/get_vertices (line 13)
vertices = realsense.librealsense_mex('rs2::points', 'get_vertices', this.objectHandle);
Error in RealSencepredic_track_redObject_V3_30_06_2020 (line 140)
vertices = pnts.get_vertices(); % HS [x y z]**
Does anyone have an idea on solving this issue?
The text was updated successfully, but these errors were encountered: