Functions for managing IntrinsicDataWrapper objects. More...
Functions | |
VL_SDK_API void VL_CALLINGCONVENTION | vlDelete_IntrinsicDataWrapper (vlIntrinsicDataWrapper_t *intrinsicDataWrapper) |
Deletes an IntrinsicDataWrapper object. More... | |
VL_SDK_API vlIntrinsicDataWrapper_t *VL_CALLINGCONVENTION | vlIntrinsicDataWrapper_Clone (vlIntrinsicDataWrapper_t *intrinsicDataWrapper) |
Creates a copy of the IntrinsicDataWrapper object and returns a pointer to it. More... | |
VL_SDK_API bool VL_CALLINGCONVENTION | vlIntrinsicDataWrapper_GetCalibrated (vlIntrinsicDataWrapper_t *intrinsicDataWrapper) |
Returns whether the intrinsic parameters are valid. More... | |
VL_SDK_API double VL_CALLINGCONVENTION | vlIntrinsicDataWrapper_GetCalibrationError (vlIntrinsicDataWrapper_t *intrinsicDataWrapper) |
Returns the calibration error. More... | |
VL_SDK_API double VL_CALLINGCONVENTION | vlIntrinsicDataWrapper_GetCxNorm (vlIntrinsicDataWrapper_t *intrinsicDataWrapper) |
Returns the normalized x-component of the principal point. More... | |
VL_SDK_API double VL_CALLINGCONVENTION | vlIntrinsicDataWrapper_GetCyNorm (vlIntrinsicDataWrapper_t *intrinsicDataWrapper) |
Returns the normalized y-component of the principal point. More... | |
VL_SDK_API bool VL_CALLINGCONVENTION | vlIntrinsicDataWrapper_GetDistortionParameters (vlIntrinsicDataWrapper_t *intrinsicDataWrapper, double k[], unsigned int elementCount) |
Retrieves the radial and tangential distortion parameters. More... | |
VL_SDK_API double VL_CALLINGCONVENTION | vlIntrinsicDataWrapper_GetFxNorm (vlIntrinsicDataWrapper_t *intrinsicDataWrapper) |
Returns the normalized focal length of the intrinsic camera calibration in x direction. More... | |
VL_SDK_API double VL_CALLINGCONVENTION | vlIntrinsicDataWrapper_GetFyNorm (vlIntrinsicDataWrapper_t *intrinsicDataWrapper) |
Returns the normalized focal length of the intrinsic camera calibration in y direction. More... | |
VL_SDK_API unsigned int VL_CALLINGCONVENTION | vlIntrinsicDataWrapper_GetHeight (vlIntrinsicDataWrapper_t *intrinsicDataWrapper) |
Returns the height of the intrinsic camera calibration. More... | |
VL_SDK_API bool VL_CALLINGCONVENTION | vlIntrinsicDataWrapper_GetProjectionMatrix (vlIntrinsicDataWrapper_t *intrinsicDataWrapper, float nearFact, float farFact, unsigned int screenWidth, unsigned int screenHeight, unsigned int renderRotation, unsigned int mode, float matrix[], unsigned int matrixElementCount) |
Computed the projection matrix from the intrinsic camera parameters. More... | |
VL_SDK_API double VL_CALLINGCONVENTION | vlIntrinsicDataWrapper_GetSkewNorm (vlIntrinsicDataWrapper_t *intrinsicDataWrapper) |
Returns the normalized skew of the intrinsic camera calibration. More... | |
VL_SDK_API unsigned int VL_CALLINGCONVENTION | vlIntrinsicDataWrapper_GetWidth (vlIntrinsicDataWrapper_t *intrinsicDataWrapper) |
Returns the width of the intrinsic camera calibration. More... | |
VL_SDK_API bool VL_CALLINGCONVENTION | vlIntrinsicDataWrapper_SetCalibrated (vlIntrinsicDataWrapper_t *intrinsicDataWrapper, bool value) |
Sets the calibrated flag of the given IntrinsicDataWrapper object to the given value. More... | |
VL_SDK_API bool VL_CALLINGCONVENTION | vlIntrinsicDataWrapper_SetCxNorm (vlIntrinsicDataWrapper_t *intrinsicDataWrapper, double value) |
Sets the normalized x-component of the principal point of the given IntrinsicDataWrapper object to the given value. More... | |
VL_SDK_API bool VL_CALLINGCONVENTION | vlIntrinsicDataWrapper_SetCyNorm (vlIntrinsicDataWrapper_t *intrinsicDataWrapper, double value) |
Sets the normalized y-component of the principal point of the given IntrinsicDataWrapper object to the given value. More... | |
VL_SDK_API bool VL_CALLINGCONVENTION | vlIntrinsicDataWrapper_SetDistortionParameters (vlIntrinsicDataWrapper_t *intrinsicDataWrapper, const double k[], unsigned int elementCount) |
Sets the radial and tangential distortion parameters. More... | |
VL_SDK_API bool VL_CALLINGCONVENTION | vlIntrinsicDataWrapper_SetFxNorm (vlIntrinsicDataWrapper_t *intrinsicDataWrapper, double value) |
Sets the normalized focal length in x direction of the given IntrinsicDataWrapper object to the given value. More... | |
VL_SDK_API bool VL_CALLINGCONVENTION | vlIntrinsicDataWrapper_SetFyNorm (vlIntrinsicDataWrapper_t *intrinsicDataWrapper, double value) |
Sets the normalized focal length in y direction of the given IntrinsicDataWrapper object to the given value. More... | |
VL_SDK_API bool VL_CALLINGCONVENTION | vlIntrinsicDataWrapper_SetHeight (vlIntrinsicDataWrapper_t *intrinsicDataWrapper, unsigned int value) |
Sets height of the given IntrinsicDataWrapper object to the given value. More... | |
VL_SDK_API bool VL_CALLINGCONVENTION | vlIntrinsicDataWrapper_SetSkewNorm (vlIntrinsicDataWrapper_t *intrinsicDataWrapper, double value) |
Sets the normalized skew of the given IntrinsicDataWrapper object to the given value. More... | |
VL_SDK_API bool VL_CALLINGCONVENTION | vlIntrinsicDataWrapper_SetWidth (vlIntrinsicDataWrapper_t *intrinsicDataWrapper, unsigned int value) |
Sets width of the given IntrinsicDataWrapper object to the given value. More... | |
VL_SDK_API vlIntrinsicDataWrapper_t *VL_CALLINGCONVENTION | vlNew_IntrinsicDataWrapper () |
Creates a new IntrinsicDataWrapper object and returns a pointer to it. More... | |
Functions for managing IntrinsicDataWrapper objects.
The IntrinsicDataWrapper is a wrapper for an IntrinsicData object. IntrinsicData objects represent the intrinsic camera parameters (focal length, principal point, skew and distortion parameters).
VL_SDK_API void VL_CALLINGCONVENTION vlDelete_IntrinsicDataWrapper | ( | vlIntrinsicDataWrapper_t * | intrinsicDataWrapper | ) |
Deletes an IntrinsicDataWrapper object.
Call this function if you used the vlNew_IntrinsicDataWrapper function to create the object and you are now done using it.
intrinsicDataWrapper | Pointer to an IntrinsicDataWrapper object. |
VL_SDK_API vlIntrinsicDataWrapper_t* VL_CALLINGCONVENTION vlIntrinsicDataWrapper_Clone | ( | vlIntrinsicDataWrapper_t * | intrinsicDataWrapper | ) |
Creates a copy of the IntrinsicDataWrapper object and returns a pointer to it.
This pointer must be released using vlDelete_IntrinsicDataWrapper.
intrinsicDataWrapper | Pointer to an IntrinsicDataWrapper object. |
VL_SDK_API bool VL_CALLINGCONVENTION vlIntrinsicDataWrapper_GetCalibrated | ( | vlIntrinsicDataWrapper_t * | intrinsicDataWrapper | ) |
Returns whether the intrinsic parameters are valid.
A intrinsic camera calibration used for tracking should always be valid.
intrinsicDataWrapper | Pointer to an IntrinsicDataWrapper object. |
true
, if the intrinsic calibration is valid; false
otherwise. VL_SDK_API double VL_CALLINGCONVENTION vlIntrinsicDataWrapper_GetCalibrationError | ( | vlIntrinsicDataWrapper_t * | intrinsicDataWrapper | ) |
Returns the calibration error.
The reprojection error in pixel. This is interesting for evaluating the quality of a camera calibration.
intrinsicDataWrapper | Pointer to an IntrinsicDataWrapper object. |
VL_SDK_API double VL_CALLINGCONVENTION vlIntrinsicDataWrapper_GetCxNorm | ( | vlIntrinsicDataWrapper_t * | intrinsicDataWrapper | ) |
Returns the normalized x-component of the principal point.
The x-component was normalized through a division by the width of the camera calibration.
intrinsicDataWrapper | Pointer to an IntrinsicDataWrapper object. |
VL_SDK_API double VL_CALLINGCONVENTION vlIntrinsicDataWrapper_GetCyNorm | ( | vlIntrinsicDataWrapper_t * | intrinsicDataWrapper | ) |
Returns the normalized y-component of the principal point.
The y-component was normalized through a division by the height of the camera calibration.
intrinsicDataWrapper | Pointer to an IntrinsicDataWrapper object. |
VL_SDK_API bool VL_CALLINGCONVENTION vlIntrinsicDataWrapper_GetDistortionParameters | ( | vlIntrinsicDataWrapper_t * | intrinsicDataWrapper, |
double | k[], | ||
unsigned int | elementCount | ||
) |
Retrieves the radial and tangential distortion parameters.
intrinsicDataWrapper | Pointer to an IntrinsicDataWrapper object. |
k | Double array with 5 elements for storing the distortion parameters. |
elementCount | Number of elements in the given array. This should be 5. |
true
, on success; false
otherwise. VL_SDK_API double VL_CALLINGCONVENTION vlIntrinsicDataWrapper_GetFxNorm | ( | vlIntrinsicDataWrapper_t * | intrinsicDataWrapper | ) |
Returns the normalized focal length of the intrinsic camera calibration in x direction.
The focal length in x direction was normalized through a division by the width of the camera calibration.
intrinsicDataWrapper | Pointer to an IntrinsicDataWrapper object. |
VL_SDK_API double VL_CALLINGCONVENTION vlIntrinsicDataWrapper_GetFyNorm | ( | vlIntrinsicDataWrapper_t * | intrinsicDataWrapper | ) |
Returns the normalized focal length of the intrinsic camera calibration in y direction.
The focal length in y direction was normalized through a division by the height of the camera calibration.
intrinsicDataWrapper | Pointer to an IntrinsicDataWrapper object. |
VL_SDK_API unsigned int VL_CALLINGCONVENTION vlIntrinsicDataWrapper_GetHeight | ( | vlIntrinsicDataWrapper_t * | intrinsicDataWrapper | ) |
Returns the height of the intrinsic camera calibration.
intrinsicDataWrapper | Pointer to an IntrinsicDataWrapper object. |
VL_SDK_API bool VL_CALLINGCONVENTION vlIntrinsicDataWrapper_GetProjectionMatrix | ( | vlIntrinsicDataWrapper_t * | intrinsicDataWrapper, |
float | nearFact, | ||
float | farFact, | ||
unsigned int | screenWidth, | ||
unsigned int | screenHeight, | ||
unsigned int | renderRotation, | ||
unsigned int | mode, | ||
float | matrix[], | ||
unsigned int | matrixElementCount | ||
) |
Computed the projection matrix from the intrinsic camera parameters.
The returned matrix is stored in the following order (column-major order):
intrinsicDataWrapper | Pointer to an IntrinsicDataWrapper object. |
nearFact | Value for the near clipping plane. |
farFact | Value for the far clipping plane. |
screenWidth | Width of the screen. |
screenHeight | Height of the screen. |
renderRotation | How the rendering is rotated relative to the orientation of the images received from the VisionLib. E.g., if the image will be rendered in landscape-left mode and the images are also in landscape-left mode, then ::VL_RENDER_ROTATION_CCW_0 should be used. If the image will be rendered in portrait mode, but the images are in landscape-left mode, then VL_RENDER_ROTATION_CCW_270 should be used. |
mode | The mode defines how to handle mismatching aspect ratios. Use VL_FITTING_MODE_COVER to scale the projection surface so that it covers the whole screen. Use VL_FITTING_MODE_CONTAIN to scale the projection surface so that it is completely contained inside the screen. |
matrix | Float array with 16 elements for storing the projection matrix. |
matrixElementCount | Number of elements in the given array. This should be 16. |
true
, on success; false
otherwise. VL_SDK_API double VL_CALLINGCONVENTION vlIntrinsicDataWrapper_GetSkewNorm | ( | vlIntrinsicDataWrapper_t * | intrinsicDataWrapper | ) |
Returns the normalized skew of the intrinsic camera calibration.
The skew was normalized through a division by the width of the camera calibration.
intrinsicDataWrapper | Pointer to an IntrinsicDataWrapper object. |
VL_SDK_API unsigned int VL_CALLINGCONVENTION vlIntrinsicDataWrapper_GetWidth | ( | vlIntrinsicDataWrapper_t * | intrinsicDataWrapper | ) |
Returns the width of the intrinsic camera calibration.
intrinsicDataWrapper | Pointer to an IntrinsicDataWrapper object. |
VL_SDK_API bool VL_CALLINGCONVENTION vlIntrinsicDataWrapper_SetCalibrated | ( | vlIntrinsicDataWrapper_t * | intrinsicDataWrapper, |
bool | value | ||
) |
Sets the calibrated flag of the given IntrinsicDataWrapper object to the given value.
intrinsicDataWrapper | Pointer to an IntrinsicDataWrapper object. |
value | The new value of the calibrated flag of the intrinsic. |
true
, if setting worked; false
otherwise VL_SDK_API bool VL_CALLINGCONVENTION vlIntrinsicDataWrapper_SetCxNorm | ( | vlIntrinsicDataWrapper_t * | intrinsicDataWrapper, |
double | value | ||
) |
Sets the normalized x-component of the principal point of the given IntrinsicDataWrapper object to the given value.
intrinsicDataWrapper | Pointer to an IntrinsicDataWrapper object. |
value | The new normalized x-component of the principal point direction of the intrinsic. |
true
, if setting worked; false
otherwise VL_SDK_API bool VL_CALLINGCONVENTION vlIntrinsicDataWrapper_SetCyNorm | ( | vlIntrinsicDataWrapper_t * | intrinsicDataWrapper, |
double | value | ||
) |
Sets the normalized y-component of the principal point of the given IntrinsicDataWrapper object to the given value.
intrinsicDataWrapper | Pointer to an IntrinsicDataWrapper object. |
value | The new normalized y-component of the principal point direction of the intrinsic. |
true
, if setting worked; false
otherwise VL_SDK_API bool VL_CALLINGCONVENTION vlIntrinsicDataWrapper_SetDistortionParameters | ( | vlIntrinsicDataWrapper_t * | intrinsicDataWrapper, |
const double | k[], | ||
unsigned int | elementCount | ||
) |
Sets the radial and tangential distortion parameters.
intrinsicDataWrapper | Pointer to an IntrinsicDataWrapper object. |
k | Double array with 5 elements, which contains the distortion parameters. |
elementCount | Number of elements in the given array. This should be 5. |
true
, on success; false
otherwise. VL_SDK_API bool VL_CALLINGCONVENTION vlIntrinsicDataWrapper_SetFxNorm | ( | vlIntrinsicDataWrapper_t * | intrinsicDataWrapper, |
double | value | ||
) |
Sets the normalized focal length in x direction of the given IntrinsicDataWrapper object to the given value.
intrinsicDataWrapper | Pointer to an IntrinsicDataWrapper object. |
value | The new normalized focal length in x direction of the intrinsic. |
true
, if setting worked; false
otherwise VL_SDK_API bool VL_CALLINGCONVENTION vlIntrinsicDataWrapper_SetFyNorm | ( | vlIntrinsicDataWrapper_t * | intrinsicDataWrapper, |
double | value | ||
) |
Sets the normalized focal length in y direction of the given IntrinsicDataWrapper object to the given value.
intrinsicDataWrapper | Pointer to an IntrinsicDataWrapper object. |
value | The new normalized focal length in y direction of the intrinsic. |
true
, if setting worked; false
otherwise VL_SDK_API bool VL_CALLINGCONVENTION vlIntrinsicDataWrapper_SetHeight | ( | vlIntrinsicDataWrapper_t * | intrinsicDataWrapper, |
unsigned int | value | ||
) |
Sets height of the given IntrinsicDataWrapper object to the given value.
intrinsicDataWrapper | Pointer to an IntrinsicDataWrapper object. |
value | The new height of the intrinsic. |
true
, if setting worked; false
otherwise VL_SDK_API bool VL_CALLINGCONVENTION vlIntrinsicDataWrapper_SetSkewNorm | ( | vlIntrinsicDataWrapper_t * | intrinsicDataWrapper, |
double | value | ||
) |
Sets the normalized skew of the given IntrinsicDataWrapper object to the given value.
intrinsicDataWrapper | Pointer to an IntrinsicDataWrapper object. |
value | The new normalized skew of the intrinsic. |
true
, if setting worked; false
otherwise VL_SDK_API bool VL_CALLINGCONVENTION vlIntrinsicDataWrapper_SetWidth | ( | vlIntrinsicDataWrapper_t * | intrinsicDataWrapper, |
unsigned int | value | ||
) |
Sets width of the given IntrinsicDataWrapper object to the given value.
intrinsicDataWrapper | Pointer to an IntrinsicDataWrapper object. |
value | The new width of the intrinsic |
true
, if setting worked; false
otherwise VL_SDK_API vlIntrinsicDataWrapper_t* VL_CALLINGCONVENTION vlNew_IntrinsicDataWrapper | ( | ) |
Creates a new IntrinsicDataWrapper object and returns a pointer to it.
This pointer must be released using vlDelete_IntrinsicDataWrapper.