21#include <opencv2/core/core.hpp>
22#include <cvEyeTracker-1.2.5/ransac_ellipse.h>
49 public jevois::Parameter<eyetracker::edgethresh, eyetracker::numrays, eyetracker::mincand,
64 void process(cv::Mat & eyeimg,
double pupell[5],
bool debugdraw =
false);
67 int currWidth, currHeight;
68 double *intensity_factor_hori;
69 double *avg_intensity_hori;
70 stuDPoint start_point;
71 double pupil_param[5];
72 std::vector <stuDPoint> edge_point;
Eye-tracker class used to detect gaze direction from close-up video of one's eye.
JEVOIS_DECLARE_PARAMETER(corneal, int, "Corneal window size", 51, ParamCateg)
Parameter.
JEVOIS_DECLARE_PARAMETER(mincand, int, "Minimum number of feature candidates", 10, jevois::Range< int >(1, 50), ParamCateg)
Parameter.
JEVOIS_DECLARE_PARAMETER(numrays, int, "Number of rays", 18, jevois::Range< int >(4, 180), ParamCateg)
Parameter.
JEVOIS_DECLARE_PARAMETER(edgethresh, unsigned char, "Pupil edge threshold", 20, ParamCateg)
Parameter.
virtual ~EyeTracker()
Destructor.
void process(cv::Mat &eyeimg, double pupell[5], bool debugdraw=false)
Process grayscale byte image from camera.