TSPS
1.3.2
TSPS is a cross-platform Toolkit for Sensing People in Spaces
|
#include <Processor.h>
Public Member Functions | |
Processor () | |
virtual void | exit () |
virtual void | setup (int width, int height, PeopleTracker *_tracker, float trackingScaleFactor=.5, float haarTrackingScaleFactor=.125) |
virtual void | draw () |
virtual void | setCameraImage (ofBaseImage &image)=0 |
virtual void | captureBackground (ofBaseImage &image)=0 |
virtual ofPixelsRef | progressiveBackground (ofBaseImage &image, float amount)=0 |
virtual void | blankBackground ()=0 |
virtual ofPixelsRef | difference (ofBaseImage &image, TrackingType trackingType)=0 |
virtual ofPixelsRef | process (ofBaseImage &image)=0 |
virtual void | processOpticalFlow (ofBaseImage &image) |
virtual void | processHaar (ofBaseImage &image) |
virtual void | setThreshold (float thresh=100.0) |
virtual void | setBlobSettings (float minimumBlob=0.0, float maximumBlob=1.0, bool findHoles=false) |
virtual void | setOpticalflowMinMax (float min=0.0, float max=10.0) |
virtual void | setHaarXMLFile (string xmlFile) |
virtual void | setHaarPadding (float padding=0.0) |
virtual bool | canTrackHaar () |
virtual bool | canTrackContours () |
virtual bool | canTrackSkeleton () |
virtual bool | canTrackOpticalFlow () |
virtual bool | setTrackHaar (bool trackHaar) |
virtual bool | setTrackContours (bool trackContours) |
virtual bool | setTrackSkeleton (bool trackSkeleton) |
virtual bool | setTrackOpticalFlow (bool trackOpticalFlow) |
virtual void | resize (int camWidth, int camHeight) |
virtual Person * | getTrackedPerson (int pid) |
Protected Member Functions | |
virtual void | setupProcessor () |
virtual void | personEntered (Person *p, Scene *s) |
virtual void | personUpdated (Person *p, Scene *s) |
virtual void | personWillLeave (Person *p, Scene *s) |
Protected Attributes | |
int | tspsWidth |
int | tspsHeight |
SourceType | cameraType |
PeopleTracker * | tracker |
Scene * | scene |
vector< Person * > * | trackedPeople |
bool | bCanTrackHaar |
bool | bTrackHaar |
bool | bCanTrackContours |
bool | bTrackContours |
bool | bCanTrackSkeleton |
bool | bTrackSkeleton |
bool | bCanTrackOpticalFlow |
bool | bTrackOpticalFlow |
float | haarAreaPadding |
float | trackingScale |
float | haarTrackingScale |
float | threshold |
float | minBlobArea |
float | maxBlobArea |
bool | bFindHoles |
Friends | |
class | PeopleTracker |
Definition at line 21 of file Processor.h.
Definition at line 14 of file Processor.cpp.
virtual void ofxTSPS::Processor::blankBackground | ( | ) | [pure virtual] |
Implemented in ofxTSPS::OpenCvProcessor, ofxTSPS::OpenNIProcessor, and ofxTSPS::CvProcessor.
virtual bool ofxTSPS::Processor::canTrackContours | ( | ) | [inline, virtual] |
Definition at line 59 of file Processor.h.
virtual bool ofxTSPS::Processor::canTrackHaar | ( | ) | [inline, virtual] |
Definition at line 58 of file Processor.h.
virtual bool ofxTSPS::Processor::canTrackOpticalFlow | ( | ) | [inline, virtual] |
Definition at line 61 of file Processor.h.
virtual bool ofxTSPS::Processor::canTrackSkeleton | ( | ) | [inline, virtual] |
Definition at line 60 of file Processor.h.
virtual void ofxTSPS::Processor::captureBackground | ( | ofBaseImage & | image | ) | [pure virtual] |
Implemented in ofxTSPS::OpenCvProcessor, ofxTSPS::OpenNIProcessor, and ofxTSPS::CvProcessor.
virtual ofPixelsRef ofxTSPS::Processor::difference | ( | ofBaseImage & | image, |
TrackingType | trackingType | ||
) | [pure virtual] |
Implemented in ofxTSPS::OpenCvProcessor, ofxTSPS::OpenNIProcessor, and ofxTSPS::CvProcessor.
virtual void ofxTSPS::Processor::draw | ( | ) | [inline, virtual] |
Reimplemented in ofxTSPS::OpenCvProcessor, ofxTSPS::OpenNIProcessor, and ofxTSPS::CvProcessor.
Definition at line 30 of file Processor.h.
virtual void ofxTSPS::Processor::exit | ( | ) | [inline, virtual] |
Reimplemented in ofxTSPS::OpenNIProcessor, and ofxTSPS::CvProcessor.
Definition at line 27 of file Processor.h.
Person * ofxTSPS::Processor::getTrackedPerson | ( | int | pid | ) | [virtual] |
Definition at line 80 of file Processor.cpp.
void ofxTSPS::Processor::personEntered | ( | Person * | p, |
Scene * | s | ||
) | [protected, virtual] |
Definition at line 94 of file Processor.cpp.
void ofxTSPS::Processor::personUpdated | ( | Person * | p, |
Scene * | s | ||
) | [protected, virtual] |
Definition at line 98 of file Processor.cpp.
void ofxTSPS::Processor::personWillLeave | ( | Person * | p, |
Scene * | s | ||
) | [protected, virtual] |
Definition at line 102 of file Processor.cpp.
virtual ofPixelsRef ofxTSPS::Processor::process | ( | ofBaseImage & | image | ) | [pure virtual] |
Implemented in ofxTSPS::OpenCvProcessor, ofxTSPS::OpenNIProcessor, and ofxTSPS::CvProcessor.
virtual void ofxTSPS::Processor::processHaar | ( | ofBaseImage & | image | ) | [inline, virtual] |
Reimplemented in ofxTSPS::OpenCvProcessor, and ofxTSPS::CvProcessor.
Definition at line 46 of file Processor.h.
virtual void ofxTSPS::Processor::processOpticalFlow | ( | ofBaseImage & | image | ) | [inline, virtual] |
Reimplemented in ofxTSPS::OpenCvProcessor, and ofxTSPS::CvProcessor.
Definition at line 45 of file Processor.h.
virtual ofPixelsRef ofxTSPS::Processor::progressiveBackground | ( | ofBaseImage & | image, |
float | amount | ||
) | [pure virtual] |
Implemented in ofxTSPS::OpenCvProcessor, ofxTSPS::OpenNIProcessor, and ofxTSPS::CvProcessor.
virtual void ofxTSPS::Processor::resize | ( | int | camWidth, |
int | camHeight | ||
) | [inline, virtual] |
Reimplemented in ofxTSPS::OpenCvProcessor, and ofxTSPS::CvProcessor.
Definition at line 70 of file Processor.h.
void ofxTSPS::Processor::setBlobSettings | ( | float | minimumBlob = 0.0 , |
float | maximumBlob = 1.0 , |
||
bool | findHoles = false |
||
) | [virtual] |
Definition at line 39 of file Processor.cpp.
virtual void ofxTSPS::Processor::setCameraImage | ( | ofBaseImage & | image | ) | [pure virtual] |
Implemented in ofxTSPS::OpenCvProcessor, ofxTSPS::OpenNIProcessor, and ofxTSPS::CvProcessor.
void ofxTSPS::Processor::setHaarPadding | ( | float | padding = 0.0 | ) | [virtual] |
Definition at line 45 of file Processor.cpp.
virtual void ofxTSPS::Processor::setHaarXMLFile | ( | string | xmlFile | ) | [inline, virtual] |
Reimplemented in ofxTSPS::OpenCvProcessor, and ofxTSPS::CvProcessor.
Definition at line 54 of file Processor.h.
virtual void ofxTSPS::Processor::setOpticalflowMinMax | ( | float | min = 0.0 , |
float | max = 10.0 |
||
) | [inline, virtual] |
Reimplemented in ofxTSPS::OpenCvProcessor, and ofxTSPS::CvProcessor.
Definition at line 53 of file Processor.h.
void ofxTSPS::Processor::setThreshold | ( | float | thresh = 100.0 | ) | [virtual] |
Reimplemented in ofxTSPS::OpenNIProcessor.
Definition at line 35 of file Processor.cpp.
bool ofxTSPS::Processor::setTrackContours | ( | bool | trackContours | ) | [virtual] |
Definition at line 57 of file Processor.cpp.
bool ofxTSPS::Processor::setTrackHaar | ( | bool | trackHaar | ) | [virtual] |
Definition at line 50 of file Processor.cpp.
bool ofxTSPS::Processor::setTrackOpticalFlow | ( | bool | trackOpticalFlow | ) | [virtual] |
Definition at line 71 of file Processor.cpp.
bool ofxTSPS::Processor::setTrackSkeleton | ( | bool | trackSkeleton | ) | [virtual] |
Definition at line 64 of file Processor.cpp.
void ofxTSPS::Processor::setup | ( | int | width, |
int | height, | ||
PeopleTracker * | _tracker, | ||
float | trackingScaleFactor = .5 , |
||
float | haarTrackingScaleFactor = .125 |
||
) | [virtual] |
Definition at line 22 of file Processor.cpp.
virtual void ofxTSPS::Processor::setupProcessor | ( | ) | [inline, protected, virtual] |
Reimplemented in ofxTSPS::OpenCvProcessor, ofxTSPS::CvProcessor, and ofxTSPS::OpenNIProcessor.
Definition at line 81 of file Processor.h.
friend class PeopleTracker [friend] |
Definition at line 22 of file Processor.h.
bool ofxTSPS::Processor::bCanTrackContours [protected] |
Definition at line 97 of file Processor.h.
bool ofxTSPS::Processor::bCanTrackHaar [protected] |
Definition at line 96 of file Processor.h.
bool ofxTSPS::Processor::bCanTrackOpticalFlow [protected] |
Definition at line 99 of file Processor.h.
bool ofxTSPS::Processor::bCanTrackSkeleton [protected] |
Definition at line 98 of file Processor.h.
bool ofxTSPS::Processor::bFindHoles [protected] |
Definition at line 107 of file Processor.h.
bool ofxTSPS::Processor::bTrackContours [protected] |
Definition at line 97 of file Processor.h.
bool ofxTSPS::Processor::bTrackHaar [protected] |
Definition at line 96 of file Processor.h.
bool ofxTSPS::Processor::bTrackOpticalFlow [protected] |
Definition at line 99 of file Processor.h.
bool ofxTSPS::Processor::bTrackSkeleton [protected] |
Definition at line 98 of file Processor.h.
SourceType ofxTSPS::Processor::cameraType [protected] |
Definition at line 84 of file Processor.h.
float ofxTSPS::Processor::haarAreaPadding [protected] |
Definition at line 101 of file Processor.h.
float ofxTSPS::Processor::haarTrackingScale [protected] |
Definition at line 102 of file Processor.h.
float ofxTSPS::Processor::maxBlobArea [protected] |
Definition at line 106 of file Processor.h.
float ofxTSPS::Processor::minBlobArea [protected] |
Definition at line 105 of file Processor.h.
Scene* ofxTSPS::Processor::scene [protected] |
Definition at line 87 of file Processor.h.
float ofxTSPS::Processor::threshold [protected] |
Definition at line 104 of file Processor.h.
vector<Person*>* ofxTSPS::Processor::trackedPeople [protected] |
Definition at line 88 of file Processor.h.
PeopleTracker* ofxTSPS::Processor::tracker [protected] |
Definition at line 86 of file Processor.h.
float ofxTSPS::Processor::trackingScale [protected] |
Definition at line 102 of file Processor.h.
int ofxTSPS::Processor::tspsHeight [protected] |
Definition at line 81 of file Processor.h.
int ofxTSPS::Processor::tspsWidth [protected] |
Definition at line 81 of file Processor.h.