You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First of all, I would to thank's for all of you and specially who helped me on resloving my issues, so to day I want just to ask if there is a possibility to access to each pixel of IR or RGB Image on D435 Realsense, by the way below is some of lignes codes that give you IR and RGB image in form of Mat in OpenCV:
Mat color(size(640,480), CV_8UC3, (void*)color_frame.get_data(),Mat::AUTO_STEP);
Mat ir(size(640,480), CV_8UC1, (void*)ir_frame.get_data(),Mat::AUTO_STEP);
Best refgards.
Tarek ELOUARET
The text was updated successfully, but these errors were encountered:
[Realsense Customer Engineering Team Comment]
Hi @TAREK-ELOUARET,
Do you try to have a configuration to set the format as follows before stream?
//Create a configuration for configuring the pipeline with a non default profile
rs2::config cfg;
//Add desired streams to configuration
cfg.enable_stream(RS2_STREAM_COLOR, 640, 480, RS2_FORMAT_BGR8, 30);
cfg.enable_stream(RS2_STREAM_INFRARED, 1280, 720, RS2_FORMAT_Y8, 30);
cfg.enable_stream(RS2_STREAM_DEPTH, 1280, 720, RS2_FORMAT_Z16, 30);
Hello everyone,
First of all, I would to thank's for all of you and specially who helped me on resloving my issues, so to day I want just to ask if there is a possibility to access to each pixel of IR or RGB Image on D435 Realsense, by the way below is some of lignes codes that give you IR and RGB image in form of Mat in OpenCV:
rs2::frame color_frame = frames.get_color_frame();
rs2::frame ir_frame = frames.first(RS2_STREAM_INFRARED);
Mat color(size(640,480), CV_8UC3, (void*)color_frame.get_data(),Mat::AUTO_STEP);
Mat ir(size(640,480), CV_8UC1, (void*)ir_frame.get_data(),Mat::AUTO_STEP);
Best refgards.
Tarek ELOUARET
The text was updated successfully, but these errors were encountered: