![]() |
Orbbec SDK K4A Wrapper
|
#include <k4a/k4a.hpp>
Public Member Functions | |
k4a_float3_t | convert_3d_to_3d (const k4a_float3_t &source_point3d, k4a_calibration_type_t source_camera, k4a_calibration_type_t target_camera) const |
bool | convert_2d_to_3d (const k4a_float2_t &source_point2d, float source_depth, k4a_calibration_type_t source_camera, k4a_calibration_type_t target_camera, k4a_float3_t *target_point3d) const |
bool | convert_3d_to_2d (const k4a_float3_t &source_point3d, k4a_calibration_type_t source_camera, k4a_calibration_type_t target_camera, k4a_float2_t *target_point2d) const |
bool | convert_2d_to_2d (const k4a_float2_t &source_point2d, float source_depth, k4a_calibration_type_t source_camera, k4a_calibration_type_t target_camera, k4a_float2_t *target_point2d) const |
bool | convert_color_2d_to_depth_2d (const k4a_float2_t &source_point2d, const image &depth_image, k4a_float2_t *target_point2d) const |
Static Public Member Functions | |
static calibration | get_from_raw (char *raw_calibration, size_t raw_calibration_size, k4a_depth_mode_t target_depth_mode, k4a_color_resolution_t target_color_resolution) |
static calibration | get_from_raw (uint8_t *raw_calibration, size_t raw_calibration_size, k4a_depth_mode_t target_depth_mode, k4a_color_resolution_t target_color_resolution) |
static calibration | get_from_raw (std::vector< uint8_t > &raw_calibration, k4a_depth_mode_t target_depth_mode, k4a_color_resolution_t target_color_resolution) |
Wrapper for k4a_calibration_t
Provides member functions for k4a_calibration_t.
|
inline |
Transform a 2d pixel coordinate with an associated depth value of the source camera into a 2d pixel coordinate of the target camera Returns false if the point is invalid in the target coordinate system (and therefore target_point2d should not be used) Throws error if calibration contains invalid data.
|
inline |
Transform a 2d pixel coordinate with an associated depth value of the source camera into a 3d point of the target coordinate system. Returns false if the point is invalid in the target coordinate system (and therefore target_point3d should not be used) Throws error if calibration contains invalid data.
|
inline |
Transform a 3d point of a source coordinate system into a 2d pixel coordinate of the target camera. Returns false if the point is invalid in the target coordinate system (and therefore target_point2d should not be used) Throws error if calibration contains invalid data.
|
inline |
Transform a 3d point of a source coordinate system into a 3d point of the target coordinate system. Throws error on failure.
|
inline |
Transform a 2D pixel coordinate from color camera into a 2D pixel coordinate of the depth camera. This function searches along an epipolar line in the depth image to find the corresponding depth pixel. Returns false if the point is invalid in the target coordinate system (and therefore target_point2d should not be used) Throws error if calibration contains invalid data.
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |