Function rs2_extract_target_dimensions

Function Documentation

void rs2_extract_target_dimensions(const rs2_frame *frame, rs2_calib_target_type calib_type, float *target_dims, unsigned int target_dims_size, rs2_error **error)

Extract the target dimensions on the specific target

Parameters:
  • frame[in] Left or right camera frame of specified size based on the target type

  • calib_type[in] Calibration target type

  • target_dims_size[in] Target dimension array size. 4 for RS2_CALIB_TARGET_RECT_GAUSSIAN_DOT_VERTICES and 8 for RS2_CALIB_TARGET_POS_GAUSSIAN_DOT_VERTICES.

  • target_dims[out] The array to hold the result target dimensions calculated. For type RS2_CALIB_TARGET_RECT_GAUSSIAN_DOT_VERTICES, the four rectangle side sizes in pixels with the order of top, bottom, left, and right For type RS2_CALIB_TARGET_POS_GAUSSIAN_DOT_VERTICES, the four vertices coordinates in pixels with the order of top, bottom, left, and right

  • error[out] If non-null, receives any error that occurs during this call, otherwise, errors are ignored