Kinect v2 Floor Plane [英] Kinect v2 Floor Plane

查看:100
本文介绍了Kinect v2 Floor Plane的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图为我的程序实现一个地板飞机。我想纠正这个问题。例如,当我启动或移动Kinect时,Kinect的坐标会发生变化,但我希望Kinect"认为"地板是直的。


在我看来,如果Kinect每秒检查一次,而不是每一帧都会更好。


现在重要我的程序中这个计划的一部分如下所示:


yNew = vector(floorPlane.A,floorPlane.B,floorPlane.C);

zNew = vector (0,1,-floorPlane.B / floorPlane.C);
$
zNew.Normalize();

xNew = CrossProduct(yNew,zNew);





rotMatrix =矩阵(xNew.x,xNew.y,xNew.z,0,

yNew.x, yNew.y,yNew.z,0,

zNew.x,zNew.y,zNew.z,0,0,0,0,1);



translationMatrix = matrix(1,0,0,0,0,1,0,-floorPlane.D,0,0,1,0,0,0,0,1);



transform = translationMatrix * rotMatrix;



您有什么想法吗?


解决方案

您好
Antj13,

Visual C#论坛讨论并提出有关C#编程语言IDE的问题,库,样本和工具。您的问题与
Kinect有关。我担心你发布在一个不恰当的论坛上。我将您的主题移至
适用于Windows SDK的Kinect       >    适用于Windows v2 SDK的Kinect  
论坛以获得更好的支持。




祝你好运,


Kristin


I tried to implement a floor plane for my programm. I wanted to correct the floor. For example, when I start or move the Kinect, the coordinates of the Kinect will change, but I want that the Kinect 'thinks' that the floor is straight .

In my opinion it would be better if the Kinect checks the floor every second , not every frame.

Right now the important part for this plan in my programm looks like this :

yNew = vector(floorPlane.A, floorPlane.B, floorPlane.C);
zNew = vector(0,1,-floorPlane.B/floorPlane.C);
zNew.Normalize();
xNew =CrossProduct(yNew, zNew);


rotMatrix = matrix(xNew.x, xNew.y, xNew.z,0,
yNew.x, yNew.y, yNew.z,0,
zNew.x, zNew.y, zNew.z,0,0,0,0,1);

translationMatrix = matrix(1,0,0,0,0,1,0,-floorPlane.D,0,0,1,0,0,0,0,1);

transform = translationMatrix * rotMatrix;

Do you have some ideas ?

解决方案

Hi Antj13,

Visual C# forum is discuss and ask questions about the C# programming language, IDE, libraries, samples, and tools. Your question related to Kinect. I am afraid you posted in an inappropriate forum. I will move your thread to Kinect for Windows SDKs     >  Kinect for Windows v2 SDK  forum for better support.

Best regards,

Kristin


这篇关于Kinect v2 Floor Plane的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