Example #1
0
        private List <Point> GetEyetrackingCalibrationPositions(CalibrationParameters parameters)
        {
            List <Point> gazePositions = new List <Point>();

            if (calibrationStartFrame == null)
            {
                calibrationStartFrame = pupilFinder.TimeStampToFrameNumber(CalibrationStartTime);
            }

            for (int i = 0; i < parameters.calibrationPoints.Count; i++)
            {
                int startFrame = calibrationStartFrame.Value + i * parameters.calibrationDurationFrames + parameters.calibrationStartDelayFrames;
                int endFrame   = startFrame + parameters.calibrationDurationFrames;
                startFrame += parameters.calibrationPointStartDelayFrames;

                gazePositions.Add(pupilFinder.GetMedianPupilLocation(startFrame, endFrame));
            }

            return(gazePositions);
        }
Example #2
0
 public CalibrationParametersWindow(CalibrationParameters parameters)
 {
     calibrationParameters = parameters;
     InitializeComponent();
 }
Example #3
0
 public Calibrator(CalibrationParameters parameters)
 {
     calibrationParameters = parameters;
 }
Example #4
0
 public Calibrator(CalibrationParameters parameters, List <Point> positions)
 {
     calibrationParameters = parameters;
     calibrationPositions  = positions;
 }
Example #5
0
 public Calibrator()
 {
     calibrationParameters = CalibrationParameters.GetDefault35PointCalibrationParameters();
 }