Strange x / y shift in WPF application.
Posted: 07 Jul 2015, 14:26
I have strange x and y coordinates shift in the WPF application (please see the screen shot: http://s8.postimg.org/l3etopwl1/Capture.jpg).
Small white ellipse (on the bottom right of the red square) is the gaze pointer that shows outputs from eye tracker while watching red square in the middle.
The snippet below shows the way I’m setting position of the gaze pointer (following code runs in WPF application).
I’m using TheEyeTribeSDK-0.9.56-x86 with TETCSharpClient 0.9.56. I’m calibrating tracker via EyeTribe UI and then run the application. It was tested on several persons with same results, tracker was in proper position calibrated with best rank. Does anyone have an idea what might causing it? Please assume that application’s surrounding doesn’t affect the output position of the gaze pointer.
Thank you for your support!
Small white ellipse (on the bottom right of the red square) is the gaze pointer that shows outputs from eye tracker while watching red square in the middle.
The snippet below shows the way I’m setting position of the gaze pointer (following code runs in WPF application).
- Code: Select all
var x = Screen.PrimaryScreen.Bounds.X;
var y = Screen.PrimaryScreen.Bounds.Y;
var screenX = (int)Math.Round(x + gazeData.SmoothedCoordinates.X, 0);
var screenY = (int)Math.Round(y + gazeData.SmoothedCoordinates.Y, 0);
I’m using TheEyeTribeSDK-0.9.56-x86 with TETCSharpClient 0.9.56. I’m calibrating tracker via EyeTribe UI and then run the application. It was tested on several persons with same results, tracker was in proper position calibrated with best rank. Does anyone have an idea what might causing it? Please assume that application’s surrounding doesn’t affect the output position of the gaze pointer.
Thank you for your support!