MIL_ID ContextGraId, | //in |
MIL_ID ContextCalOrImageBufId, | //in |
MIL_ID DstImageBufOrListGraId, | //in |
MIL_INT64 Operation, | //in |
MIL_INT Index, | //in |
MIL_INT64 ControlFlag | //in |
This function draws specific features of results, obtained from a calibration operation, in the destination image buffer or graphics list.
Specifies the identifier of the graphics context to use when drawing. This parameter must be set to one of the following values:
For specifying the graphics
context
|
|||||||||||||||||||||||||||||||||||||||
Value | Description
|
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Specifies that the default graphics context of the current MIL application is used. (more details...) |
||||||||||||||||||||||||||||||||||||||
MIL graphics context identifier |
Specifies a valid graphics context identifier, which you have allocated using MgraAlloc(). |
Specifies the calibration context, calibrated image, corrected image, or fixturing offset object from which to extract the information to draw.
When specifying a calibrated image or corrected image, the image cannot be associated with a region of interest (ROI), otherwise an error will occur.
If passing a calibration context, it must have been previously allocated on the required system using McalAlloc(). The calibration context should have been successfully calibrated using McalList() or McalGrid().
When working in M_3D_ROBOTICS calibration mode, it is possible to use McalDraw() with M_DRAW_IMAGE_POINTS between two successful calls to McalGrid() / McalList(), to draw the calibration points of one calibration pose before being fully calibrated.
If passing a fixturing offset object, it must have been previously allocated on the required system using McalAlloc() with M_FIXTURING_OFFSET. In addition the fixturing offset object should have been set up using McalFixture() with M_LEARN_OFFSET.
If ContextCalOrImageBufId is set to M_NULL, the coordinate system of the destination image is used.
Specifies the identifier of the destination image buffer or graphics list in which to draw. If a buffer is specified, it must be an unsigned 8-bit image buffer. By drawing into the display's overlay buffer or associating the graphics list with the display, you can also annotate an image non-destructively.
If specifying an image buffer, it must not have a region of interest (ROI) associated with it. Using an image buffer with an ROI will cause an error.
If you specify a graphics list, the graphics list must have been previously allocated using MgraAllocList().
Specifies the type of operation to perform.
For a calibration context or a fixturing offset object, you can set the Operation parameter to one of the following values. Note that if no combination constant is specified, the coordinate system will be drawn as if M_DRAW_ALL were specified.
For a calibration context or a fixturing
offset object
|
|||||||||||||||||||||||||||||||||||||||
Value | Description
|
||||||||||||||||||||||||||||||||||||||
M_DRAW_ABSOLUTE_COORDINATE_SYSTEM + |
Draws the absolute coordinate system of the specified source calibration context or calibrated image (ContextCalOrImageBufId). (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DRAW_PIXEL_COORDINATE_SYSTEM + |
Draws the pixel coordinate system of the destination image, DstImageBufOrListGraId with the origin placed at the center of the top-left pixel. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DRAW_RELATIVE_COORDINATE_SYSTEM + |
Draws the relative coordinate system of the specified source calibration context or calibrated image (ContextCalOrImageBufId). (more details...) |
You can add one of the following values to the above-mentioned values to specify how to draw the coordinate system.
For specifying how to draw the coordinate
system
|
|||||||||||||||||||||||||||||||||||||||
Combination value | Description
|
||||||||||||||||||||||||||||||||||||||
M_DRAW_ALL |
Draws the coordinate system using all the features listed in this table. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DRAW_AXES |
Draws the X-axis and Y-axis lines with arrow heads and axis labels. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DRAW_FRAME |
Draws three arrows (instead of full axes) and axis labels. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DRAW_LEGEND |
Draws the legend in the image at the bottom right. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DRAW_MAJOR_MARKS |
Draws crosses at each major tick mark. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DRAW_MINOR_MARKS |
Draws dots at each minor tick mark. (more details...) |
You can add the following value to the above-mentioned values to specify a new location for the axes to cross if drawing the world coordinate (0,0) causes an arrow not to be visible.
For specifying where the axes will be
displayed
|
|||||||||||||||||||||||||||||||||||||||
Combination value | Description
|
||||||||||||||||||||||||||||||||||||||
M_ALWAYS_SHOW_AXES |
Specifies to choose a new location for the axes to cross if, when trying to draw the lines and arrows at world coordinate (0,0), part of the axes would not otherwise be visible . |
For a calibration context, you can set the Operation parameter to one of the following:
For a calibration context
|
|||||||||||||||||||||||||||||||||||||||
Value | Description
|
||||||||||||||||||||||||||||||||||||||
M_DRAW_IMAGE_POINTS |
Draws the calibration points, used with McalGrid() or McalList(), to calibrate the source calibration context (ContextCalOrImageBufId). (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DRAW_VALID_REGION |
Draws a contour of the rectangle surrounding the calibrated area when using piecewise linear calibration mode (M_LINEAR_INTERPOLATION). (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DRAW_VALID_REGION_FILLED |
Draws a filled rectangle on the calibrated area when using piecewise linear calibration mode (M_LINEAR_INTERPOLATION). (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DRAW_WORLD_POINTS |
Draws the real-world positions of the calibration points, used with McalGrid() or McalList(), to calibrate the source calibration context (ContextCalOrImageBufId). (more details...) |
For a fixturing offset object, you can set the Operation parameter to the following:
For a fixturing offset
object
|
|||||||||||||||||||||||||||||||||||||||
Value | Description
|
||||||||||||||||||||||||||||||||||||||
M_DRAW_FIXTURING_OFFSET |
Specifies to draw the reference location that would have been used to place the current relative coordinate system of the destination image, given the specified fixturing offset object. (more details...) |
Specifies the index of the pose of a M_3D_ROBOTICS calibration context from which the calibration points should be drawn. If this information is not required or supported, set this parameter to M_DEFAULT.
For specifying the index of the
pose
|
|||||||||||||||||||||||||||||||||||||||
Value | Description
|
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Specifies to draw the calibration points of the last pose, for M_3D_ROBOTICS calibration contexts. (more details...) |
||||||||||||||||||||||||||||||||||||||
0 <= Value <= (Number of poses - 1) |
Specifies the index of a calibration pose. (more details...) |
Header | Include mil.h. |
Library | Use mil.lib; milcal.lib. |
DLL | Requires mil.dll; milcal.dll. |