MpatFindModel()函数
Synopsis
Find a pattern matching model in the target image buffer.
Format
void MpatFindModel(ImageBufId, ModelId, PatResultId)
记录分享,MIL5.1版本的Mpat模板匹配,模板匹配主要通过统计分析,遍历图像找到一处跟模板比分值最大点,多用来定位。
Synopsis
Find a pattern matching model in the target image buffer.
Format
void MpatFindModel(ImageBufId, ModelId, PatResultId)
Synopsis
Copy a pattern matching model to an image buffer.
Format
void MpatCopy(ModelId, DestImageBufId, CopyMode)
Synopsis
Rotate a pattern matching model.
Format
MIL_ID MpatAllocRotatedModel(SystemId, SrcModelId, Angle, InterpolationMode, ModelType, NewModelIdPtr)
Synopsis
Allocate a pattern matching result buffer.
Format
MIL_ID MpatAllocResult(SystemId, NbEntries, PatResultIdPtr)
Synopsis
Allocate a pattern matching model from a source image.
Format
MIL_ID MpatAllocModel(SystemId, SrcImageBufId, OffX, OffY, SizeX, SizeY, ModelType, ModelIdPtr)
Synopsis
Automatically allocate a unique pattern matching model from a source image.
Format
MIL_ID MpatAllocAutoModel(SystemId, SrcImageBufId, SizeX, SizeY, PosUncertaintyX, PosUncertaintyY, ModelType, Mode, ModelIdPtr)
模板匹配是一种最原始、最基本的模式识别方法,研究某一特定对象物的图案位于图像的什么地方,进而识别对象物,这就是一个匹配问题。它是图像处理中最基本、最常用的匹配方法。模板匹配具有自身的局限性,主要表现在它只能进行平行移动,若原图像中的匹配目标发生旋转或大小变化,该算法无效。