Kinect2 untreated depth to distance in meters

How to Convert Kinect2 Raw Deep Data to a Distance in Meters. Raw depth data was obtained by the Windows Kinect2 SDK. All this is integral data. Point: This is kinect2, not kinect1. I already had the Kinect1 equation, but it does not match. Therefore, everyone can help me. Kinect1 equation:

if (depthValue < 2047) 
{
  depthM = 1.0 / (depthValue*-0.0030711016 + 3.3309495161);
}
+4
source share
1 answer

The Kinect (2) API overview indicates:

DepthFrame , , . 16- , . 8 , 4,5 . , BodyFrame .

V. Pterneas , , . , DepthFrame # ( ):

public override void Update(DepthFrame frame)
{
    ushort minDepth = frame.DepthMinReliableDistance;
    ushort maxDepth = frame.DepthMaxReliableDistance;
    //..
    Width = frame.FrameDescription.Width;
    Height = frame.FrameDescription.Height;
    public ushort[] DepthData;
    //...
    frame.CopyFrameDataToArray(DepthData);
    // now Depthdata contains the depth
}

DepthMinReliableDistance DepthMaxReliableDistance, .

+3

Source: https://habr.com/ru/post/1617389/


All Articles