Skip to content

Instantly share code, notes, and snippets.

@TakashiYoshinaga
Last active December 6, 2019 00:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save TakashiYoshinaga/da32c7ac9aec303795c37cc4a7fb5c22 to your computer and use it in GitHub Desktop.
Save TakashiYoshinaga/da32c7ac9aec303795c37cc4a7fb5c22 to your computer and use it in GitHub Desktop.
Instantiation of transformation
//Kinectの初期化
private void InitKinect()
{
//0番目のKinectと接続
kinect = Device.Open(0);
//Kinectの各種モードを設定して動作開始
kinect.StartCameras(new DeviceConfiguration
{
ColorFormat = ImageFormat.ColorBGRA32,
ColorResolution = ColorResolution.R720p,
DepthMode = DepthMode.NFOV_2x2Binned,
SynchronizedImagesOnly = true,
CameraFPS = FPS.FPS30
});
//(追加)座標変換(Color⇔Depth対応やDepth→xyz)のための情報を生成
transformation = kinect.GetCalibration().CreateTransformation();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment