GazeParser.ScanMatch - compare fixation patterns

Evaluating simirality between two fixation sequences with ScanMatch algorithm, proposed by Cristino, Mathot, Theeuwes and Gilchrist (2010).

Example

Following script compares fixation sequence of two participants.:

import GazeParser
(data1, additionalData1) = GazeParser.load('participant1.db')
(data2, additionalData2) = GazeParser.load('participant2.db')

#create a ScanMatch object.
matchObject = ScanMatch(Xres=720, Yres=720, Xbin=4, Ybin=4, offset=(152, 24), Threshold=1.5)

#convert fixations to a sequence of symbols.
sequence1 = sObj.fixationToSequence(data1[0].getFixationCenter())
sequence2 = sObj.fixationToSequence(data2[0].getFixationCenter())

#perform ScanMatch
(score, align, f) = matchObject.match(sequence1, sequence2)
REFERENCE:
Cristino, F., Mathot, S., Theeuwes, J., & Gilchrist, I. D. (2010). ScanMatch: a novel method for comparing fixation sequences. Behav Res Methods, 42(3), 692-700.
class GazeParser.ScanMatch.ScanMatch(**kw)

ScanMatch Object.

Parameters:
  • Xres (int) –
  • Yres (int) –
  • Xbin (int) –
  • Ybin (int) –
  • Threshold (float) –
  • GapValue (float) –
  • TempBin (float) –
  • int) Offset ((int,) –
createSubMatrix(Threshold=None)
fixationToSequence(data)
gridMask()
maskFromArray(array)
match(A, B)
subMatrixFromArray(array)
GazeParser.ScanMatch.generateMaskFromArray(data, threshold, margeColor)