-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Unit Conversion Helper function for eye-tracking data (pixels to radians) #12112
Comments
with optional |
Yeah I agree that EDIT: second thought: alternative of course could be to only allow setting of those measurements in |
Thanks!
Yeah, I think allowing explicit parameters to over-ride Calibration makes sense, and so does throwing a warning.
I'm also okay with this. I offered the option to add optional keyword args for |
+1 for adding |
Describe the new feature or enhancement
This Ticket is related to meta-issue #11879
I am at a point in one of my projects where I'd like to convert my eye-tracking position data from pixels-on-screen to a unit of angle. Since 1) this is a fairly common conversion in eye-tracking research; 2) it was highlighted as a TODO in #11879 ; and 3) this would help users convert their position data into an SI unit (radians), I think It would be good to build a helper function for this.
CC @britta-wstnr @larsoner
Describe your proposed implementation
Possible API (borrowing from @drammock):
Where
Calibration
is an instance ofmne.preprocessing.eyetracking.Calibration
that contains necessary metadata:screen_size
,distance
,screen_resolution
.Or we could have a more specific function like:
and a similar function for
radian
topixel
Describe possible alternatives
We could also include
screen_size
,screen_resolution
,distance
as parameters of the function, so the user can either pass a Calibration instance with this info, or specify them directly via the function call (this was an idea brought up in the summer and documented in this comment)Additional context
This was a feature that I proposed during my GSoC but didn't get to by the end of summer.
The text was updated successfully, but these errors were encountered: