Frapper  1.0a
Classes | Typedefs | Functions | Variables
FaceTrackerNode Namespace Reference

Classes

class  Face
 Class for representing a face detected in a scene. More...
 
class  FaceTrackerNode
 Class in the Borealis application representing nodes that can contai OGRE entities with animation. More...
 
class  FaceTrackerNodePlugin
 Plugin class for creation of FaceTrackerNode node. More...
 
struct  PointNDC
 STRUCTURED TYPES. More...
 
struct  RectNDC
 Data structure for the position and size of a rectangular shape in normalized device coordinates. (specified by its top-left point and its width and height) More...
 
struct  Attractor
 Data structure for an area in normalized coordinates that attracts the focus point (the point for the agent to look at). More...
 

Typedefs

typedef struct
FaceTrackerNode::PointNDC 
PointNDC
 STRUCTURED TYPES.
 
typedef struct
FaceTrackerNode::RectNDC 
RectNDC
 Data structure for the position and size of a rectangular shape in normalized device coordinates. (specified by its top-left point and its width and height)
 
typedef struct
FaceTrackerNode::Attractor 
Attractor
 Data structure for an area in normalized coordinates that attracts the focus point (the point for the agent to look at).
 

Functions

PointNDC toPointNDC (Mat *image, CvPoint p)
 MISC FUNCTIONS.
 
CvPoint toCvPoint (Mat image, float x, float y)
 Returns the int coordinates of the given NDC with respect to the dimensions of the given image.
 
CvPoint toCvPoint (Mat image, PointNDC p)
 Returns the int coordinates of the given point's NDC with respect to the dimensions of the given image.
 
CvPoint toCvPoint (Mat image, RectNDC rect)
 Returns the int coordinates of the top left corner's NDC of the given rectangle with respect to the dimensions of the given image.
 
static PointNDC CreatePointNDC (float x, float y)
 FACTORY FUNCTIONS.
 
static unsigned int getRandom (unsigned int max)
 
           ///////////////////////////////////////////////////////////////////////////////////////

RANDOM NUMBERS /////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////

 
static float getRandom (float max)
 Returns a random float number between 0.0f and the given max value.
 
static float getRandom ()
 Returns a random float number between 0.0f and 1.0f.
 

Variables

const float PROBABILITY_INCREASE_PER_DETECTION = 0.2f
 
const float PROBABILITY_DECREASE_PER_TIME_STEP = 0.1f
 
const float THRESHOLD = 10.0f
 
static const float EPSILON = 0.000000000001f
 CONSTANTS.
 

Typedef Documentation

STRUCTURED TYPES.

Data structure for a point coordinate in normalized device coordinates. (ranging from 0.0 to 1.0 on each axis)

See Also
Behavior::Message::Attractor, Awareness::Module::Vision, Behavior::Core

Data structure for the position and size of a rectangular shape in normalized device coordinates. (specified by its top-left point and its width and height)

See Also
Awareness::Module::Vision

Data structure for an area in normalized coordinates that attracts the focus point (the point for the agent to look at).

See Also
Behavior, AttractorMessage

Function Documentation

PointNDC FaceTrackerNode::toPointNDC ( Mat *  image,
CvPoint  p 
)

MISC FUNCTIONS.

Returns the normalized coordinates of the given CvPoint with respect to the dimensions of the given image.

Parameters
imagepointer to an image, whose dimensions should be used in calculating the normalized coordinates
pthe point to be normalized using the image's coordinates
Returns
The given coordinates positioned in the space of the given image.
CvPoint FaceTrackerNode::toCvPoint ( Mat  image,
float  x,
float  y 
)

Returns the int coordinates of the given NDC with respect to the dimensions of the given image.

Parameters
imagepointer to an image, whose dimensions should be used in calculating the int coordinates
xthe normalized x coordinate to convert
ythe normalized y coordinate to convert
Returns
The given coordinates positioned in the space of the given image.
CvPoint FaceTrackerNode::toCvPoint ( Mat  image,
PointNDC  p 
)

Returns the int coordinates of the given point's NDC with respect to the dimensions of the given image.

Parameters
imagepointer to an image, whose dimensions should be used in calculating the int coordinates
pthe normalized device coordinates of the point to convert
Returns
The coordinates of the given point in the space of the given image.
CvPoint FaceTrackerNode::toCvPoint ( Mat  image,
RectNDC  rect 
)

Returns the int coordinates of the top left corner's NDC of the given rectangle with respect to the dimensions of the given image.

Parameters
imagepointer to an image, whose dimensions should be used in calculating the int coordinates
rectthe rectangle whose top left corner to convert
Returns
The coordinates of the given point in the space of the given image.
static PointNDC FaceTrackerNode::CreatePointNDC ( float  x,
float  y 
)
static

FACTORY FUNCTIONS.

Creates a point with the given normalized coordinates.

Parameters
xthe normalized x coordinate of the point
ythe normalized y coordinate of the point
Returns
A point with the given normalized coordinates.
static unsigned int FaceTrackerNode::getRandom ( unsigned int  max)
static

           ///////////////////////////////////////////////////////////////////////////////////////

RANDOM NUMBERS /////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////

Returns a random number between 0 and the given max value.

Parameters
maxthe maximum value
Returns
A random number between 0 and the given maximum.
static float FaceTrackerNode::getRandom ( float  max)
static

Returns a random float number between 0.0f and the given max value.

Parameters
maxthe maximum value
Returns
A random float number between 0.0f and the given maximum.
static float FaceTrackerNode::getRandom ( )
static

Returns a random float number between 0.0f and 1.0f.

Returns
A random float number between 0.0f and 1.0f.

Variable Documentation

const float FaceTrackerNode::PROBABILITY_INCREASE_PER_DETECTION = 0.2f
const float FaceTrackerNode::PROBABILITY_DECREASE_PER_TIME_STEP = 0.1f
const float FaceTrackerNode::THRESHOLD = 10.0f
const float FaceTrackerNode::EPSILON = 0.000000000001f
static

CONSTANTS.

Epsilon value to use for comparing float values.

Example:
if (abs(f) < EPSILON) ...
See Also
Vision