-
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
Extract the pixel data of each frame #10621
Comments
Hi @Amayess You can obtain the XYZ of a specific pixel by converting a color pixel to a depth pixel with rs2_project_color_pixel_to_depth_pixel. A C++ example can be found at #2982 If you wish to be able to access the XYZ of all coordinates then generating a point cloud and storing its vertices with the points.get_vertices() instruction to retrieve XYZ from the vertices may a helpful approach, as described at #1783 and #5728 |
What if i want to get the distance between every points or pixels contained in a depth frame ? |
The SDK has a C++ example program called rs-measure that can measure the real-world distance between two points. So conceivably you could find the distance between any two points from coordinate A to coordinate B by changing the values of A and B to the coordinates that you want to compare the distance between. https://github.com/IntelRealSense/librealsense/tree/master/examples/measure |
Hi @Amayess Do you require further assistance with this case, please? Thanks! |
Hi @MartyG-RealSense, I am still working on it. Can I close it when i will finish ? Thank you |
Yes, it is fine to close it when you are ready to do so. Thanks very much for the update! |
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 new issue, even if they haven't followed any of the suggestions above :)
Issue Description
Hi @MartyG-RealSense, I am looking for a way to extract the pixel coordinates (x,y,z) of the first 40 frames, so far now i have been able to extract the pixel data using the RealSense example "Rs-hello" that i modified like this :
Is it possible to have an access to the whole data information of each pixel for each frame ? Thank you
The text was updated successfully, but these errors were encountered: