-
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
Inaccurate pixel-pointcloud mapping #4613
Comments
Funny enough, code seems to provide a more reasonable output with a way lower resolution:
Output:
But still, why wouldn't it work with high resolution? Is there a firmware bug? |
@eyildiz-ugoe , the following lines in the test shall be revised:
A zero depth value that you got from a random assignment designates a no valid depth. ( the camera min range is about 0.1meter) Add depth validity check to make sure you operate with a proper depth data. |
Camera is about 30 cm above from the plain. And it works when I use a lower resolution, more or less. So I can't really relate to the distance problem. |
@eyildiz-ugoe , the distance is not a factor, unless the object is below the minimum range. Note that the coordinate [200,200] is VGA and in HD resolutions represent a completely different spacial coordinate so the actual measurements there are not related. You need to make sure that when you try to re-project depth pixel there is actual data produced by the camera, as the "no data" (0) value is a nominal and not an exceptional case for Depth cameras. |
I've solved this problem by recalibrating the camera again, now everything works. |
Issue Description
I'm trying to map RGB values to Points and vice versa using D435. I've found the following code that is "supposed" to do that, however, the result I am getting is totally off.
which outputs:
So, the pixel
color_pixel: [55854.78125, 143.9385223388672]
is obviously wrong, since X cannot be so high.What's wrong?
The text was updated successfully, but these errors were encountered: