Skip to main content

MclassSetHookInfo

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

Set information about a classification object event.

Syntax

void MclassSetHookInfo(
AIL_ID EventId, //in
AIL_INT64 InfoType, //in
AIL_DOUBLE InfoValue //in
)

Description

This function allows you to set information about the event that caused the hook-handler function to be called. MclassSetHookInfo must only be called within the scope of a classification object hook-handler function (see MclassHookFunction).

Parameters

EventId (in, AIL_ID)

Specifies the classification object event identifier received by the hook-handler function. See MclassHookFunction for more information. The event will be of the type passed to the HookType parameter of the hook-handler function.

InfoType (in, AIL_INT64)

Specifies the type of information to set.

InfoValue (in, AIL_DOUBLE)

Specifies the required value for the type of information to set.

Parameter Associations

For a data preparation context using PREPARE_ENTRY_PRE

To set information about the event that caused the hook-handler function to be called, the InfoType and corresponding InfoValue parameter settings can be set to one of the following values. These settings are only available if the hook-handler function was called due to an M_PREPARE_ENTRY_PRE event type on a data preparation context object.


M_CENTER_X

Sets the X-coordinate of the center position in the given image.

ValueDescription
Value >= 0Specifies the center's X-coordinate.

M_CENTER_Y

Sets the Y-coordinate of the center position in the given image.

ValueDescription
Value >= 0Specifies the center's Y-coordinate.
Copyright © 2026 Zebra Technologies.