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

Depth-RGB alignment #48

Open
linwanml opened this issue Feb 16, 2018 · 4 comments
Open

Depth-RGB alignment #48

linwanml opened this issue Feb 16, 2018 · 4 comments

Comments

@linwanml
Copy link

Is there a method to read the depth value from the depth video by using python and opencv?

@r9y9
Copy link
Owner

r9y9 commented Feb 16, 2018

Assuming you are talking about reading depth values from a pre-recorded depth sequence, I think you can just use opencv’s VideoCapture.

@linwanml
Copy link
Author

Yes, I have already read the value with opencv. The depth intensity in opencv is 0-255. Is there a transform equation to map each depth intensity(0-255) into millimeter values?

@r9y9
Copy link
Owner

r9y9 commented Feb 16, 2018

That depends on how you saved depth data. For example, assuming the maximum depth in milli meter was 4500, If you scaled the depth values by 255/4500 and saved it as 8bit integers, then you can recover depth by multiplying 4500/255.

@linwanml
Copy link
Author

Ok, thank you for the answers. I have one more question, and then I will close the issue.
Are there some documents, links or papers that I can have a look about these information?

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