Exemple #1
0
        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;
        }
Exemple #2
0
 private void Init()
 {
     blobDetector = new BlobDetector();
     pupilData = new PupilData();
 }
Exemple #3
0
 private void Init()
 {
     blobDetector = new BlobDetector();
     pupilData    = new PupilData();
 }
Exemple #4
0
        private static PupilData ConvertPupilToAbsolute(EyeEnum eye, PupilData pupilData, TrackData trackData)
        {
            var eyeROI = new Rectangle();
            if (eye == EyeEnum.Left)
                eyeROI = trackData.LeftROI;
            else
                eyeROI = trackData.RightROI;

            pupilData.Center.X += eyeROI.X;
            pupilData.Center.Y += eyeROI.Y;
            pupilData.Blob.CenterOfGravity = new GTPoint(pupilData.Blob.CenterOfGravity.X + eyeROI.X,
                                                         pupilData.Blob.CenterOfGravity.Y + eyeROI.Y);
            return pupilData;
        }