Click here to show toolbars of the Web Online Help System: show toolbars |
MIL_ID ContextGraId, | //in |
MIL_ID ResultBlobId, | //in |
MIL_ID DstImageBufOrListGraId, | //in |
MIL_INT64 Operation, | //in |
MIL_INT LabelOrIndex, | //in |
MIL_INT64 ControlFlag | //in |
This function draws specific blob features, which were calculated using MblobCalculate(), in the destination image buffer or graphics list. This function can draw multiple features at a time.
You can draw results obtained relative to an offset, at the top-left corner of the destination image, using MgraControl() with M_DRAW_OFFSET_X and M_DRAW_OFFSET_Y and zoom them using MgraControl() with M_DRAW_ZOOM_X and M_DRAW_ZOOM_Y. For example, you can draw a zoomed section of the blobs found in the target image at the top-left corner of the destination image. For more information, see the Drawing graphics with offset and zoom subsection of the Drawing graphics section of Chapter 24: Generating graphics.
Specifies the identifier of the graphics context to use when drawing. This parameter must be set to one of the following values:
![]() |
|||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Description | ||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies that the default graphics context of the current MIL application is used. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies a valid graphics context identifier, which you have allocated using MgraAlloc(). |
Specifies the identifier of the Blob Analysis result buffer from which to retrieve the features to draw.
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.
The values in the tables below can be added together to draw multiple features at a time. For example, to draw the contour, holes, and position of the blobs, you would specify M_DRAW_BLOBS_CONTOUR + M_DRAW_HOLES + M_DRAW_POSITION.
The following operations can draw in a destination image buffer or graphics list.
![]() |
|||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Description | ||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Draws a cross at the blobs' center of gravity, respecting the principal and secondary axes. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Draws the blobs. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Draws the external outline of the blobs. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Draws the image-axis aligned bounding box of each blob. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Draws a cross at the center of the blobs' bounding box. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Same as M_DRAW_POSITION. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Draws the convex hull of the blobs. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Draws the convex perimeter of the blobs. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Draws the blobs' maximum Feret diameter, using an H-type line (|-|), centered at the blobs' position, at the maximum Feret diameter's angle. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Draws the blobs' minimum Feret diameter, using an H-type line (|-|), centered at the blobs' position, at the minimum Feret diameter's angle. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Draws the holes of the blobs. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Draws the outline of the blobs' holes. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Draws the blobs' minimum-area bounding box. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Draws the blobs' minimum-perimeter bounding box. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Draws a cross at the center of gravity of the blobs. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Draws the world-axis aligned bounding box of each blob. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Draws a cross at the center of the blobs' bounding box, calculated in the relative coordinate system. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Draws the blobs' Feret diameter, using an H-type line (|-|), centered at the blobs' position, parallel to the X-axis of the relative coordinate system. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Draws the blobs' Feret diameter, using an H-type line (|-|), centered at the blobs' position, parallel to the Y-axis of the relative coordinate system. |
Specifies the label or index of the blob or blobs whose information to draw.
This parameter should be set to one of the following:
![]() |
|||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Description | ||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Same as M_ALL_BLOBS. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies the index of the blob. |
||||||||||||||||||||||||||||||||||||||
Parameters | |||||||||||||||||||||||||||||||||||||||
Specifies the index. Valid indices range from 0 (the first blob) to the number of blobs (M_NUMBER) minus 1. |
|||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies the label of the blob. |
||||||||||||||||||||||||||||||||||||||
Parameters | |||||||||||||||||||||||||||||||||||||||
Specifies the label. Valid labels range from 1 to the value returned by MblobInquire() with M_MAX_LABEL. |
|||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies all blobs. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies all currently excluded blobs. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies all currently included blobs. |
Header | Include mil.h. |
Library | Use mil.lib; milblob.lib. |
DLL | Requires mil.dll; milblob.dll. |