MpatGetResult()函数

Synopsis

Get the pattern matching result values.

Format

void MpatGetResult(PatResultId, ResultType, UserArrayPtr)

MIL_ID PatResultId; Pattern matching result buffer identifier
long ResultType; Type of results
double *UserArrayPtr; Array for results

Description

This function allows you to read the match score, position of each occurrence, or angle of orientation in the specified result buffer, by writing them to the specified target array.

The PatResultId parameter specifies the identifier of the pattern recognition result buffer that was used to store results obtained by MpatFindModel, MpatFindMultipleModel or MpatFindOrientation.

The ResultType parameter specifies the type of result that you want returned for each model occurrence. This parameter can be set to one of the following values:

ResultType Description
M_SCORE The match score of the occurrences (as a percentage).
M_POSITION_X X-coordinate of the occurrences.
M_POSITION_Y Y-coordinate of the occurrences.
M_ANGLE The angle from an MpatFindModel search with angle.
M_ORIENTATION The angle of orientation from MpatFindOrientation.

Results are returned in the user array as type “double”.

The UserArrayPtr parameter specifies the address of the one-dimensional array in which the specified results are written. The array must be big enough to hold the number of results indicated by MpatGetNumber.

See also

MpatFindModel, MpatFindMultipleModel, MpatGetNumber, MpatAllocResult

《MpatGetResult()函数》上有4条评论

评论已关闭。