I'm developing a software to move the mouse based on certain coordinates which i get from a depth image from kinect. but I have 30 frames/second(images/second) and those coordinates changes with every frame so the mouse keeps moving. My question is,Is there a way to smooth the movement of the mouse ?
To change how the mouse pointer works , and then clicking Control Panel. In the search box, type mouse, and then click Mouse. Click the Pointer Options tab, and then do any of the following: To change the speed at which the mouse pointer moves, under Motion, move the Select a pointer speed slider toward Slow or Fast.
Smoothing happens when a mouse sensor averages out the two captures instead of sharing the latest position, resulting in a more delayed response on-screen to hand movement.
Yes you can start tracking with some parameters that allows you to make move smoother.
Below is an example code:
var parameters = new TransformSmoothParameters
{
Smoothing = 0.2f,
Correction = 0.0f,
Prediction = 0.0f,
JitterRadius = 1.0f,
MaxDeviationRadius = 0.5f
};
this._sensor.SkeletonStream.Enable(parameters);
You can change Smoothing
, Correction
, Prediction
, JitterRadius
, and MaxDeviationRadius
to whatever numbers you want.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With