TSPS
1.3.2
TSPS is a cross-platform Toolkit for Sensing People in Spaces
|
#include <Person.h>
Public Member Functions | |
Person (int pid, int oid) | |
~Person () | |
virtual void | update () |
virtual void | updateBoundingRect (ofRectangle _rect) |
virtual void | updateCentroid (ofPoint _centroid, bool dampen) |
virtual void | updateContour (ofPolyline _contour) |
virtual void | draw (int cameraWidth, int cameraHeight, bool bSendContours=false, bool bSendHaar=false, float haarPadding=0) |
virtual void | setHaarRect (ofRectangle _haarRect) |
virtual bool | hasHaarRect () |
virtual ofRectangle | getHaarRect () |
virtual void | noHaarThisFrame () |
ofRectangle | getBoundingRectNormalized (float videoWidth, float videoHeight) |
ofRectangle | getHaarRectNormalized (float videoWidth, float videoHeight) |
ofPoint | getCentroidNormalized (float videoWidth, float videoHeight) |
ofPoint | getHaarCentroidNormalized (float videoWidth, float videoHeight) |
virtual string | getJSON (string type, ofPoint centroid, int cameraWidth, int cameraHeight, bool bSendContours=false, string append="") |
virtual string | getString (ofPoint centroid, int cameraWidth, int cameraHeight, bool bSendContours=false) |
virtual vector< ofxOscMessage > | getOSCMessages (string type, bool bUseLegacy, int cameraWidth, int cameraHeight, bool sendContours) |
Public Attributes | |
void * | customAttributes |
ofPoint | opticalFlowVectorAccumulation |
int | pid |
int | oid |
int | age |
ofPoint | centroid |
ofRectangle | boundingRect |
ofPolyline | contour |
ofPolyline | simpleContour |
ofPoint | velocity |
float | area |
float | depth |
ofPoint | highest |
ofPoint | lowest |
Protected Attributes | |
bool | hasHaar |
ofRectangle | haarRect |
int | framesWithoutHaar |
ofxTSPS::Person::Person | ( | int | pid, |
int | oid | ||
) |
Definition at line 12 of file Person.cpp.
Definition at line 30 of file Person.cpp.
void ofxTSPS::Person::draw | ( | int | cameraWidth, |
int | cameraHeight, | ||
bool | bSendContours = false , |
||
bool | bSendHaar = false , |
||
float | haarPadding = 0 |
||
) | [virtual] |
Reimplemented in ofxTSPS::OpenNIPerson.
Definition at line 60 of file Person.cpp.
ofRectangle ofxTSPS::Person::getBoundingRectNormalized | ( | float | videoWidth, |
float | videoHeight | ||
) |
Definition at line 183 of file Person.cpp.
ofPoint ofxTSPS::Person::getCentroidNormalized | ( | float | videoWidth, |
float | videoHeight | ||
) |
Definition at line 200 of file Person.cpp.
ofPoint ofxTSPS::Person::getHaarCentroidNormalized | ( | float | videoWidth, |
float | videoHeight | ||
) |
Definition at line 205 of file Person.cpp.
ofRectangle ofxTSPS::Person::getHaarRect | ( | ) | [virtual] |
Definition at line 152 of file Person.cpp.
ofRectangle ofxTSPS::Person::getHaarRectNormalized | ( | float | videoWidth, |
float | videoHeight | ||
) |
Definition at line 192 of file Person.cpp.
string ofxTSPS::Person::getJSON | ( | string | type, |
ofPoint | centroid, | ||
int | cameraWidth, | ||
int | cameraHeight, | ||
bool | bSendContours = false , |
||
string | append = "" |
||
) | [virtual] |
Reimplemented in ofxTSPS::OpenNIPerson.
Definition at line 217 of file Person.cpp.
vector< ofxOscMessage > ofxTSPS::Person::getOSCMessages | ( | string | type, |
bool | bUseLegacy, | ||
int | cameraWidth, | ||
int | cameraHeight, | ||
bool | sendContours | ||
) | [virtual] |
Reimplemented in ofxTSPS::OpenNIPerson.
Definition at line 263 of file Person.cpp.
virtual string ofxTSPS::Person::getString | ( | ofPoint | centroid, |
int | cameraWidth, | ||
int | cameraHeight, | ||
bool | bSendContours = false |
||
) | [inline, virtual] |
bool ofxTSPS::Person::hasHaarRect | ( | ) | [virtual] |
Definition at line 161 of file Person.cpp.
void ofxTSPS::Person::noHaarThisFrame | ( | ) | [virtual] |
Definition at line 166 of file Person.cpp.
void ofxTSPS::Person::setHaarRect | ( | ofRectangle | _haarRect | ) | [virtual] |
Definition at line 145 of file Person.cpp.
void ofxTSPS::Person::update | ( | ) | [virtual] |
Definition at line 37 of file Person.cpp.
void ofxTSPS::Person::updateBoundingRect | ( | ofRectangle | _rect | ) | [virtual] |
Definition at line 42 of file Person.cpp.
void ofxTSPS::Person::updateCentroid | ( | ofPoint | _centroid, |
bool | dampen | ||
) | [virtual] |
Definition at line 48 of file Person.cpp.
void ofxTSPS::Person::updateContour | ( | ofPolyline | _contour | ) | [virtual] |
Definition at line 132 of file Person.cpp.
float ofxTSPS::Person::area |
ofRectangle ofxTSPS::Person::boundingRect |
ofPoint ofxTSPS::Person::centroid |
ofPolyline ofxTSPS::Person::contour |
float ofxTSPS::Person::depth |
int ofxTSPS::Person::framesWithoutHaar [protected] |
ofRectangle ofxTSPS::Person::haarRect [protected] |
bool ofxTSPS::Person::hasHaar [protected] |
ofPoint ofxTSPS::Person::highest |
ofPoint ofxTSPS::Person::lowest |
ofPolyline ofxTSPS::Person::simpleContour |
ofPoint ofxTSPS::Person::velocity |