Functions for managing ExtrinsicDataWrapper objects. More...
Functions | |
VL_SDK_API vlExtrinsicDataWrapper_t *VL_CALLINGCONVENTION | vlNew_ExtrinsicDataWrapper () |
Creates a new ExtrinsicDataWrapper object and returns a pointer to it. More... | |
VL_SDK_API void VL_CALLINGCONVENTION | vlDelete_ExtrinsicDataWrapper (vlExtrinsicDataWrapper_t *extrinsicDataWrapper) |
Deletes an ExtrinsicDataWrapper object. More... | |
VL_SDK_API bool VL_CALLINGCONVENTION | vlExtrinsicDataWrapper_GetValid (vlExtrinsicDataWrapper_t *extrinsicDataWrapper) |
Returns whether the current tracking pose is valid (the tracking was successful). More... | |
VL_SDK_API bool VL_CALLINGCONVENTION | vlExtrinsicDataWrapper_SetValid (vlExtrinsicDataWrapper_t *extrinsicDataWrapper, bool value) |
Sets the valid flag of the given ExtrinsicData. More... | |
VL_SDK_API bool VL_CALLINGCONVENTION | vlExtrinsicDataWrapper_GetModelViewMatrix (vlExtrinsicDataWrapper_t *extrinsicDataWrapper, float matrix[], unsigned int matrixElementCount) |
Returns the current camera pose as model-view matrix. More... | |
VL_SDK_API bool VL_CALLINGCONVENTION | vlExtrinsicDataWrapper_GetT (vlExtrinsicDataWrapper_t *extrinsicDataWrapper, float t[], unsigned int elementCount) |
Returns the translation from the world coordinate system to the camera coordinate system. More... | |
VL_SDK_API bool VL_CALLINGCONVENTION | vlExtrinsicDataWrapper_SetT (vlExtrinsicDataWrapper_t *extrinsicDataWrapper, const float t[], unsigned int elementCount) |
Sets the translation from the world coordinate system to the camera coordinate system. More... | |
VL_SDK_API bool VL_CALLINGCONVENTION | vlExtrinsicDataWrapper_GetR (vlExtrinsicDataWrapper_t *extrinsicDataWrapper, float q[], unsigned int elementCount) |
Returns the rotation from the world coordinate system to the camera coordinate system. More... | |
VL_SDK_API bool VL_CALLINGCONVENTION | vlExtrinsicDataWrapper_SetR (vlExtrinsicDataWrapper_t *extrinsicDataWrapper, const float q[], unsigned int elementCount) |
Sets the rotation from the world coordinate system to the camera coordinate system. More... | |
VL_SDK_API bool VL_CALLINGCONVENTION | vlExtrinsicDataWrapper_GetCamPosWorld (vlExtrinsicDataWrapper_t *extrinsicDataWrapper, float t[], unsigned int elementCount) |
Returns the position of the camera in world coordinates. More... | |
VL_SDK_API bool VL_CALLINGCONVENTION | vlExtrinsicDataWrapper_SetCamPosWorld (vlExtrinsicDataWrapper_t *extrinsicDataWrapper, const float t[], unsigned int elementCount) |
Sets the position of the camera in world coordinates. More... | |
Functions for managing ExtrinsicDataWrapper objects.
The ExtrinsicDataWrapper is a wrapper for an ExtrinsicData object. ExtrinsicData objects represent the extrinsic camera parameters (position and orientation).
VL_SDK_API void VL_CALLINGCONVENTION vlDelete_ExtrinsicDataWrapper | ( | vlExtrinsicDataWrapper_t * | extrinsicDataWrapper | ) |
Deletes an ExtrinsicDataWrapper object.
Call this function if you used the vlDataSetWrapper_GetExtrinsicData function to acquire the object and you are now done using it.
extrinsicDataWrapper | Pointer to an ExtrinsicDataWrapper object. |
VL_SDK_API bool VL_CALLINGCONVENTION vlExtrinsicDataWrapper_GetCamPosWorld | ( | vlExtrinsicDataWrapper_t * | extrinsicDataWrapper, |
float | t[], | ||
unsigned int | elementCount | ||
) |
Returns the position of the camera in world coordinates.
Internally the position will be computed from the transformation which transforms a 3D point from world coordinates into camera coordinates ( ).
extrinsicDataWrapper | Pointer to an ExtrinsicDataWrapper object. |
t | Float array with 3 elements for storing the position. |
elementCount | Number of elements in the given array. This should be 3. |
true
, on success; false
otherwise. VL_SDK_API bool VL_CALLINGCONVENTION vlExtrinsicDataWrapper_GetModelViewMatrix | ( | vlExtrinsicDataWrapper_t * | extrinsicDataWrapper, |
float | matrix[], | ||
unsigned int | matrixElementCount | ||
) |
Returns the current camera pose as model-view matrix.
The returned matrix assumes a right-handed coordinate system and is stored in the following order (column-major order):
extrinsicDataWrapper | Pointer to an ExtrinsicDataWrapper object. |
matrix | Float array with 16 elements for storing the model-view matrix. |
matrixElementCount | Number of elements in the given array. This should be 16. |
true
, on success; false
otherwise. VL_SDK_API bool VL_CALLINGCONVENTION vlExtrinsicDataWrapper_GetR | ( | vlExtrinsicDataWrapper_t * | extrinsicDataWrapper, |
float | q[], | ||
unsigned int | elementCount | ||
) |
Returns the rotation from the world coordinate system to the camera coordinate system.
Please notice, that represents the transformation of a 3D point from world coordinates into a 3D point in camera coordinates: .
extrinsicDataWrapper | Pointer to an ExtrinsicDataWrapper object. |
q | Float array with 4 elements for storing the rotation as quaternion. |
elementCount | Number of elements in the given array. This should be 4. |
true
, on success; false
otherwise. VL_SDK_API bool VL_CALLINGCONVENTION vlExtrinsicDataWrapper_GetT | ( | vlExtrinsicDataWrapper_t * | extrinsicDataWrapper, |
float | t[], | ||
unsigned int | elementCount | ||
) |
Returns the translation from the world coordinate system to the camera coordinate system.
Please notice, that represents the transformation of a 3D point from world coordinates into a 3D point in camera coordinates: .
extrinsicDataWrapper | Pointer to an ExtrinsicDataWrapper object. |
t | Float array with 3 elements for storing the translation. |
elementCount | Number of elements in the given array. This should be 3. |
true
, on success; false
otherwise. VL_SDK_API bool VL_CALLINGCONVENTION vlExtrinsicDataWrapper_GetValid | ( | vlExtrinsicDataWrapper_t * | extrinsicDataWrapper | ) |
Returns whether the current tracking pose is valid (the tracking was successful).
extrinsicDataWrapper | Pointer to an ExtrinsicDataWrapper object. |
true
, if the current tracking pose is valid; false
otherwise. VL_SDK_API bool VL_CALLINGCONVENTION vlExtrinsicDataWrapper_SetCamPosWorld | ( | vlExtrinsicDataWrapper_t * | extrinsicDataWrapper, |
const float | t[], | ||
unsigned int | elementCount | ||
) |
Sets the position of the camera in world coordinates.
Internally this will be stored as a transformation of a 3D point from world coordinates into camera coordinates ( ).
extrinsicDataWrapper | Pointer to an ExtrinsicDataWrapper object. |
t | Float array with 3 elements , which contains the position. |
elementCount | Number of elements in the given array. This should be 3. |
true
, on success; false
otherwise. VL_SDK_API bool VL_CALLINGCONVENTION vlExtrinsicDataWrapper_SetR | ( | vlExtrinsicDataWrapper_t * | extrinsicDataWrapper, |
const float | q[], | ||
unsigned int | elementCount | ||
) |
Sets the rotation from the world coordinate system to the camera coordinate system.
Please notice, that represents the transformation of a 3D point from world coordinates into a 3D point in camera coordinates: .
extrinsicDataWrapper | Pointer to an ExtrinsicDataWrapper object. |
q | Float array with 4 elements , which contains the rotation as quaternion. |
elementCount | Number of elements in the given array. This should be 4. |
true
, on success; false
otherwise. VL_SDK_API bool VL_CALLINGCONVENTION vlExtrinsicDataWrapper_SetT | ( | vlExtrinsicDataWrapper_t * | extrinsicDataWrapper, |
const float | t[], | ||
unsigned int | elementCount | ||
) |
Sets the translation from the world coordinate system to the camera coordinate system.
Please notice, that represents the transformation of a 3D point from world coordinates into a 3D point in camera coordinates: .
extrinsicDataWrapper | Pointer to an ExtrinsicDataWrapper object. |
t | Float array with 3 elements , which contain the translation. |
elementCount | Number of elements in the given array. This should be 3. |
true
, on success; false
otherwise. VL_SDK_API bool VL_CALLINGCONVENTION vlExtrinsicDataWrapper_SetValid | ( | vlExtrinsicDataWrapper_t * | extrinsicDataWrapper, |
bool | value | ||
) |
Sets the valid flag of the given ExtrinsicData.
extrinsicDataWrapper | Pointer to an ExtrinsicDataWrapper object. |
value | The new value of the valid flag. |
true
, if setting worked; false
otherwise VL_SDK_API vlExtrinsicDataWrapper_t* VL_CALLINGCONVENTION vlNew_ExtrinsicDataWrapper | ( | ) |
Creates a new ExtrinsicDataWrapper object and returns a pointer to it.
This pointer must be released using vlDelete_ExtrinsicDataWrapper.