MIL_ID CalibrationId, | //in |
MIL_INT Index, | //in |
MIL_INT64 InquireType, | //in |
void *UserVarPtr | //out |
This function allows you to inquire about the settings of a single pose in the sequence of poses performed to calibrate M_3D_ROBOTICS calibration contexts. Every call to McalGrid() or McalList() with M_ACCUMULATE corresponds to a pose used to obtain information about the camera setup during the calibration process.
Specifies the index of the pose of a M_3D_ROBOTICS calibration context from which settings should be inquired. The first call corresponds to the index value 0 and the last one is the return value of McalInquire() with M_NUMBER_OF_CALIBRATION_POSES minus one.
Specifies the setting about which to inquire.
See the Parameter associations section for possible values that can be specified.
Specifies the address in which to return the value of the inquired setting.
Since McalInquireSingle() also returns the value of the inquired setting, you can set UserVarPtr to M_NULL.
See the Parameter associations section for possible values that can be returned.
The tables below list possible values for the InquireType parameter and possible values returned to the UserVarPtr parameter.
The InquireType parameter can be set to one of the following values only after calibrating with McalGrid().
Unless otherwise specified, the following values require that you pass the UserVarPtr parameter the address of a MIL_DOUBLE.
For a calibration context being
calibrated using McalGrid()
|
|||||||||||||||||||||||||||||||||||||||
InquireType |
Description
|
||||||||||||||||||||||||||||||||||||||
UserVarPtr - Possible values returned |
|||||||||||||||||||||||||||||||||||||||
M_COLUMN_NUMBER + |
Inquires the number of columns in the calibration grid. SET (more details...) |
||||||||||||||||||||||||||||||||||||||
Value |
Specifies the number of columns. |
||||||||||||||||||||||||||||||||||||||
M_COLUMN_SPACING + |
Inquires the number of world units between columns. SET (more details...) |
||||||||||||||||||||||||||||||||||||||
Value |
Specifies the spacing between columns. |
||||||||||||||||||||||||||||||||||||||
M_GRID_ORIGIN_X + |
Inquires the X-position of the top-left circle of a circle grid, or the top-left point connecting four squares in a chessboard grid, in the camera calibration plane coordinate system. SET (more details...) |
||||||||||||||||||||||||||||||||||||||
Value |
Specifies the X-position, in the camera calibration plane coordinate system. |
||||||||||||||||||||||||||||||||||||||
M_GRID_ORIGIN_Y + |
Inquires the Y-position of the top-left circle of a circle grid, or the top-left point connecting four squares in a chessboard grid, in the camera calibration plane coordinate system. SET (more details...) |
||||||||||||||||||||||||||||||||||||||
Value |
Specifies the Y-position, in the camera calibration plane coordinate system. |
||||||||||||||||||||||||||||||||||||||
M_GRID_ORIGIN_Z + |
Inquires the Z-position of the top-left circle of a circle grid, or the top-left point connecting four squares in a chessboard grid, in the camera calibration plane coordinate system. SET (more details...) |
||||||||||||||||||||||||||||||||||||||
Value |
Specifies the Z-position, in the camera calibration plane coordinate system. |
||||||||||||||||||||||||||||||||||||||
M_GRID_TYPE + |
Inquires the type of grid used to perform the calibration. SET (more details...) |
||||||||||||||||||||||||||||||||||||||
M_CHESSBOARD_GRID |
Specifies a chessboard grid. INFO |
||||||||||||||||||||||||||||||||||||||
M_CIRCLE_GRID |
Specifies a grid of circles. INFO |
||||||||||||||||||||||||||||||||||||||
M_ROW_NUMBER + |
Inquires the number of rows in the calibration grid. SET (more details...) |
||||||||||||||||||||||||||||||||||||||
Value |
Specifies the number of rows. |
||||||||||||||||||||||||||||||||||||||
M_ROW_SPACING + |
Inquires the spacing between rows in the calibration grid. SET (more details...) |
||||||||||||||||||||||||||||||||||||||
Value |
Specifies the spacing between rows, in world units. |
You can add the following value to the above-mentioned values to determine the default value of an inquire type.
For inquiring the default
value
|
|||||||||||||||||||||||||||||||||||||||
InquireType |
Description
|
||||||||||||||||||||||||||||||||||||||
UserVarPtr - Possible values returned |
|||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Inquires the default value of the specified inquire type. (more details...) |
||||||||||||||||||||||||||||||||||||||
UserVarPtr data type info |
Data
type: MIL_DOUBLE |
The InquireType parameter can be set to one of the following values after a call to either McalGrid() or McalList().
Unless otherwise specified, the following values require that you pass the UserVarPtr parameter the address of a MIL_DOUBLE.
For a calibration context being
calibrated using McalGrid() or McalList()
|
|||||||||||||||||||||||||||||||||||||||
InquireType |
Description
|
||||||||||||||||||||||||||||||||||||||
UserVarPtr - Possible values returned |
|||||||||||||||||||||||||||||||||||||||
M_AVERAGE_PIXEL_ERROR + |
Inquires the average calibration error in the pixel coordinate system. (more details...) |
||||||||||||||||||||||||||||||||||||||
Value |
Specifies the average calibration error, in pixels. |
||||||||||||||||||||||||||||||||||||||
M_AVERAGE_WORLD_ERROR + |
Inquires the average calibration error in the absolute coordinate system. (more details...) |
||||||||||||||||||||||||||||||||||||||
Value |
Specifies the average calibration error, in world units. |
||||||||||||||||||||||||||||||||||||||
M_CALIBRATION_IMAGE_POINTS_X + |
Inquires the X-coordinate of the calibration points in the pixel coordinate system. SET (more details...) |
||||||||||||||||||||||||||||||||||||||
UserVarPtr data type info |
Data
type: array of type MIL_DOUBLE |
||||||||||||||||||||||||||||||||||||||
Value |
Specifies the X-coordinate, in pixels. |
||||||||||||||||||||||||||||||||||||||
M_CALIBRATION_IMAGE_POINTS_Y + |
Inquires the Y-coordinate of the calibration points in the pixel coordinate system. SET (more details...) |
||||||||||||||||||||||||||||||||||||||
UserVarPtr data type info |
Data
type: array of type MIL_DOUBLE |
||||||||||||||||||||||||||||||||||||||
Value |
Specifies the Y-coordinate, in pixels. |
||||||||||||||||||||||||||||||||||||||
M_CALIBRATION_WORLD_POINTS_X + |
Inquires the X-coordinate of the calibration points, in real-world units of the camera calibration plane (M_CALIBRATION_PLANE). SET (more details...) |
||||||||||||||||||||||||||||||||||||||
UserVarPtr data type info |
Data
type: array of type MIL_DOUBLE |
||||||||||||||||||||||||||||||||||||||
Value |
Specifies the X-coordinate, in real-world units of the camera calibration plane (M_CALIBRATION_PLANE). |
||||||||||||||||||||||||||||||||||||||
M_CALIBRATION_WORLD_POINTS_Y + |
Inquires the Y-coordinate of the calibration points, in real-world units of the camera calibration plane (M_CALIBRATION_PLANE). SET (more details...) |
||||||||||||||||||||||||||||||||||||||
UserVarPtr data type info |
Data
type: array of type MIL_DOUBLE |
||||||||||||||||||||||||||||||||||||||
Value |
Specifies the Y-coordinate, in real-world units of the camera calibration plane (M_CALIBRATION_PLANE). |
||||||||||||||||||||||||||||||||||||||
M_CALIBRATION_WORLD_POINTS_Z + |
Inquires the Z-coordinate of the calibration points, in real-world units of the camera calibration plane (M_CALIBRATION_PLANE). SET (more details...) |
||||||||||||||||||||||||||||||||||||||
UserVarPtr data type info |
Data
type: array of type MIL_DOUBLE |
||||||||||||||||||||||||||||||||||||||
Value |
Specifies the Z-coordinate, in real-world units of the camera calibration plane (M_CALIBRATION_PLANE). |
||||||||||||||||||||||||||||||||||||||
M_MAXIMUM_PIXEL_ERROR + |
Inquires the maximum calibration error, in pixels. (more details...) |
||||||||||||||||||||||||||||||||||||||
Value |
Specifies the maximum calibration error, in pixels. |
||||||||||||||||||||||||||||||||||||||
M_MAXIMUM_WORLD_ERROR + |
Inquires the maximum calibration error, in world units. (more details...) |
||||||||||||||||||||||||||||||||||||||
Value |
Specifies the maximum calibration error, in world units. |
||||||||||||||||||||||||||||||||||||||
M_NUMBER_OF_CALIBRATION_POINTS + |
Inquires the number of calibration points found by McalGrid() or passed to McalList(). SET (more details...) |
||||||||||||||||||||||||||||||||||||||
Value |
Specifies the number of calibration points. |
The InquireType parameter can be set to one of the following values after a call to either McalGrid(), McalList(), or McalUniform().
Unless otherwise specified, the following values require that you pass the UserVarPtr parameter the address of a MIL_DOUBLE.
For a calibration context being
calibrated using McalGrid(), McalList(), or
McalUniform()
|
|||||||||||||||||||||||||||||||||||||||
InquireType |
Description
|
||||||||||||||||||||||||||||||||||||||
UserVarPtr - Possible values returned |
|||||||||||||||||||||||||||||||||||||||
M_CALIBRATION_INPUT_DATA + |
Specifies the type of data that was used to perform the calibration. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_GRID |
Specifies that the calibration was performed using a calibration grid (McalGrid()). |
||||||||||||||||||||||||||||||||||||||
M_LIST |
Specifies that the calibration was performed by explicitly specifying the correspondence between some pixels and their real-world coordinates (McalList()). |
||||||||||||||||||||||||||||||||||||||
M_PARAMETRIC |
Specifies that the calibration was performed using an explicitly specified translation, scale, and offset from the absolute world coordinate system (McalUniform()). |
You can add one of the following values to the above-mentioned values to cast the requested information to the required data type.
For specifying the data type
|
|||||||||||||||||||||||||||||||||||||||
InquireType |
Description
|
||||||||||||||||||||||||||||||||||||||
UserVarPtr - Possible values returned |
|||||||||||||||||||||||||||||||||||||||
M_TYPE_CHAR |
Casts the requested information to a char. (more details...) |
||||||||||||||||||||||||||||||||||||||
UserVarPtr data type info |
Data
type: char |
||||||||||||||||||||||||||||||||||||||
M_TYPE_MIL_DOUBLE |
Casts the requested information to a MIL_DOUBLE. (more details...) |
||||||||||||||||||||||||||||||||||||||
UserVarPtr data type info |
|
||||||||||||||||||||||||||||||||||||||
M_TYPE_MIL_FLOAT |
Casts the requested information to a MIL_FLOAT. (more details...) |
||||||||||||||||||||||||||||||||||||||
UserVarPtr data type info |
Data
type: MIL_FLOAT |
||||||||||||||||||||||||||||||||||||||
M_TYPE_MIL_ID |
Casts the requested information to a MIL_ID. (more details...) |
||||||||||||||||||||||||||||||||||||||
UserVarPtr data type info |
Data
type: MIL_ID |
||||||||||||||||||||||||||||||||||||||
M_TYPE_MIL_INT |
Casts the requested information to a MIL_INT. (more details...) |
||||||||||||||||||||||||||||||||||||||
UserVarPtr data type info |
Data
type: MIL_INT |
||||||||||||||||||||||||||||||||||||||
M_TYPE_MIL_INT16 |
Casts the requested results to a MIL_INT16. (more details...) |
||||||||||||||||||||||||||||||||||||||
UserVarPtr data type info |
Data
type: MIL_INT16 |
||||||||||||||||||||||||||||||||||||||
M_TYPE_MIL_INT32 |
Casts the requested information to a MIL_INT32. (more details...) |
||||||||||||||||||||||||||||||||||||||
UserVarPtr data type info |
Data
type: MIL_INT32 |
||||||||||||||||||||||||||||||||||||||
M_TYPE_MIL_INT64 |
Casts the requested information to a MIL_INT64. (more details...) |
||||||||||||||||||||||||||||||||||||||
UserVarPtr data type info |
Data
type: MIL_INT64 |
Header | Include mil.h. |
Library | Use mil.lib; milcal.lib. |
DLL | Requires mil.dll; milcal.dll. |