示例#1
0
        private void SaveGazeTrace()
        {
            if (gazePosition == null)
            {
                MessageBox.Show("Gaze not parsed yet");
                return;
            }
            SaveFileDialog saveFileDialog = new SaveFileDialog
            {
                Filter   = "Numpy file (*.npy)|*.npy",
                Title    = "Save gaze...",
                FileName = Path.GetFileNameWithoutExtension(Path.Combine(Path.GetDirectoryName(pupilFinder.videoFileName),
                                                                         String.Format("{0} gaze.npy", Path.GetFileNameWithoutExtension(pupilFinder.videoFileName))))
            };

            if (saveFileDialog.ShowDialog() == true)
            {
                Num.save(saveFileDialog.FileName, gazePosition);
            }
        }
示例#2
0
 public void SavePupilLocations(string fileName = null)
 {
     fileName = fileName ?? this.autoPupilsFileName;
     Num.save(fileName, pupilLocations);
 }
示例#3
0
 public void SaveTimestamps(string fileName = null)
 {
     fileName = fileName ?? this.autoTimestampFileName;
     Num.save(fileName, timeStamps);
 }