10 Replies Latest reply on Jun 7, 2018 5:36 AM by cixinlaoren

    Change the  Depth map accuracy with SDK2.0



             I have a question that can I Change the  Depth map accuracy like this:


              rs2::pipeline pipe;

              rs2::pipeline_profile selection = pipe.start();

              rs2::device selected_device = selection.get_device();

              auto depth_sensor = selected_device.first<rs2::depth_sensor>();


              if (depth_sensor.supports(RS2_OPTION_EMITTER_ENABLED))


                depth_sensor.set_option(RS2_OPTION_EMITTER_ENABLED, 1.f); // Enable emitter

                depth_sensor.set_option(RS2_OPTION_EMITTER_ENABLED, 0.f); // Disable emitter


              if (depth_sensor.supports(RS2_OPTION_LASER_POWER))


                 // Query min and max values:

                 auto range = depth_sensor.get_option_range(RS2_OPTION_LASER_POWER);

                depth_sensor.set_option(RS2_OPTION_LASER_POWER, range.max); // Set max power

                depth_sensor.set_option(RS2_OPTION_LASER_POWER, 0.f); // Disable laser



          Does depth_sensor.set_option(RS2_OPTION_LASER_POWER, range.max) can change dehpth accruacy. The depth image is 16 bit ,and D400 camera can detect distance of 65m,

      if I set range.max to 2.0m, dose the max value 65536 I get from depth img represent 2.0m? thanks.