AddRelativeGazes: Find gaze location relative to target image

Description Usage Arguments Details Value

Description

Creates new columns that measure gaze location relative to the location of the target image, so that the x and y gaze positions increase the gaze gets closer to the target. The new columns are XLeftToTarget, XRightToTarget, XMeanToTarget, YLeftToTarget, YRightToTarget, YMeanToTarget.

Usage

1

Arguments

x

a Trial with Task or Protocol attributes or a TrialList where each Trial has these attributes

Details

Normally, the x value (as in trial$XMean) increases as the gaze moves right on screen. When the target is left side of the screen, small x means the gaze approached the target, but when the target image is on the right, larger x means the gaze approached the target. This function flips the x value (sets x to 1-x) on trials where the target is on the left side of the screen, so that bigger x means the gaze approached the target regardless of which side of the screen the target was on. An analogous transformation is done for the y coordinate.

Value

the Trial object(s) with the AOI data attached as new columns.


tjmahr/lookr documentation built on May 31, 2019, 3:41 p.m.