MIL_ID PatId, | //in |
MIL_INT64 InquireType, | //in |
void *UserVarPtr | //out |
This function returns information about the specified model or result buffer. It is useful to determine, for example, the size of a model that has been restored from disk and its position in the model's source image.
The position (M_ORIGINAL_X and M_ORIGINAL_Y) can be directly compared with search results (by MpatFindModel() or MpatFindMultipleModel()), to calculate the displacement of target images relative to the model's source image.
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 this 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 a model identifier, the InquireType parameter can be set to one of the values below.
Unless otherwise specified, the following values require that you pass the UserVarPtr parameter the address of a MIL_DOUBLE.
For a model identifier
|
|||||||||||||||||||||||||||||||||||||||
InquireType |
Description
|
||||||||||||||||||||||||||||||||||||||
UserVarPtr - Possible values returned |
|||||||||||||||||||||||||||||||||||||||
M_ACCEPTANCE_THRESHOLD + |
Inquires the minimum acceptable match score to be considered as an occurrence of the model. SET (more details...) |
||||||||||||||||||||||||||||||||||||||
Value |
Specifies the acceptance level. |
||||||||||||||||||||||||||||||||||||||
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. SET (more details...) |
||||||||||||||||||||||||||||||||||||||
Value |
Specifies the X-offset. |
||||||||||||||||||||||||||||||||||||||
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. SET (more details...) |
||||||||||||||||||||||||||||||||||||||
Value |
Specifies the Y-offset. |
||||||||||||||||||||||||||||||||||||||
M_ALLOC_SIZE_X + |
Inquires the model width. SET (more details...) |
||||||||||||||||||||||||||||||||||||||
Value |
Specifies the width. |
||||||||||||||||||||||||||||||||||||||
M_ALLOC_SIZE_Y + |
Inquires the model height. SET (more details...) |
||||||||||||||||||||||||||||||||||||||
Value |
Specifies the height. |
||||||||||||||||||||||||||||||||||||||
M_ALLOC_TYPE + |
Inquires the model type. SET (more details...) |
||||||||||||||||||||||||||||||||||||||
M_NORMALIZED + |
Specifies a model used to search for the position, match score, and angle (if angular search is enabled) of a model occurrence in a target image, using MpatFindModel() and MpatFindMultipleModel(). |
||||||||||||||||||||||||||||||||||||||
M_CENTER_X + |
Inquires the X-offset of the model's reference position relative to the top-left corner of model. SET (more details...) |
||||||||||||||||||||||||||||||||||||||
Value |
Specifies the X-offset of the model's reference position. |
||||||||||||||||||||||||||||||||||||||
M_CENTER_Y + |
Inquires the Y-offset of the model's reference position relative to the top-left corner of model. SET (more details...) |
||||||||||||||||||||||||||||||||||||||
Value |
Specifies the Y-offset of the model's reference position. |
||||||||||||||||||||||||||||||||||||||
M_CERTAINTY_THRESHOLD + |
Inquires the match score at which an occurrence is assumed, without looking for better matches elsewhere in the image. SET (more details...) |
||||||||||||||||||||||||||||||||||||||
Value |
Specifies the certainty level. |
||||||||||||||||||||||||||||||||||||||
M_COARSE_SEARCH_ACCEPTANCE + |
Inquires the minimum acceptable match score at all levels except the last level, to be considered as an occurrence of the model. SET (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Specifies to determine the coarse search acceptance threshold level automatically. |
||||||||||||||||||||||||||||||||||||||
1.0 <= Value <= 100.0 |
Specifies the coarse search acceptance threshold level. INFO |
||||||||||||||||||||||||||||||||||||||
M_EXTRA_CANDIDATES + |
Inquires the number of extra candidates to consider as possible candidates. SET (more details...) |
||||||||||||||||||||||||||||||||||||||
Value |
Specifies the number of extra candidates. INFO |
||||||||||||||||||||||||||||||||||||||
M_FAST_FIND + |
Inquires whether forcing or preventing fast peak finding is used. SET (more details...) |
||||||||||||||||||||||||||||||||||||||
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 of the search. SET (more details...) |
||||||||||||||||||||||||||||||||||||||
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 of the search. SET (more details...) |
||||||||||||||||||||||||||||||||||||||
0 <= Value <= MaxLevel |
Specifies the last level, where MaxLevel is the maximum possible level. INFO |
||||||||||||||||||||||||||||||||||||||
M_MAX_INITIAL_PEAKS + |
Inquires the maximum number of peaks returned after a first level search for occurrences of multiple models or M_CIRCULAR_OVERSCAN type models. SET (more details...) |
||||||||||||||||||||||||||||||||||||||
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_SPACING_X + |
Inquires the minimum spacing (in X) between two models in order for them to be considered distinct. SET (more details...) |
||||||||||||||||||||||||||||||||||||||
1.0 <= Value <= 100.0 |
Specifies the minimum spacing. |
||||||||||||||||||||||||||||||||||||||
M_MIN_SPACING_Y + |
Inquires the minimum spacing (in Y) between two models in order for them to be considered distinct. SET (more details...) |
||||||||||||||||||||||||||||||||||||||
1.0 <= Value <= 100.0 |
Specifies the minimum spacing. |
||||||||||||||||||||||||||||||||||||||
M_MODEL_MAX_LEVEL + |
Inquires the maximum search level possible for the model. (more details...) |
||||||||||||||||||||||||||||||||||||||
Value >= 7 |
Specifies the maximum search level possible for the model. |
||||||||||||||||||||||||||||||||||||||
M_MODEL_STEP + |
Inquires whether all or every second model pixel is used in the high-resolution stage of the search. SET (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Specifies the model step automatically. |
||||||||||||||||||||||||||||||||||||||
1 |
Specifies all model pixels. |
||||||||||||||||||||||||||||||||||||||
2 |
Specifies every second model pixel (in both the X and Y directions). INFO |
||||||||||||||||||||||||||||||||||||||
M_NUMBER_OF_OCCURRENCES + |
Inquires the number of model occurrences for which to search in the target image. SET (more details...) |
||||||||||||||||||||||||||||||||||||||
M_ALL |
Specifies to look for all matches that are greater than or equal to the acceptance level. |
||||||||||||||||||||||||||||||||||||||
1 <= Value <= 1000 |
Specifies the maximum number of occurrences for which to look in the target image. |
||||||||||||||||||||||||||||||||||||||
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 MpatSetCenter() setting). (more details...) |
||||||||||||||||||||||||||||||||||||||
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 MpatSetCenter() setting). (more details...) |
||||||||||||||||||||||||||||||||||||||
Value |
Specifies the Y-offset. |
||||||||||||||||||||||||||||||||||||||
M_POSITION_ACCURACY + |
Inquires the search position accuracy. SET (more details...) |
||||||||||||||||||||||||||||||||||||||
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_POSITION_START_X + |
Inquires the X-coordinate of search region origin within target image. SET (more details...) |
||||||||||||||||||||||||||||||||||||||
M_ALL |
Specifies the X-coordinate of the top-left corner of the target image to allow a search of the full image. |
||||||||||||||||||||||||||||||||||||||
Value |
Specifies the X-coordinate, relative to the pixel coordinate system. |
||||||||||||||||||||||||||||||||||||||
M_POSITION_START_Y + |
Inquires the Y-coordinate of search region origin within target image. SET (more details...) |
||||||||||||||||||||||||||||||||||||||
M_ALL |
Specifies the Y-coordinate of the top-left corner of the target image to allow a search of the full image. |
||||||||||||||||||||||||||||||||||||||
Value |
Specifies the Y-coordinate, relative to the pixel coordinate system. |
||||||||||||||||||||||||||||||||||||||
M_POSITION_UNCERTAINTY_X + |
Inquires the search region width. SET (more details...) |
||||||||||||||||||||||||||||||||||||||
M_ALL |
Specifies the width of the full image. |
||||||||||||||||||||||||||||||||||||||
Value |
Specifies the width, in pixels. |
||||||||||||||||||||||||||||||||||||||
M_POSITION_UNCERTAINTY_Y + |
Inquires the search region height. SET (more details...) |
||||||||||||||||||||||||||||||||||||||
M_ALL |
Specifies the height of the full image. |
||||||||||||||||||||||||||||||||||||||
Value |
Specifies the height, in pixels. |
||||||||||||||||||||||||||||||||||||||
M_PREPROCESSED + |
Inquires whether the pattern matching model is preprocessed. (more details...) |
||||||||||||||||||||||||||||||||||||||
0 |
Specifies that the model is not preprocessed. |
||||||||||||||||||||||||||||||||||||||
1 |
Specifies that the model is preprocessed. |
||||||||||||||||||||||||||||||||||||||
M_PROC_FIRST_LEVEL + |
Inquires the default resolution level for the initial stage (lowest resolution) of the search. (more details...) |
||||||||||||||||||||||||||||||||||||||
0 <= Value <= MaxLevel |
Specifies the lowest resolution level, where MaxLevel is the maximum level. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_PROC_LAST_LEVEL + |
Inquires the default level for the final stage (highest resolution) of the search. (more details...) |
||||||||||||||||||||||||||||||||||||||
0 <= Value <= MaxLevel |
Specifies the highest resolution level, where MaxLevel is the maximum level. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_ROTATED_MODEL_MINIMUM_SCORE + |
Inquires whether angle refinement mode is used and returns its score. SET (more details...) |
||||||||||||||||||||||||||||||||||||||
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 the value of the initial search angle. SET (more details...) |
||||||||||||||||||||||||||||||||||||||
0.0 <= Value <= 360.0 |
Specifies the angle, in degrees. |
||||||||||||||||||||||||||||||||||||||
M_SEARCH_ANGLE_ACCURACY + |
Inquires the angular accuracy. SET (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DISABLE |
Specifies that the angular accuracy equals the tolerance. |
||||||||||||||||||||||||||||||||||||||
0.1 <= Value <= 180.0 |
Specifies the angle accuracy, in degrees. |
||||||||||||||||||||||||||||||||||||||
M_SEARCH_ANGLE_DELTA_NEG + |
Inquires the difference that determines the lower limit of the search angle's range. SET (more details...) |
||||||||||||||||||||||||||||||||||||||
0.0 <= Value <= 180.0 |
Specifies the angle, in degrees. |
||||||||||||||||||||||||||||||||||||||
M_SEARCH_ANGLE_DELTA_POS + |
Inquires the difference that determines the upper limit of the search angle's range. SET (more details...) |
||||||||||||||||||||||||||||||||||||||
0.0 <= Value <= 180.0 |
Specifies the angle, in degrees. |
||||||||||||||||||||||||||||||||||||||
M_SEARCH_ANGLE_INTERPOLATION_MODE + |
Inquires the interpolation mode. SET (more details...) |
||||||||||||||||||||||||||||||||||||||
M_BICUBIC |
Specifies that bicubic interpolation is used when rotating the model. |
||||||||||||||||||||||||||||||||||||||
M_BILINEAR |
Specifies that bilinear interpolation is used when rotating the model. |
||||||||||||||||||||||||||||||||||||||
M_NEAREST_NEIGHBOR |
Specifies that nearest neighbor interpolation is used when rotating the model. |
||||||||||||||||||||||||||||||||||||||
M_SEARCH_ANGLE_MODE + |
Inquires the state of the angular search mode. SET (more details...) |
||||||||||||||||||||||||||||||||||||||
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 (more details...) |
||||||||||||||||||||||||||||||||||||||
M_AUTO |
Specifies that the tolerance will be automatically determined based on an analysis of the model. |
||||||||||||||||||||||||||||||||||||||
0.1 <= Value <= 180.0 |
Specifies that the given angle is the 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. INFO |
||||||||||||||||||||||||||||||||||||||
M_SPEED + |
Inquires the model search speed. SET (more details...) |
||||||||||||||||||||||||||||||||||||||
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 value to determine whether circular overscan data was extracted with the model.
Returns whether circular overscan data
was extracted with the model
|
|||||||||||||||||||||||||||||||||||||||
Combination value | Description
|
||||||||||||||||||||||||||||||||||||||
M_CIRCULAR_OVERSCAN |
Specifies that the model is extracted from the source image with the circular overscan data. INFO |
For a result buffer identifier, the InquireType parameter can be set to one of the values below.
Unless otherwise specified, the following values require that you pass the UserVarPtr parameter the address of a MIL_DOUBLE.
For a result buffer
identifier
|
|||||||||||||||||||||||||||||||||||||||
InquireType |
Description
|
||||||||||||||||||||||||||||||||||||||
UserVarPtr - Possible values returned |
|||||||||||||||||||||||||||||||||||||||
M_NUMBER_OF_ENTRIES + |
Inquires the number of entries allocated in the result buffer. SET (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Specifies that the number of entries will be allocated dynamically to match the number of actual occurrences found at runtime. |
||||||||||||||||||||||||||||||||||||||
Value |
Specifies the number of result entries to allocate. INFO |
||||||||||||||||||||||||||||||||||||||
M_RESULT_OUTPUT_UNITS + |
Inquires whether results are returned in pixel or world units. SET (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Same as M_ACCORDING_TO_CALIBRATION. |
||||||||||||||||||||||||||||||||||||||
M_ACCORDING_TO_CALIBRATION |
Specifies that results are returned in world units if the result was calculated on an image associated with a calibration context; otherwise, 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 the values of the sums used to compute the normalized correlation function for each model occurrence are saved. SET (more details...) |
||||||||||||||||||||||||||||||||||||||
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 buffer is kept in the result buffer. SET (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Same as M_DISABLE. |
||||||||||||||||||||||||||||||||||||||
M_DISABLE |
Specifies that the pyramidal representation of the buffer is generated each time MpatFindModel() or MpatFindMultipleModel() is called. |
||||||||||||||||||||||||||||||||||||||
M_ENABLE |
Specifies that the pyramidal representation of the buffer (generated when MpatFindModel() or MpatFindMultipleModel() is called) is kept in the result buffer. INFO |
For inquiring the system on which the model or result buffer is allocated, set this parameter to the following value.
Unless otherwise specified, the following values require that you pass the UserVarPtr parameter the address of a MIL_DOUBLE.
For inquiring the system on which the
model or result buffer is allocated
|
|||||||||||||||||||||||||||||||||||||||
InquireType |
Description
|
||||||||||||||||||||||||||||||||||||||
UserVarPtr - Possible values returned |
|||||||||||||||||||||||||||||||||||||||
M_OWNER_SYSTEM + |
Inquires the system on which the model or result buffer is allocated. SET SET (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DEFAULT_HOST |
Specifies the default Host system of the current MIL application. |
||||||||||||||||||||||||||||||||||||||
MIL system identifier |
Specifies a valid system identifier, previously allocated using MsysAlloc(). |
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. (more details...) |
||||||||||||||||||||||||||||||||||||||
UserVarPtr data type info |
Data
type: MIL_DOUBLE |
||||||||||||||||||||||||||||||||||||||
M_TYPE_MIL_ID |
Casts the requested information to a MIL_ID. (more details...) |
||||||||||||||||||||||||||||||||||||||
UserVarPtr data type info |
Data
type: MIL_ID |
||||||||||||||||||||||||||||||||||||||
M_TYPE_MIL_INT |
Casts the requested information to a MIL_INT. (more details...) |
||||||||||||||||||||||||||||||||||||||
UserVarPtr data type info |
Data
type: MIL_INT |
||||||||||||||||||||||||||||||||||||||
M_TYPE_MIL_INT32 |
Casts the requested information to a MIL_INT32. (more details...) |
||||||||||||||||||||||||||||||||||||||
UserVarPtr data type info |
Data
type: MIL_INT32 |
||||||||||||||||||||||||||||||||||||||
M_TYPE_MIL_INT64 |
Casts the requested information to a MIL_INT64. (more details...) |
||||||||||||||||||||||||||||||||||||||
UserVarPtr data type info |
Data
type: MIL_INT64 |
Header | Include mil.h. |
Library | Use mil.lib; milpat.lib. |
DLL | Requires mil.dll; milpat.dll. |