-
Notifications
You must be signed in to change notification settings - Fork 156
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
How to use Sensor Streaming Camera Intrinsics in C# (Unity project) #51
Comments
In short, you can't. I had to write a custom little DLL to handle that since the depth camera intrinsics object is not the standard one, but a custom interface to an otherwise opaque structure. There's actually a lot of other issues when trying to do this in Unity. I've spent the past four months working on it, and it's still not exactly right. There's a bunch of coordinate transforms that need to be taken into account because the HoloLens uses coordinate systems typically used by roboticists, while Unity uses another one entirely. It makes using the matrices and projection information that much harder. Not to mention, the two samples for the Kinect, that seem like a good reference, aren't actually how the HoloLens data works in the end. |
@FracturedShader could you suggest a workflow to align depth frames with the ones from the color camera?( i mean the standard high resolution color camera, not those made accessible along with the depth and IR sensors) |
@mauronano I see you created a separate issue for this, I've responded there with some details. |
@FracturedShader can u refer to the other issue ? |
I need to map color camera pixel coordinate to depth data coordinate. But Sensor Streaming frame doesn't had property "MFSampleExtension_Spatial_CameraProjectionTransform". I only found "MFSampleExtension_SensorStreaming_CameraIntrinsics". How can I use it in C#?
The text was updated successfully, but these errors were encountered: