运行代码时发现这样一个问题,待解决!
#include<k4a/k4a.h>
#include<k4abt.h>
#include<opencv2/opencv.hpp>
#include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>
#include<iostream>
#define Max_bodies 5
using namespace std;
using namespace cv;
int main()
{
int device_amount;//设备数目
k4a_device_t device = NULL;//设备
k4a_result_t device_result;//设备打开结果
k4a_device_configuration_t deviceConfig;//设备参数
k4a_capture_t sensor_capture;//计录设备的捕获信息
k4a_wait_result_t get_capture_result;//计录各个设备的捕获是否成功
k4a_image_t rgbImage = NULL;//记录从捕获得到的rgb图
k4a_image_t depthImage = NULL;//记录从捕获得到的depth图
k4a_calibration_t sensor_calibration;//校准信息
k4a_result_t get_tracker_result;//计录各个设备的捕获是否成功
k4abt_tracker_t tracker = NULL ;//创建人体跟踪器
k4abt_tracker_configuration_t tracker_config = K4ABT_TRACKER_CONFIG_DEFAULT; //人体跟踪器参数
int64_t get_colorImage_time;//时间戳的记录
k4a_wait_result_t queue_capture_result;//计录设备的人体捕获入队是否返回值
k4a_wait_result_t pop_frame_result;//计录设备的人体捕获出队是否返回值
k4abt_frame_t body_frame;//有人图像的序列
k4abt_skeleton_t skeleton[Max_bodies];//人体关节信息
Mat cv_rgbImage_with_alpha ;
Mat cv_rgbImage_no_alpha;
Mat cv_depth;
Mat cv_depth_8U;
double position[32][3] = {
0};
device_amount = k4a_device_get_installed_count();
cout << "发现"<< device_amount <<"台设备!" << endl;
if (device_amount == 0)