Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Converting Eyelink / Pygaze coordinates to be "compatible" with OS coordinate system #174

Open
sa-al-ja opened this issue Aug 31, 2023 · 0 comments

Comments

@sa-al-ja
Copy link

Hi there,

I have a question about how to "convert" the coordinates of my eyetracking data that has been collected with PyGaze and the eyetracker EyeLink 1000 Plus.

Since I would like to "convert" my data into the Open Sesame system, I wanted to confirm that the following information is correct:

  • Pygaze coordinates: top left is origin of coordinate system (0,0)
  • OS coordinates: (0,0) is in the center of the screen

So from what I found online, to "convert" the Pygaze data to be compatible with the OS coordinate system, is it the correct approach to subtract half the width and height from the gaze position from the Eyelink data?

So, if I take one example datapoint from EDF Eyelink file:

x: 954.3, y: 529.8

Following this logic, I would divide both by 2 to get the following coordinates that are then "compatible" with the OS coordinate system?

x: 954.3 / 2 = 477.15
y: 529.8 / 2 = 264.9

Thanks a lot in advance!

Best,
sa-al-ja

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant