如何将图像从Azure Kinect导入UE4
我想知道如何将Azure Kinect Caputer图像中的数据转换为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
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