GestureRecognitionToolkit
Version: 0.1.0
The Gesture Recognition Toolkit (GRT) is a cross-platform, open-source, c++ machine learning library for real-time gesture recognition.
|
Public Member Functions | |
RangeTracker () | |
RangeTracker (UINT numDimensions) | |
RangeTracker (const RangeTracker &rhs) | |
~RangeTracker () | |
RangeTracker & | operator= (const RangeTracker &rhs) |
void | clear () |
bool | setNumDimensions (UINT numDimensions) |
bool | enableTracking (bool trackData) |
bool | update (VectorFloat sample) |
bool | trackingData () |
bool | saveRangeDataToFile (std::string filename) |
bool | loadRangeDataFromFile (std::string filename) |
UINT | getNumDimensions () |
ULONG | getNumSamplesViewed () |
Vector< MinMax > | getRanges () |
Definition at line 40 of file RangeTracker.h.
GRT_BEGIN_NAMESPACE RangeTracker::RangeTracker | ( | ) |
Default Constructor.
Definition at line 25 of file RangeTracker.cpp.
RangeTracker::RangeTracker | ( | UINT | numDimensions | ) |
Constructor, sets the number of dimensions of the data.
UINT | numDimensions: the number of dimensions of the data, should be an unsigned integer greater than 0 |
Definition at line 31 of file RangeTracker.cpp.
RangeTracker::RangeTracker | ( | const RangeTracker & | rhs | ) |
Copy Constructor, copies the RangeTracker from the rhs instance to this instance
const | RangeTracker &rhs: another instance of the RangeTracker class from which the data will be copied to this instance |
Definition at line 36 of file RangeTracker.cpp.
RangeTracker::~RangeTracker | ( | ) |
Default Destructor
Definition at line 43 of file RangeTracker.cpp.
void RangeTracker::clear | ( | ) |
Clears any previous ranges and counters
Definition at line 45 of file RangeTracker.cpp.
|
inline |
Sets the if the RangeTracker should look at new data when the update function is called.
bool | trackData: sets if the RangeTracker should look at new data when the update function is called |
Definition at line 104 of file RangeTracker.h.
|
inline |
Gets the number of dimensions of the data.
Definition at line 143 of file RangeTracker.h.
|
inline |
Gets the number of samples viewed thus far.
Definition at line 150 of file RangeTracker.h.
Gets the ranges of the data.
Definition at line 156 of file RangeTracker.cpp.
bool RangeTracker::loadRangeDataFromFile | ( | std::string | filename | ) |
Load the range data from a file.
Definition at line 102 of file RangeTracker.cpp.
|
inline |
Sets the equals operator, copies the data from the rhs instance to this instance
const | RangeTracker &rhs: another instance of the RangeTracker class from which the data will be copied to this instance |
Definition at line 73 of file RangeTracker.h.
bool RangeTracker::saveRangeDataToFile | ( | std::string | filename | ) |
Save the range data to a file.
Definition at line 80 of file RangeTracker.cpp.
bool RangeTracker::setNumDimensions | ( | UINT | numDimensions | ) |
Sets the number of dimensions in the data. This should be an unsigned integer greater than zero. This will clear any previous ranges and counters.
UINT | numDimensions: the number of dimensions of the data. Must be an unsigned integer greater than zero |
Definition at line 52 of file RangeTracker.cpp.
|
inline |
Returns if the range tracker is tracking the values of new samples.
Definition at line 121 of file RangeTracker.h.
bool RangeTracker::update | ( | VectorFloat | sample | ) |
This is the main RangeTracker function, use this function to track the ranges of new data. The data will only be tracked if the tracking has been enabled (use the enableTracking function to control this). Tracking is enabled by default. The dimensionality of the input sample must match the number of dimensions the range tracker has been set to track.
Definition at line 66 of file RangeTracker.cpp.