I am using Processing 3.3.6 with the openkinect library (link below). I have a Kinect V2 sensor, and as given in the examples in the below link, I am getting the depth values from a depth[]
array.
Openkinect Library for Processing
The link above gives the formula given for converting the raw depth value to depth value in meters in real world.
depthInMeters = 1.0 / (rawDepth * -0.0030711016 + 3.3309495161);
This is adapted from here :Depth in meters calculation
I am getting values ranging from 0 - 4500
, and after applying the formulae from the above references, the values after conversion to meters are not accurate, they are off by about 70m
. So, is there any other way or method to convert the depth to meters. Should I only use the official development environment like Visual Studio (C++ , C#) with the SDK for calculating depth?
Or can open source tools like Processing be used to capture the values albeit with a different approach? Help or guidance would be appreciated as it is a completely new area for me so far.