问题描述
我想知道如何将数据从Azure Kinect Caputer Image转换为UE4 Texture。
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
转换为Texture2D吗?
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)