Landmark-Based Calibration
Functional Guide | Reference: EmptyLandmarks, AddLandmark, Calibrate
/////////////////////////////////////////////////////////////
// This code snippet shows how to perform a landmark-based //
// calibration. //
/////////////////////////////////////////////////////////////
// EWorldShape constructor
EWorldShape worldShape;
// ...
// Reset the calibration context
worldShape.EmptyLandmarks();
// Loop on the landmarks
for(int index= 0; index < numLandmarks; index++
{
// Get the I-th landmark as a pair of EPoint(x, y)
EPoint sensorPoint, worldPoint;
// Retrieve and store the relevant data into worldPoint and sensorPoint
// ...
// Add the I-th pair
worldShape.AddLandmark(sensorPoint, worldPoint);
}
// Perform the calibration
worldShape.Calibrate(ECalibrationMode_Skewed);
'/////////////////////////////////////////////////////////////
'// This code snippet shows how to perform a landmark-based //
'// calibration. //
'/////////////////////////////////////////////////////////////
' EWorldShape constructor
Dim worldShape As New EWorldShape
' ...
' Reset the calibration context
worldShape.EmptyLandmarks
' Loop on the landmarks
Dim index As Long
For index = 0 To numLandmarks - 1
' Get the I-th landmark as a pair of EPoint
Dim sensorPoint As EPoint
Dim worldPoint As EPoint
' Retrieve and store the relevant data into worldPoint and sensorPoint
Set sensorPoint = myIthLandmark_Sensor
Set worldPoint = myIthLandmark_World
' Add the I-th pair
worldShape.AddLandmark sensorPoint, worldPoint
Next
' Perform the calibration
worldShape.Calibrate ECalibrationMode_Skewed
/////////////////////////////////////////////////////////////
// This code snippet shows how to perform a landmark-based //
// calibration. //
/////////////////////////////////////////////////////////////
// EWorldShape constructor
EWorldShape worldShape= new EWorldShape();
// ...
// Reset the calibration context
worldShape.EmptyLandmarks();
// Loop on the landmarks
for(int index= 0; index < numLandmarks; index++)
{
// Get the I-th landmark as a pair of EPoint(x, y)
EPoint sensorPoint, worldPoint;
// Retrieve and store the relevant data into worldPoint and sensorPoint
sensorPoint = myIthLandmark_Sensor;
worldPoint = myIthLandmark_World;
// Add the I-th pair
worldShape.AddLandmark(sensorPoint, worldPoint);
}
// Perform the calibration
worldShape.Calibrate((int)ECalibrationMode.Skewed);