MpatSetCenter()函数

Synopsis

Set the pattern matching model center.

Format

void MpatSetCenter(ModelId, OffX, OffY)

MIL_ID ModelId; Identifier of model to be affected
double OffX; X offset relative to model top-left corner
double OffY; Y offset relative to model top-left corner

Description

This function sets the center of the specified model. The default center is an integer value equal to ((SizeX – 1) / 2, (SizeY – 1) / 2) (relative to the model origin). All positional search results are based on this defined model center relative to the top-left corner of the image in which the search is performed.

The ModelId parameter specifies the identifier of the model for which to change the center point parameter.

The OffX and OffY parameters specify the offset of the new model center in relation to the model origin. Note, the further the new center is from the actual model center, the more likely you are to get incorrect results due to image distortion and rotation.

《MpatSetCenter()函数》上有3条评论

评论已关闭。