microsoft / MixedRealityCompanionKit

This is a MixedRealityToolkit style repository for code bits and components that may not run directly on Microsoft HoloLens or immersive headsets but instead pair with them to build experiences.
MIT License
595 stars 288 forks source link

Incorrect Pixel order from DirectX texture black magic capture card in Calibrator #238

Open HyperLethalVector opened 6 years ago

HyperLethalVector commented 6 years ago

Hi everyone! I'm having some trouble running the Calibrator component,

Essentially I'm mirroring the suggested setup, with the exception of the capture card (I'm not using the pro 4K, just the normal pro card from black magic design)

The capture process works well, but it refused to detect the checkerboard.

After some debugging, I tried showing the mat OpenCV receives,

The image can be seen here (Left: The direct X rendering, which is correct, Right: The mat OpenCV receives from the direct X texture)

I'm not sure what's happening but it looks like the pixel order is incorrect.

Any idea how I can approach a fix?

image