MIL_ID ResultBlobId, | //in |
MIL_ID DstImageBufId, | //in |
MIL_INT64 ControlFlag | //in |
This function draws a labeled image in which each blob existing in the specified result buffer is represented with its own unique label value.
The label values are taken from the blob analysis result buffer. A call to MblobCalculate() must have been made to generate label values for an image. Blobs that have been deleted from the result buffer are not drawn.
Specifies the identifier of the destination (labeled) image buffer. This must be a single band, 8 or 16-bit unsigned buffer.
Note, this buffer need not be the same size as the original identifier image used to calculate the blobs, but must be 16 bits deep if the maximum label value exceeds 255. To determine if a 16-bit buffer is necessary, perform an M_MAX_LABEL_VALUE inquiry, using MblobGetResult(). The number of blobs alone does not tell you the maximum label value (label values are not necessarily contiguous).
This image buffer must not have a region of interest (ROI) associated with it. Using an image buffer with an ROI will cause an error.
Specifies whether or not to clear the destination image buffer before drawing the labeled image into it. This parameter can be set to one of the following:
![]() |
|||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Description | ||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Clears the destination image buffer before placing the labeled image into it. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Does not clear the destination image buffer before placing the labeled image into it (background pixels will be unchanged). |
Header | Include mil.h. |
Library | Use mil.lib; milblob.lib. |
DLL | Requires mil.dll; milblob.dll. |