Infrared Images Windows 10 librealsense 2.33.1
When using my D435i camera under Windows 10, this statement:
auto toStream = profiles.get_stream(RS2_STREAM_INFRARED, 1);
Fails because get_stream could not find the stream in the profiles. But an earlier statement did configure the infrared stream:
cfg.enable_stream(RS2_STREAM_INFRARED, 1, width, height, RS2_FORMAT_Y8, 30);
What am I doing wrong? This is using the latest version of librealsense 2.33.1.
Bob Davies
-
It may help seeing more of the code:
rs2::config cfg;
cfg.enable_stream(RS2_STREAM_COLOR, width, height, RS2_FORMAT_BGR8, 30);
cfg.enable_stream(RS2_STREAM_DEPTH, width, height, RS2_FORMAT_BGR8, 30);
cfg.enable_stream(RS2_STREAM_INFRARED, 1, width, height, RS2_FORMAT_Y8, 30);
cfg.enable_stream(RS2_STREAM_INFRARED, 2, width, height, RS2_FORMAT_Y8, 30);if (IMUPresent)
{
cfg.enable_stream(RS2_STREAM_GYRO);
cfg.enable_stream(RS2_STREAM_ACCEL);
}profiles = pipeline.start();
auto stream = profiles.get_stream(RS2_STREAM_COLOR);
intrinsicsLeft = stream.as<rs2::video_stream_profile>().get_intrinsics();
auto fromStream = profiles.get_stream(RS2_STREAM_COLOR);
extrinsics = fromStream.get_extrinsics_to(profiles.get_stream(RS2_STREAM_INFRARED));
Please sign in to leave a comment.
Comments
5 comments