List of all members.
Constructor & Destructor Documentation
libface::Face::Face |
( |
int |
x1 = -1 , |
|
|
int |
y1 = -1 , |
|
|
int |
x2 = -1 , |
|
|
int |
y2 = -1 , |
|
|
int |
id = -1 , |
|
|
IplImage * |
face = 0 |
|
) |
| |
Default constructor for the Face class. By default everything is set to -1.
- Parameters:
-
x1 | X coordinate of the top left corner of the face. |
y1 | Y coordinate of the top left corner of the face. |
x2 | X coordinate of the bottom right corner of the face. |
y2 | Y coordinate of the bottom right corner of the face. |
id | ID of the face. -1 not not known. |
face | A pointer to the IplImage with the image data. |
Deconstructor that releases the pointer to IplImage.
Member Function Documentation
IplImage * libface::Face::getFace |
( |
| ) |
const |
Gets the image of the face.
- Returns:
- Pointer the IplImage image of the face.
int libface::Face::getHeight |
( |
| ) |
const |
Gets the height of the face rectangle.
- Returns:
- Returns the height of the face rectangle.
int libface::Face::getId |
( |
| ) |
const |
Gets the ID of the face.
- Returns:
- ID of the face.
int libface::Face::getWidth |
( |
| ) |
const |
Gets the width of the face rectangle.
- Returns:
- Returns the width of the face rectangle.
int libface::Face::getX1 |
( |
| ) |
const |
Gets the x coordinate of the top left corner of the face.
- Returns:
- x coordinate of the top left corner of the face.
int libface::Face::getX2 |
( |
| ) |
const |
Gets the x coordinate of the bottom right corner of the face.
- Returns:
- x coordinate of the bottom right corner of the face.
int libface::Face::getY1 |
( |
| ) |
const |
Gets the y coordinate of the top left corner of the face.
- Returns:
- y coordinate of the top left corner of the face.
int libface::Face::getY2 |
( |
| ) |
const |
Gets the y coordinate of the bottom right corner of the face.
- Returns:
- y coordinate of the bottom right corner of the face.
void libface::Face::setFace |
( |
IplImage * |
face | ) |
|
Sets the image of the face. Note: Does not take ownership of the IplImage object, you need to release it after use
- Parameters:
-
face | pointer to the IplImage of the face. |
void libface::Face::setId |
( |
int |
id | ) |
|
Sets the id of the face.
- Parameters:
-
void libface::Face::setX1 |
( |
int |
x1 | ) |
|
Sets the value for the x coordinate of the top left corner of the face.
- Parameters:
-
x1 | X coordinates of the top left corner of the face. |
void libface::Face::setX2 |
( |
int |
x2 | ) |
|
Sets the value for the x coordinate of the bottom right corner of the face.
- Parameters:
-
x2 | X coordinates of the bottom right corner of the face. |
void libface::Face::setY1 |
( |
int |
y1 | ) |
|
Sets the value for the y coordinate of the top left corner of the face.
- Parameters:
-
y1 | Y coordinates of the top left corner of the face. |
void libface::Face::setY2 |
( |
int |
y2 | ) |
|
Sets the value for the y coordinate of the bottom right corner of the face.
- Parameters:
-
y2 | Y coordinates of the bottom right corner of the face. |
IplImage * libface::Face::takeFace |
( |
| ) |
const |
Returns the non-const pointer to the image data. Use this if you know that ownership of the image is passed to you. You can release the image and setFace(0) on this face.
The documentation for this class was generated from the following files: