Go to the documentation of this file.00001
00022 #ifndef EYEDETECTION_H
00023 #define EYEDETECTION_H
00024
00025 #include "cv.h"
00026 #include "highgui.h"
00027
00031 class EyeDetection
00032 {
00033 public:
00034
00040 typedef struct
00041 {
00043 double leftScore, rightScore;
00045 CvRect leftRect, rightRect, bothRect;
00047 IplImage* leftImg, *rightImg, *bothImg;
00048 } RESULT;
00049
00050 typedef struct
00051 {
00052 CvPoint prevCenter;
00053 int prevRadius;
00054 }CIRCLES;
00055
00063 EyeDetection(const char* cascadeFileName);
00064
00068 virtual ~EyeDetection();
00069
00070
00088 RESULT* detect(IplImage* img, int space, int val);
00089
00090 private:
00092 CvMemStorage* storage;
00094 CvHaarClassifierCascade* cascade;
00096 RESULT result;
00097
00098 };
00099
00100 #endif