Frapper  1.0a
Public Member Functions | Private Slots | Private Member Functions | Private Attributes | List of all members
FaceTrackerNode::FaceTrackerNode Class Reference

Class in the Borealis application representing nodes that can contai OGRE entities with animation. More...

#include <FaceTrackerNode.h>

Inheritance diagram for FaceTrackerNode::FaceTrackerNode:
Inheritance graph
[legend]
Collaboration diagram for FaceTrackerNode::FaceTrackerNode:
Collaboration graph
[legend]

Public Member Functions

 FaceTrackerNode (QString name, ParameterGroup *parameterRoot)
 constructors and destrucor
 
 ~FaceTrackerNode ()
 destructors
 

Private Slots

void flipPicture ()
 methods
 
void probability ()
 Sets the Probility value.
 
void switchTime ()
 Sets the switchTime value.
 
void switchTimeRand ()
 Sets the m_switchTimeRand value.
 
void randomLook ()
 Sets the m_randomLook value.
 
void focusPointSpeed ()
 Set m_focusPointSpeed.
 
void focusPointMoveLimit ()
 Set m_focusPointMoveLimit.
 
void switchUserNow ()
 Set m_switchUserNow.
 
void minSize ()
 Set the mimSize of a detected face.
 
void maxSize ()
 Set the MaxSize of a detected face.
 
void drawDebugInformation ()
 Sets if user wants the Debug Information in the Picture-Drawn.
 
virtual void processInputMatrix ()
 SLOT that is used on the matrixParameter.
 

Private Member Functions

void detectFaces (cv::Mat image)
 methods
 
void drawDetectedFaces (cv::Mat image)
 Draws an overlay onto the image that shows the locations of detected faces in the scene.
 
void drawDebugInfo (cv::Mat image)
 Draws some debug information into the given image.
 
void decreaseProbabilities ()
 Decreases the probability values of the detected faces. Is called on each time step (/frame).
 
void processAttractors ()
 Handler for attractor list. Updates the coordinates of the focus point depending on the list of attractors.
 
void animateFocusPoint ()
 Animates the focus point according to the focus point target and whether or not a face is currently focused.
 

Private Attributes

QMutex m_mutex
 attributes
 
QTimer m_timer
 A Timer.
 
QTime m_timestamp
 The current timestamp.
 
QTime m_lastTimestamp
 Timestamp from previous step.
 
int m_detectedObjectsCount
 How many objects are currently detected?
 
std::vector< Face * > m_faces
 List of users which attract the agent.
 
std::vector< Attractorm_attractors
 List of users which attract the agent.
 
int m_attractorIndex
 Index of currently atrracted user.
 
int m_attractorIndexOld
 Old index of attracted user.
 
int m_justSwitched
 Has there been a user switching recently?
 
QTime m_focusTimeLimit
 ???????
 
QTime m_smallFocusTimeLimit
 ???????
 
vector< cv::Rect > m_detectedObjects
 OpenCV rect storage.
 
cv::CascadeClassifier * m_cascadeClassifier
 OpenCV haar classifier cascade.
 
ParameterGroupm_configGroup
 Configuration parameter group.
 
ParameterGroupm_outputGroup
 Output parameter group.
 
PointNDC m_focusPoint
 Focus point.
 
PointNDC m_focusPointTarget
 Focus point target.
 
unsigned int delay
 Is used to set a delay for the thread.
 
unsigned int attractorCount
 Counts the attractors.
 
double m_probability
 Sets the probability for a face - value is from the gui.
 
bool m_drawDebugInformation
 Is true if DebugInformation is clicked.
 
bool m_flipHorizontal
 Flip Picture horizontal if true.
 
int m_switchTime
 Value at what time the user should be switched.
 
int m_switchTimeRand
 Value for the TimeRandomize.
 
int m_randomLook
 The Value for the randomLook.
 
double m_focusPointSpeed
 The Value for the Point tspeed of the focus.
 
double m_focusPointMoveLimit
 The Limit of the focus.
 
bool m_switchUserNow
 Shall the user be switched now?
 
double m_minSize
 the minimum Size of a detected face
 
double m_maxSize
 the maximum Size of a detected face
 
int m_lastNumberofAttractos
 The last number of attractors.
 

Detailed Description

Class in the Borealis application representing nodes that can contai OGRE entities with animation.

Constructor & Destructor Documentation

FaceTrackerNode::FaceTrackerNode::FaceTrackerNode ( QString  name,
ParameterGroup parameterRoot 
)

constructors and destrucor

Constructors and Destructors.

Constructor of the FaceTrackerNode class.

Parameters
nameThe name to give the new mesh node.
FaceTrackerNode::FaceTrackerNode::~FaceTrackerNode ( )

destructors

Destructor of the FaceTrackerNode class.

Member Function Documentation

void FaceTrackerNode::FaceTrackerNode::flipPicture ( )
privateslot

methods

Public Functions.

Sets if user wants to flip the Image

Public Slots Sets if user wants to flip the Image

void FaceTrackerNode::FaceTrackerNode::probability ( )
privateslot

Sets the Probility value.

void FaceTrackerNode::FaceTrackerNode::switchTime ( )
privateslot

Sets the switchTime value.

void FaceTrackerNode::FaceTrackerNode::switchTimeRand ( )
privateslot

Sets the m_switchTimeRand value.

void FaceTrackerNode::FaceTrackerNode::randomLook ( )
privateslot

Sets the m_randomLook value.

void FaceTrackerNode::FaceTrackerNode::focusPointSpeed ( )
privateslot

Set m_focusPointSpeed.

void FaceTrackerNode::FaceTrackerNode::focusPointMoveLimit ( )
privateslot

