{
  "id": 1267,
  "title": "Convert raw depth to depth in 'cm'",
  "url": "/competitions/GestureChallenge/discussion/1267",
  "author_name": "Saad",
  "post_date": "2012-01-11T19:31:58.413000",
  "votes": 0,
  "comment_count": 0,
  "views": 1422,
  "content": "<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>\r\n<pre><code>if (depthValue &lt; 2047)&nbsp;</code></pre>\r\n<pre><code>{</code></pre>\r\n<pre><code> depthM = 100 / (depthValue*-0.0030711016 &#43; 3.3309495161);&nbsp;</code></pre>\r\n<pre><code>}</code></pre>",
  "messages": [
    {
      "id": 8065,
      "postDate": "2012-01-11T19:31:58.413Z",
      "content": "<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>\r\n<pre><code>if (depthValue &lt; 2047)&nbsp;</code></pre>\r\n<pre><code>{</code></pre>\r\n<pre><code> depthM = 100 / (depthValue*-0.0030711016 &#43; 3.3309495161);&nbsp;</code></pre>\r\n<pre><code>}</code></pre>"
    }
  ],
  "comments": [],
  "raw_markdown_by_id": {
    "8065": ""
  }
}