Home Forums Software Development How to convert EyeX X & Y into Canvas.X, Canvas.Y positions? Reply To: How to convert EyeX X & Y into Canvas.X, Canvas.Y positions?

#4524
Denny [Tobii]
Participant

Hi,

I would use the normalized eye coordinates if you want to visualize the eye positions. The positions are in the 0-1 range, so you will need to scale they eyes yourself in the canvas.

            stream.Next += (s, e) =>
            {
                Debug.WriteLine("EyePos = {0} {1} {2} {3}", 
                e.LeftEyeNormalized.X,
                e.LeftEyeNormalized.Y,
                e.RightEyeNormalized.X,
                e.RightEyeNormalized.Y);
            };

Hope it helps,

Denny