GazeParser.Converter - convert data files to GazeParser format

GazeParser.Converter.TrackerToGazeParser(inputfile, overwrite=False, config=None, useFileParameters=True, outputfile=None, verbose=False)

Convert an SimpleGazeTracker data file to a GazeParser file. If GazeTracker data file name is 'foo.csv', the output file name is 'foo.db'

パラメータ
  • inputfile (str) -- Name of SimpleGazeTracker CSV file to be converted.

  • overwrite (Boolean) -- If this parameter is true, output file is overwritten. The default value is False.

  • str config (GazeParser.Configuration,) -- An instance of GazeParser.Configuration that Specifies conversion configurations. If value is a string, it is interpreted as a filename of GazeParser.configuration file. If value is none, default configuration is used. The default value is None.

  • useFileParameters (Boolean) -- If this parameter is true, conversion configurations are overwritten by parameters defined in the data file. The default value is True.

  • outputfile (str) -- Name of output file. If None, extension of input file name is replaced with '.db'.

GazeParser.Converter.applyFilter(T, HV, config, decimals=2)

Apply filter to gaze data. Filter type is specified by GazeParser.Configuration.Config object.

パラメータ
  • T -- Timestamp (N x 1)

  • HV -- Horizontal and vertical gaze position (N x 2)

  • config -- GazeParser.Configuration.Cofig object.

Decimals

filtered data are rounded to the given number of this parameter. Default value is 2.

戻り値

filtered data.

GazeParser.Converter.buildEventListBinocular(T, LHV, RHV, config)
GazeParser.Converter.buildEventListMonocular(T, HV, config)
GazeParser.Converter.buildMsgList(M)
GazeParser.Converter.linearInterpolation(t, w)

Fill missing data by linear interpolation.

パラメータ
  • t -- Timestamp (N x 1)

  • w -- Data to be interpolated (N x 1)

戻り値

Filled data.

GazeParser.Converter.parseBlinkCandidates(T, HVs, config)
GazeParser.Converter.parseSaccadeCandidatesWithVACriteria(T, HV, config)
GazeParser.Converter.rectifyData(T, HV, frequency)
パラメータ
  • T -- Timestamp (N x 1)

  • HV -- Horizontal and vertical gaze position (N x 2)

  • frequency -- sammpling frequency in Hz.

GazeParser.Converter.rectifyTimeStamp(t, threshold=None)
パラメータ
  • t -- Timestamp (N x 1)

  • threshold --

注釈

This function is obsolete.