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

Allow to perform registration while keeping the depth buffer #649

Open
SirLynix opened this issue Dec 29, 2021 · 6 comments
Open

Allow to perform registration while keeping the depth buffer #649

SirLynix opened this issue Dec 29, 2021 · 6 comments
Milestone

Comments

@SirLynix
Copy link

Hi, author of obs-kinect here.

First of all, thank you for your amazing job on libfreenect, I've been using it for my plugin but there's one issue that remains, I need to be able to get registered depth (color-mapped depth as I call it) and regular depth at the same time, however libfreenect seems to be the only kinect backend which doesn't provide a function to map depth to rgb space (libfreenect2 has Registration::apply, Kinect SDKs have MapColorFrameToDepthFrame, Azure SDK has k4a_transformation_depth_image_to_color_camera).

I see there's the internal freenect_apply_depth_to_mm which seems to do what I want, is there a way it could be exposed?

Thank you.

@piedar piedar added this to the next milestone Jan 3, 2022
@piedar
Copy link
Contributor

piedar commented Jan 3, 2022

I think you might want freenect_apply_registration because it aligns the result to the RGB image, while freenect_apply_depth_to_mm converts to mm but does not align.

@SirLynix
Copy link
Author

SirLynix commented Jan 4, 2022

Yes indeed. I made a fork of libfreeenect to expose such features which allowed me to have both depth and color-mapped depth images.

@piedar
Copy link
Contributor

piedar commented Jan 4, 2022

Nice! I had a quick go at it the other day. It's a bit more complicated, but I kept convert_packed_to_16bit internal and my registration function handles all the depth modes rather than just FREENECT_DEPTH_11BIT. Let me know what you think.

@SirLynix
Copy link
Author

SirLynix commented Jan 4, 2022

Looks good! I will give it a try to check if it works as expected soon, thank you!

@edugimeno
Copy link

Please please forgive me for hijacking this thread for this question, but there's absolutely no place / forum I can find to place a couple questions about this project. The wiki links to google groups which were closed 4 years ago. There's no other trace of forum for OpenKinect, can you please help me with directions for any currently working forum for OpenKinect / Libfreenect?

Thanks in advance and sorry

@piedar
Copy link
Contributor

piedar commented Sep 19, 2022

@edugimeno Alas, there isn't really a forum that I know of. I check in here on GitHub occasionally to fix bugs and give suggestions, but most contributors have moved on to other projects.

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

3 participants