Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Java (http://www.chiefdelphi.com/forums/forumdisplay.php?f=184)
-   -   Java Kinect class question (getPosition()) (http://www.chiefdelphi.com/forums/showthread.php?t=99371)

That Canadian 07-01-2012 16:03

Java Kinect class question (getPosition())
 
In the new Kinect class there is a method getPosition that returns a Kinect.Point4 variable. Within the varaible there is an x, y, z, and w float value. Now I know what the x, y, and z variables are representing but what is the w value for?

Greg McKaskle 07-01-2012 16:39

Re: Java Kinect class question (getPosition())
 
For more details on the four member vertex, take a look in the Microsoft documentation for the Kinect. The short answer is that it is normally not used. It is present because it is useful when performing spatial transforms. The exception is that w contains useful info when describing the floor plane as identified by the Kinect.

Greg Mckaskle

Ginto8 07-01-2012 23:27

Re: Java Kinect class question (getPosition())
 
Is the Kinect's w coordinate anything like the w coordinate in homogeneous coordinate spaces?

Although on http://blogs.msdn.com/b/eternalcodin...ndows-sdk.aspx it says that it's the "quality level." So would it instead be the certainty with which it can determine the coordinates?

Greg McKaskle 08-01-2012 08:53

Re: Java Kinect class question (getPosition())
 
The Kinect SDK that was installed with the Kinect drivers has a section on structures and here is an excerpt.


vector4_u32
Four unsigned 32-bit integers.
x
X coordinate.
y
Y coordinate.
z
Z coordinate.
w
W coordinate. For the floor plane, the W value is the distance from the plane to the origin. For all other vectors, this value is 1.0.


Greg McKaskle


All times are GMT -5. The time now is 22:16.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi