MpatPreprocModel()函数

Synopsis

Preprocess a pattern matching model.

Format

void MpatPreprocModel(TypicalImageBufId, ModelId, Mode)

MIL_ID TypicalImageBufId; Typical background image buffer identifier (optional)
MIL_ID ModelId; Model identifier
long Mode; Preprocessing mode

This function preprocesses the specified model. It trains the system to search for the model in the most efficient manner (optionally within a specified typical image). The procedure is potentially quite lengthy (up to several seconds), and it can be skipped if search speed is not too important.

This function need be executed only once for a given model, since, upon saving, preprocessing changes are stored with the model. This can considerably speed-up subsequent MpatFindModel, MpatFindMultipleModel or MpatFindOrientation calls with this model.

The TypicalImageBufId parameter 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 model will always appear on such a background; otherwise, set this parameter to M_NULL. This parameter can only be given an image buffer identifier.

The ModelId parameter specifies the identifier of the model to preprocess.

The Mode parameter specifies the preprocessing mode. Set this parameter to M_DEFAULT.

Note

This function supports the use of a rotational model.

《MpatPreprocModel()函数》上有1条评论

评论已关闭。