public TrackData() { eyesROI = new Rectangle(); leftROI = new Rectangle(); rightROI = new Rectangle(); pupilDataLeft = new PupilData(); pupilDataRight = new PupilData(); glintDataLeft = new GlintData(); glintDataRight = new GlintData(); calibrationDataLeft = new CalibrationData(); calibrationDataRight = new CalibrationData(); gazeDataRaw = new GTGazeData(); gazeDataSmoothed = new GTGazeData(); //eyeMovement = new GazeTrackingLibrary.EyeMovement.Classifier(); eyesDetected = false; eyeDetected = false; pupilLeftDetected = false; pupilRightDetected = false; glintsLeftDetected = false; glintsRightDetected = false; }
public GlintDetection(EyeEnum eye) { this.eye = eye; glintData = new GlintData(); blobDetector = new BlobDetector(); }
private static GlintData ConvertGlintsToAbsolute(GlintData input, Rectangle ROI) { foreach (GTPoint t in input.Glints.Centers) { t.X += ROI.X; t.Y += ROI.Y; //input.Glints.blobs[i].CentroidX = input.Glints.blobs[i].CentroidX + ROI.X; //input.Glints.blobs[i].CentroidY = input.Glints.blobs[i].CentroidY + ROI.Y; } return input; }
public GlintDetection(EyeEnum eye) { this.eye = eye; glintData = new GlintData(); blobDetector = new BlobDetector(); }