| Customize Help
| Save Settings

MpatPreprocess



Function Map
Synopsis
Preprocess a Pattern Matching context.
Syntax
void MpatPreprocess(
MIL_ID ContextPatId, //in
MIL_INT64 ControlFlag, //in
MIL_ID TypicalImageBufId //in
)
Description

This function preprocesses the specified Pattern Matching context. It trains the MIL application to search for one or more models in the most efficient manner (optionally within a specified typical image). The procedure is potentially quite lengthy (up to several seconds).

Call this function after at least one search model is added to the context and all search settings have been adjusted. When you save, the model's preprocessing changes are not stored with the model. Upon restoration, the model needs to be preprocessed.

Note that if some of the model's search settings are changed after a call to MpatPreprocess(), the model must be preprocessed again. To inquire if your model is in a preprocessed state, use MpatInquire() with M_PREPROCESSED.

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
ContextPatId

Specifies the identifier of the Pattern Matching context to preprocess.

ControlFlag

Reserved for future expansion. Set this parameter to M_DEFAULT.

TypicalImageBufId

Specifies the identifier of a typical target image. The specified typical image will be used to refine and adapt the model to search on this typical background. You should only specify an image buffer if the models will always appear on such a background; otherwise, set this parameter to M_NULL.

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.

Compilation information
Header Include mil.h.
Library Use mil.lib; milpat.lib.
DLL Requires mil.dll; milpat.dll.
UNSIGNED PROC NONE