Tech Off Thread

1 post

skeletonViewer Kinetic WPF

Back to Forum: Tech Off
  • User profile image
    Paulo​Jardimti

    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" 
                                              x:Name="colorViewer"/>
            <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];
                _sensor.ColorStream.Enable(ColorImageFormat.RgbResolution640x480Fps30);
                _sensor.DepthStream.Enable(DepthImageFormat.Resolution320x240Fps30);
                _sensor.SkeletonStream.Enable(parameters);
                _sensor.Start();
                
                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.