|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.primesense.nite.UserMap
public class UserMap
This class stores the output from the UserTracker
algorithm.
The basic purpose of the User Tracker algorithm is to analyze a depth frame and to locate all users in the scene, to indicate which pixels belong to which user, and which pixels belong to the background.
The output is in the form of a two dimensional array with the same dimensions as the depth frame that was used as the input to UserTracker. Each element of the array corresponds to a single pixel from the depth map, and indicates the UserID of the user which occupies that pixel.
The UserId value 0 is used to indicate pixels that contain no users (ie background).
Method Summary | |
---|---|
int |
getHeight()
Gets the height of the UserMap array. |
java.nio.ByteBuffer |
getPixels()
Returns a direct pointer to the array containing the UserMap data. |
int |
getStride()
This function returns the stride of the array returned by getPixels. |
int |
getWidth()
Gets the width of the UserMap array. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public java.nio.ByteBuffer getPixels()
getHeight()
and getStride()
.
public int getWidth()
public int getHeight()
getStride()
to determine the size of the array in bytes.
public int getStride()
getHeight()
to calculate the size of the array.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |