Skip to content
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

Point cloud modified when depth frame aligned #4536

Closed
descamps2 opened this issue Jul 31, 2019 · 2 comments
Closed

Point cloud modified when depth frame aligned #4536

descamps2 opened this issue Jul 31, 2019 · 2 comments

Comments

@descamps2
Copy link

Required Info
Camera Model D415
Operating System & Version Ubuntu 18
Platform PC
SDK Version 2.23
Language C++

Issue Description

The point cloud calculated from the depth map, using the rs2::pointcloud class, is different when the depth frame is aligned to the color frame (using rs2::align). The points are shifted in x and y by a non constant value. z values remain the same.
Is this expected behavior? What is the cause of this difference?

@ev-mp
Copy link
Collaborator

ev-mp commented Jul 31, 2019

@descamps2 , that's correct.
The rs2::pointcloud 's origin coordinate (x,y,z=0,0,0) is defined as the position of the left IR sensor, while the origin of the pointcloud produced from "Depth aligned to color" is the position of the RGB sensor.
Additionally , in the process of alignment the reprojected depth values are clamped to the RGB grid (aliasing), which adds up to the bias.

@descamps2
Copy link
Author

Ok, thanks for the clarification!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants