jjzjj

CameraSpacePoint

全部标签

c++ - Kinect v2 将颜色坐标映射到相机空间

我正在尝试将坐标从颜色空间映射到相机空间。我使用的代码如下:HRESULTModelRecognizer::MapColorToCameraCoordinates(conststd::vector&colorsps,std::vector&camerasps){//AccessframeHRESULThr=GetDepthFrame();if(SUCCEEDED(hr)){ICoordinateMapper*pMapper;hr=m_pKinectSensor->get_CoordinateMapper(&pMapper);if(SUCCEEDED(hr)){CameraSpacePo

c++ - 将数据从未对齐结构的数组移动到 C++ 中的对齐数组

将数据从CameraSpacePoint数组移动到PointXYZ数组的最佳方法是什么?structCameraSpacePoint{floatX;floatY;floatZ;};__declspec(align(16))structPointXYZ{floatx;floaty;floatz;};constexprintBIG_VAL=1920*1080;CameraSpacePointcamera_space_points[BIG_VAL];PointXYZpoints_xyz[BIG_VAL];我的解决方案:CameraSpacePoint*camera_space_points_