private void InitSensor() { sensorDevice = new KinectSdkDevice(); sensorDevice.CompositeFrameAvailable += new CompositeFrameAvailableEventHandler(device_CompositeFrameAvailable); sensorDevice.Initialize(currentConfiguration); sensorDevice.SetTiltAngle(0); }
private void InitSensor() { sensorDevice = new KinectSdkDevice(); var config = new DeviceConfiguration(); config.DepthBufferFormat = DepthBufferFormats.Format320X240X16; config.VideoBufferFormat = ImageBufferFormats.Format640X480X32; sensorDevice.Initialize(config); sensorDevice.SetTiltAngle(0); sensorDevice.CompositeFrameAvailable += new CompositeFrameAvailableEventHandler(device_CompositeFrameAvailable); }