您的位置:首页 > 编程语言 > C语言/C++

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

2017-11-02 14:51 453 查看


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.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: