发现Kinect得到的图像是左右翻转的,所以想找一找有什么设置的方法找到了下面一段描述:
All of the data streams from the Kinect are mirrored, there is no built in way for the SDK to “un-mirror” the image. In order to get the “correct” view you will have to manually reverse the x axis in your code or application.
I usually do this by writing the pixels into a new image array/texture, but if you’re using a library or graphics engine that supports it, there may be an easier or faster way to handle that.
Keep in mind you only need to flip the horizontal x axis (width) as the vertical y axis is normal. No rotation is necessary.
所以还是用opencv的方法来解决这个问题吧。