| MIL 10 Reference
| Customize Help
| Save Settings

MpatSetAccuracy



See also
Availability
Not available in MIL-Lite
Available in MIL

Available on Windows
Available on Linux

Available on Non-Matrox computer
Available on Matrox 4Sight-X
Available on Matrox 4Sight GP
Available on Matrox Supersight
function map Function map
Examples
Synopsis
Set the positional accuracy of a model.
Syntax
void MpatSetAccuracy(
MIL_ID ModelId, //in
MIL_INT64 Accuracy //in
)
Description

This function sets the specified model's search parameter for positional accuracy and the complexity of the image. You can enhance speed performance by selecting a lower positional accuracy. Also, whenever the positional accuracy of a model changes, the effect of any preprocessing is undone. Therefore, if the accuracy is changed, call MpatPreprocModel() before searching for the model.

The positional accuracy is also slightly affected by the search speed (MpatSetSpeed()).

Note that this function reference has not been updated for a MIL system added during a MIL update. Refer to the MIL system's release note to see if there is complementary information.
Parameters
This function is not supported on the selected boards.
Parameters
ModelId

Specifies the identifier of the model for which to change the positional accuracy search parameter.

Accuracy INQ

Specifies the required positional accuracy for the search.

This parameter must be set to one of the values below. Note, the precision achieved is dependent on the quality of the model and the image (the tolerances listed below are typical for high-quality, low-noise images).

function map For specifying the positional accuracy of the search
CollapseValue Description
Collapse M_HIGH

Specifies a high accuracy (typically ± 0.05 pixels).

Collapse M_LOW

Specifies a low accuracy (typically ± 0.20 pixels). Note that when using this setting, the match scores can be slightly lower than usual. If a precise match score is important to you, use at least medium accuracy.

(summarize)
Collapse M_MEDIUM

Specifies a medium accuracy (typically ± 0.10 pixels).

This is the default value.

(summarize)
Compilation information
Header Include mil.h.
Library Use mil.lib; milpat.lib.
DLL Requires mil.dll; milpat.dll.
HIGH LOW MEDIUM