ScaleTo Method C++

Feb 12, 2014 at 8:47 AM
Edited Feb 12, 2014 at 8:55 AM
For my latest c++ project i have to move the cursor only using head movement and some facial movement. This is how the project goes so far ( Right now, i have to change the position of my head a lot so the cursor will move a quite small distance. My question is: how can use the ScaleTo method in C++? Can someone tell me how is implemented so i can move the cursor on the whole width and height of the computer's display with relatively small movements of the head. I don't wanna call the function from the c# dll into my c++ project without .net. Thank u in advance!
Feb 12, 2014 at 4:01 PM
Full source code for the library is available on the Source Code tab above. The implementation of the ScaleTo method is here:
Feb 12, 2014 at 8:45 PM
Yeah sorry, meanwhile i finded the source code (silly me). Problem is that the values are way too high and it isn't working. For example, If my head coordinates are x=343.5 y=237.9 after the scaling x = 110224.93 and y = -56878.434 and the cursor won't move. Any sugestion?
Feb 12, 2014 at 11:44 PM
I haven't done much work with the native API, but those original skeleton values look like they're in pixels (or something) not meters. How are you getting those values?