Welcome! Log In Create A New Profile

Advanced

Centering away from [0 0]

Posted by RN8JR 
Centering away from [0 0]
December 16, 2019 11:25AM
Is there a way to change what coordinates the 'c' key brings the eye position to during a task? It defaults to [0 0], but what if, for example, the fixation point is not at the center of the screen?

And if there's a way to do this, is it compatible with the 2D spatial transformation calibration?
Re: Centering away from [0 0]
December 16, 2019 09:53PM
The 'c' key is implemented as a hotkey like the following.
hotkey('c', 'forced_eye_drift_correction([0 0],1);');

[0 0] is the coordinates of the new center (in degrees) and 1 indicates the first eye signal (2 is the second eye). So overwrite it (i.e., define it again in your timing script) with the coordinates you want.
Re: Centering away from [0 0]
December 17, 2019 11:42AM
Thanks Jaewon. Presumably this preserves (and only slightly shifts) the 2D spatial transformation done in eye calibration?
Re: Centering away from [0 0]
December 17, 2019 11:50AM
Yes. The grid will be the same as before but just translated relatively to the new origin.
Re: Centering away from [0 0]
December 17, 2019 11:52AM
Great, thank you!

The National Institute of Mental Health (NIMH) is part of the National Institutes of Health (NIH), a component of the U.S. Department of Health and Human Services.