禁用发射器进行红外采集,但不进行深度采集

时间:2019-03-05 17:16:07

标签: intel infrared realsense

我正在尝试使用SDK 2.0从Intel Realsense D415摄像机获取深度,彩色和IR图像,但是在从捕获物中删除IR模式时遇到了问题。我想在捕获深度图像时使用激光,但在捕获IR图像时不希望使用激光。这是我目前正在获取帧的方式:

rs2::frameset data = pipe.wait_for_frames(); // Wait for next set of frames from the camera

//Get processed aligned frame
auto processed = align.process(data);

// Trying to get both other and aligned depth frames
rs2::video_frame other_frame = processed.first(align_to);
rs2::depth_frame aligned_depth_frame = processed.get_depth_frame();


// Get frame data from stream
rs2::depth_frame depth = data.get_depth_frame();
rs2::video_frame color = data.get_color_frame();
rs2::video_frame ir = data.first(RS2_STREAM_INFRARED);

我还尝试使用以下方法禁用发射器并将激光功率降低到0:

depth_sensor.set_option(RS2_OPTION_EMITTER_ENABLED, 0.f);
depth_sensor.set_option(RS2_OPTION_LASER_POWER, 0.f);

但是我仍然得到记录在红外图像中的图案。无论如何,有没有不使用激光来捕获红外图像,而是在捕获深度图像时使用了激光?

0 个答案:

没有答案