Class for representing a face detected in a scene.
More...
#include <Face.h>
|
| 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.
|
|
Class for representing a face detected in a scene.
FaceTrackerNode::Face::Face |
( |
RectNDC |
initialRect | ) |
|
(DE-)CONSTRUCTION
Constructor. Initializes private member variables.
- Parameters
-
initialRect | the rectangle of the face's initial detection in NDC |
FaceTrackerNode::Face::~Face |
( |
| ) |
|
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
-
detectionRect | the 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.
RectNDC FaceTrackerNode::Face::m_rect |
|
private |
float FaceTrackerNode::Face::m_probability |
|
private |
The documentation for this class was generated from the following files: