00001
00022 #ifndef FINDEYELIDMIX_H
00023 #define FINDEYELIDMIX_H
00024
00025 #include "cv.h"
00026 #include "Masek.h"
00027
00031 class FindEyelidMix
00032 {
00033 public:
00034
00035
00054 static IplImage* doFindPoints(IplImage* iplImg, int xPupil, int yPupil, int rPupil,
00055 int xIris, int yIris, int rIris,
00056 int *ellipseVal, double *angleVal, int dataType);
00058
00059
00060 private:
00061
00075 static CvPoint findContourPoint(IplImage* setImg, int threshold, int locate,
00076 int dataType);
00077
00085 static int doFindThres(IplImage* img, int thresRange);
00086
00100 static CvPoint getCornerPoint(CvPoint contourPt, int startX, int startY,
00101 int endY , int dataType);
00102
00115 static int getEyelidPoint(Masek::IMAGE* image, int yla, int val, int icl,
00116 int (*opFunc)(int a, int b));
00124 static double triLength(int a, int b);
00125
00137 static IplImage* getNoiseImage(IplImage* img, CvPoint center, int width,
00138 int topHeight, int bottomHeight, double angle);
00139
00151 static IplImage* getRotatedImage(IplImage* img, CvPoint center, int width,
00152 int topHeight, int bottomHeight, double angle);
00153
00154
00155 };
00156
00157 #endif // !FINDEYELIDMIX_H