libface 0.2

src/Face.h

Go to the documentation of this file.
00001 
00035 #ifndef _FACE_H_
00036 #define _FACE_H_
00037 
00038 #if defined(__APPLE__)
00039 #include <cv.h>
00040 #else
00041 #include <opencv/cv.h>
00042 #endif
00043 
00044 #include "LibFaceConfig.h"
00045 
00046 namespace libface
00047 {
00048 
00049 class FACEAPI Face
00050 {
00051 public:
00052 
00063     Face(int x1=-1, int y1=-1, int x2=-1, int y2=-1, int id=-1, IplImage* face=0);
00064 
00068     ~Face();
00069 
00074     void setX1(int x1);
00075 
00080     void setX2(int x2);
00081 
00086     void setY1(int y1);
00087 
00092     void setY2(int y2);
00093 
00098     void setId(int id);
00099 
00105     void setFace(IplImage* face);
00106 
00112     IplImage* takeFace() const;
00113 
00119     IplImage* getFace() const;
00120 
00126     int getHeight() const;
00127 
00133     int getWidth() const;
00134 
00140     int getX1() const;
00141 
00147     int getX2() const;
00148 
00154     int getY1() const;
00155 
00161     int getY2() const;
00162 
00168     int getId() const;
00169 
00170 private:
00171 
00172     // NOTE: We cannot use a d private container there due to use vector.push_back() 
00173     //       C++ call instancied in FaceDetect class.
00174 
00175     int             x1;
00176     int             y1;
00177     int             x2;
00178     int             y2;
00179     int             id;
00180     int             width;
00181     int             height;
00182     IplImage*       face;
00183 };
00184 
00185 } // namespace libface
00186 
00187 #endif /* _FACE_H_ */
All Classes Files Functions