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

Convert x, y to millimeters using depth value #52

Open
Jemaima opened this issue Mar 28, 2018 · 1 comment
Open

Convert x, y to millimeters using depth value #52

Jemaima opened this issue Mar 28, 2018 · 1 comment

Comments

@Jemaima
Copy link

Jemaima commented Mar 28, 2018

I got x,y in depth space by using kinect.body_joints_to_depth_space(joints) and i got a depth value correspondent to this x,y in millimeters. So, how can i convert x,y that are pixel number of depth image to millimeters in camera space? I know only the one solution that requires a focal length of the depth camera. Is it possible to get it somehow? Or maybe there is an another way to get it?

@Ddylen
Copy link

Ddylen commented Jan 28, 2020

I found what I think to be an easier method, using the kinect._mapper.MapColorFrameToCameraSpace function, which gives you a 3D position in the cameras coordinate system. I've got an example program that gets the x,y,z value of a pixel in meters in the replies to #24

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