Exemplo n.º 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);
        }
Exemplo n.º 2
0
 public CalibrationParametersWindow(CalibrationParameters parameters)
 {
     calibrationParameters = parameters;
     InitializeComponent();
 }
Exemplo n.º 3
0
 public Calibrator(CalibrationParameters parameters)
 {
     calibrationParameters = parameters;
 }
Exemplo n.º 4
0
 public Calibrator(CalibrationParameters parameters, List <Point> positions)
 {
     calibrationParameters = parameters;
     calibrationPositions  = positions;
 }
Exemplo n.º 5
0
 public Calibrator()
 {
     calibrationParameters = CalibrationParameters.GetDefault35PointCalibrationParameters();
 }