本文整理汇总了C#中Microsoft.Kinect.Toolkit.KinectSensorChooser.Start方法的典型用法代码示例。如果您正苦于以下问题:C# KinectSensorChooser.Start方法的具体用法?C# KinectSensorChooser.Start怎么用?C# KinectSensorChooser.Start使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Microsoft.Kinect.Toolkit.KinectSensorChooser
的用法示例。
在下文中一共展示了KinectSensorChooser.Start方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Window_Loaded_1
private void Window_Loaded_1(object sender, RoutedEventArgs e)
{
miKinect = new KinectSensorChooser();
miKinect.KinectChanged += miKinect_KinectChanged;
sensorChooserUI.KinectSensorChooser = miKinect;
miKinect.Start();
}
示例2: OnLoaded
private void OnLoaded(object sender, RoutedEventArgs routedEventArgs)
{
_sensorChooser = new KinectSensorChooser();
_sensorChooser.KinectChanged += SensorChooserOnKinectChanged;
KinectSensorChooserUi.KinectSensorChooser = _sensorChooser;
_sensorChooser.Start();
SetGameField();
}
示例3: MainWindow
public MainWindow()
{
InitializeComponent();
myChooser = new KinectSensorChooser();
myChooser.KinectChanged += new EventHandler<KinectChangedEventArgs>(myChooser_KinectChanged);
this.SensorChooserUI.KinectSensorChooser = myChooser;
myChooser.Start();
}
示例4: Asimov
public Asimov(ICreateController create)
: this(create, null)
{
// Find the Kinect and subscribe to changes in the sensor
KinectSensorChooser sensorChooser = new KinectSensorChooser();
sensorChooser.KinectChanged += this.KinectSensorChanged;
sensorChooser.Start();
}
示例5: SetupKinectSensor
private void SetupKinectSensor()
{
_sensorChooser = new KinectSensorChooser();
_sensorChooser.KinectChanged += SensorChooserOnKinectChanged;
sensorChooserUi.KinectSensorChooser = _sensorChooser;
_sensorChooser.Start();
var regionSensorBinding = new Binding("Kinect") { Source = _sensorChooser };
BindingOperations.SetBinding(kinectRegion, KinectRegion.KinectSensorProperty, regionSensorBinding);
}
示例6: Window_Loaded_1
private void Window_Loaded_1(object sender, RoutedEventArgs e)
{
Console.WriteLine("Main Windows Loading...");
//Kinect Event Handler Register
KinectSensor = new KinectSensorChooser();
KinectSensor.KinectChanged += KinectSensor_KinectChanged;
sensorChooserUI.KinectSensorChooser = KinectSensor;
KinectSensor.Start();
}
示例7: MainWindow
public MainWindow()
{
InitializeComponent();
myChooser = new KinectSensorChooser();
myColorArray = new byte[640*480*4];
myChooser.KinectChanged += new EventHandler<KinectChangedEventArgs>(myChooser_KinectChanged);
this.SensorChooserUI.KinectSensorChooser = myChooser;
myChooser.Start();
updateWindow();
}
示例8: Init
public static void Init()
{
// First Load the XML File that contains the application configuration
_gestureMap = new GestureMap();
_gestureMap.LoadGesturesFromXml(GestureFileName);
_chooser = new KinectSensorChooser();
_chooser.KinectChanged += ChooserSensorChanged;
_chooser.Start();
// Instantiate the in memory representation of the gesture state for each player
_gestureMaps = new Dictionary<int, GestureMapState>();
}
示例9: MainWindow
public MainWindow()
{
InitializeComponent();
myTimer = new System.Windows.Threading.DispatcherTimer();
myTimer.Tick += new EventHandler(myTimer_Tick);
myTimer.Interval = new TimeSpan(0, 0, 0, 0, 250);
myChooser = new KinectSensorChooser();
myChooser.KinectChanged += new EventHandler<KinectChangedEventArgs>(myChooser_KinectChanged);
this.SensorChooserUI.KinectSensorChooser = myChooser;
myChooser.Start();
}
示例10: MainWindow
public MainWindow()
{
InitializeComponent();
faceTrackingViewerBinding = new Binding("Kinect") {Source = sensorChooser};
CurrentColorImageFormat = ColorImageFormat.Undefined;
Bgr32BytesPerPixel = (PixelFormats.Bgr32.BitsPerPixel + 7) / 8;
sensorChooser = new KinectSensorChooser();
sensorChooser.KinectChanged += SensorChooserOnKinectChanged;
sensorChooser.Start();
faceTrackingViewer.SetBinding(FaceTrackingViewer.KinectProperty, faceTrackingViewerBinding);
GetDirectory();
}
示例11: KinectContext
KinectContext()
{
SensorChooser = new KinectSensorChooser();
SensorChooser.KinectChanged += SensorChooser_KinectChanged;
SensorChooser.Start();
}
示例12: Window_Loaded
/// <summary>
/// Metodo que arranca la kinect al abrirse la ventana.
/// </summary>
/// <param name="sender"></param> Abrir la ventana.
/// <param name="e"></param> Evento de abrir ventana.
private void Window_Loaded(object sender, RoutedEventArgs e)
{
primeraVez = 1;
repeticionesD = 0;
repeticionesI = 0;
miKinect = new KinectSensorChooser();
miKinect.KinectChanged += miKinect_KinectChanged;
sensorChooserUI.KinectSensorChooser = miKinect;
miKinect.Start();
}
示例13: OnLoaded
void OnLoaded(object sender, RoutedEventArgs e)
{
_sensorChooser = new KinectSensorChooser();
_sensorChooser.KinectChanged += KinectChanged;
_sensorChooser.PropertyChanged += PropertyChanged;
KinectSensorChooser.KinectSensorChooser = _sensorChooser;
_sensorChooser.Start();
}
示例14: InicializadorKinect
public InicializadorKinect()
{
SeletorKinect = new KinectSensorChooser();
SeletorKinect.KinectChanged += SeletorKinect_KinectChanged;
SeletorKinect.Start();
}
开发者ID:gilgaljunior,项目名称:CrieAplicacoesInterativascomoMicrosoftKinect,代码行数:6,代码来源:InicializadorKinect.cs
示例15: Form1_Load
private void Form1_Load(object sender, EventArgs e)
{
_chooser = new KinectSensorChooser();
_chooser.KinectChanged += ChooserSensorChanged;
_chooser.Start();
}