8
Tara Windows Extension Unit API Document
Parameters
Description
Return Values
None
N/A
TRUE on Success
FALSE on Failure
BOOL SetAlgorithmParam()
This function sets the disparity algorithm(Stereo BM / Stereo 3 way) to run based on
the macro DISPARITY_OPTION.
DISPARITY_OPTION:
When set to 1
–
Best quality Depth Map and Lower Frame Rate
–
Stereo_SGBM 3
way generic left to right.
When set to 0
–
Low Quality Depth Map and Higher Frame Rate
–
Stereo_BM
generic left to right.
Parameters
Description
Return Values
None
N/A
TRUE on Success
FALSE on Failure
BOOL Init(bool GenerateDisparity)
This function invokes the init method of the TaraCamParameters. Initialises all the
disparity variables and invokes the SetAlgorithmParam.
Parameters
Description
Return Values
Bool
GenerateDisparity
Generates the
disparity map
TRUE on Success
FALSE on Failure
BOOL SetBrightness(int BrightnessVal)
This function uses the set property of VideoCapture in OpenCV to set the brightness.
Value ranges from 1 to 7.
Parameters
Description
Return Values
Int BrightnessVal
Brightness value to be
set to the camera.
TRUE on
Success
FALSE on
Failure
BOOL SetStreamMode(UINT StreamMode)
This function sets the camera to the stream mode passed. Tara supports two models
i) Master mode ii) Trigger mode. 1 is passed to set Master Mode and 0 is passed to
set Trigger Mode.