MIL_ID SysId, | //in |
MIL_INT64 ContextType, | //in |
MIL_INT64 ControlFlag, | //in |
MIL_ID *ContextPatIdPtr | //out |
This function allocates a Pattern Matching context on the specified system. A pattern matching context contains all the information necessary to perform an MpatFind() operation on a target image, including global search settings and one or more models.
Define search models and add to them to the Pattern Matching context using MpatDefine(). Note that you must add at least one model to the context.
You can adjust the Pattern Matching context settings using MpatControl(). To inquire the Pattern Matching context settings, use MpatInquire().
When the Pattern Matching context is no longer required, release its memory, using MpatFree().
Specifies the system on which to allocate the Pattern Matching context.
This parameter should be set to one of the following values:
![]() |
|||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Description | ||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies the default Host system of the current MIL application. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies a valid system identifier, which you have allocated using the MsysAlloc() function. |
Specifies the type of Pattern Matching context. The parameter must be set to the following:
![]() |
|||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Description | ||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Same as M_NORMALIZED. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies a normalized grayscale correlation (NGC) Pattern Matching context. |
Header | Include mil.h. |
Library | Use mil.lib; milpat.lib. |
DLL | Requires mil.dll; milpat.dll. |