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

Class for representing a face detected in a scene. More...

#include <Face.h>

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

Public Member Functions

 Face (RectNDC initialRect)
 (DE-)CONSTRUCTION
 
 ~Face ()
 Destructor.
 
PointNDC getPointOfAttraction ()
 PUBLIC FUNCTIONS.
 
RectNDC getRect ()
 Returns the rectangular normalized device coordinates of the face's last detection.
 
float getProbability ()
 Returns the probability of the face object actually representing a face in the scene.
 
bool checkDetectionRect (RectNDC detectionRect)
 Checks if the given detected face rect is considered a detection of this face.
 
void decreaseProbability ()
 Decreases the probability value of a face detection by a constant value. Is used to decrease probability by time, if no more matches of face detection rects occur.
 

Private Attributes

RectNDC m_rect
 
float m_probability
 

Detailed Description

Class for representing a face detected in a scene.

Constructor & Destructor Documentation

FaceTrackerNode::Face::Face ( RectNDC  initialRect)

(DE-)CONSTRUCTION

Constructor. Initializes private member variables.

Parameters
initialRectthe rectangle of the face's initial detection in NDC
FaceTrackerNode::Face::~Face ( )

Destructor.

Member Function Documentation

PointNDC FaceTrackerNode::Face::getPointOfAttraction ( )

PUBLIC FUNCTIONS.

Returns the point of attraction for the face, which is located approximately centered between the eyes. (The x coordinate of the point of attraction is located in the center of the rectangle, and the y coordinate is located at about 40% of the rectangle's height.)

Returns
The point of attraction for the face in normalized device coordinates.
RectNDC FaceTrackerNode::Face::getRect ( )

Returns the rectangular normalized device coordinates of the face's last detection.

Returns
The rectangle of the face's last detection in NDC.
float FaceTrackerNode::Face::getProbability ( )

Returns the probability of the face object actually representing a face in the scene.

Returns
The probability value.
bool FaceTrackerNode::Face::checkDetectionRect ( RectNDC  detectionRect)

Checks if the given detected face rect is considered a detection of this face.

Parameters
detectionRectthe rectangle to test for a match with the current NDC of this face
Returns
True, if the rect is considered a detection of this face, otherwise False.
void FaceTrackerNode::Face::decreaseProbability ( )

Decreases the probability value of a face detection by a constant value. Is used to decrease probability by time, if no more matches of face detection rects occur.

Member Data Documentation

RectNDC FaceTrackerNode::Face::m_rect
private
float FaceTrackerNode::Face::m_probability
private

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