1 #ifndef _CHRONOPTICS_TOF_CALIBRATION_H_
2 #define _CHRONOPTICS_TOF_CALIBRATION_H_
4 #include <chronoptics/tof/error.h>
12 typedef struct tof_calibration* tof_calibration_t;
15 TOF_EXPORT
void tof_calibration_delete(tof_calibration_t ptr);
23 TOF_EXPORT tof_calibration_t tof_calibration_new_from_disk(
const char* file_location, tof_error_t *error);
30 TOF_EXPORT
void tof_calibration_write(
const tof_calibration_t ptr,
const char* file_location, tof_error_t *error);
39 TOF_EXPORT
size_t tof_calibration_get_calibrated_frequencies(
const tof_calibration_t ptr,
float* calibrated_frequencies,
size_t capacity, tof_error_t *error);
46 TOF_EXPORT
double tof_calibration_get_focal_length_x(
const tof_calibration_t ptr, tof_error_t *error);
53 TOF_EXPORT
double tof_calibration_get_focal_length_y(
const tof_calibration_t ptr, tof_error_t *error);
60 TOF_EXPORT
double tof_calibration_get_principal_point_x(
const tof_calibration_t ptr, tof_error_t *error);
67 TOF_EXPORT
double tof_calibration_get_principal_point_y(
const tof_calibration_t ptr, tof_error_t *error);
74 TOF_EXPORT
double* tof_calibration_get_depth_camera_matrix(tof_calibration_t ptr, tof_error_t *error);
81 TOF_EXPORT
double* tof_calibration_get_depth_distortion_coefficients(tof_calibration_t ptr, tof_error_t *error);
88 TOF_EXPORT
double* tof_calibration_get_rgb_camera_matrix(tof_calibration_t ptr, tof_error_t *error);
95 TOF_EXPORT
double* tof_calibration_get_rgb_distortion_coefficients(tof_calibration_t ptr, tof_error_t *error);