Last active
December 6, 2019 00:39
-
-
Save TakashiYoshinaga/da32c7ac9aec303795c37cc4a7fb5c22 to your computer and use it in GitHub Desktop.
Instantiation of transformation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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