Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/c/55.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何将图像从Azure Kinect导入UE4_C_Kinect - Fatal编程技术网

如何将图像从Azure Kinect导入UE4

如何将图像从Azure Kinect导入UE4,c,kinect,C,Kinect,我想知道如何将Azure Kinect Caputer图像中的数据转换为UE4纹理 k4a_wait_result_t get_capture_result = k4a_device_get_capture(*_device, &m_capture, K4A_WAIT_INFINITE); if (get_capture_result == K4A_WAIT_RESULT_SUCCEEDED) { k4a_image_t colorImage = k4a_captur

我想知道如何将Azure Kinect Caputer图像中的数据转换为UE4纹理

k4a_wait_result_t get_capture_result = k4a_device_get_capture(*_device, 
    &m_capture, K4A_WAIT_INFINITE);

if (get_capture_result == K4A_WAIT_RESULT_SUCCEEDED)
{
    k4a_image_t colorImage = k4a_capture_get_color_image(m_capture);

    if (colorImage != nullptr)
    {
        unsigned char* colorData = k4a_image_get_buffer(colorImage);
        int colorWidth = k4a_image_get_width_pixels(colorImage);
        int colorHeight = k4a_image_get_height_pixels(colorImage);

        k4a_image_release(colorImage);
    }
}
我是否可以使用:
colorData
colorWidth
colorHeight
转换为纹理2D