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?