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

Should I use depth_intrinsics or color_intrinsics for rs.rs2_deproject_pixel_to_point if If depth is already aligned to color? #8268

Closed
monacv opened this issue Jan 28, 2021 · 3 comments
Labels

Comments

@monacv
Copy link

monacv commented Jan 28, 2021

If I already have aligned depth frames to color (RGB) frames, for using the rs.rs2_deproject_pixel_to_point method, should I use depth_intrinsics or color_intrinsics and why?

@monacv monacv changed the title Should I use depth_intrinsics or color_intrinsics for rs.rs2_deproject_pixel_to_point if If depth is already aligned to color Should I use depth_intrinsics or color_intrinsics for rs.rs2_deproject_pixel_to_point if If depth is already aligned to color? Jan 28, 2021
@MartyG-RealSense
Copy link
Collaborator

MartyG-RealSense commented Jan 30, 2021

Hi @monacv Can you confirm please if you have performed depth to color alignment on 2D depth and color frames, and that you then want to use rs2_deproject_pixel_to_point to convert an aligned 2D image to 3D points, please?

My understanding is that if you are performing alignment then the intrinsics that you use are those of whatever you are aligning to. So if you are aligning depth to color then color_intrinsics is used. This reflects how, when aligning depth to color, the depth FOV is aligned to the color FOV size.

The discussion in the link below is a good reference that covers the concepts of depth to color alignment, rs2_deproject_pixel_to_point and color_intrinsics.

#1413

@MartyG-RealSense
Copy link
Collaborator

Hi @monacv Do you require further assistance with this case, please? Thanks!

@MartyG-RealSense
Copy link
Collaborator

Case closed due to no further comments received.

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

No branches or pull requests

2 participants