none
Kinect SDK v1 - TransformSmooth RRS feed

  • Question

  • How can I set TransformSmoothParameters in new SDK?

    In the documentation the proprieties SmoothParameters  and TransformSmooth,exposed by the SkeletonStream type have get and set,   but in really are read only.

    Wednesday, February 1, 2012 10:24 PM

All replies

  • I find a solution.

    There is an error in documentation!!

    This is the code to set TransformSmoothParameters

                        TransformSmoothParameters parameters = new TransformSmoothParameters();
                        parameters.Smoothing = 0.2f;
                        parameters.Correction = 0.8f;
                        parameters.Prediction = 0.0f;
                        parameters.JitterRadius = 0.5f;
                        parameters.MaxDeviationRadius = 0.5f;
    
                        sensor.SkeletonStream.Enable(parameters);
    

    You must set when enable SkeletonStream.

    • Proposed as answer by ni28 Thursday, February 2, 2012 9:14 AM
    Wednesday, February 1, 2012 10:37 PM
  • Thanks for sharing. I was going crazy last night trying to figure this out and was wondering why VS was giving me an error saying TransformSmoothParameters is read-only but the documentation was otherwise.
    Friday, February 3, 2012 9:19 PM