MIL_ID ContextOrResultId, | //in |
MIL_INT Index, | //in |
MIL_INT64 ControlType, | //in |
MIL_DOUBLE ControlValue | //in |
This function allows you to control a setting of a Model Finder context, one (or all) of the models contained therein, or a Model Finder result buffer. These settings control the execution of MmodFind() operations. Most of the control type settings can be inquired using MmodInquire().
In general, any value that you provide to the MIL Model Finder module (for example, position and width) must be specified in the pixel coordinate system, even if the target is calibrated. The only exception is when specifying angles (for example, M_REFERENCE_ANGLE); in these cases, you must specify the angles in the relative coordinate system if the target is calibrated.
Changing certain control type settings might require preprocessing of the Model Finder context again, using MmodPreprocess(). To know if the Model Finder context needs to be preprocessed, call MmodInquire() with the M_PREPROCESSED inquire type.
You can automatically define an image-type model that is based on specified control settings using this function with M_AUTO_DEFINE. To have specified settings taken into account during model definition, you must allocate an empty image-type model using MmodDefine() with M_AUTO_DEFINE, set the appropriate control types using MmodControl(), and then call MmodControl() with M_AUTO_DEFINE. M_AUTO_DEFINE defines a unique model by searching the model source image for unique geometric features that match the settings specified using MmodControl(). When the most suitable geometric features are found, the function automatically defines a model from those features. If none are found, no model is allocated and an error is reported. It can take several seconds to find the best model (or more for large or small images). To be useful, the model source image should be a typical target image; otherwise, the selected area for the model might never be present in the target image. For more information on defining an image-type model automatically, see the Image-type models subsection of the Defining and adding models to your Model Finder context section of Chapter 7: Geometric Model Finder.
Specifies the Model Finder context or Model Finder result buffer whose settings you want to modify. The Model Finder context or result buffer must have been previously allocated on the system using MmodAlloc() or MmodAllocResult(), respectively.
Specifies that the Model Finder context, an individual model, or a Model Finder result buffer is controlled. Set this parameter to one of the following values:
For specifying a context, model, or
result buffer
|
|||||||||||||||||||||||||||||||||||||||
Value | Description
|
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Specifies the default. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_ALL |
Applies the specified control setting to all models, if a Model Finder context is specified. |
||||||||||||||||||||||||||||||||||||||
M_CONTEXT |
Controls a general setting of a specified Model Finder context, if one is specified. |
||||||||||||||||||||||||||||||||||||||
M_GENERAL |
Controls a general setting of a Model Finder result buffer when ContextOrResultId is a result buffer. |
||||||||||||||||||||||||||||||||||||||
Value >= 0 |
Specifies the index of the individual model to control, if a Model Finder context is specified. (more details...) |
Specifies the setting to change.
See the Parameter associations section for possible values that can be specified.
Specifies the setting's new value.
All values are set in pixels, regardless of whether the model is calibrated.
See the Parameter associations section for possible values that can be specified.
The tables below list possible values for the ControlType and ControlValue parameters.
The following ControlType and corresponding ControlValue settings can be specified for both the Model Finder context (M_CONTEXT) and each individual model in the Model Finder context:
For the context and models
|
|||||||||||||||||||||||||||||||||||||||
ControlType |
Description
|
||||||||||||||||||||||||||||||||||||||
ControlValue | |||||||||||||||||||||||||||||||||||||||
M_NUMBER |
Sets the number of occurrences for which to search. INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Specifies the default value. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_ALL |
Specifies to find all occurrences. (more details...) |
||||||||||||||||||||||||||||||||||||||
Value > 0 |
Specifies the number of occurrences. (more details...) |
The following ControlType and corresponding ControlValue settings can be specified for the Model Finder context (M_CONTEXT):
For the context
|
|||||||||||||||||||||||||||||||||||||||
ControlType |
Description
|
||||||||||||||||||||||||||||||||||||||
ControlValue | |||||||||||||||||||||||||||||||||||||||
M_ACCURACY |
Sets the accuracy with which to find occurrences. INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Same as M_MEDIUM. |
||||||||||||||||||||||||||||||||||||||
M_HIGH |
Specifies high accuracy. |
||||||||||||||||||||||||||||||||||||||
M_LOW |
Specifies low accuracy. |
||||||||||||||||||||||||||||||||||||||
M_MEDIUM |
Specifies medium accuracy. |
||||||||||||||||||||||||||||||||||||||
M_ACTIVE_EDGELS |
Sets the degree to which MIL processes edgels in the target (MmodFind()) The target edgels that MIL processes are considered active. INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Specifies the default value; the default value is 100.0%. |
||||||||||||||||||||||||||||||||||||||
0.0 <= Value <= 100.0 |
Specifies the degree to which MIL processes target edgels, in percent. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_ASPECT_RATIO |
Sets the nominal search aspect ratio for the target. INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Specifies the default value; the default value is 1.0. |
||||||||||||||||||||||||||||||||||||||
0.5 <= Value <= 2.0 |
Specifies the pixel width/pixel height of the target. |
||||||||||||||||||||||||||||||||||||||
M_DETAIL_LEVEL |
Sets the level of details to extract from model images and target images during edge extraction. INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Same as M_MEDIUM. |
||||||||||||||||||||||||||||||||||||||
M_HIGH |
Specifies a high level of detail. |
||||||||||||||||||||||||||||||||||||||
M_MEDIUM |
Specifies a medium level of detail. |
||||||||||||||||||||||||||||||||||||||
M_VERY_HIGH |
Specifies a very high level of detail. |
||||||||||||||||||||||||||||||||||||||
M_FIRST_LEVEL |
Sets the resolution level for the initial stage (lowest resolution) of the search. INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Same as M_AUTO. |
||||||||||||||||||||||||||||||||||||||
M_AUTO |
Specifies that the first resolution is determined automatically. |
||||||||||||||||||||||||||||||||||||||
0 <= Value <= 7 |
Specifies the resolution level. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_LAST_LEVEL |
Sets the resolution level for the final stage (the highest resolution) of the search. INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Same as M_AUTO. |
||||||||||||||||||||||||||||||||||||||
M_AUTO |
Specifies that the last resolution is determined automatically. |
||||||||||||||||||||||||||||||||||||||
0 <= Value <= 7 |
Specifies the resolution level. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_SAVE_TARGET_EDGES |
Sets whether to save the target edges in the result buffer. INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Same as M_DISABLE. |
||||||||||||||||||||||||||||||||||||||
M_DISABLE |
Specifies that target edges cannot be saved. |
||||||||||||||||||||||||||||||||||||||
M_ENABLE |
Specifies that target edges can be saved. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_SEARCH_ANGLE_RANGE |
Sets whether to perform calculations specific to angular-range search strategies. INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Specifies the default value. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DISABLE |
Specifies that calculations specific to angular-range search strategies are disabled. |
||||||||||||||||||||||||||||||||||||||
M_ENABLE |
Specifies that calculations specific to angular-range search strategies are enabled. |
||||||||||||||||||||||||||||||||||||||
M_SEARCH_POSITION_RANGE |
Sets whether to perform calculations specific to position-range search strategies. INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Same as M_ENABLE. |
||||||||||||||||||||||||||||||||||||||
M_DISABLE |
Specifies that calculations specific to position-range search strategies are disabled. |
||||||||||||||||||||||||||||||||||||||
M_ENABLE |
Specifies that calculations specific to position-range search strategies are enabled. |
||||||||||||||||||||||||||||||||||||||
M_SEARCH_SCALE_RANGE |
Sets whether to perform calculations specific to scale-range search strategies. INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Same as M_DISABLE. |
||||||||||||||||||||||||||||||||||||||
M_DISABLE |
Specifies that calculations specific to scale-range search strategies are disabled. |
||||||||||||||||||||||||||||||||||||||
M_ENABLE |
Specifies that calculations specific to scale-range search strategies are enabled. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_SHARED_EDGES |
Sets whether to enable sharing of edges between occurrences. INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Same as M_DISABLE. |
||||||||||||||||||||||||||||||||||||||
M_DISABLE |
Specifies to disable the sharing of edges. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_ENABLE |
Specifies to enable the sharing of edges. |
||||||||||||||||||||||||||||||||||||||
M_SMOOTHNESS |
Sets the degree of smoothness (noise reduction) applied to the model images and target images during the edge extraction. INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Specifies the default value; the default value is 50.0. |
||||||||||||||||||||||||||||||||||||||
0.0 <= Value <= 100.0 |
Specifies the smoothness value applied to the images. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_SPEED |
Sets the algorithm's search speed. INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Same as M_MEDIUM. |
||||||||||||||||||||||||||||||||||||||
M_HIGH |
Specifies a high speed. |
||||||||||||||||||||||||||||||||||||||
M_LOW |
Specifies a low speed. |
||||||||||||||||||||||||||||||||||||||
M_MEDIUM |
Specifies a medium speed. |
||||||||||||||||||||||||||||||||||||||
M_VERY_HIGH |
Specifies a very high speed. |
||||||||||||||||||||||||||||||||||||||
M_STOP_FIND |
Stops the current MmodFind() operation. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Implements the default behavior. |
||||||||||||||||||||||||||||||||||||||
M_TARGET_CACHING |
Sets whether target caching is enabled. INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Same as M_DISABLE. |
||||||||||||||||||||||||||||||||||||||
M_DISABLE |
Specifies to disable target caching. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_ENABLE |
Specifies to enable target caching in the result. |
||||||||||||||||||||||||||||||||||||||
M_TIMEOUT |
Sets the maximum search time for MmodFind(), in msec. INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Specifies the default value; the default value is 2000.0 msec. |
||||||||||||||||||||||||||||||||||||||
M_DISABLE |
Specifies an infinite amount of search time. |
||||||||||||||||||||||||||||||||||||||
Value >= 0 |
Specifies the maximum search time, in msecs. |
The following ControlType and corresponding ControlValue settings can be specified for each individual model or all models in the Model Finder context:
For one or all models
|
|||||||||||||||||||||||||||||||||||||||
ControlType |
Description
|
||||||||||||||||||||||||||||||||||||||
ControlValue | |||||||||||||||||||||||||||||||||||||||
M_ACCEPTANCE |
Sets the acceptance level for the score. INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Specifies the default value; the default value is 60.0%. |
||||||||||||||||||||||||||||||||||||||
0.0 <= Value <= 100.0 |
Specifies an acceptable score, in percent. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_ACCEPTANCE_TARGET |
Sets the acceptance level for the target score. INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Specifies the default value; the default value is 0.0%. |
||||||||||||||||||||||||||||||||||||||
0.0 <= Value <= 100.0 |
Specifies an acceptable target score, in percent. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_ANGLE |
Sets the nominal search angle, relative to the model reference axis angle. INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Specifies the default value; the default value is 0.0°. |
||||||||||||||||||||||||||||||||||||||
0.0 <= Value <= 360.0 |
Specifies the nominal search angle, in degrees. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_ANGLE_DELTA_NEG |
Sets the lower limit of the angular range, relative to the nominal search angle (M_ANGLE). INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Specifies the default value; the default value is 180.0°. |
||||||||||||||||||||||||||||||||||||||
0.0 <= Value <= 180.0 |
Specifies the lower limit of the angular range, in degrees. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_ANGLE_DELTA_POS |
Sets the upper limit of the angular range, relative to the nominal search angle (M_ANGLE). INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Specifies the default value; the default value is 180.0°. |
||||||||||||||||||||||||||||||||||||||
0.0 <= Value <= 180.0 |
Specifies the upper limit of the angular range, in degrees. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_ASSOCIATED_CALIBRATION |
Associates the specified calibration context with the specified model. INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Same as M_NULL. |
||||||||||||||||||||||||||||||||||||||
M_NULL |
Removes the association between the model and a calibration context. |
||||||||||||||||||||||||||||||||||||||
MIL Calibration context identifier |
Specifies the calibration context to associate with the model. |
||||||||||||||||||||||||||||||||||||||
M_AUTO_DEFINE |
Defines a unique model from a source image, automatically. (more details...) |
||||||||||||||||||||||||||||||||||||||
Source image identifier |
Specifies the identifier of the image buffer (model source image) from which to extract the model. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_BOX_MARGIN_BOTTOM |
Sets a margin at the bottom of the bounding box of the model's active edges. INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Specifies the default value; the default value is 10.0% of the height of the bounding box of the model's active edges. |
||||||||||||||||||||||||||||||||||||||
Value >= 0.0 |
Specifies the margin, in the user-defined units for the model. |
||||||||||||||||||||||||||||||||||||||
M_BOX_MARGIN_LEFT |
Sets a margin at the left side of the bounding box of the model's active edges. INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Specifies the default value; the default value is 10.0% of the width of the bounding box of the model's active edges. |
||||||||||||||||||||||||||||||||||||||
Value >= 0.0 |
Specifies the margin, in the user-defined units for the model. |
||||||||||||||||||||||||||||||||||||||
M_BOX_MARGIN_RIGHT |
Sets a margin at the right side of the bounding box of the model's active edges. INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Specifies the default value; the default value is 10.0% of the width of the bounding box of the model's active edges. |
||||||||||||||||||||||||||||||||||||||
Value >= 0.0 |
Specifies the margin, in the user-defined units for the model. |
||||||||||||||||||||||||||||||||||||||
M_BOX_MARGIN_TOP |
Sets a margin at the top of the bounding box of the model's active edges. INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Specifies the default value; the default value is 10.0% of the height of the bounding box of the model's active edges. |
||||||||||||||||||||||||||||||||||||||
Value >= 0.0 |
Specifies the margin, in the user-defined units for the model. |
||||||||||||||||||||||||||||||||||||||
M_CAD_Y_AXIS |
Sets the direction of the Y-axis for a model of type M_DXF_FILE. INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Specifies the default value. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_FLIP |
Specifies to flip the Y-axis for the model so that the Y-axis is positive going down. |
||||||||||||||||||||||||||||||||||||||
M_NO_FLIP |
Specifies not to flip the Y-axis for the model. |
||||||||||||||||||||||||||||||||||||||
M_CERTAINTY |
Sets the certainty level for the score, as a percentage. INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Specifies the default value; the default value is 90.0%. |
||||||||||||||||||||||||||||||||||||||
0.0 <= Value <= 100.0 |
Specifies the certainty level for the score, in percent. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_CERTAINTY_TARGET |
Sets the certainty level for the target score. INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Specifies the default value; the default value is 0.0%. |
||||||||||||||||||||||||||||||||||||||
0.0 <= Value <= 100.0 |
Specifies the certainty level for the target score, in percent. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_CORNER_RADIUS |
Sets the radius used to round all the corners of predefined-shaped models that have corners. INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Specifies the default value; the default value is 0.0. |
||||||||||||||||||||||||||||||||||||||
Value >= 0.0 |
Specifies the radius, in the user-defined units for the model. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_FIT_ERROR_WEIGHTING_FACTOR |
Sets the fit error weighting factor. INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Specifies the default value. (more details...) |
||||||||||||||||||||||||||||||||||||||
0.0 <= Value <= 100.0 |
Specifies the fit error weighting factor, in percent. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_MIN_SEPARATION_ANGLE |
Sets the minimum angular separation required for two occurrences to be considered two distinct matches (two separate occurrences). INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Specifies the default value; the default value is 10.0 degrees. |
||||||||||||||||||||||||||||||||||||||
M_DISABLE |
Disables the minimum angle separation criteria. (more details...) |
||||||||||||||||||||||||||||||||||||||
0.0 < Value <= 180.0 |
Specifies the minimum angular separation required, in degrees. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_MIN_SEPARATION_SCALE |
Sets the minimum separation required in scale for two occurrences to be considered distinct matches (two separate occurrences). INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Specifies the default value; the default value is 1.1. |
||||||||||||||||||||||||||||||||||||||
M_DISABLE |
Specifies to disable the minimum scale separation criteria. (more details...) |
||||||||||||||||||||||||||||||||||||||
1.0 < Value <= 4.0 |
Specifies the criteria for minimum separation in scale. |
||||||||||||||||||||||||||||||||||||||
M_MIN_SEPARATION_X |
Sets the minimum separation required along the X-axis for two occurrences to be considered distinct matches (two separate occurrences). INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Specifies the default value; the default value is 10.0%. |
||||||||||||||||||||||||||||||||||||||
M_DISABLE |
Specifies to disable the minimum separation in X criteria. (more details...) |
||||||||||||||||||||||||||||||||||||||
Value |
Specifies the minimum separation as a percentage of the model's width at M_SCALE. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_MIN_SEPARATION_Y |
Sets the minimum separation required along the Y-axis for two occurrences to be considered distinct matches (two separate occurrences). INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Specifies the default value; the default value is 10.0%. |
||||||||||||||||||||||||||||||||||||||
M_DISABLE |
Specifies to disable the minimum separation in Y criteria. (more details...) |
||||||||||||||||||||||||||||||||||||||
Value |
Specifies the minimum separation as a percentage of the model's height at M_SCALE. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_PIXEL_SCALE |
Sets the pixel scale of the model, if it is a synthetic model. INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Specifies the default value of the pixel scale. (more details...) |
||||||||||||||||||||||||||||||||||||||
Value > 0.0 |
Specifies the pixel scale. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_POLARITY |
Sets the expected polarity of occurrences, compared to that of the model. INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Specifies the default value. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_ANY |
Specifies that the occurrences can be a mixture of polarities. |
||||||||||||||||||||||||||||||||||||||
M_REVERSE |
Specifies that the polarity of occurrences is the reverse of that of the model. |
||||||||||||||||||||||||||||||||||||||
M_SAME |
Specifies that the polarity of occurrences is the same as that of the model. |
||||||||||||||||||||||||||||||||||||||
M_SAME_OR_REVERSE |
Specifies that the polarity of occurrences can be either the same or the reverse of that of the model. |
||||||||||||||||||||||||||||||||||||||
M_POSITION_DELTA_NEG_X |
Sets the valid position range in the negative X-direction, relative to the nominal position (M_POSITION_X and M_POSITION_Y). INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Specifies the default value; the default value is 0.0. |
||||||||||||||||||||||||||||||||||||||
M_INFINITE |
Specifies the position range as the entire image plane in the negative X-direction. (more details...) |
||||||||||||||||||||||||||||||||||||||
Value >= 0.0 |
Specifies the position range's negative X-offset, in pixels, and can be specified with subpixel accuracy; for an M_SHAPE_CIRCLE type of Model Finder context, the value is specified relative to the target's coordinate system. |
||||||||||||||||||||||||||||||||||||||
M_POSITION_DELTA_NEG_Y |
Sets the valid position range in the negative Y-direction, relative to the nominal position (M_POSITION_X and M_POSITION_Y). INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Specifies the default value; the default value is 0.0. |
||||||||||||||||||||||||||||||||||||||
M_INFINITE |
Specifies the position range as the entire image plane in the negative Y-direction. (more details...) |
||||||||||||||||||||||||||||||||||||||
Value >= 0.0 |
Specifies the position range's negative Y-offset, in pixels, and can be specified with subpixel accuracy; for an M_SHAPE_CIRCLE type of Model Finder context, the value is specified relative to the target's coordinate system. |
||||||||||||||||||||||||||||||||||||||
M_POSITION_DELTA_POS_X |
Sets the valid position range in the positive X-direction, relative to the nominal position (M_POSITION_X and M_POSITION_Y). INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Same as M_INFINITE. |
||||||||||||||||||||||||||||||||||||||
M_INFINITE |
Specifies the position range as the entire image plane in the positive X-direction. (more details...) |
||||||||||||||||||||||||||||||||||||||
Value >= 0.0 |
Specifies the position range's positive X-offset, in pixels, and can be specified with subpixel accuracy; for an M_SHAPE_CIRCLE type of Model Finder context, the value is specified relative to the target's coordinate system. |
||||||||||||||||||||||||||||||||||||||
M_POSITION_DELTA_POS_Y |
Sets the valid position range in the positive Y-direction, relative to the nominal position (M_POSITION_X and M_POSITION_Y). INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Same as M_INFINITE. |
||||||||||||||||||||||||||||||||||||||
M_INFINITE |
Specifies the position range as the entire image plane in the positive Y-direction. (more details...) |
||||||||||||||||||||||||||||||||||||||
Value >= 0.0 |
Specifies the position range's positive Y-offset, in pixels, and can be specified with subpixel accuracy; for an M_SHAPE_CIRCLE type of Model Finder context, the value is specified relative to the target's coordinate system. |
||||||||||||||||||||||||||||||||||||||
M_POSITION_X |
Sets the nominal search position for the X-coordinate. INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Same as M_ALL. |
||||||||||||||||||||||||||||||||||||||
M_ALL |
Specifies all X-coordinates. |
||||||||||||||||||||||||||||||||||||||
Value |
Specifies the nominal search position, in pixels, and can be specified with subpixel accuracy; for an M_SHAPE_CIRCLE type of Model Finder context, the value is specified relative to the target's coordinate system. |
||||||||||||||||||||||||||||||||||||||
M_POSITION_Y |
Sets the nominal search position for the Y-coordinate. INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Same as M_ALL. |
||||||||||||||||||||||||||||||||||||||
M_ALL |
Specifies all Y-coordinates. |
||||||||||||||||||||||||||||||||||||||
Value |
Specifies the nominal search position, in pixels, and can be specified with subpixel accuracy; for an M_SHAPE_CIRCLE type of Model Finder context, the value is specified relative to the target's coordinate system. |
||||||||||||||||||||||||||||||||||||||
M_REFERENCE_ANGLE |
Sets the angle of the reference axis for the model. INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Specifies the default value; the default value is 0.0 degrees. |
||||||||||||||||||||||||||||||||||||||
0.0 <= Value <= 360.0 |
Specifies the angle, in degrees. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_REFERENCE_X |
Sets the X-offset of the origin of the model's reference axis, relative to the model origin. INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Specifies that the default X-offset will be used. (more details...) |
||||||||||||||||||||||||||||||||||||||
Value |
Specifies the X-offset value. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_REFERENCE_Y |
Sets the Y-offset of the origin of the model's reference axis, relative to the model origin. INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Specifies that the default Y-offset will be used. (more details...) |
||||||||||||||||||||||||||||||||||||||
Value |
Specifies the Y-offset value. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_SAGITTA_TOLERANCE |
Sets the tolerance for finding deformed circles (allowable radii variation) for a model defined in an M_SHAPE_CIRCLE type of Model Finder context, given the other specified Model Finder constraints. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Specifies the default value; the default value is 25.0%. |
||||||||||||||||||||||||||||||||||||||
0.0 <= Value <= 100.0 |
Specifies the tolerance as a percentage of the allowable radii variation given the other Model Finder constraints. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_SCALE |
Sets the nominal search scale. INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Specifies the default value; the default value is 1.0. |
||||||||||||||||||||||||||||||||||||||
Value |
Specifies the value of the nominal search scale. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_SCALE_MAX_FACTOR |
Sets the factor used to determine the upper limit (maximum permitted scale) of the scale range. INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Specifies the default value; the default value is 2.0. |
||||||||||||||||||||||||||||||||||||||
M_INFINITE |
Specifies that the upper limit of the scale range is infinite. (more details...) |
||||||||||||||||||||||||||||||||||||||
1.0 <= Value <= 2.0 |
Specifies the factor that determines the maximum scale of the occurrence for a model in an M_GEOMETRIC or M_GEOMETRIC_CONTROLLED type of Model Finder context. |
||||||||||||||||||||||||||||||||||||||
Value >= 1.0 |
Specifies the factor that determines the maximum scale of the occurrence for a model in an M_SHAPE_CIRCLE type of Model Finder context. |
||||||||||||||||||||||||||||||||||||||
M_SCALE_MIN_FACTOR |
Sets the factor used to determine the lower limit (minimum permitted scale) of the scale range. INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Specifies the default value; the default value is 0.5. |
||||||||||||||||||||||||||||||||||||||
0.0 < Value <= 1.0 |
Specifies the factor that determines the minimum scale of the occurrence for a model in an M_SHAPE_CIRCLE type of Model Finder context. |
||||||||||||||||||||||||||||||||||||||
0.5 <= Value <= 1.0 |
Specifies the factor that determines the minimum scale of the occurrence for a model in an M_GEOMETRIC or M_GEOMETRIC_CONTROLLED type of Model Finder context. |
||||||||||||||||||||||||||||||||||||||
M_SEARCH_POSITION_FROM_GRAPHIC_LIST |
Specifies to use a search region defined from a graphics list. INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
MIL graphics list identifier |
Specifies the identifier of the graphics list containing the rectangular region that will be used as the model search region. |
||||||||||||||||||||||||||||||||||||||
M_USER_LABEL |
Sets a unique user-defined label for the specified model. INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Same as M_NO_LABEL. |
||||||||||||||||||||||||||||||||||||||
M_NO_LABEL |
Specifies that no user label is associated with the model. |
||||||||||||||||||||||||||||||||||||||
Value |
Specifies the user label of the model. (more details...) |
The following ControlType and corresponding ControlValue settings can be specified for a Model Finder result buffer:
For a result buffer
|
|||||||||||||||||||||||||||||||||||||||
ControlType |
Description
|
||||||||||||||||||||||||||||||||||||||
ControlValue | |||||||||||||||||||||||||||||||||||||||
M_MOD_DEFINE_COMPATIBLE |
Saves all the necessary information in the result buffer to be able to define a model from a result occurrence (MmodDefine() with M_MOD_RESULT). INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Same as M_DISABLE. |
||||||||||||||||||||||||||||||||||||||
M_DISABLE |
Specifies not to save any information. |
||||||||||||||||||||||||||||||||||||||
M_ENABLE |
Specifies to save all the necessary information. |
||||||||||||||||||||||||||||||||||||||
M_RESULT_OUTPUT_UNITS |
Sets whether to return results in pixels or world units. INQ (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. (more details...) |
void MmodControlInt64
(MIL_ID ContextOrResultId,
MIL_INT Index,
MIL_INT64 ControlType,
MIL_INT64 ControlValue)
Parameters
ContextOrResultId See ContextOrResultId of the main function for a description. Index See Index of the main function for a description. ControlType See ControlType of the main function for a description. ControlValue See ControlValue of the main function for a description. |
Header | Include mil.h. |
Library | Use mil.lib; milmod.lib. |
DLL | Requires mil.dll; milmod.dll. |