I would like to take advantage from the depth sensor of the Kinect 2.0 SDK, but not in the sense that this data is drawn or displayed in the format of an image but rather an integer or something alike. An example of that is if I have my hand very close to the Kinect, I would get an integer value telling me approximately the range between the camera and the obstacle. maybe something like this. As the obstacle moves the Kinect recalculates the distance and updates maybe every secnond or half a second.
The distance between the kinect and the obstacle is 20 cm
The distance between the kinect and the obstacle is 10 cm
The distance between the kinect and the obstacle is 100 cm
Is that possible? I searched for tutorials, but al I could find is that the representation is usually using a point cloud or black and white depth image.