Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>This is a well known problem for stereo vision systems. I had the same problem a while back. The original question I posted can be found <a href="http://social.msdn.microsoft.com/Forums/en-US/c39bab30-a704-4de1-948d-307afd128dab/kinectsensormapdepthframetocolorframe-example" rel="noreferrer">here</a>. What I was trying to do was kind of similar to this. However after a lot of research I came to the conclusion that a captured dataset can not be easily aligned. </p> <p>On the other hand, while recording the dataset you can easily use a function call to align both the RGB and Depth data. This method is available in both OpenNI and Kinect SDK (functionality is same, while names of the function call are different for each)</p> <p>It looks like you are using Kinect SDK to capture the dataset, to align data with Kinect SDK you can use <a href="http://social.msdn.microsoft.com/Forums/en-US/c39bab30-a704-4de1-948d-307afd128dab/kinectsensormapdepthframetocolorframe-example" rel="noreferrer">MapDepthFrameToColorFrame</a>.</p> <p>Since you have also mentioned using OpenNI, have a look at <a href="http://kinectcar.ronsper.com/docs/openni/classxn_1_1_alternative_view_point_capability.html" rel="noreferrer">AlternativeViewPointCapability</a>.</p> <p>I have no experience with Kinect SDK, however with OpenNI v1.5 this whole problem was solved by making the following function call, before registering the recorder node:</p> <pre><code>depth.GetAlternativeViewPointCap().SetViewPoint(image); </code></pre> <p>where <code>image</code> is the image generator node and <code>depth</code> is the depth generator node. This was with older SDK which has been replaced by OpenNI 2.0 SDK. So if you are using the latest SDK, then the function call might be different, however the overall procedure might be similar.</p> <p>I am also adding some example images:</p> <p>Without using the above alignment function call the depth edge on RGB were not aligned <img src="https://i.stack.imgur.com/N6bT0.png" alt="Without Alignment"></p> <p>When using the function call the depth edge gets perfectly aligned (there are some infrared shadow regions which show some edges, but they are just invalid depth regions) <img src="https://i.stack.imgur.com/2GaVi.png" alt="With Alignment"></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload