0

我有 ZR300 realsense 相机并试图获得彩色图像。我所做的是

dev.enable_stream(rs::stream::color, 640, 480, rs::format::bgr8, 60);
cv::Mat colorImg(480, 640, CV_8UC3, (unsigned char *)dev.get_frame_data(rs::stream::color));
imshow("colorImg",colorImg);
cv::waitKey(1);

但我有彩色图像

在此处输入图像描述

为什么我没有正确的图像?

4

0 回答 0