-
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
How to get the depth value of a specific coordinate through the stored depth picture. #2200
Comments
I just got in touch with this camera. I am learning about it. The question I asked may be relatively simple, but please answer a specific point. |
As I understood you want to display Depth data (distance ) of each pixel from frame_depth. rs2::frameset frames; std:: cout << frame.get_distance(i, j) << endl; Hope that it will help you, and waiting for your response. |
Thank you for your answer. However, I got some depth images that were previously taken by others using the Intel RealSense Viewer tool and stored as ".RAW" files and ".PNG" files. I want to be able to get depth data directly from these depth images instead of the RealsenseD435 device. How can I open a ".RAW" file or a ".PNG" file and get depth data? Looking forward to your reply. |
Oki, in this case if you have saved some frames ( images in RGB or DEPTH form) you have to open them and get processing by using OpenCV library |
Thank you for your answer. I have installed the OPENCV library. However, I was unable to find a code example related to Realsense for learning. Can you provide some relevant code examples or web links? Looking forward to your reply. |
Try these: #include <opencv2/opencv.hpp> using namespace std; Mat frame; for ( int i=0; i<frame.rows; i++) namedWindow( "Display window", WINDOW_AUTOSIZE );// Create a window for display. return 0; |
I have solved the problem I have encountered. Thank you very much for your help. If I have other problems, I will ask questions on this next time. |
[Realsense Customer Engineering Team Comment] @njnydxzc |
Sorry to bother you again. Our project requirements require specific depth values, at least to the nearest 0.01. However, I did not find the specific depth of each color in the depth image. How can I convert the value of color to a specific depth value? |
@njnydxzc I also encountered this problem:one people need save the depth image and others need get the deep from the depth image .How do you solved the problem ?Please guide! Thanks! |
@njnydxzc , How did u solved the problem you encountered earlier ? |
not working properly ... can write a code for depth raw file ? |
I used the Intel RealSense Viewer tool in the SDK of the Intel Realsense D435 camera to store depth images. How do I get the depth value of a point of a specific coordinate of a depth image when processing a picture? For example, the point with coordinates (630,260).
![Uploading 2018.7_Depth.png…]()
Uploading 2018.7_Depth.raw…
The text was updated successfully, but these errors were encountered: