00001
00022 #ifndef FINDPUPILCIRCLENEW_H
00023 #define FINDPUPILCIRCLENEW_H
00024
00025 #include "cv.h"
00026
00030 class FindPupilCircleNew
00031 {
00032 public:
00046 static void doDetect(IplImage* img, int limitRadius, int* destVal, int nScale, int dataType);
00047
00048
00049 private:
00050
00058 static int getThreshold(IplImage* img, int minVal);
00059
00078 static void getCoordinates(IplImage* grayImg, int closeItr, int openItr,
00079 int threshold, int limitRadius, int* circles,
00080 float size, int nScale, int dataType);
00081
00091 static int getRadius(int width, int height, int limitRadius, float size);
00092
00104 static void getPupilPosition(CvSeq* contour, int minCount, int maxCount,
00105 int limitRadius, float size, int *circles);
00106
00113 static void getMaxCount(CvSeq* contour, int* count);
00114
00116
00117
00118 };
00119 #endif // !FINDPUPILCIRCLENEW_H