The right way to measure distances with the Kinect