title: Kinect raw depth to distance in meters
body: <p>I am trying to convert Kinect depth map to distance in meters. The problem is that for depthmap value '1080' and around it, distance is too large because the term in denominator becomes very close to '0'. and for values above '1090', distance is negative.</p>
  
  <pre><code>if (depthValue &lt; 2047) 
  {
    depthM = 1.0 / (depthValue*-0.0030711016 + 3.3309495161);
  }
  </code></pre>