Depth frames
I would like to collect depth frames and compute later offline the pointcloud for each depth frame, but it is not possible (Matlab crashes).
for i=1:20
fs = pipe.wait_for_frames();
aligned_frames = alignedFs.process(fs);
depth(i)= aligned_frames.get_depth_frame();
end
save ('depth.mat', 'depth')
load('depth.mat', 'depth')
for i=1:20
points = pointcloud.calculate(depth(i)); --> FAIL
vertices = points.get_vertices();
vertices2=[vertices(:,1), vertices(:,3), -vertices(:,2)];
PC=pointCloud(vertices2);
end
-
Hi Cristian Vilar Are you using the RealSense MATLAB wrapper with Windows 10 please?
https://github.com/IntelRealSense/librealsense/tree/master/wrappers/matlab
If you are using the wrapper, are you using MATLAB R2017b with it and have the camera plugged into a USB 3 port, as required by the wrapper's instructions?
-
The MATLAB wrapper requires MATLAB 2017b. A MATLAB user recently experienced Frame didn't arrive within 15000 errors when attempting to run scripts with MATLAB 2019a and 2020a. Have you experienced this error too?
https://github.com/IntelRealSense/librealsense/issues/8113
An official feature request for the addition to the wrapper of 2020b support has been submitted, but that support is not available at this time.
-
I try with the matlab2017b.
I have the same error.
error message is:
This error was detected while a MEX-file was running. If the MEX-file is not an official MathWorks function, please examine its source code for errors. Please consult the External Interfaces Guide for information on debugging MEX-files.
-
I could find only one past case where this MATLAB error has occurred with librealsense. lramati, who is one of the main contributors of example programs in the RealSense MATLAB wrapper, offered advice in this discussion.
https://github.com/IntelRealSense/librealsense/issues/6057
Please sign in to leave a comment.
Comments
6 comments