TSPS  1.3.2
TSPS is a cross-platform Toolkit for Sensing People in Spaces
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Friends Defines
ofxTSPS::Person Class Reference

#include <Person.h>

Inheritance diagram for ofxTSPS::Person:
ofxTSPS::CvPerson ofxTSPS::OpenCvPerson ofxTSPS::OpenNIPerson

List of all members.

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

Detailed Description

Definition at line 40 of file Person.h.


Constructor & Destructor Documentation

ofxTSPS::Person::Person ( int  pid,
int  oid 
)

Definition at line 12 of file Person.cpp.

Definition at line 30 of file Person.cpp.


Member Function Documentation

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]

Definition at line 85 of file Person.h.

bool ofxTSPS::Person::hasHaarRect ( ) [virtual]

Definition at line 161 of file Person.cpp.

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.


Member Data Documentation

Definition at line 64 of file Person.h.

Definition at line 71 of file Person.h.

Definition at line 67 of file Person.h.

Definition at line 66 of file Person.h.

Definition at line 68 of file Person.h.

Definition at line 53 of file Person.h.

Definition at line 73 of file Person.h.

Definition at line 94 of file Person.h.

ofRectangle ofxTSPS::Person::haarRect [protected]

Definition at line 93 of file Person.h.

bool ofxTSPS::Person::hasHaar [protected]

Definition at line 92 of file Person.h.

Definition at line 74 of file Person.h.

Definition at line 75 of file Person.h.

Definition at line 63 of file Person.h.

Definition at line 60 of file Person.h.

Definition at line 62 of file Person.h.

Definition at line 69 of file Person.h.

Definition at line 70 of file Person.h.


The documentation for this class was generated from the following files: