Functions
Mesh texturing

APIs for texturing of 3D meshes. More...

Functions

Tango3DR_Status Tango3DR_getTexturedMesh (const Tango3DR_TexturingContext context, Tango3DR_Mesh *tango_mesh_out)
Tango3DR_TexturingContext Tango3DR_TexturingContext_create (const Tango3DR_Config texture_config, const Tango3DR_Mesh *tango_mesh)
Tango3DR_Status Tango3DR_TexturingContext_destroy (Tango3DR_TexturingContext context)
Tango3DR_Status Tango3DR_TexturingContext_setColorCalibration (const Tango3DR_TexturingContext context, const Tango3DR_CameraCalibration *calibration)
Tango3DR_Status Tango3DR_updateTexture (Tango3DR_TexturingContext context, const Tango3DR_ImageBuffer *image, const Tango3DR_Pose *image_pose)
Tango3DR_Status Tango3DR_updateTextureGl (Tango3DR_TexturingContext context, const int texture_target, const int image_texture_id, const Tango3DR_Pose *image_pose)

Detailed Description

APIs for texturing of 3D meshes.


Function Documentation

Extracts the textured mesh from the texturing context.

Parameters:
contextHandle to the texturing context.
meshOn successful return, a freshly allocated Tango3DR_Mesh containing the mesh for the grid cell. After use, free this by calling Tango3DR_Mesh_destroy().
Returns:
TANGO_3DR_SUCCESS on success, TANGO_3DR_INVALID if the parameters are not valid

Create a new Tango 3D texturing context and return a handle to it.

Parameters:
context_configThe context will be started with the setting specified by this config handle. If NULL is passed here, then the context will be started in the default configuration.
tango_meshmesh that will be textured.
Returns:
A handle to the Tango texturing context.

Destroy a previously created texturing context.

Parameters:
contextHandle to a previously created context.
Returns:
TANGO_3DR_SUCCESS on successfully destroying the context. Returns TANGO_3DR_INVALID if context is NULL.

Sets the color camera intrinsic calibration that a texturing context uses. It is required to call this function once before calling Tango3DR_updateTexture and .

Parameters:
contextHandle to a texturing context.
calibrationThe calibration parameters of the color camera.
Returns:
TANGO_3DR_SUCCESS on success, if the parameters are not valid.

Updates the texturing context using an image with a corresponding pose. Must be called from the same thread where the context was created and destroyed.

Parameters:
contextHandle to the texturing context.
imageImage used for texturing. Ideally, the image should be in TANGO_3DR_HAL_PIXEL_FORMAT_YCrCb_420_SP. Other formats (RGB_888/RGBA_8888) will be converted automatically.
image_posePose corresponding to the image.
Returns:
TANGO_3DR_SUCCESS on success and TANGO_3DR_INVALID if the parameters are not valid.
Tango3DR_Status Tango3DR_updateTextureGl ( Tango3DR_TexturingContext  context,
const int  texture_target,
const int  image_texture_id,
const Tango3DR_Pose image_pose 
)

Updates the texturing context using an image with a corresponding pose. Must be called from the same thread where the context was created and destroyed.

Additionally, a valid GL context supporting at least Desktop OpengGL 2.1 or OpenGL ES 2 must be current on the calling thread.

Parameters:
contextHandle to the texturing context.
texture_targetMust be GL_TEXTURE_2D on Linux or Android, or GL_TEXTURE_EXTERNAL_OES on Android.
image_texture_idOpenGL ID of the current camera image texture.
image_posePose corresponding to the image.
Returns:
TANGO_3DR_SUCCESS on success and TANGO_3DR_INVALID if the parameters are not valid.


tango_3d_reconstruction
Author(s):
autogenerated on Thu Jun 6 2019 19:49:50