Pixel data and 3D tensors in Matlab data scripts
I am using intel RealSense d435 in MATLAB.
I have downloaded the Intel RealSense SDK for Windows10 and am using the following code in Matlab.
depth_example
depth_view_example
pointcloud_example
I don't know where in the scripts in these code the 3D tensor calculations and pixel data for depth data are written.
I want someone to tell me.
-
Hi 180445034,
The depth_example script will capture and render the depth frame with a live device. The depth_view_capture will capture and render the depth example based on apps. Then, the pointcloud_example is to generate and visualize the 3D point cloud from the live stream.In pointcloud_example.m line starting line 23, you can see the command that produces the 3D point cloud , the X= vertices(:,1,1); Y=vertices(:,2,1); Z=vertices(:,3,1); will create 3D array to the point cloud.
Regards,
Aznie
Intel RealSense Customer Support -
Hello. Aznie,
I use matlab to run depth_example and depth_view_example to get images with different colors depending on the depth.
I'm looking for where in the script the code for the pixel data needed to get different colors depending on the depth I get with the Depth camera.
I'm also looking for code for RGB data with images that can be obtained using realsense.
I think that depth_example and depth_view_example use the matlab code that exists in the "+ realsense" file, so that code is also relevant.
I'm sorry for my lack of explanation, but please reply. -
Hi 180445034,
In the depth_example and depth_view_example script, there is no extra pixel data used in the colorizer, and the colorizer use only the depth for the colorizer. So, the pixel will base on the depth itself, not on other pixel information.
Regards,
Aznie
Intel RealSense Customer Support
Please sign in to leave a comment.
Comments
6 comments