Function rs2_run_focal_length_calibration

Function Documentation

const rs2_raw_data_buffer *rs2_run_focal_length_calibration(rs2_device *device, rs2_frame_queue *left_queue, rs2_frame_queue *right_queue, float target_width, float target_height, int adjust_both_sides, float *ratio, float *angle, rs2_update_progress_callback_ptr callback, void *client_data, rs2_error **error)

Run target-based focal length calibration

Parameters:
  • device[in] device to calibrate

  • left_queue[in] container for left IR frames with resoluton of 1280x720 and the target in the center of 320x240 pixels ROI.

  • right_queue[in] container for right IR frames with resoluton of 1280x720 and the target in the center of 320x240 pixels ROI

  • target_width[in] the rectangle width in mm on the target

  • target_height[in] the rectangle height in mm on the target

  • adjust_both_sides[in] 1 for adjusting both left and right camera calibration tables, and 0 for adjusting right camera calibraion table only

  • ratio[out] the corrected ratio from the calibration

  • angle[out] the target’s tilt angle

  • callback[in] Optional callback for update progress notifications, the progress value is normailzed to 1

  • client_data[in] Optional client data for the callback

Returns:

New calibration table