© Copyright e-con Systems. 2017. All rights reserved.
5
Supported APIs
The details regarding the supported APIs are explained below.
TaraCamParameters APIs:
BOOL Init()
This function invokes the method LoadCameraMatrix.
Parameters
Description
Return Values
None
N/A.
TRUE on Success
FALSE on Failure
BOOL RemapStereoImage(Mat LFrame, Mat RFrame, Mat *RImage, Mat
*LImage)
This function performs rectification of right and left image with the computed matrix
values such that the image differs only in the x-axis.
Parameters
Description
Return Values
Mat LFrame
Left Frame of the
Camera
TRUE on Success
FALSE on Failure
Mat RFrame
Right Frame of the
Camera
Mat *RImage
Right Image of the
Camera
Mat *LImage
Left Image of the
Camera
BOOL LoadCameraMatrix()
This function is used to load the camera matrix from the flash of the camera using
the HID commands. Loads all the data from the intrinsic and extrinsic file to the Mat
object created.
Parameters
Description
Return Values
None
N/A
TRUE on Success
FALSE on Failure
BOOL ComputeRectifyPrams()
Computes the Q Mat used for the transformation of 2D points to 3D points. The
maps to rectify the image is also created.