Intel Realsense D435i Start
Intel Realsense D435i 相机基本使用
安装SDK
Examples
rs2::frame
to cv::Mat
rs2::frame depth;
// Query frame size (width and height)
const int w = depth.as<rs2::video_frame>().get_width();
const int h = depth.as<rs2::video_frame>().get_height();
// Create OpenCV matrix of size (w,h) from the colorized depth data
cv::Mat image(Size(w, h), CV_8UC3, (void*)depth.get_data(), cv::Mat::AUTO_STEP);
// new-style cast
cv::Mat image(Size(w, h), CV_8UC3, const_cast<void*>(depth.get_data()), cv::Mat::AUTO_STEP);