-
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
Mapping coordinates from depth to colour results in outside-of-colour-image-boundaries coordinates. #1890
Comments
Could you please share the exact code snippet you are using? |
So, my code is:
|
[Realsense Customer Engineering Team Comment]
to the real distance of that specific point, I post my solution coded in C++, please find the relative api in python. last parameter requires the real depth data in that specific pixel instead of the depth scale. |
Issue Description
Hi,
I am trying to use this method of mapping the pixels from the depth channel to colour channel. I am using the Python API and apparently the
rs.align(align_to)
method is very CPU intensive and it dramatically slows down my application. Thus, I was thinking maybe mapping depth pixels to colour pixels would make things run a little faster. However, I ran into the following problem: when I try to map depth pixel [200, 200] to its corresponding colour pixel I get returned [15294.3466796875, -113.68994140625]. I doubt this is correct since my colour channel resolution is 1280x720 and these coordinates are clearly out of [0, 1280], [0, 720]. This is what gets printed:Are there any other transformations I need to carry out? Any help is very much appreciated.
The text was updated successfully, but these errors were encountered: