ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Roberto Battisti's profile - activity

2012-08-16 19:02:26 -0500 received badge  Famous Question (source)
2011-11-25 03:45:02 -0500 received badge  Notable Question (source)
2011-07-18 15:55:23 -0500 received badge  Popular Question (source)
2011-05-16 19:46:56 -0500 marked best answer Kinect raw disparity offset

As Felix said, OpenNI internally converts the raw disparity values to metric distances, so when using openni_kinect there's no longer any need to calibrate that conversion. If you're interested in how this was done, the code is in kinect_calibration, starting line 292.

Basically, the depth Z is related to a raw disparity reading r by Z = A / (B - r), where A and B are constants we are solving for. In calibration, we:

  1. Capture depth and IR images of a checkerboard with known size.
  2. Find the checkerboard corners in the IR image.
  3. Solve the PnP problem to get the 3d coordinates of each corner. (In the code, this is a by-product of calibrating the IR camera intrinsics.)
  4. Look up the corresponding raw disparity reading for each corner in the depth images.
  5. Given this set of (Z, r) observations, perform a least-squares fitting for A and B.
2011-04-12 23:06:01 -0500 received badge  Student (source)
2011-04-12 21:44:15 -0500 asked a question Kinect raw disparity offset

Hello, I'm looking at the kinect calibration ( http://www.ros.org/wiki/kinect_calibr... ). Can anyone tell me why the disparity offset, doff, is around 1090? How is this value obtained?

Thanks

Roberto