Skip to main content

MblobLabel

BoardSupported
Host SystemYes
V4L2Yes
Clarity UHDYes
Concord PoENo
GenTLYes
GevIQYes
GigE VisionYes
IndioNo
Iris GTXYes
Radient eV-CLYes
Rapixo CLYes
Rapixo CoFYes
Rapixo CXPYes
USB3 VisionYes

Draw a labeled image.

Syntax

void MblobLabel(
AIL_ID ResultBlobId, //in
AIL_ID DstImageBufId, //out
AIL_INT64 ControlFlag //in
)

Description

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.

Parameters

ResultBlobId (in, AIL_ID)

Specifies the identifier of the blob analysis result buffer.

DstImageBufId (out, AIL_ID)

Specifies the identifier of the destination (labeled) image buffer. This must be a single band, 8-, 16-, or 32-bit unsigned buffer.

ControlFlag (in, AIL_INT64)

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:

For the destination image buffer

ValueDescription
M_CLEARClears the destination image buffer before placing the labeled image into it.
M_NO_CLEARDoes not clear the destination image buffer before placing the labeled image into it (background pixels will be unchanged).
Copyright © 2026 Zebra Technologies.