void GazeTracker::addExemplar_left(Point point, const IplImage *eyefloat, const IplImage *eyegrey, std::vector<std::vector<int> > histPositionSegmentedPixels_left) // TODO ARCADI CONTINUE, Add histogram parameters { cout << "LEFT" << endl; /* int total = 0; for (int w = 0; w<hist_horizontal_left.size(); w++){ total += hist_horizontal_left[w]; } std::fstream fs; fs.open ("salida_left.txt", std::fstream::in | std::fstream::out | std::fstream::app); fs << total << endl; fs.close(); cout << "total: " << total << endl; */ caltargets_left.push_back(CalTarget(point, eyefloat, eyegrey, histPositionSegmentedPixels_left)); // TODO ARCADI CONTINUE, Add histograms to caltarget structure updateGPs_left(); }
void GazeTracker::addExemplar(Point point, const IplImage *eyefloat, const IplImage *eyegrey, std::vector<std::vector<int> > histPositionSegmentedPixels) // TODO ARCADI CONTINUE, Add histogram parameters { cout << "RIGHT" << endl; /* int total = 0; for (int w = 0; w<hist_horizontal.size(); w++){ total += hist_horizontal[w]; } std::fstream fs; fs.open ("salida.txt", std::fstream::in | std::fstream::out | std::fstream::app); fs << total << endl; fs.close(); cout << "total: " << total << endl; */ caltargets.push_back(CalTarget(point, eyefloat, eyegrey, histPositionSegmentedPixels)); // TODO ARCADI CONTINUE, Add histograms to caltarget structure cout << "HE AÑADIDO EL OBJETO CALTARGET" << endl; updateGPs(); cout << "HE ACTUALIZADO EL GPs" << endl; }
void GazeTracker::addExemplarLeft(Point point, const cv::Mat *eyeFloat, const cv::Mat *eyeGrey) { _calTargetsLeft.push_back(CalTarget(point, eyeFloat, eyeGrey)); updateGaussianProcessesLeft(); }