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); } }
public void SavePupilLocations(string fileName = null) { fileName = fileName ?? this.autoPupilsFileName; Num.save(fileName, pupilLocations); }
public void SaveTimestamps(string fileName = null) { fileName = fileName ?? this.autoTimestampFileName; Num.save(fileName, timeStamps); }