libface 0.2
Public Member Functions

libface::Face Class Reference

List of all members.

Public Member Functions

 Face (int x1=-1, int y1=-1, int x2=-1, int y2=-1, int id=-1, IplImage *face=0)
 ~Face ()
void setX1 (int x1)
void setX2 (int x2)
void setY1 (int y1)
void setY2 (int y2)
void setId (int id)
void setFace (IplImage *face)
IplImage * takeFace () const
IplImage * getFace () const
int getHeight () const
int getWidth () const
int getX1 () const
int getX2 () const
int getY1 () const
int getY2 () const
int getId () const

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:
x1X coordinate of the top left corner of the face.
y1Y coordinate of the top left corner of the face.
x2X coordinate of the bottom right corner of the face.
y2Y coordinate of the bottom right corner of the face.
idID of the face. -1 not not known.
faceA pointer to the IplImage with the image data.
libface::Face::~Face ( )

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:
facepointer to the IplImage of the face.
void libface::Face::setId ( int  id)

Sets the id of the face.

Parameters:
idID of the face.
void libface::Face::setX1 ( int  x1)

Sets the value for the x coordinate of the top left corner of the face.

Parameters:
x1X 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:
x2X 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:
y1Y 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:
y2Y 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:
 All Classes Files Functions