要用 Color Stream 和 Depth Stream.
http://stackoverflow.com/questions/10417495/how-to-get-real-world-coordinates-x-y-z-from-a-distinct-object-using-a-kinec
You would need to use both the
Color Stream and the
Depth Stream.
First, using the Color Stream
you would need to collect an array of pixels that match the color you are looking for and then lookup the depth data from the
Depth Stream
for those pixels to get an average distance from the camera. That gives you the
Z
.
To get the X
and Y
you would use the math from
this answer.
大家一齊探討、學習和研究,謝謝!
MCSD, MCAD, MCSE+I, MCDBA, MCDST, MCSA, MCTS, MCITP, MCPD,
MCT, Microsoft Community Star(TW & HK),
Microsoft MVP for VB.NET since 2003
My MSMVP Blog
請記得將對您有幫助的回覆標示為解答以幫助其他尋找解答及參與社群討論的朋友們。
Please remember to clickMark as Answer on the post that helps you. This can be beneficial to other community members reading the thread.