Introduction
Until now we talked about OpenNI and learned how to use it for accessing devices and their raw outputs. But from this chapter onwards, we will cover NiTE, which is a middleware based on OpenNI and more focused on natural interactions. NiTE is a product of the same team as OpenNI and acts as middleware above the OpenNI framework with the purpose of providing more advanced outputs as a basic natural interaction interface for developers.
In this chapter, we will show you how to use the nite::UserTracker
class to get the list of all active users in the scene and get their location and size in OpenNI's depth stream, along with the centre of visual mass of each user.
The nite::NiTE object
nite::NiTE
, just as with openni::OpenNI
, is a static class and a starting point when working with NiTE.
nite::NiTE
contains three methods:
nite::NiTE::initialize()
, nite::NiTE::shutdown()
, and nite::NiTE::getVersion()
.
We are
not sure what nite::NiTE::initialize()
actually does because NiTE is a...