Kinect Fusion Explorer D2D C++ Sample中函数简介

来源:互联网 发布:按键精灵自动录入数据 编辑:程序博客网 时间:2024/06/06 01:40

Overview

例子中使用如下APIs作用NuiImageResolutionToSize function获得深度帧的宽和高NuiGetSensorCount function获得可用传感器的数量NuiCreateSensorByIndex function and INuiSensor interface创建可以表示已连接传感器的交互界面INuiSensor::NuiStatus method检查传感器的状态以确认其是否连接INuiSensor::NuiInitialize method and NUI_IMAGE_TYPE_DEPTH_AND_PLAYER_INDEX constant初始化传感器以流出深度数据NuiFusionCreateReconstruction function创建KinectFusion重建体积NuiFusionCreateImageFrame function为帧数据创建一个图像帧NuiFusionCreateImageFrame function为点云数据创建一个图像帧NuiFusionCreateImageFrame function对要显示的光线投射体积创建图像INuiSensor::NuiImageStreamGetNextFrame method从Kinect获得更深入的深度框架CKinectFusionExplorer.CopyExtendedDepth method获得扩展深度数据INuiSensor::NuiImageStreamReleaseFrame method释放Kinect相机框架NuiFusionShadePointCloud function阴影点云和渲染INuiSensor::NuiImageStreamSetImageFrameFlags method and NUI_IMAGE_STREAM_FLAG_ENABLE_NEAR_MODE constant设置深度数据范围为近距离CreateEvent function创建一个事件,当通过返回事件句柄可以获得深度数据时,该事件将发出信号INuiSensor::NuiImageStreamOpen method, NUI_IMAGE_TYPE_DEPTH constant, NUI_IMAGE_RESOLUTION_640x480 constant, the event handle打开深度帧以获得深度数据INuiSensor::NuiImageStreamGetNextFrame method获取下一帧颜色数据(使用颜色数据事件句柄)INuiFrameTexture::LockRect method and NUI_LOCKED_RECT structure锁定纹理,为获得纹理数据做准备INuiFrameTexture::UnlockRect method保存纹理数据之后解开纹理锁INuiSensor::NuiImageStreamReleaseFrame method保存后释放每一帧深度数据INuiSensor::Release method退出应用程序时释放传感器NuiShutdown function关掉传感器INuiFusionColorReconstruction::ResetReconstruction method清除重建体积并设置一个新的世界坐标系到相机坐标系的变换(摄像机视图姿势)和世界到体积的变换INuiFusionColorReconstruction::AlignDepthFloatToReconstruction method将深度浮点图像对准重建体积以计算新的相机姿态INuiFusionColorReconstruction::GetCurrentWorldToCameraTransform method重新得到当前内部世界到相机的变换(相机视图姿势)INuiFusionColorReconstruction::GetCurrentWorldToVolumeTransform method获得当前世界到体积的变换INuiFusionColorReconstruction::IntegrateFrame method将深度浮点数据和颜色数据从指定的相机姿态整合到重建体积中INuiFusionColorReconstruction::CalculatePointCloud method通过射线投影到重建体积中计算点云,从指定的相机姿态和颜色可视化图像返回包含图像中每个可见像素处的过零密度表面的3D点和法线的点云INuiFusionColorReconstruction::CalculateMesh method使用每顶点颜色从重构体中导出零交叉密集曲面的多边形网格INuiFusionColorReconstruction::DepthToDepthFloatFrame method将指定的Kinect深度像素数组转换 NUI_FUSION_IMAGE_FRAME structure.INuiFusionColorReconstruction::SmoothDepthFloatFrame method在空间上使用边缘保护滤波平滑深度浮点图像帧INuiFusionColorReconstruction::AlignPointClouds method对齐两组重叠定向点云并计算相机相对姿态INuiFusionColorReconstruction::SetAlignDepthFloatToReconstructionReferenceFrame method设置内部使用的参考深度框架来帮助跟踪当调用 AlignDepthFloatToReconstruction 方法去计算一个新的相机位姿时INuiFusionColorReconstruction::CalculatePointCloudAndDepth method通过射线投影到重建体积中计算点云,从指定的摄像机姿态,颜色可视化图像和到表面的深度返回包含图像中每个可见像素处的过零密度表面的3D点和法线的点云INuiFusionCameraPoseFinder::ResetCameraPoseFinder method清除 INuiFusionCameraPoseFinder.INuiFusionCameraPoseFinder::ProcessFrame method如果该帧与数据库中已存在的姿势不同,请将指定的相机帧添加到相机姿态数据库INuiFusionCameraPoseFinder::FindCameraPose method重新得到相机姿态数据库中与当前相机输入最相似的姿势INuiFusionCameraPoseFinder::GetStoredPoseCount method重新得到当前存储在相机姿态数据库中的帧数NuiFusionAlignPointClouds function对齐两组定向点云,并计算相机的相对姿势

如果您需要帮助在Visual Studio中加载样本或使用Visual Studio进行编译,运行或调试,参见 Opening, Building, and Running Samples in Visual Studio.

原创粉丝点击