MIL_ID ContextGraId, | //in |
MIL_ID ResultRegId, | //in |
MIL_ID DstImageBufOrListGraId, | //in |
MIL_INT64 Operation, | //in |
MIL_INT Index, | //in |
MIL_INT64 ControlFlag | //in |
This function draws specific features of the registration results in the destination image buffer or graphics list.
From an M_STITCHING_RESULT result buffer, this function can draw a box surrounding the associated image(s) of one or all of the registration elements.
From an M_EXTENDED_DEPTH_OF_FIELD_RESULT result buffer, this function can draw the extended depth of field (EDoF) image into an image buffer.
To draw these results, the required information must be available in the registration result buffer.
Specifies the identifier of the graphics context to use when drawing. This parameter must be set to one of the following value. Note that while this parameter is required for calling MregDraw(), when using an M_EXTENDED_DEPTH_OF_FIELD_RESULT result buffer, this parameter will not affect the function.
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 identifier of the registration result buffer from which to extract the results to draw. The registration result buffer must have been previously allocated on the required system using MregAllocResult().
Specifies the identifier of the destination image buffer or graphics list in which to draw. The buffer can be any valid MIL image buffer allocated using MbufAlloc...(). The graphics list must be previously allocated using MgraAllocList(). By drawing into a 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.
Specifies the type of operation to perform. This parameter can be set to one of the following:
For specifying the operation
|
|||||||||||||||||||||||||||||||||||||||
Value | Description
|
||||||||||||||||||||||||||||||||||||||
M_DRAW_BOX |
Draws the bounding box of the image associated with the specified registration element, at its position, angle, and scale. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DRAW_EDOF_IMAGE |
Draws the extended depth of field (EDoF) image into the target buffer. (more details...) |
Specifies the registration element that is associated with the image whose features you want to draw when drawing results of an M_STITCHING_RESULT registration result buffer. This parameter must be set to one of the values below.
For specifying the registration
element
|
|||||||||||||||||||||||||||||||||||||||
Value | Description
|
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Specifies the default value. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_ALL |
Specifies all registration elements. |
||||||||||||||||||||||||||||||||||||||
0 <= Value <= M_NUMBER_OF_ELEMENTS-1 |
Specifies the registration element's index. |
Header | Include mil.h. |
Library | Use mil.lib; milreg.lib. |
DLL | Requires mil.dll; milreg.dll. |