Tobii Pro SDK C API
|
Functionality for implementing calibration. More...
Go to the source code of this file.
Data Structures | |
struct | TobiiResearchCalibrationEyeData |
struct | TobiiResearchCalibrationSample |
struct | TobiiResearchCalibrationPoint |
struct | TobiiResearchCalibrationResult |
struct | TobiiResearchHMDCalibrationResult |
Enumerations |
Functionality for implementing calibration.
Defines the validity of calibration eye data.
TOBII_RESEARCH_API void TOBII_RESEARCH_CALL tobii_research_free_screen_based_calibration_result | ( | TobiiResearchCalibrationResult * | result | ) |
Free memory allocation for the calibration result received via tobii_research_screen_based_calibration_compute_and_apply.
result | Calibration result to free. |
TOBII_RESEARCH_API TobiiResearchStatus TOBII_RESEARCH_CALL tobii_research_hmd_based_calibration_collect_data | ( | TobiiResearchEyeTracker * | eyetracker, |
float | x, | ||
float | y, | ||
float | z | ||
) |
Starts collecting data for a calibration point.
The argument used is the point the calibration user is assumed to be looking at and is given in the HMD coordinate system.
You must call tobii_research_screen_based_calibration_enter_calibration_mode before calling this function. This function is blocking while collecting data and may take up to 10 seconds.
eyetracker | Eye tracker object. |
x | x coordinate in the HMD coordinate system where the user is looking. |
y | y coordinate in the HMD coordinate system where the user is looking. |
z | z coordinate in the HMD coordinate system where the user is looking. |
TOBII_RESEARCH_API TobiiResearchStatus TOBII_RESEARCH_CALL tobii_research_hmd_based_calibration_compute_and_apply | ( | TobiiResearchEyeTracker * | eyetracker, |
TobiiResearchHMDCalibrationResult * | result | ||
) |
Uses the collected data and tries to compute calibration parameters.
If the calculation is successful, the result is applied to the eye tracker. If there is insufficient data to compute a new calibration or if the collected data is not good enough then calibration is failed and will not be applied.
eyetracker | Eye tracker object. |
result | Represents the result of the calculated HMD calibration. |
TOBII_RESEARCH_API TobiiResearchStatus TOBII_RESEARCH_CALL tobii_research_hmd_based_calibration_enter_calibration_mode | ( | TobiiResearchEyeTracker * | eyetracker | ) |
Enters the hmd based calibration mode and the eye tracker is made ready for collecting data and calculating new calibrations.
eyetracker | Eye tracker object. |
TOBII_RESEARCH_API TobiiResearchStatus TOBII_RESEARCH_CALL tobii_research_hmd_based_calibration_leave_calibration_mode | ( | TobiiResearchEyeTracker * | eyetracker | ) |
Leaves the hmd based calibration mode.
eyetracker | Eye tracker object. |
TOBII_RESEARCH_API TobiiResearchStatus TOBII_RESEARCH_CALL tobii_research_screen_based_calibration_collect_data | ( | TobiiResearchEyeTracker * | eyetracker, |
float | x, | ||
float | y | ||
) |
Starts collecting data for a calibration point.
The argument used is the point the calibration user is assumed to be looking at and is given in the active display area coordinate system.
You must call tobii_research_calibration_enter_calibration_mode before calling this function. This function is blocking while collecting data and may take up to 10 seconds.
eyetracker | Eye tracker object. |
x | Normalized x coordinate on active display area where the user is looking. |
y | Normalized y coordinate on active display area where the user is looking. |
TOBII_RESEARCH_API TobiiResearchStatus TOBII_RESEARCH_CALL tobii_research_screen_based_calibration_compute_and_apply | ( | TobiiResearchEyeTracker * | eyetracker, |
TobiiResearchCalibrationResult ** | result | ||
) |
Uses the collected data and tries to compute calibration parameters.
If the calculation is successful, the result is applied to the eye tracker. If there is insufficient data to compute a new calibration or if the collected data is not good enough then calibration is failed and will not be applied.
eyetracker | Eye tracker object. |
result | Represents the result of the calculated calibration. |
TOBII_RESEARCH_API TobiiResearchStatus TOBII_RESEARCH_CALL tobii_research_screen_based_calibration_discard_data | ( | TobiiResearchEyeTracker * | eyetracker, |
float | x, | ||
float | y | ||
) |
Removes the collected data associated with a specific calibration point.
eyetracker | Eye tracker object. |
x | Normalized x coordinate of point to discard. |
y | Normalized y coordinate of point to discard. |
TOBII_RESEARCH_API TobiiResearchStatus TOBII_RESEARCH_CALL tobii_research_screen_based_calibration_enter_calibration_mode | ( | TobiiResearchEyeTracker * | eyetracker | ) |
Enters the screen based calibration mode and the eye tracker is made ready for collecting data and calculating new calibrations.
eyetracker | Eye tracker object. |
TOBII_RESEARCH_API TobiiResearchStatus TOBII_RESEARCH_CALL tobii_research_screen_based_calibration_leave_calibration_mode | ( | TobiiResearchEyeTracker * | eyetracker | ) |
Leaves the screen based calibration mode.
eyetracker | Eye tracker object. |