Tech Off Thread

1 post

skeletonViewer Kinetic WPF

Back to Forum: Tech Off
  • User profile image

    Hello m8's...

    i downloaded a sample program and see heare using the fallowing components:


     <WpfViewers:KinectColorViewer HorizontalAlignment="Left" 
                                              Grid.Row="1" Grid.Column="0"
                                              Margin="0" VerticalAlignment="Top" Height="480" Width="640" 
            <WpfViewers:KinectSkeletonViewer HorizontalAlignment="Left" 
                                                 Grid.Row="1" Grid.Column="0"
                                                 VerticalAlignment="Top" Height="480" Width="640" x:Name="skeletonViewer" />


    but the fallowing code has problem:


    private void InitKinectSensor()
                // validate
                if (KinectSensor.KinectSensors.Count == 0) return;
                // init Kinect
                var parameters = new TransformSmoothParameters
                                         Smoothing = 0.75f,
                                         Correction = 0.1f,
                                         Prediction = 0.0f,
                                         JitterRadius = 0.05f,
                                         MaxDeviationRadius = 0.08f
                _sensor = KinectSensor.KinectSensors[0];
                colorViewer.Kinect = _sensor;  // Error Here
                skeletonViewer.Kinect = _sensor;   //Error here
                _sensor.SkeletonFrameReady += SensorSkeletonFrameReady;


    You guys can help me?

Comments closed

Comments have been closed since this content was published more than 30 days ago, but if you'd like to continue the conversation, please create a new thread in our Forums, or Contact Us and let us know.