OrbbecSDK 2.5.5
OrbbecSDK: Software-Development-Kit for Orbbec 3D Cameras
Loading...
Searching...
No Matches
Utils.h
Go to the documentation of this file.
1// Copyright (c) Orbbec Inc. All Rights Reserved.
2// Licensed under the MIT License.
3
4#pragma once
5
6#ifdef __cplusplus
7extern "C" {
8#endif
9
10#include "ObTypes.h"
11
22OB_EXPORT bool ob_transformation_3d_to_3d(const OBPoint3f source_point3f, OBExtrinsic extrinsic, OBPoint3f *target_point3f, ob_error **error);
23
36OB_EXPORT bool ob_transformation_2d_to_3d(const OBPoint2f source_point2f, const float source_depth_pixel_value, const OBCameraIntrinsic source_intrinsic,
37 OBExtrinsic extrinsic, OBPoint3f *target_point3f, ob_error **error);
38
51OB_EXPORT bool ob_transformation_3d_to_2d(const OBPoint3f source_point3f, const OBCameraIntrinsic target_intrinsic, const OBCameraDistortion target_distortion,
52 OBExtrinsic extrinsic, OBPoint2f *target_point2f, ob_error **error);
53
69OB_EXPORT bool ob_transformation_2d_to_2d(const OBPoint2f source_point2f, const float source_depth_pixel_value, const OBCameraIntrinsic source_intrinsic,
70 const OBCameraDistortion source_distortion, const OBCameraIntrinsic target_intrinsic,
71 const OBCameraDistortion target_distortion, OBExtrinsic extrinsic, OBPoint2f *target_point2f, ob_error **error);
72
73// \deprecated This function is deprecated and will be removed in a future version.
74OB_EXPORT ob_frame *transformation_depth_frame_to_color_camera(ob_device *device, ob_frame *depth_frame, uint32_t target_color_camera_width,
75 uint32_t target_color_camera_height, ob_error **error);
76
77// \deprecated This function is deprecated and will be removed in a future version.
78OB_EXPORT bool transformation_init_xy_tables(const ob_calibration_param calibration_param, const ob_sensor_type sensor_type, float *data, uint32_t *data_size,
79 ob_xy_tables *xy_tables, ob_error **error);
80
81// \deprecated This function is deprecated and will be removed in a future version.
82OB_EXPORT void transformation_depth_to_pointcloud(ob_xy_tables *xy_tables, const void *depth_image_data, void *pointcloud_data, ob_error **error);
83
84// \deprecated This function is deprecated and will be removed in a future version.
85OB_EXPORT void transformation_depth_to_rgbd_pointcloud(ob_xy_tables *xy_tables, const void *depth_image_data, const void *color_image_data,
86 void *pointcloud_data, ob_error **error);
87
88// \deprecated This function is deprecated and will be removed in a future version.
89// Use the ob_transformation_3d_to_3d instead.
90OB_EXPORT bool ob_calibration_3d_to_3d(const ob_calibration_param calibration_param, const ob_point3f source_point3f, const ob_sensor_type source_sensor_type,
91 const ob_sensor_type target_sensor_type, ob_point3f *target_point3f, ob_error **error);
92
93// \deprecated This function is deprecated and will be removed in a future version.
94// Use the ob_transformation_2d_to_3d instead.
95OB_EXPORT bool ob_calibration_2d_to_3d(const ob_calibration_param calibration_param, const ob_point2f source_point2f, const float source_depth_pixel_value,
96 const ob_sensor_type source_sensor_type, const ob_sensor_type target_sensor_type, ob_point3f *target_point3f,
97 ob_error **error);
98
99// \deprecated This function is deprecated and will be removed in a future version.
100// Use the ob_transformation_3d_to_2d instead.
101OB_EXPORT bool ob_calibration_3d_to_2d(const ob_calibration_param calibration_param, const ob_point3f source_point3f, const ob_sensor_type source_sensor_type,
102 const ob_sensor_type target_sensor_type, ob_point2f *target_point2f, ob_error **error);
103
104// \deprecated This function is deprecated and will be removed in a future version.
105// Use the ob_transformation_2d_to_2d instead.
106OB_EXPORT bool ob_calibration_2d_to_2d(const ob_calibration_param calibration_param, const ob_point2f source_point2f, const float source_depth_pixel_value,
107 const ob_sensor_type source_sensor_type, const ob_sensor_type target_sensor_type, ob_point2f *target_point2f,
108 ob_error **error);
121OB_EXPORT bool ob_save_pointcloud_to_ply(const char *file_name, ob_frame *frame, bool save_binary, bool use_mesh, float mesh_threshold, ob_error **error);
122#ifdef __cplusplus
123}
124#endif
#define OB_EXPORT
Definition Export.h:15
Provide structs commonly used in the SDK, enumerating constant definitions.
struct ob_frame_t ob_frame
Definition ObTypes.h:33
struct OBPoint2f ob_point2f
struct OBPoint OBPoint3f
struct OBXYTables ob_xy_tables
struct ob_device_t ob_device
Definition ObTypes.h:23
struct OBCalibrationParam ob_calibration_param
struct OBD2CTransform OBExtrinsic
enum OBSensorType ob_sensor_type
struct OBPoint ob_point3f
OB_EXPORT bool ob_transformation_3d_to_2d(const OBPoint3f source_point3f, const OBCameraIntrinsic target_intrinsic, const OBCameraDistortion target_distortion, OBExtrinsic extrinsic, OBPoint2f *target_point2f, ob_error **error)
Transform a 3d point of a source coordinate system into a 2d pixel coordinate of the target camera.
OB_EXPORT bool ob_calibration_3d_to_3d(const ob_calibration_param calibration_param, const ob_point3f source_point3f, const ob_sensor_type source_sensor_type, const ob_sensor_type target_sensor_type, ob_point3f *target_point3f, ob_error **error)
OB_EXPORT void transformation_depth_to_rgbd_pointcloud(ob_xy_tables *xy_tables, const void *depth_image_data, const void *color_image_data, void *pointcloud_data, ob_error **error)
OB_EXPORT void transformation_depth_to_pointcloud(ob_xy_tables *xy_tables, const void *depth_image_data, void *pointcloud_data, ob_error **error)
OB_EXPORT bool ob_calibration_2d_to_3d(const ob_calibration_param calibration_param, const ob_point2f source_point2f, const float source_depth_pixel_value, const ob_sensor_type source_sensor_type, const ob_sensor_type target_sensor_type, ob_point3f *target_point3f, ob_error **error)
OB_EXPORT bool ob_transformation_3d_to_3d(const OBPoint3f source_point3f, OBExtrinsic extrinsic, OBPoint3f *target_point3f, ob_error **error)
Transform a 3d point of a source coordinate system into a 3d point of the target coordinate system.
OB_EXPORT bool ob_calibration_3d_to_2d(const ob_calibration_param calibration_param, const ob_point3f source_point3f, const ob_sensor_type source_sensor_type, const ob_sensor_type target_sensor_type, ob_point2f *target_point2f, ob_error **error)
OB_EXPORT bool transformation_init_xy_tables(const ob_calibration_param calibration_param, const ob_sensor_type sensor_type, float *data, uint32_t *data_size, ob_xy_tables *xy_tables, ob_error **error)
OB_EXPORT ob_frame * transformation_depth_frame_to_color_camera(ob_device *device, ob_frame *depth_frame, uint32_t target_color_camera_width, uint32_t target_color_camera_height, ob_error **error)
OB_EXPORT bool ob_transformation_2d_to_3d(const OBPoint2f source_point2f, const float source_depth_pixel_value, const OBCameraIntrinsic source_intrinsic, OBExtrinsic extrinsic, OBPoint3f *target_point3f, ob_error **error)
Transform a 2d pixel coordinate with an associated depth value of the source camera into a 3d point o...
OB_EXPORT bool ob_save_pointcloud_to_ply(const char *file_name, ob_frame *frame, bool save_binary, bool use_mesh, float mesh_threshold, ob_error **error)
save point cloud to ply file.
OB_EXPORT bool ob_calibration_2d_to_2d(const ob_calibration_param calibration_param, const ob_point2f source_point2f, const float source_depth_pixel_value, const ob_sensor_type source_sensor_type, const ob_sensor_type target_sensor_type, ob_point2f *target_point2f, ob_error **error)
OB_EXPORT bool ob_transformation_2d_to_2d(const OBPoint2f source_point2f, const float source_depth_pixel_value, const OBCameraIntrinsic source_intrinsic, const OBCameraDistortion source_distortion, const OBCameraIntrinsic target_intrinsic, const OBCameraDistortion target_distortion, OBExtrinsic extrinsic, OBPoint2f *target_point2f, ob_error **error)
Transform a 2d pixel coordinate with an associated depth value of the source camera into a 2d pixel c...
Structure for distortion parameters.
Definition ObTypes.h:425
Structure for camera intrinsic parameters.
Definition ObTypes.h:388
2D point structure in the SDK
Definition ObTypes.h:777
The error class exposed by the SDK, users can get detailed error information according to the error.
Definition ObTypes.h:117