Does Kinect Infrared View Have an offset with the Kinect Depth View

后端 未结 4 1352
灰色年华
灰色年华 2020-12-02 00:29

I am working on a Kinect project using the infrared view and depth view. In the infrared view, using CVBlob library, I am able to extract some 2D points of interest. I want

4条回答
  •  栀梦
    栀梦 (楼主)
    2020-12-02 01:23

    This code works for many positions of the trackers from the Kinect:

    coordinates3D[0] = coordinates2D[0];
    coordinates3D[1] = coordinates2D[1];
    coordinates3D[2] = (USHORT*)(LockedRect.pBits)
    [(int)(coordinates2D[1] + 23) * Width + (int)coordinates2D[0]] >> 3;
    

提交回复
热议问题