An algorithm program had been designed to calculate the depth distance of the Kinect sensor depicted in figure 5.
the kinect depth sensor calculates distance based on the straight destance between the object and sensor.
the distance calculates by an internally drawn line is perpendicular to the sensor in a diagonal views of pixel.
In kincet sensor properties, depth image stream and depth stream frame classes have the maxdepth and mindepth properties, which return the maximum and minimum depth ranges for that particular stream or captured image frame, in millimeters.
this range value returns the best range where depth distance can be measured properly