Leaper Vision Toolkit
中文 / English 2.x
Public Member Functions
ILCalibPointPairs Interface Reference

This interface holds a collection of image and world point pairs. More...

Inheritance diagram for ILCalibPointPairs:
ILObjects ILObject LCalibPointPairs

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)
 
ILPointGetImagePoint (int index)
 
ILPointsGetImagePoints ()
 
ILPointGetWorldPoint (int index)
 
ILPointsGetWorldPoints ()
 
- Public Member Functions inherited from ILObjects
int Count ()
 
BOOL Empty ()
 
ILObjectItemObject (int objIndex)
 
- Public Member Functions inherited from ILObject
ILObjectCopy ()
 
LPVErrorCode Load (LString filename)
 
void Reset ()
 
LPVErrorCode Save (LString filename)
 
BOOL Valid ()
 

Detailed Description

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().

Example Code

Member Function Documentation

◆ AddPointPair()

void AddPointPair ( double  imagePointX,
double  imagePointY,
double  worldPointX,
double  worldPointY 
)

Add a pair of image and world points to the collection

Parameters
[in]imagePointXThe x-coordinate of the image point.
[in]imagePointYThe y-coordinate of the image point.
[in]worldPointXThe x-coordinate of the world point.
[in]worldPointYThe y-coordinate of the world point.

◆ Draw()

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.

Parameters
[in]indexInput index, it should be a 0-based number smaller than total count.
See also
Use Draw Functions
Remarks
This function is currently not available on Linux / MacOS platform.
See also
DrawAll().

◆ DrawAll()

void DrawAll ( HDC  hdc,
double  zoomX,
double  zoomY,
double  panX,
double  panY 
)

Draw all image points in the collection onto provide device context.

See also
Use Draw Functions
Remarks
This function is currently not available on Linux / MacOS platform.
See also
Draw().

◆ GetImagePoint()

ILPoint* GetImagePoint ( int  index)

Fetch one image point with given index.

Parameters
[in]indexInput index, it should be a 0-based number smaller than total count.
Return values
imagePointReturn the image point of given index.

◆ GetImagePoints()

ILPoints* GetImagePoints ( )

Fetch all image points.

Return values
imagePointsReturn the collection of image points.

◆ GetWorldPoint()

ILPoint* GetWorldPoint ( int  index)

Fetch one world point with given index.

Parameters
[in]indexInput index, it should be a 0-based number smaller than total count.
Return values
worldPointReturn the world point of given index.

◆ GetWorldPoints()

ILPoints* GetWorldPoints ( )

Fetch all world points.

Return values
imagePointsReturn the collection of world points.