| Customize Help
| Save Settings

MblobGetLabel



Function Map
Synopsis
Get the label value of a blob at a specified position.
Syntax
MIL_INT MblobGetLabel(
MIL_ID ResultBlobId, //in
MIL_INT XPos, //in
MIL_INT YPos, //in
MIL_INT *LabelVarPtr //out
)
Description

This function gets the label value of a specified blob. Label values are used, for example, to obtain calculation results for single blobs. Blob label values must have been generated by calling MblobCalculate().

Note that this function reference has not been updated for a MIL system added during a MIL update. Refer to the MIL system's release note to see which MIL system’s documentation you should use in its place and any possible differences.
Parameters
This function is not supported on the selected boards.
This function reference has not been updated for the selected MIL system. To show the content of this page, choose a second MIL system; refer to the MIL system's release note to see which MIL system’s documentation to choose and any possible differences.
Parameters
ResultBlobId

Specifies the identifier of the Blob Analysis result buffer where the labels are stored. Note, this function cannot obtain the label values of blobs that have been deleted from the result buffer with MblobSelect().

XPos

Specifies the X-coordinate of the blob.

YPos

Specifies the Y-coordinate of the blob.

LabelVarPtr

Specifies the address of the variable in which to write the label value. If there is no blob at the specified location, the blob has been deleted, or if the blob's XPos and YPos lie outside the original identifier image, M_NULL is returned instead of the label value. Also, since MblobGetLabel() returns the label value, you can set this parameter to M_NULL.

Return value
The returned value is the label value of the specified blob.
Compilation information
Header Include mil.h.
Library Use mil.lib; milblob.lib.
DLL Requires mil.dll; milblob.dll.