Frapper
1.0a
|
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 struct FaceTrackerNode::PointNDC FaceTrackerNode::PointNDC |
STRUCTURED TYPES.
Data structure for a point coordinate in normalized device coordinates. (ranging from 0.0 to 1.0 on each axis)
typedef struct FaceTrackerNode::RectNDC FaceTrackerNode::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 FaceTrackerNode::Attractor |
Data structure for an area in normalized coordinates that attracts the focus point (the point for the agent to look at).
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.
image | pointer to an image, whose dimensions should be used in calculating the normalized coordinates |
p | the point to be normalized using the image's coordinates |
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.
image | pointer to an image, whose dimensions should be used in calculating the int coordinates |
x | the normalized x coordinate to convert |
y | the normalized y coordinate to convert |
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.
image | pointer to an image, whose dimensions should be used in calculating the int coordinates |
p | the normalized device coordinates of the point to convert |
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.
image | pointer to an image, whose dimensions should be used in calculating the int coordinates |
rect | the rectangle whose top left corner to convert |
|
static |
FACTORY FUNCTIONS.
Creates a point with the given normalized coordinates.
x | the normalized x coordinate of the point |
y | the normalized y coordinate of the point |
|
static |
///////////////////////////////////////////////////////////////////////////////////////
RANDOM NUMBERS /////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////
Returns a random number between 0 and the given max value.
max | the maximum value |
|
static |
Returns a random float number between 0.0f and the given max value.
max | the maximum value |
|
static |
Returns a random float number between 0.0f and 1.0f.
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 |
|
static |
CONSTANTS.
Epsilon value to use for comparing float values.
if (abs(f) < EPSILON) ...