This interface holds a collection of image and world point pairs. More...
Public Member Functions | |
void | AddPointPair (double imagePointX, double imagePointY, double worldPointX, double worldPointY) |
void | Draw (HDC hdc, int index, double zoomX, double zoomY, double panX, double panY) |
void | DrawAll (HDC hdc, double zoomX, double zoomY, double panX, double panY) |
ILPoint * | GetImagePoint (int index) |
ILPoints * | GetImagePoints () |
ILPoint * | GetWorldPoint (int index) |
ILPoints * | GetWorldPoints () |
Public Member Functions inherited from ILObjects | |
int | Count () |
BOOL | Empty () |
ILObject * | ItemObject (int objIndex) |
Public Member Functions inherited from ILObject | |
ILObject * | Copy () |
LPVErrorCode | Load (LString filename) |
void | Reset () |
LPVErrorCode | Save (LString filename) |
BOOL | Valid () |
This interface holds a collection of image and world point pairs.
Usually you get the LCalibPointPairs object from the ILCalibBoard::Detect() as detection result. You can then use this interface to access individual point pair and draw them on graphics windows. You can also construct a point pair collection manually via AddPointPair().
void AddPointPair | ( | double | imagePointX, |
double | imagePointY, | ||
double | worldPointX, | ||
double | worldPointY | ||
) |
Add a pair of image and world points to the collection
[in] | imagePointX | The x-coordinate of the image point. |
[in] | imagePointY | The y-coordinate of the image point. |
[in] | worldPointX | The x-coordinate of the world point. |
[in] | worldPointY | The y-coordinate of the world point. |
void Draw | ( | HDC | hdc, |
int | index, | ||
double | zoomX, | ||
double | zoomY, | ||
double | panX, | ||
double | panY | ||
) |
Draw a image point in one point pair of given index onto provide device context.
[in] | index | Input index, it should be a 0-based number smaller than total count. |
void DrawAll | ( | HDC | hdc, |
double | zoomX, | ||
double | zoomY, | ||
double | panX, | ||
double | panY | ||
) |
Draw all image points in the collection onto provide device context.
ILPoint* GetImagePoint | ( | int | index | ) |
Fetch one image point with given index.
[in] | index | Input index, it should be a 0-based number smaller than total count. |
imagePoint | Return the image point of given index. |
ILPoints* GetImagePoints | ( | ) |
Fetch all image points.
imagePoints | Return the collection of image points. |
ILPoint* GetWorldPoint | ( | int | index | ) |
Fetch one world point with given index.
[in] | index | Input index, it should be a 0-based number smaller than total count. |
worldPoint | Return the world point of given index. |
ILPoints* GetWorldPoints | ( | ) |
Fetch all world points.
imagePoints | Return the collection of world points. |