Skip to main content

MmodPreprocess

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

Preprocess a Model Finder context.

Syntax

void MmodPreprocess(
AIL_ID ContextId, //in-out
AIL_INT64 ControlFlag //in
)

Description

This function preprocesses the specified Model Finder context. It extracts the active edges of the models contained within the Model Finder context and sets internal search settings so that future searches will be optimized for speed and robustness. The procedure is potentially quite lengthy (up to a few seconds) and increases the size of the Model Finder context significantly.

This function must be called before performing the first MmodFind search. Call this function after all search settings have been set. When you save the Model Finder context, the model's preprocessing changes are not stored with the model. Upon restoration, the model must be preprocessed again.

Note that if some of the model's search settings are changed after a call to MmodPreprocess, the model must be preprocessed again. To inquire if your model is in a preprocessed state, use MmodInquire with M_PREPROCESSED (this value must be true to perform an MmodFind search).

Parameters

ContextId (in-out, AIL_ID)

Specifies the Model Finder context of the model to preprocess. The Model Finder context must have been previously allocated on the system using MmodAlloc.

ControlFlag (in, AIL_INT64)

Specifies whether to perform or undo the preprocessing of the model context. Set this parameter to one of the following values:

For specifying whether to perform preprocessing

ValueDescription
M_DEFAULTPerforms the preprocessing of the model context.
M_RESETUndoes preprocessing.

Undoing preprocessing can be useful if you want to conserve computer memory within an application and preserve Model Finder context settings. |

Copyright © 2026 Zebra Technologies.