15 #ifndef TANGO_SUPPORT_TANGO_SUPPORT_H_ 16 #define TANGO_SUPPORT_TANGO_SUPPORT_H_ 112 float output_uv_coordinates[8]);
159 struct TangoSupport_ImageBufferManager;
172 TangoSupport_ImageBufferManager** manager);
180 TangoSupport_ImageBufferManager* manager);
201 TangoSupport_ImageBufferManager* manager,
int y_only, uint32_t begin_line,
212 TangoSupport_ImageBufferManager* manager,
359 TangoSupport_EngineType target_engine,
384 TangoSupport_EngineType target_engine,
410 TangoSupport_EngineType target_engine,
422 struct TangoSupport_PointCloudManager;
433 size_t max_points, TangoSupport_PointCloudManager** manager);
440 TangoSupport_PointCloudManager* manager);
451 TangoSupport_PointCloudManager* manager,
464 TangoSupport_PointCloudManager* manager,
498 TangoSupport_PointCloudManager* manager,
500 TangoSupport_EngineType target_engine,
517 TangoSupport_PointCloudManager* manager,
561 const TangoPointCloud* point_cloud,
const double point_cloud_translation[3],
562 const double point_cloud_orientation[4],
563 const float color_camera_uv_coordinates[2],
565 const double color_camera_translation[3],
566 const double color_camera_orientation[4],
double intersection_point[3],
567 double plane_model[4]);
574 double intersection_point[3];
575 double plane_equation[4];
614 const TangoPointCloud* point_cloud,
const double point_cloud_translation[3],
615 const double point_cloud_orientation[4],
616 const float color_camera_uv_coordinates[2],
618 const double color_camera_translation[3],
620 int* number_of_planes);
633 #endif // TANGO_SUPPORT_TANGO_SUPPORT_H_
bool TangoSupport_isValidRotation(TangoSupport_Rotation rotation, bool allowIgnored)
Indicates whether a given rotation is valid or not.
TangoErrorType TangoSupport_fitMultiplePlaneModelsNearPoint(const TangoPointCloud *point_cloud, const double point_cloud_translation[3], const double point_cloud_orientation[4], const float color_camera_uv_coordinates[2], TangoSupport_Rotation display_rotation, const double color_camera_translation[3], const double color_camera_orientation[4], TangoSupport_Plane **planes, int *number_of_planes)
Similar to TangoSupport_fitPlaneModelNearPoint, but after finding a plane at the user selection...
TangoErrorType TangoSupport_freeImageBufferManager(TangoSupport_ImageBufferManager *manager)
Delete the image buffer manager object.
TangoErrorType TangoSupport_getVideoOverlayUVBasedOnDisplayRotation(const float uv_coordinates[8], TangoSupport_Rotation display_rotation, float output_uv_coordinates[8])
Get the video overlay UV coordinates based on the display rotation. Given the UV coordinates belongin...
TangoErrorType TangoSupport_fitPlaneModelNearPoint(const TangoPointCloud *point_cloud, const double point_cloud_translation[3], const double point_cloud_orientation[4], const float color_camera_uv_coordinates[2], TangoSupport_Rotation display_rotation, const double color_camera_translation[3], const double color_camera_orientation[4], double intersection_point[3], double plane_model[4])
Fits a plane to a point cloud near a user-specified location. This occurs in two passes. First, all points are projected to the image plane and only points near the user selection are kept. Then a plane is fit to the subset using RANSAC. After the RANSAC fit, all inliers from a larger subset of the original input point cloud are used to refine the plane model. The output is in the base frame of the input translations and rotations. This output frame is usually an application's world frame.
TangoErrorType(* TangoSupport_GetCameraIntrinsicsFn)(TangoCameraId camera_id, TangoCameraIntrinsics *intrinsics)
Typedef for getCameraIntrinsics function signature; required by the TangoSupport_initialize method...
TangoErrorType(* TangoSupport_GetPoseAtTimeFn)(double timestamp, TangoCoordinateFramePair frame, TangoPoseData *pose)
Typedef for getPostAtTime function signature; required by the TangoSupport_initialize method...
TangoErrorType TangoSupport_setImageBufferCopyRegion(TangoSupport_ImageBufferManager *manager, int y_only, uint32_t begin_line, uint32_t end_line)
Limit copying of the incoming image to a specific range of scan lines.
TangoSupport_Rotation TangoSupport_getAndroidColorCameraRotation()
Returns the depth camera rotation in TangoSupport_Rotation format.
TangoErrorType TangoSupport_getLatestImageBuffer(TangoSupport_ImageBufferManager *manager, TangoImageBuffer **image_buffer)
Check if updated color image data is available. If so, swap new data to the front buffer and set imag...
TangoErrorType TangoSupport_updateImageBuffer(TangoSupport_ImageBufferManager *manager, const TangoImageBuffer *image_buffer)
Updates the back buffer of the manager with new data from the callback. This should be called from th...
TangoErrorType TangoSupport_getLatestImageBufferAndNewDataFlag(TangoSupport_ImageBufferManager *manager, TangoImageBuffer **image_buffer, bool *new_data)
Check if updated color image data is available. If so, swap new data to the front buffer and set imag...
A structure to define a plane (ax + by + cz + d = 0), including the intersection point of the plane w...
TangoSupport_Rotation TangoSupport_getAndroidDepthCameraRotation()
Returns the depth camera rotation in TangoSupport_Rotation format.
TangoErrorType TangoSupport_getTangoVersion(void *jni_env, void *activity, int *version)
Get the version code of the installed TangoCore package.
void TangoSupport_freePlaneList(TangoSupport_Plane **planes)
Free memory allocated in call to TangoSupport_fitMultiplePlaneModelsNearPoint.
void TangoSupport_initialize(TangoSupport_GetPoseAtTimeFn getPoseAtTime, TangoSupport_GetCameraIntrinsicsFn getCameraIntrinsics)
Initialize the support library with function pointers required by the library. NOTE: This function mu...
0 degree rotation (natural orientation)
TangoErrorType TangoSupport_createImageBufferManager(TangoImageFormatType format, int width, int height, TangoSupport_ImageBufferManager **manager)
Create an object for maintaining a set of image buffers for a specified image format and size...
TangoErrorType TangoSupport_getCameraIntrinsicsBasedOnDisplayRotation(TangoCameraId camera_id, TangoSupport_Rotation display_rotation, TangoCameraIntrinsics *intrinsics)
Get the camera intrinsics based on the display rotation. This function will query the camera intrinsi...