MIL_ID ContextOrResultPatId, | //in |
MIL_INT Index, | //in |
MIL_INT64 InquireType, | //in |
void *UserVarPtr | //out |
This function inquires information about a specified Pattern Matching context, one or all of the search models contained therein, or a specified Pattern Matching result buffer. Most inquire type settings can be controlled using MpatControl(). Note that Pattern Matching result buffer values can be obtained with MpatGetResult().
The position (M_ORIGINAL_X and M_ORIGINAL_Y) can be directly compared with search results (by MpatFind()), to calculate the displacement of target images relative to the model's source image.
Specifies the Pattern Matching context identifier or Pattern Matching result buffer identifier about which to inquire information. The Pattern Matching context or result buffer must have been previously allocated on the required system using MpatAlloc() or MpatAllocResult(), respectively.
Specifies that information will be inquired about the Pattern Matching context, an individual model, or a Pattern Matching result buffer. This parameter should be set to one of the following values.
For specifying the index of a model or result
buffer
|
|||||||||||||||||||||||||||||||||||||||
Value | Description | ||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Specifies the default value. If a Pattern Matching context is specified, this parameter inquires information about model index 0. If a Pattern Matching result buffer is specified, same as M_GENERAL. (summarize)Specifies the default value. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_CONTEXT |
Inquires information about a Pattern Matching context, if one is specified. |
||||||||||||||||||||||||||||||||||||||
M_GENERAL |
Inquires information about a Pattern Matching result buffer, if one is specified. |
||||||||||||||||||||||||||||||||||||||
Value >= 0 |
Inquires information about a model, if a Pattern Matching context is specified. Set the Index parameter to the index of the required model. (summarize)Inquires information about a model, if a Pattern Matching context is specified. (more details...) |
Specifies the parameter about which to inquire.
See the Parameter associations section for possible values that can be specified.
Specifies the address in which to write the requested information. Since the MpatInquire() function also returns the requested information, you can set this parameter to M_NULL.
See the Parameter associations section for possible values that can be returned.
The tables below list possible values for the InquireType parameter and possible values returned to the UserVarPtr parameter.
For the following inquire type, the ContextOrResultPatId can specify a Pattern Matching context or result buffer and the Index parameter must be set to M_CONTEXT or M_GENERAL, respectively.
For inquiring about the system on which the model or
result buffer is allocated
|
|||||||||||||||||||||||||||||||||||||||
|
Description | ||||||||||||||||||||||||||||||||||||||
UserVarPtr - Possible values returned |
|||||||||||||||||||||||||||||||||||||||
M_OWNER_SYSTEM + |
Inquires the system on which the model or result buffer is allocated. SET SET (summarize)Inquires the system on which the model or result buffer is allocated. SET SET (more details...) |
||||||||||||||||||||||||||||||||||||||
UserVarPtr extra info |
Data type info: Data
type: address of a MIL_DOUBLE
MORE
Data type info: Data
type: address of a MIL_DOUBLE
MORE
|
||||||||||||||||||||||||||||||||||||||
M_DEFAULT_HOST |
Specifies the default Host system of the current MIL application. |
||||||||||||||||||||||||||||||||||||||
MIL system identifier |
Specifies a valid system identifier, which you have allocated using the MsysAlloc() function. |
The following inquire types and inquire values allows you to inquire about the settings for a Pattern Matching context. For inquiring about general context settings, the Index parameter must be set to M_CONTEXT.
For inquiring about the general settings of the
Pattern Matching context
|
|||||||||||||||||||||||||||||||||||||||
|
Description | ||||||||||||||||||||||||||||||||||||||
UserVarPtr - Possible values returned |
|||||||||||||||||||||||||||||||||||||||
M_CONTEXT_TYPE + |
Inquires the type of context used. (summarize)Inquires the type of context used. (more details...) |
||||||||||||||||||||||||||||||||||||||
UserVarPtr extra info |
Data type info: Data
type: address of a MIL_DOUBLE
MORE
Data type info: Data
type: address of a MIL_DOUBLE
MORE
|
||||||||||||||||||||||||||||||||||||||
M_NORMALIZED |
Specifies that all search models within the Pattern Matching context should be normalized. |
||||||||||||||||||||||||||||||||||||||
M_NUMBER_MODELS + |
Inquires the number of models in the context. (summarize)Inquires the number of models in the context. (more details...) |
||||||||||||||||||||||||||||||||||||||
UserVarPtr extra info |
Data type info: Data
type: address of a MIL_DOUBLE
MORE
Data type info: Data
type: address of a MIL_DOUBLE
MORE
|
||||||||||||||||||||||||||||||||||||||
Value >= 0 |
Specifies the number of models. |
||||||||||||||||||||||||||||||||||||||
M_PREPROCESSED + |
Inquires whether the Pattern Matching context is preprocessed. The context must be preprocessed (using MpatPreprocess()) before calling MpatFind(). After certain settings of the Pattern Matching context are changed with MpatControl(), or after a model is added or removed with MpatDefine(), this inquire type will indicate that the context is no longer in its preprocessed state. (summarize)Inquires whether the Pattern Matching context is preprocessed. (more details...) |
||||||||||||||||||||||||||||||||||||||
UserVarPtr extra info |
Data type info: Data
type: address of a MIL_DOUBLE
MORE
Data type info: Data
type: address of a MIL_DOUBLE
MORE
|
||||||||||||||||||||||||||||||||||||||
M_FALSE |
Specifies the context is not preprocessed. |
||||||||||||||||||||||||||||||||||||||
M_TRUE |
Specifies the context is preprocessed. |
||||||||||||||||||||||||||||||||||||||
M_SEARCH_MODE + |
Inquires the search mode to use when performing an MpatFind() operation. SET (summarize)Inquires the search mode to use when performing an MpatFind() operation. SET (more details...) |
||||||||||||||||||||||||||||||||||||||
UserVarPtr extra info |
Data type info: Data
type: address of a MIL_DOUBLE
MORE
Data type info: Data
type: address of a MIL_DOUBLE
MORE
|
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Same as M_FIND_ALL_MODELS. |
||||||||||||||||||||||||||||||||||||||
M_FIND_ALL_MODELS |
Specifies to search for all the specified models in the target image using their own search settings. INFO |
||||||||||||||||||||||||||||||||||||||
M_FIND_BEST_MODELS |
Specifies to search for the best occurrences of any model in the target image, using the search settings from the first model in the Pattern Matching context. INFO |
The following inquire types and inquire values allow you to inquire about the settings for an individual model in a Pattern Matching context. For inquiring about the settings of one model, the Index parameter must be set to the model index of a specific model in the Pattern Matching context.
For inquiring about an individual model in a Pattern
Matching context
|
|||||||||||||||||||||||||||||||||||||||
|
Description | ||||||||||||||||||||||||||||||||||||||
UserVarPtr - Possible values returned |
|||||||||||||||||||||||||||||||||||||||
M_ACCEPTANCE + |
Inquires the acceptance level. SET (summarize)Inquires the acceptance level. SET (more details...) |
||||||||||||||||||||||||||||||||||||||
UserVarPtr extra info |
Data type info: Data
type: address of a
MIL_DOUBLE
Data type info: Data
type: address of a
MIL_DOUBLE
|
||||||||||||||||||||||||||||||||||||||
0.0 <= Value <= 100.0 |
Specifies the acceptance level, as a percentage. |
||||||||||||||||||||||||||||||||||||||
M_ACCURACY + |
Inquires the required positional accuracy. Note that the search speed slightly affects the positional accuracy. To inquire the search speed, use M_SPEED. SET (summarize)Inquires the required positional accuracy. SET (more details...) |
||||||||||||||||||||||||||||||||||||||
UserVarPtr extra info |
Data type info: Data
type: address of a MIL_DOUBLE
MORE
Data type info: Data
type: address of a MIL_DOUBLE
MORE
|
||||||||||||||||||||||||||||||||||||||
M_HIGH |
Specifies a high accuracy (typically ± 0.05 pixels). |
||||||||||||||||||||||||||||||||||||||
M_LOW |
Specifies a low accuracy (typically ± 0.20 pixels). INFO |
||||||||||||||||||||||||||||||||||||||
M_MEDIUM |
Specifies a medium accuracy (typically ± 0.10 pixels). |
||||||||||||||||||||||||||||||||||||||
M_ALLOC_OFFSET_X + |
Inquires the X-offset of model's top-left corner relative to the top-left corner of the model's source image. (summarize)Inquires the X-offset of model's top-left corner relative to the top-left corner of the model's source image. (more details...) |
||||||||||||||||||||||||||||||||||||||
UserVarPtr extra info |
Data type info: Data
type: address of a MIL_DOUBLE
MORE
Data type info: Data
type: address of a MIL_DOUBLE
MORE
|
||||||||||||||||||||||||||||||||||||||
Value |
Specifies the X-offset, in pixels. |
||||||||||||||||||||||||||||||||||||||
M_ALLOC_OFFSET_Y + |
Inquires the Y-offset of model's top-left corner relative to the top-left corner of the model's source image. (summarize)Inquires the Y-offset of model's top-left corner relative to the top-left corner of the model's source image. (more details...) |
||||||||||||||||||||||||||||||||||||||
UserVarPtr extra info |
Data type info: Data
type: address of a MIL_DOUBLE
MORE
Data type info: Data
type: address of a MIL_DOUBLE
MORE
|
||||||||||||||||||||||||||||||||||||||
Value |
Specifies the Y-offset, in pixels. |
||||||||||||||||||||||||||||||||||||||
M_ALLOC_SIZE_BIT + |
Inquires the depth of the model image. Note that the model image is a single-band image. (summarize)Inquires the depth of the model image. (more details...) |
||||||||||||||||||||||||||||||||||||||
UserVarPtr extra info |
Data type info: Data
type: address of a MIL_DOUBLE
MORE
Data type info: Data
type: address of a MIL_DOUBLE
MORE
|
||||||||||||||||||||||||||||||||||||||
1 |
Specifies that the data depth is 1 bit. |
||||||||||||||||||||||||||||||||||||||
8 |
Specifies that the data depth is 8 bits. |
||||||||||||||||||||||||||||||||||||||
16 |
Specifies that the data depth is 16 bits. |
||||||||||||||||||||||||||||||||||||||
32 |
Specifies that the data depth is 32 bits. |
||||||||||||||||||||||||||||||||||||||
M_ALLOC_SIZE_X + |
Inquires the model's width. (summarize)Inquires the model's width. (more details...) |
||||||||||||||||||||||||||||||||||||||
UserVarPtr extra info |
Data type info: Data
type: address of a MIL_DOUBLE
MORE
Data type info: Data
type: address of a MIL_DOUBLE
MORE
|
||||||||||||||||||||||||||||||||||||||
Value |
Specifies the width, in pixels. |
||||||||||||||||||||||||||||||||||||||
M_ALLOC_SIZE_Y + |
Inquires the model's height. (summarize)Inquires the model's height. (more details...) |
||||||||||||||||||||||||||||||||||||||
UserVarPtr extra info |
Data type info: Data
type: address of a MIL_DOUBLE
MORE
Data type info: Data
type: address of a MIL_DOUBLE
MORE
|
||||||||||||||||||||||||||||||||||||||
Value |
Specifies the height, in pixels. |
||||||||||||||||||||||||||||||||||||||
M_CERTAINTY + |
Inquires the certainty level. SET (summarize)Inquires the certainty level. SET (more details...) |
||||||||||||||||||||||||||||||||||||||
UserVarPtr extra info |
Data type info: Data
type: address of a
MIL_DOUBLE
Data type info: Data
type: address of a
MIL_DOUBLE
|
||||||||||||||||||||||||||||||||||||||
0.0 <= Value <= 100.0 |
Specifies the certainty level, as a percentage. |
||||||||||||||||||||||||||||||||||||||
M_HAS_DONT_CARE_MASK + |
Inquires whether the model has an M_DONT_CARE mask applied to it. (summarize)Inquires whether the model has an M_DONT_CARE mask applied to it. (more details...) |
||||||||||||||||||||||||||||||||||||||
UserVarPtr extra info |
Data type info: Data
type: address of a MIL_DOUBLE
MORE
Data type info: Data
type: address of a MIL_DOUBLE
MORE
|
||||||||||||||||||||||||||||||||||||||
M_FALSE |
Specifies that an M_DONT_CARE mask has not been applied to the model. |
||||||||||||||||||||||||||||||||||||||
M_TRUE |
Specifies that an M_DONT_CARE mask has been applied to the model. |
||||||||||||||||||||||||||||||||||||||
M_MODEL_TYPE + |
Inquires the type of model used. (summarize)Inquires the type of model used. (more details...) |
||||||||||||||||||||||||||||||||||||||
UserVarPtr extra info |
Data type info: Data
type: address of a MIL_DOUBLE
MORE
Data type info: Data
type: address of a MIL_DOUBLE
MORE
|
||||||||||||||||||||||||||||||||||||||
M_AUTO_MODEL + |
Defines one or more models from the most-suitable distinct areas found, of the specified dimensions, in the model's source image. |
||||||||||||||||||||||||||||||||||||||
M_REGULAR_MODEL + |
Defines a regular search model, using data from the specified area of the model's source image. |
||||||||||||||||||||||||||||||||||||||
M_NUMBER + |
Inquires the maximum expected number of occurrences of a search model to find in a target image. SET (summarize)Inquires the maximum expected number of occurrences of a search model to find in a target image. SET (more details...) |
||||||||||||||||||||||||||||||||||||||
UserVarPtr extra info |
Data type info: Data
type: address of a MIL_DOUBLE
MORE
Data type info: Data
type: address of a MIL_DOUBLE
MORE
|
||||||||||||||||||||||||||||||||||||||
M_ALL |
Specifies to look for all matches that are greater than or equal to the acceptance level. |
||||||||||||||||||||||||||||||||||||||
Value >= 0 |
Specifies the maximum number of occurrences for which to look in the target image. INFO |
||||||||||||||||||||||||||||||||||||||
M_ORIGINAL_X + |
Inquires the X-offset of the model's reference position relative to the top-left corner of the model's source image (takes into account the M_REFERENCE_X setting). (summarize)Inquires the X-offset of the model's reference position relative to the top-left corner of the model's source image (takes into account the M_REFERENCE_X setting). (more details...) |
||||||||||||||||||||||||||||||||||||||
UserVarPtr extra info |
Data type info: Data
type: address of a
MIL_DOUBLE
Data type info: Data
type: address of a
MIL_DOUBLE
|
||||||||||||||||||||||||||||||||||||||
Value |
Specifies the X-offset. |
||||||||||||||||||||||||||||||||||||||
M_ORIGINAL_Y + |
Inquires the Y-offset of the model's reference position relative to the top-left corner of the model's source image (takes into account the M_REFERENCE_Y setting). (summarize)Inquires the Y-offset of the model's reference position relative to the top-left corner of the model's source image (takes into account the M_REFERENCE_Y setting). (more details...) |
||||||||||||||||||||||||||||||||||||||
UserVarPtr extra info |
Data type info: Data
type: address of a
MIL_DOUBLE
Data type info: Data
type: address of a
MIL_DOUBLE
|
||||||||||||||||||||||||||||||||||||||
Value |
Specifies the Y-offset. |
||||||||||||||||||||||||||||||||||||||
M_REFERENCE_X + |
Inquires the x-offset of the origin of the model's reference position relative to the model origin. SET (summarize)Inquires the x-offset of the origin of the model's reference position relative to the model origin. SET (more details...) |
||||||||||||||||||||||||||||||||||||||
UserVarPtr extra info |
Data type info: Data
type: address of a
MIL_DOUBLE
Data type info: Data
type: address of a
MIL_DOUBLE
|
||||||||||||||||||||||||||||||||||||||
Value |
Sets the X-offset of the model's reference position relative to the model origin, in pixels. |
||||||||||||||||||||||||||||||||||||||
M_REFERENCE_Y + |
Inquires the y-offset of the origin of the model's reference position relative to the model origin. SET (summarize)Inquires the y-offset of the origin of the model's reference position relative to the model origin. SET (more details...) |
||||||||||||||||||||||||||||||||||||||
UserVarPtr extra info |
Data type info: Data
type: address of a
MIL_DOUBLE
Data type info: Data
type: address of a
MIL_DOUBLE
|
||||||||||||||||||||||||||||||||||||||
Value |
Sets the Y-offset of the model's reference position relative to the model origin, in pixels. |
||||||||||||||||||||||||||||||||||||||
M_ROTATED_MODEL_MINIMUM_SCORE + |
Inquires whether to use angle refinement mode as well as sets the score to use for this mode. SET (summarize)Inquires whether to use angle refinement mode as well as sets the score to use for this mode. SET (more details...) |
||||||||||||||||||||||||||||||||||||||
UserVarPtr extra info |
Data type info: Data
type: address of a
MIL_DOUBLE
Data type info: Data
type: address of a
MIL_DOUBLE
|
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Same as M_DISABLE. |
||||||||||||||||||||||||||||||||||||||
M_DISABLE |
Specifies to disable the angle refinement mode. |
||||||||||||||||||||||||||||||||||||||
0.0 <= Value <= 100.0 |
Specifies the minimum score. |
||||||||||||||||||||||||||||||||||||||
M_SEARCH_ANGLE + |
Inquires whether search for occurrences of the model at the nominal search angle. SET (summarize)Inquires whether search for occurrences of the model at the nominal search angle. SET (more details...) |
||||||||||||||||||||||||||||||||||||||
UserVarPtr extra info |
Data type info:
Data type: address of a
MIL_DOUBLE
Data type info:
Data type: address of a
MIL_DOUBLE
|
||||||||||||||||||||||||||||||||||||||
0.0 <= Value <= 360.0 |
Specifies the nominal search angle, in degrees. |
||||||||||||||||||||||||||||||||||||||
M_SEARCH_ANGLE_ACCURACY + |
Inquires the required precision of the nominal angle. SET (summarize)Inquires the required precision of the nominal angle. SET (more details...) |
||||||||||||||||||||||||||||||||||||||
UserVarPtr extra info |
Data type info:
Data type: address of a
MIL_DOUBLE
Data type info:
Data type: address of a
MIL_DOUBLE
|
||||||||||||||||||||||||||||||||||||||
M_DISABLE |
Specifies that the angle accuracy equals the tolerance. |
||||||||||||||||||||||||||||||||||||||
0.0 < Value <= 180.0 |
Specifies the angle accuracy, in degrees. |
||||||||||||||||||||||||||||||||||||||
M_SEARCH_ANGLE_DELTA_NEG + |
Inquires the lower limit for the angular range, relative to the nominal search angle. SET (summarize)Inquires the lower limit for the angular range, relative to the nominal search angle. SET (more details...) |
||||||||||||||||||||||||||||||||||||||
UserVarPtr extra info |
Data type info:
Data type: address of a
MIL_DOUBLE
Data type info:
Data type: address of a
MIL_DOUBLE
|
||||||||||||||||||||||||||||||||||||||
0.0 <= Value <= 180.0 |
Specifies the angle in a clockwise rotation, in degrees. |
||||||||||||||||||||||||||||||||||||||
M_SEARCH_ANGLE_DELTA_POS + |
Inquires the upper limit for the angular range, relative to the nominal search angle. SET (summarize)Inquires the upper limit for the angular range, relative to the nominal search angle. SET (more details...) |
||||||||||||||||||||||||||||||||||||||
UserVarPtr extra info |
Data type info:
Data type: address of a
MIL_DOUBLE
Data type info:
Data type: address of a
MIL_DOUBLE
|
||||||||||||||||||||||||||||||||||||||
0.0 <= Value <= 180.0 |
Specifies the angle in a counter-clockwise rotation, in degrees. |
||||||||||||||||||||||||||||||||||||||
M_SEARCH_ANGLE_INTERPOLATION_MODE + |
Inquires the type of interpolation to use when rotating the model to perform the search at an angle. SET (summarize)Inquires the type of interpolation to use when rotating the model to perform the search at an angle. SET (more details...) |
||||||||||||||||||||||||||||||||||||||
UserVarPtr extra info |
Data type info:
Data type: address of a
MIL_DOUBLE MORE
Data type info:
Data type: address of a
MIL_DOUBLE MORE
|
||||||||||||||||||||||||||||||||||||||
M_BICUBIC |
Specifies bicubic interpolation. INFO |
||||||||||||||||||||||||||||||||||||||
M_BILINEAR |
Specifies bilinear interpolation. INFO |
||||||||||||||||||||||||||||||||||||||
M_NEAREST_NEIGHBOR |
Specifies nearest neighbor interpolation. INFO |
||||||||||||||||||||||||||||||||||||||
M_SEARCH_ANGLE_MODE + |
Inquires whether to perform calculations specific to angular-range search strategies. SET (summarize)Inquires whether to perform calculations specific to angular-range search strategies. SET (more details...) |
||||||||||||||||||||||||||||||||||||||
UserVarPtr extra info |
Data type info:
Data type: address of a
MIL_DOUBLE MORE
Data type info:
Data type: address of a
MIL_DOUBLE MORE
|
||||||||||||||||||||||||||||||||||||||
M_DISABLE |
Specifies to disable the angular search mode. |
||||||||||||||||||||||||||||||||||||||
M_ENABLE |
Specifies to enable the angular search mode. |
||||||||||||||||||||||||||||||||||||||
M_SEARCH_ANGLE_TOLERANCE + |
Inquires the full range of degrees within which the pattern in the target image can be rotated from a model at a specific angle and still meet the acceptance level. SET (summarize)Inquires the full range of degrees within which the pattern in the target image can be rotated from a model at a specific angle and still meet the acceptance level. SET (more details...) |
||||||||||||||||||||||||||||||||||||||
UserVarPtr extra info |
Data type info:
Data type: address of a
MIL_DOUBLE
Data type info:
Data type: address of a
MIL_DOUBLE
|
||||||||||||||||||||||||||||||||||||||
M_AUTO |
Specifies that the tolerance will be automatically determined based on an analysis of the model. |
||||||||||||||||||||||||||||||||||||||
0.0 < Value <= 180.0 |
Specifies the step angle, in degrees. |
||||||||||||||||||||||||||||||||||||||
M_SEARCH_OFFSET_X + |
Inquires the X-offset of the specified model's search region. SET (summarize)Inquires the X-offset of the specified model's search region. SET (more details...) |
||||||||||||||||||||||||||||||||||||||
UserVarPtr extra info |
Data type info:
Data type: address of a
MIL_DOUBLE MORE
Data type info:
Data type: address of a
MIL_DOUBLE MORE
|
||||||||||||||||||||||||||||||||||||||
Value |
Specifies the X-coordinate, relative to the pixel coordinate system, of where to start the search. INFO |
||||||||||||||||||||||||||||||||||||||
M_SEARCH_OFFSET_Y + |
Inquires the Y-offset of the specified model's search region. SET (summarize)Inquires the Y-offset of the specified model's search region. SET (more details...) |
||||||||||||||||||||||||||||||||||||||
UserVarPtr extra info |
Data type info:
Data type: address of a
MIL_DOUBLE MORE
Data type info:
Data type: address of a
MIL_DOUBLE MORE
|
||||||||||||||||||||||||||||||||||||||
Value |
Specifies the Y-coordinate, relative to the pixel coordinate system, of where to start the search. INFO |
||||||||||||||||||||||||||||||||||||||
M_SEARCH_SIZE_X + |
Inquires the width of the search region. SET (summarize)Inquires the width of the search region. SET (more details...) |
||||||||||||||||||||||||||||||||||||||
UserVarPtr extra info |
Data type info:
Data type: address of a
MIL_DOUBLE MORE
Data type info:
Data type: address of a
MIL_DOUBLE MORE
|
||||||||||||||||||||||||||||||||||||||
M_ALL |
Specifies to use the width of the full image. |
||||||||||||||||||||||||||||||||||||||
Value |
Specifies the width, in pixels. INFO |
||||||||||||||||||||||||||||||||||||||
M_SEARCH_SIZE_Y + |
Inquires the height of the search region. SET (summarize)Inquires the height of the search region. SET (more details...) |
||||||||||||||||||||||||||||||||||||||
UserVarPtr extra info |
Data type info:
Data type: address of a
MIL_DOUBLE MORE
Data type info:
Data type: address of a
MIL_DOUBLE MORE
|
||||||||||||||||||||||||||||||||||||||
M_ALL |
Specifies to use the height of the full image. |
||||||||||||||||||||||||||||||||||||||
Value |
Specifies the height, in pixels. INFO |
||||||||||||||||||||||||||||||||||||||
M_SPEED + |
Inquires the required search speed when using MpatFind(). SET (summarize)Inquires the required search speed when using MpatFind(). SET (more details...) |
||||||||||||||||||||||||||||||||||||||
UserVarPtr extra info |
Data type info:
Data type: address of a
MIL_DOUBLE MORE
Data type info:
Data type: address of a
MIL_DOUBLE MORE
|
||||||||||||||||||||||||||||||||||||||
M_HIGH |
Specifies a high search speed. |
||||||||||||||||||||||||||||||||||||||
M_LOW |
Specifies a low search speed. |
||||||||||||||||||||||||||||||||||||||
M_MEDIUM |
Specifies a medium search speed. |
||||||||||||||||||||||||||||||||||||||
M_VERY_HIGH |
Specifies a very high search speed. |
||||||||||||||||||||||||||||||||||||||
M_VERY_LOW |
Specifies a very low search speed. |
The following value might be combined with the above-mentioned values to determine whether circular overscan data was extracted with the model.
Returns whether circular overscan data was extracted
with the model
|
|||||||||||||||||||||||||||||||||||||||
|
Description | ||||||||||||||||||||||||||||||||||||||
M_CIRCULAR_OVERSCAN |
Specifies that the model is extracted from the source image with the circular overscan data. INFO |
The following inquire types and inquire values are for advanced users of the Pattern Matching module. If the default settings do not satisfy the requirements of your application, these inquire types and inquire values can be used to fine tune the model's search settings. The default settings typically provide the best results for most search operations. To gain a clearer understanding of how the search algorithm works, see the Pattern matching algorithm (for advanced users) section of Chapter 7: Pattern matching.
For these inquire types, the Index parameter must be set to the model index of a specific model in the Pattern Matching context.
For inquiring about the advanced
settings
|
|||||||||||||||||||||||||||||||||||||||
|
Description | ||||||||||||||||||||||||||||||||||||||
UserVarPtr - Possible values returned |
|||||||||||||||||||||||||||||||||||||||
M_COARSE_SEARCH_ACCEPTANCE + |
Inquires the coarse search acceptance threshold level to use for rejecting candidate model peaks at low resolution levels. SET (summarize)Inquires the coarse search acceptance threshold level to use for rejecting candidate model peaks at low resolution levels. SET (more details...) |
||||||||||||||||||||||||||||||||||||||
UserVarPtr extra info |
Data type info:
Data type: address of a
MIL_DOUBLE
Data type info:
Data type: address of a
MIL_DOUBLE
|
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Specifies to determine the coarse search acceptance threshold level automatically. |
||||||||||||||||||||||||||||||||||||||
1.0 <= Value <= 100.0 |
Specifies the coarse search acceptance threshold level. |
||||||||||||||||||||||||||||||||||||||
M_EXTRA_CANDIDATES + |
Inquires the number of extra candidates to consider. SET (summarize)Inquires the number of extra candidates to consider. SET (more details...) |
||||||||||||||||||||||||||||||||||||||
UserVarPtr extra info |
Data type info:
Data type: address of a
MIL_DOUBLE MORE
Data type info:
Data type: address of a
MIL_DOUBLE MORE
|
||||||||||||||||||||||||||||||||||||||
Value >= 0 |
Specifies the number of extra candidates. INFO |
||||||||||||||||||||||||||||||||||||||
M_FAST_FIND + |
Inquires whether to use fast peak finding. SET (summarize)Inquires whether to use fast peak finding. SET (more details...) |
||||||||||||||||||||||||||||||||||||||
UserVarPtr extra info |
Data type info:
Data type: address of a
MIL_DOUBLE MORE
Data type info:
Data type: address of a
MIL_DOUBLE MORE
|
||||||||||||||||||||||||||||||||||||||
M_DISABLE |
Specifies not to use fast peak finding. INFO |
||||||||||||||||||||||||||||||||||||||
M_ENABLE |
Specifies to use fast peak finding. INFO |
||||||||||||||||||||||||||||||||||||||
M_FIRST_LEVEL + |
Inquires the resolution level for the initial stage (lowest resolution) of the search. SET (summarize)Inquires the resolution level for the initial stage (lowest resolution) of the search. SET (more details...) |
||||||||||||||||||||||||||||||||||||||
UserVarPtr extra info |
Data type info:
Data type: address of a
MIL_DOUBLE MORE
Data type info:
Data type: address of a
MIL_DOUBLE MORE
|
||||||||||||||||||||||||||||||||||||||
0 <= Value <= MaxLevel |
Specifies the first level, where MaxLevel is the maximum possible level. INFO |
||||||||||||||||||||||||||||||||||||||
M_LAST_LEVEL + |
Inquires the resolution level for the final stage (highest resolution) of the search. SET (summarize)Inquires the resolution level for the final stage (highest resolution) of the search. SET (more details...) |
||||||||||||||||||||||||||||||||||||||
UserVarPtr extra info |
Data type info:
Data type: address of a
MIL_DOUBLE MORE
Data type info:
Data type: address of a
MIL_DOUBLE MORE
|
||||||||||||||||||||||||||||||||||||||
0 <= Value <= MaxLevel |
Specifies the last level, where MaxLevel is the maximum possible level. INFO |
||||||||||||||||||||||||||||||||||||||
M_MAX_INITIAL_PEAKS + |
Inquires the maximum number of returned peaks after an initial search at the first level for occurrences of multiple models, or a single model with circular overscan data (that is, M_AUTO_MODEL or M_REGULAR_MODEL with M_CIRCULAR_OVERSCAN). SET (summarize)Inquires the maximum number of returned peaks after an initial search at the first level for occurrences of multiple models, or a single model with circular overscan data (that is, M_AUTO_MODEL or M_REGULAR_MODEL with M_CIRCULAR_OVERSCAN). SET (more details...) |
||||||||||||||||||||||||||||||||||||||
UserVarPtr extra info |
Data type info:
Data type: address of a
MIL_DOUBLE MORE
Data type info:
Data type: address of a
MIL_DOUBLE MORE
|
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Specifies to limit the returned number of peaks for optimal performance. |
||||||||||||||||||||||||||||||||||||||
M_ALL |
Specifies all occurrences that pass the model acceptance threshold should be returned. INFO |
||||||||||||||||||||||||||||||||||||||
M_MIN_SEPARATION_X + |
Inquires the minimum separation (in X) between two model occurrences in order for them to be considered distinct. SET (summarize)Inquires the minimum separation (in X) between two model occurrences in order for them to be considered distinct. SET (more details...) |
||||||||||||||||||||||||||||||||||||||
UserVarPtr extra info |
Data type info:
Data type: address of a
MIL_DOUBLE MORE
Data type info:
Data type: address of a
MIL_DOUBLE MORE
|
||||||||||||||||||||||||||||||||||||||
1.0 <= Value <= 100.0 |
Specifies the minimum separation. |
||||||||||||||||||||||||||||||||||||||
M_MIN_SEPARATION_Y + |
Inquires the minimum separation (in Y) between two model occurrences in order for them to be considered distinct. SET (summarize)Inquires the minimum separation (in Y) between two model occurrences in order for them to be considered distinct. SET (more details...) |
||||||||||||||||||||||||||||||||||||||
UserVarPtr extra info |
Data type info:
Data type: address of a
MIL_DOUBLE MORE
Data type info:
Data type: address of a
MIL_DOUBLE MORE
|
||||||||||||||||||||||||||||||||||||||
1.0 <= Value <= 100.0 |
Specifies the minimum separation. |
||||||||||||||||||||||||||||||||||||||
M_MODEL_MAX_LEVEL + |
Inquires the maximum search level possible for the model. (summarize)Inquires the maximum search level possible for the model. (more details...) |
||||||||||||||||||||||||||||||||||||||
UserVarPtr extra info |
Data type info:
Data type: address of a
MIL_DOUBLE MORE
Data type info:
Data type: address of a
MIL_DOUBLE MORE
|
||||||||||||||||||||||||||||||||||||||
Value >= 7 |
Specifies the maximum search level possible for the model. |
||||||||||||||||||||||||||||||||||||||
M_MODEL_STEP + |
Inquires whether all or every second pixel in the model is used in the correlation during the high resolution stage of the search. SET (summarize)Inquires whether all or every second pixel in the model is used in the correlation during the high resolution stage of the search. SET (more details...) |
||||||||||||||||||||||||||||||||||||||
UserVarPtr extra info |
Data type info:
Data type: address of a
MIL_DOUBLE MORE
Data type info:
Data type: address of a
MIL_DOUBLE MORE
|
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Specifies to automatically establish the model step. |
||||||||||||||||||||||||||||||||||||||
1 |
Specifies to use all model pixels. |
||||||||||||||||||||||||||||||||||||||
2 |
Specifies to use every second model pixel (in both the X and Y directions). INFO |
||||||||||||||||||||||||||||||||||||||
M_PROC_FIRST_LEVEL + |
Inquires the default resolution level for the initial stage (lowest resolution) of the search. (summarize)Inquires the default resolution level for the initial stage (lowest resolution) of the search. (more details...) |
||||||||||||||||||||||||||||||||||||||
UserVarPtr extra info |
Data type info:
Data type: address of a
MIL_DOUBLE MORE
Data type info:
Data type: address of a
MIL_DOUBLE MORE
|
||||||||||||||||||||||||||||||||||||||
0 <= Value <= MaxLevel |
Specifies the lowest resolution level, where MaxLevel is the maximum level. To establish the maximum level, use M_MODEL_MAX_LEVEL. (summarize)Specifies the lowest resolution level, where MaxLevel is the maximum level. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_PROC_LAST_LEVEL + |
Inquires the highest level for the final stage (highest resolution) of the search. (summarize)Inquires the highest level for the final stage (highest resolution) of the search. (more details...) |
||||||||||||||||||||||||||||||||||||||
UserVarPtr extra info |
Data type info:
Data type: address of a
MIL_DOUBLE MORE
Data type info:
Data type: address of a
MIL_DOUBLE MORE
|
||||||||||||||||||||||||||||||||||||||
0 <= Value <= MaxLevel |
Specifies the lowest resolution level, where MaxLevel is the maximum level. To establish the maximum level, use M_MODEL_MAX_LEVEL. (summarize)Specifies the lowest resolution level, where MaxLevel is the maximum level. (more details...) |
For a result buffer identifier, the InquireType parameter can be set to one of the values below. For inquiring about the settings of a Pattern Matching result buffer, the Index parameter must be set to M_GENERAL.
For inquiring about the result buffer
|
|||||||||||||||||||||||||||||||||||||||
|
Description | ||||||||||||||||||||||||||||||||||||||
UserVarPtr - Possible values returned |
|||||||||||||||||||||||||||||||||||||||
M_RESULT_OUTPUT_UNITS + |
Inquires whether to return results in pixels or world units. SET (summarize)Inquires whether to return results in pixels or world units. SET (more details...) |
||||||||||||||||||||||||||||||||||||||
UserVarPtr extra info |
Data type info:
Data type: address of a
MIL_DOUBLE MORE
Data type info:
Data type: address of a
MIL_DOUBLE MORE
|
||||||||||||||||||||||||||||||||||||||
M_ACCORDING_TO_CALIBRATION |
Specifies that results are returned in world units if the result was calculated on an image associated with a camera calibration context; otherwise, it specifies that results are returned in pixel units. |
||||||||||||||||||||||||||||||||||||||
M_PIXEL |
Specifies that results are returned in pixel units, with respect to the pixel coordinate system. |
||||||||||||||||||||||||||||||||||||||
M_WORLD |
Specifies that results are returned in world units, with respect to the relative coordinate system. INFO |
||||||||||||||||||||||||||||||||||||||
M_SAVE_SUMS + |
Inquires whether to save the values of the sums used to compute the normalized correlation result for each model occurrence. SET (summarize)Inquires whether to save the values of the sums used to compute the normalized correlation result for each model occurrence. SET (more details...) |
||||||||||||||||||||||||||||||||||||||
UserVarPtr extra info |
Data type info:
Data type: address of a
MIL_DOUBLE MORE
Data type info:
Data type: address of a
MIL_DOUBLE MORE
|
||||||||||||||||||||||||||||||||||||||
M_DISABLE |
Specifies that the sums are not saved. |
||||||||||||||||||||||||||||||||||||||
M_ENABLE |
Specifies that the sums are saved. |
||||||||||||||||||||||||||||||||||||||
M_TARGET_CACHING + |
Inquires whether the pyramidal representation of the target buffer is kept in the result buffer or generated each time MpatFind() is called. SET (summarize)Inquires whether the pyramidal representation of the target buffer is kept in the result buffer or generated each time MpatFind() is called. SET (more details...) |
||||||||||||||||||||||||||||||||||||||
UserVarPtr extra info |
Data type info:
Data type: address of a
MIL_DOUBLE MORE
Data type info:
Data type: address of a
MIL_DOUBLE MORE
|
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Same as M_ENABLE. |
||||||||||||||||||||||||||||||||||||||
M_DISABLE |
Specifies that the pyramidal representation of the target buffer is generated each time MpatFind() is called. |
||||||||||||||||||||||||||||||||||||||
M_ENABLE |
Specifies that the pyramidal representation of the target buffer is kept in the result buffer. INFO |
You can add one of the following values to the above-mentioned values to cast the requested information to the required data type.
For casting information to the required data
type.
|
|||||||||||||||||||||||||||||||||||||||
InquireType | Description | ||||||||||||||||||||||||||||||||||||||
UserVarPtr - Possible values returned |
|||||||||||||||||||||||||||||||||||||||
M_TYPE_MIL_DOUBLE |
Casts the requested information to a MIL_DOUBLE. (summarize)Casts the requested information to a MIL_DOUBLE. (more details...) |
||||||||||||||||||||||||||||||||||||||
UserVarPtr extra info |
Data type info:
Data type: address of a
MIL_DOUBLE
Data type info:
Data type: address of a
MIL_DOUBLE
|
||||||||||||||||||||||||||||||||||||||
M_TYPE_MIL_ID |
Casts the requested information to a MIL_ID. (summarize)Casts the requested information to a MIL_ID. (more details...) |
||||||||||||||||||||||||||||||||||||||
UserVarPtr extra info |
Data type info:
Data type: address of a
MIL_ID
Data type info:
Data type: address of a
MIL_ID
|
||||||||||||||||||||||||||||||||||||||
M_TYPE_MIL_INT |
Casts the requested information to a MIL_INT. (summarize)Casts the requested information to a MIL_INT. (more details...) |
||||||||||||||||||||||||||||||||||||||
UserVarPtr extra info |
Data type info:
Data type: address of a
MIL_INT
Data type info:
Data type: address of a
MIL_INT
|
||||||||||||||||||||||||||||||||||||||
M_TYPE_MIL_INT32 |
Casts the requested information to a MIL_INT32. (summarize)Casts the requested information to a MIL_INT32. (more details...) |
||||||||||||||||||||||||||||||||||||||
UserVarPtr extra info |
Data type info:
Data type: address of a
MIL_INT32
Data type info:
Data type: address of a
MIL_INT32
|
||||||||||||||||||||||||||||||||||||||
M_TYPE_MIL_INT64 |
Casts the requested information to a MIL_INT64. (summarize)Casts the requested information to a MIL_INT64. (more details...) |
||||||||||||||||||||||||||||||||||||||
UserVarPtr extra info |
Data type info:
Data type: address of a
MIL_INT64
Data type info:
Data type: address of a
MIL_INT64
|
Header | Include mil.h. |
Library | Use mil.lib; milpat.lib. |
DLL | Requires mil.dll; milpat.dll. |