MIL_ID CalibratedMilObjectId, | //in |
MIL_INT64 ControlType, | //in |
MIL_DOUBLE ControlValue | //in |
This function changes a calibration setting of a calibration context or calibrated image.
If you control a calibration setting of a calibrated image with an M_VECTOR_AND_RASTER ROI, the raster information will be discarded, causing the ROI to become an M_VECTOR ROI. See MbufSetRegion() for more information.
Specifies the setting to change.
See the Parameter associations section for possible values that can be specified.
Specifies the setting's new value.
See the Parameter associations section for possible values that can be specified.
The tables below list possible values for the ControlType and ControlValue parameters.
The following ControlType and ControlValue parameter settings can be specified for a calibration context:
For a calibration context
|
|||||||||||||||||||||||||||||||||||||||
ControlType |
Description
|
||||||||||||||||||||||||||||||||||||||
ControlValue | |||||||||||||||||||||||||||||||||||||||
M_CALIBRATION_PLANE |
Sets the plane in which the calibration points are defined. INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Same as M_ABSOLUTE_COORDINATE_SYSTEM. |
||||||||||||||||||||||||||||||||||||||
M_ABSOLUTE_COORDINATE_SYSTEM |
Specifies that the calibration points are defined in the absolute coordinate system. |
||||||||||||||||||||||||||||||||||||||
M_RELATIVE_COORDINATE_SYSTEM |
Specifies that the calibration points are defined in the relative coordinate system. |
||||||||||||||||||||||||||||||||||||||
M_CCD_ASPECT_RATIO |
Sets the width-to-height ratio of the individual elements of the CCD. INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
1.0 |
Specifies that the width and height of the CCD element are equal. (more details...) |
||||||||||||||||||||||||||||||||||||||
Value > 0 |
Specifies the value of the width of a CCD element divided by its height. |
||||||||||||||||||||||||||||||||||||||
M_FOREGROUND_VALUE |
Sets whether the circles in a circle grid, used with McalGrid(), are lighter or darker than the background. INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Determines the appropriate setting automatically. |
||||||||||||||||||||||||||||||||||||||
M_FOREGROUND_BLACK |
Specifies that the grid's circles are darker than the background. |
||||||||||||||||||||||||||||||||||||||
M_FOREGROUND_WHITE |
Specifies that the grid's circles are lighter than the background. |
||||||||||||||||||||||||||||||||||||||
M_GRID_CORNER_HINT_X |
Specifies the approximate X-coordinate, in the pixel coordinate system, of the top-left corner of the calibration grid in the real world. INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Same as M_NONE. |
||||||||||||||||||||||||||||||||||||||
M_NONE |
Specifies to use the top-left grid point in the image. |
||||||||||||||||||||||||||||||||||||||
Value |
Specifies the X-coordinate of the hint point, in the image. |
||||||||||||||||||||||||||||||||||||||
M_GRID_CORNER_HINT_Y |
Specifies the approximate Y-coordinate, in the pixel coordinate system, of the top-left corner of the calibration grid in the real world. INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Same as M_NONE. |
||||||||||||||||||||||||||||||||||||||
M_NONE |
Specifies to use the top-left grid point in the image. |
||||||||||||||||||||||||||||||||||||||
Value |
Specifies the Y-coordinate of the hint point, in the image. |
||||||||||||||||||||||||||||||||||||||
M_LINK_TOOL_AND_CAMERA |
Creates a rigid link between the camera coordinate system and the tool coordinate system. INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Same as M_ENABLE. |
||||||||||||||||||||||||||||||||||||||
M_DISABLE |
Specifies to remove the link between the two coordinate systems, allowing both to be moved independently. |
||||||||||||||||||||||||||||||||||||||
M_ENABLE |
Specifies to link the two coordinate systems, allowing both to be moved together. |
||||||||||||||||||||||||||||||||||||||
M_LOCALIZATION_NB_ITERATIONS_MAX |
Specifies the maximum number of iterations to attempt to fit the provided points when calculating the new position of the camera or relative coordinate system, when using McalList() and McalGrid() with M_DISPLACE_CAMERA_COORD or M_DISPLACE_RELATIVE_COORD respectively. INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Specifies the default value; the default value is 250. |
||||||||||||||||||||||||||||||||||||||
Value >= 1 |
Specifies the number of expected outliers. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_LOCALIZATION_NB_OUTLIERS_MAX |
Specifies the maximum number of possible outliers that can occur in the data set used by McalList() or McalGrid() with M_DISPLACE_CAMERA_COORD or M_DISPLACE_RELATIVE_COORD. INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Specifies the default value; the default value is 0. |
||||||||||||||||||||||||||||||||||||||
Value >= 0 |
Specifies the number of expected outliers. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_PRINCIPAL_POINT_X |
Sets the X-coordinate of the intersection of the camera's optical axis and the image plane. INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
Value |
Specifies the X-coordinate, in pixels. |
||||||||||||||||||||||||||||||||||||||
M_PRINCIPAL_POINT_Y |
Sets the Y-coordinate of the intersection of the camera's optical axis and the image plane. INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
Value |
Specifies the Y-coordinate, in pixels. |
||||||||||||||||||||||||||||||||||||||
M_TOOL_POSITION_X |
Sets the X-position of the tool coordinate system in the absolute coordinate system. INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
Value |
Specifies the X-coordinate, in world units. |
||||||||||||||||||||||||||||||||||||||
M_TOOL_POSITION_Y |
Sets the Y-position of the tool coordinate system in the absolute coordinate system. INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
Value |
Specifies the Y-coordinate, in world units. |
||||||||||||||||||||||||||||||||||||||
M_TOOL_POSITION_Z |
Sets the Z-position of the tool coordinate system in the absolute coordinate system. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Specifies the default value; the default value is 0.0. |
||||||||||||||||||||||||||||||||||||||
Value |
Specifies the Z-coordinate, in world units. |
||||||||||||||||||||||||||||||||||||||
M_TRANSFORM_CACHE |
Sets whether to use a cache to accelerate the McalTransformImage() function. INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DISABLE |
Specifies not to use a cache. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_ENABLE |
Specifies to use a cache. (more details...) |
The following ControlType and ControlValue parameter settings can be specified for a calibrated image:
For a calibrated image
|
|||||||||||||||||||||||||||||||||||||||
ControlType |
Description
|
||||||||||||||||||||||||||||||||||||||
ControlValue | |||||||||||||||||||||||||||||||||||||||
M_CALIBRATION_CHILD_OFFSET_X |
Sets the X-offset of a child buffer, relative to its highest order calibrated parent buffer. INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
Value |
Specifies the X-offset, relative to the child buffer's highest order calibrated parent buffer. |
||||||||||||||||||||||||||||||||||||||
M_CALIBRATION_CHILD_OFFSET_Y |
Sets the Y-offset of a child buffer, relative to its highest order calibrated parent buffer. INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
Value |
Specifies the Y-offset, relative to the child buffer's highest order calibrated parent buffer. |
The following ControlType and ControlValue parameter settings can be specified for a calibrated image:
For a calibrated and corrected
image
|
|||||||||||||||||||||||||||||||||||||||
ControlType |
Description
|
||||||||||||||||||||||||||||||||||||||
ControlValue | |||||||||||||||||||||||||||||||||||||||
M_GRAY_LEVEL_SIZE_Z |
Sets the difference in height corresponding to a difference of one gray level in a fully-corrected depth map. INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
M_INVALID_SCALE |
Specifies that the image is not a depth map. (more details...) |
||||||||||||||||||||||||||||||||||||||
Value |
Specifies the height, in world units, corresponding to a difference of one gray level. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_WORLD_POS_Z |
Sets the real-world Z-offset of a gray level of 0 in the corrected image, useful in depth maps. INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
Value |
Specifies the base height of a gray level of 0. (more details...) |
Parameters
CalibratedMilObjectId See CalibratedMilObjectId of the main function for a description. ControlType See ControlType of the main function for a description. ControlValue See ControlValue of the main function for a description. |
Header | Include mil.h. |
Library | Use mil.lib; milcal.lib. |
DLL | Requires mil.dll; milcal.dll. |