简体   繁体   English

Kinect v2的深度相机固有特性

[英]Depth Camera Intrinsics for Kinect v2

I'm trying to get the camera intrinsics for kinect v2 using C#. 我正在尝试使用C#获取kinect v2的相机内部函数。 I'm pretty new to Visual Studio, C# and Kinect v2 and the lack of a detailed official tutorial is driving me crazy..(if there's any please let me know..) 我是Visual Studio,C#和Kinect v2的新手,缺少详细的正式教程使我发疯..(如果有,请告诉我。)

I know there's a function called GetDepthCameraIntrinsics that returns a calibration data but how do I store that data?(What type does the variable has to be to store the data?) 我知道有一个名为GetDepthCameraIntrinsics的函数可以返回校准数据,但是我该如何存储该数据?(变量必须存储什么类型的数据?)

GetDepthCameraIntrinsics() returns a CameraIntrinsics type. GetDepthCameraIntrinsics()返回CameraIntrinsics类型。 You should write the next code to obtained the data: 您应该编写以下代码来获取数据:

private CoordinateMapper coordinateMapper = null;
private CameraIntrinsics calibrationData;

coordinateMapper = kinectSensor.CoordinateMapper;

and after Open the sensor and wait for approx 2 seconds: 然后打开传感器并等待大约2秒钟:

calibrationData = coordinateMapper.GetDepthCameraIntrinsics();

The CameraIntrinsics is a type that contains different data: CameraIntrinsic data CameraIntrinsics是包含不同数据的类型: CameraIntrinsic数据

I used this tutorial: http://kinect.github.io/tutorial/lab01/index.html and there are samples that comes with the Kinect sdk that are really usefull: C:\\Program Files\\Microsoft SDKs\\Kinect\\v2.0_1409\\Samples\\Managed. 我使用了本教程: http : //kinect.github.io/tutorial/lab01/index.html,Kinect SDK附带了一些非常有用的示例:C:\\ Program Files \\ Microsoft SDKs \\ Kinect \\ v2。 0_1409 \\ SAMPLES \\管理。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM