MIL_ID BlobResId, | //in |
MIL_ID DestImageBufId, | //in |
MIL_INT64 Criterion, | //in |
MIL_INT Value | //in |
This function draws, in an image, those blobs that meet a specified fill criterion with the specified fill value.
This function is often used to remove unwanted (excluded or deleted) blobs from the identifier image (by drawing them with the background color), or to highlight included blobs in a different color. Therefore, an appropriate destination image is the blob identifier image (or a copy of it) associated with the result buffer, or another image buffer that has been cleared.
MblobCalculate() must have been called prior to using this function.
Specifies the identifier of the destination image buffer. This must be a single band, packed binary, 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.
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 which blobs to draw with the specified value.
The status of the blobs (included or excluded) is taken from the blob analysis result buffer. By default, all blobs in the result buffer are included for future operations. To change the status of a blob, use MblobSelect().
This parameter can be set to one of the following values:
For specifying which blobs to
draw
|
|||||||||||||||||||||||||||||||||||||||
Value | Description
|
||||||||||||||||||||||||||||||||||||||
M_ALL_BLOBS + |
Draws all blobs with the specified fill value. |
||||||||||||||||||||||||||||||||||||||
M_EXCLUDED_BLOBS + |
Draws all currently excluded blobs with the specified fill value. |
||||||||||||||||||||||||||||||||||||||
M_INCLUDED_BLOBS + |
Draws all currently included blobs with the specified fill value. |
You can add the following value to the above-mentioned values to set whether the blob's border should be filled.
For the Criterion parameter
|
|||||||||||||||||||||||||||||||||||||||
Combination value | Description
|
||||||||||||||||||||||||||||||||||||||
M_CONTOUR |
Specifies that only the blob's borders should be filled. (more details...) |
Header | Include mil.h. |
Library | Use mil.lib; milblob.lib. |
DLL | Requires mil.dll; milblob.dll. |