librealsense icon indicating copy to clipboard operation
librealsense copied to clipboard

depth_aligned_to_color for librealsense + openCV

Open leslysandra opened this issue 10 years ago • 1 comments

Required Info
Camera Model R200
Firmware Version
Operating System & Version Ubuntu
Kernel Version (Linux Only) 4.0
Build System Makefile

Hey guys! I am testing " depth_aligned_to_color" (the synthetic stream) in Ubuntu and OpenCV, still no success in showing the image. This is how I am showing RGB: (I would like to have something similar with depth_aligened_to_color"

cv::Mat rgb_show; const uint8_t * rgb_frame = reinterpret_cast<const uint8_t* (dev->get_frame_data(rs::stream::color)); cv::Mat rgb = cv::Mat(480, 640, CV_8UC3, (void*)rgb_frame); cvtColor(rgb, rgb_show, CV_BGR2RGB); cv::imshow("RGB", rgb_show);

Thanks.

leslysandra avatar Aug 11 '16 11:08 leslysandra

Hello @l3s777 ,

Do you still need help with this issue?

Regards, Jesus G. Intel Customer Support

jlgarcia75 avatar Oct 17 '17 23:10 jlgarcia75