bibigone / k4a.net

K4A.Net - Three-in-one .NET library to work with Azure Kinect devices (also known as Kinect for Azure, K4A, Kinect v4). It includes sensor API, recording and playback API, body tracking API. Samples for WPF, .NET Core and Unity are included.
MIT License
164 stars 39 forks source link

Mismatch between images from DepthImageToPointCloud and ColorImageToDepthCamera #40

Closed fberna closed 4 months ago

fberna commented 2 years ago

Creating a mesh result in a mismacthing between vertices and colors. image

Images are inserted with the correct resolution. transformation.DepthImageToPointCloud(capture.DepthImage, CalibrationGeometry.Depth, xyzImage); transformation.ColorImageToDepthCamera(capture.DepthImage, capture.ColorImage, colorArrayImage);

bibigone commented 4 months ago

Most likely, you're doing something wrong. You can find working code in WPF sample called K4AdotNet.Samples.Wpf.Viewer.