extracting & applying 2D eye transform November 04, 2021 02:02PM |
Registered: 3 years ago Posts: 13 |
Re: extracting & applying 2D eye transform November 05, 2021 01:38PM |
Admin Registered: 5 years ago Posts: 880 |
sx = 1024; % subject screen width sy = 768; % subject screen height MLConfig.Screen.SubjectScreenRect = [0 0 sx sy]; MLConfig.Screen.SubjectScreenFullSize = [sx sy]; MLConfig.Screen.SubjectScreenHalfSize = 0.5 * [sx sy]; MLConfig.Screen.SubjectScreenAspectRatio = sx / sy;
EyeCal = mlcalibrate('eye', MLConfig, 1); % 1 means Eye #1
deg_xy = EyeCal.sig2deg(raw_xy, [0 0]); % raw_xy is an n-by-2 matrix. [0 0] is offset; do not change it.
[data, MLConfig] = mlread;In the new version of NIMH ML, MLConfig will keep the subject screen info so that there is no need to fill it out later.
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.