MIL_ID ModelId, | //in |
MIL_INT64 ControlType, | //in |
MIL_DOUBLE ControlValue | //in |
This function sets the specified model's angular search parameters. Also, whenever the angular search parameters of a model change, the effect of any preprocessing of the model is undone. Therefore, if the search angle is changed, call MpatPreprocModel() before searching for the model.
Specifies the identifier of the model for which to change the angular search parameter. This can be any type of model except a model created using MpatAllocRotatedModel().
Specifies the type of control to set.
By default, the ControlType M_SEARCH_ANGLE_MODE is disabled and the search is done at 0° (no rotation). When enabled, the model is searched at angle, respecting all search control parameters.
See the Parameter associations section for possible values that can be specified.
Specifies the value to which to set the control.
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 values below determine the range of angles to cover in the search operation; that is, (M_SEARCH_ANGLE - M_SEARCH_ANGLE_DELTA_NEG) to (M_SEARCH_ANGLE + M_SEARCH_ANGLE_DELTA_POS) inclusively, starting at an angle close to M_SEARCH_ANGLE.
For specifying the range of angles to
cover in the search
|
|||||||||||||||||||||||||||||||||||||||
ControlType |
Description
|
||||||||||||||||||||||||||||||||||||||
ControlValue | |||||||||||||||||||||||||||||||||||||||
M_SEARCH_ANGLE |
Sets the starting angle value for the search. INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Specifies the default value; the default value is 0.0. |
||||||||||||||||||||||||||||||||||||||
0.0 <= Value <= 360.0 |
Specifies the angle, in degrees. |
||||||||||||||||||||||||||||||||||||||
M_SEARCH_ANGLE_DELTA_NEG |
Sets the maximum negative delta for the search. INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Specifies the default value. (more details...) |
||||||||||||||||||||||||||||||||||||||
0.0 <= Value <= 180.0 |
Specifies the angle, in degrees. |
||||||||||||||||||||||||||||||||||||||
M_SEARCH_ANGLE_DELTA_POS |
Sets the maximum positive delta for the search. INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Specifies the default value. (more details...) |
||||||||||||||||||||||||||||||||||||||
0.0 <= Value <= 180.0 |
Specifies the angle, in degrees. |
||||||||||||||||||||||||||||||||||||||
M_SEARCH_ANGLE_MODE |
Sets whether an angular search is performed during the search. INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DISABLE |
Specifies to disable the angular search mode. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_ENABLE |
Specifies to enable the angular search mode. |
The values below handle the accuracy, the type of interpolation, and the tolerance of the search.
For specifying the accuracy,
interpolation, and the tolerance of the search
|
|||||||||||||||||||||||||||||||||||||||
ControlType |
Description
|
||||||||||||||||||||||||||||||||||||||
ControlValue | |||||||||||||||||||||||||||||||||||||||
M_ROTATED_MODEL_MINIMUM_SCORE |
Sets whether to use angle refinement mode, and sets the score to use for this mode. INQ (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_ACCURACY |
Sets the required precision of the resulting angle. INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Same as M_DISABLE. |
||||||||||||||||||||||||||||||||||||||
M_DISABLE |
Specifies that the angular accuracy equals the tolerance. |
||||||||||||||||||||||||||||||||||||||
0.1 <= Value <= 180.0 |
Specifies the angle accuracy, in degrees. |
||||||||||||||||||||||||||||||||||||||
M_SEARCH_ANGLE_INTERPOLATION_MODE |
Sets the type of interpolation to use. INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Same as M_NEAREST_NEIGHBOR. |
||||||||||||||||||||||||||||||||||||||
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_TOLERANCE |
Sets 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. INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Specifies the default value; the default value is 5.0. |
||||||||||||||||||||||||||||||||||||||
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. (more details...) |
Header | Include mil.h. |
Library | Use mil.lib; milpat.lib. |
DLL | Requires mil.dll; milpat.dll. |