Set m_focusPointMoveLimit.

void FaceTrackerNode::FaceTrackerNode::switchUserNow ( )
privateslot

Set m_switchUserNow.

void FaceTrackerNode::FaceTrackerNode::minSize ( )
privateslot

Set the mimSize of a detected face.

void FaceTrackerNode::FaceTrackerNode::maxSize ( )
privateslot

Set the MaxSize of a detected face.

void FaceTrackerNode::FaceTrackerNode::drawDebugInformation ( )
privateslot

Sets if user wants the Debug Information in the Picture-Drawn.

void FaceTrackerNode::FaceTrackerNode::processInputMatrix ( )
privatevirtualslot

SLOT that is used on the matrixParameter.

void FaceTrackerNode::FaceTrackerNode::detectFaces ( cv::Mat  image)
private

methods

Detects all faces in the given image, and creates or updates face objects for each detected face.

Detects all faces in the given image, and creates or updates face objects for each detected face.

Parameters
imagethe image to detect faces in
imagethe image to detect faces in
void FaceTrackerNode::FaceTrackerNode::drawDetectedFaces ( cv::Mat  image)
private

Draws an overlay onto the image that shows the locations of detected faces in the scene.

Parameters
imagethe image to show detected faces in
void FaceTrackerNode::FaceTrackerNode::drawDebugInfo ( cv::Mat  image)
private

Draws some debug information into the given image.

Parameters
imagepointer to the image to draw the debug info in
void FaceTrackerNode::FaceTrackerNode::decreaseProbabilities ( )
private

Decreases the probability values of the detected faces. Is called on each time step (/frame).

void FaceTrackerNode::FaceTrackerNode::processAttractors ( )
private

Handler for attractor list. Updates the coordinates of the focus point depending on the list of attractors.

void FaceTrackerNode::FaceTrackerNode::animateFocusPoint ( )
private

Animates the focus point according to the focus point target and whether or not a face is currently focused.

PRIVATE FUNCTIONS.

Member Data Documentation

QMutex FaceTrackerNode::FaceTrackerNode::m_mutex
private

attributes

A mutex.

QTimer FaceTrackerNode::FaceTrackerNode::m_timer
private

A Timer.

QTime FaceTrackerNode::FaceTrackerNode::m_timestamp
private

The current timestamp.

QTime FaceTrackerNode::FaceTrackerNode::m_lastTimestamp
private

Timestamp from previous step.

int FaceTrackerNode::FaceTrackerNode::m_detectedObjectsCount
private

How many objects are currently detected?

std::vector<Face *> FaceTrackerNode::FaceTrackerNode::m_faces
private

List of users which attract the agent.

std::vector<Attractor> FaceTrackerNode::FaceTrackerNode::m_attractors
private

List of users which attract the agent.

int FaceTrackerNode::FaceTrackerNode::m_attractorIndex
private

Index of currently atrracted user.

int FaceTrackerNode::FaceTrackerNode::m_attractorIndexOld
private

Old index of attracted user.

int FaceTrackerNode::FaceTrackerNode::m_justSwitched
private

Has there been a user switching recently?

QTime FaceTrackerNode::FaceTrackerNode::m_focusTimeLimit
private

???????

QTime FaceTrackerNode::FaceTrackerNode::m_smallFocusTimeLimit
private

???????

vector<cv::Rect> FaceTrackerNode::FaceTrackerNode::m_detectedObjects
private

OpenCV rect storage.

cv::CascadeClassifier* FaceTrackerNode::FaceTrackerNode::m_cascadeClassifier
private

OpenCV haar classifier cascade.

ParameterGroup* FaceTrackerNode::FaceTrackerNode::m_configGroup
private

Configuration parameter group.

ParameterGroup* FaceTrackerNode::FaceTrackerNode::m_outputGroup
private

Output parameter group.

PointNDC FaceTrackerNode::FaceTrackerNode::m_focusPoint
private

Focus point.

PointNDC FaceTrackerNode::FaceTrackerNode::m_focusPointTarget
private

Focus point target.

unsigned int FaceTrackerNode::FaceTrackerNode::delay
private

Is used to set a delay for the thread.

unsigned int FaceTrackerNode::FaceTrackerNode::attractorCount
private

Counts the attractors.

double FaceTrackerNode::FaceTrackerNode::m_probability
private

Sets the probability for a face - value is from the gui.

bool FaceTrackerNode::FaceTrackerNode::m_drawDebugInformation
private

Is true if DebugInformation is clicked.

bool FaceTrackerNode::FaceTrackerNode::m_flipHorizontal
private

Flip Picture horizontal if true.

int FaceTrackerNode::FaceTrackerNode::m_switchTime
private

Value at what time the user should be switched.

int FaceTrackerNode::FaceTrackerNode::m_switchTimeRand
private

Value for the TimeRandomize.

int FaceTrackerNode::FaceTrackerNode::m_randomLook
private

The Value for the randomLook.

double FaceTrackerNode::FaceTrackerNode::m_focusPointSpeed
private

The Value for the Point tspeed of the focus.

double FaceTrackerNode::FaceTrackerNode::m_focusPointMoveLimit
private

The Limit of the focus.

bool FaceTrackerNode::FaceTrackerNode::m_switchUserNow
private

Shall the user be switched now?

double FaceTrackerNode::FaceTrackerNode::m_minSize
private

the minimum Size of a detected face

double FaceTrackerNode::FaceTrackerNode::m_maxSize
private

the maximum Size of a detected face

int FaceTrackerNode::FaceTrackerNode::m_lastNumberofAttractos
private

The last number of attractors.


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