MmeasAllocMarker()函数
Synopsis
Allocate a measurement marker.
Format
MIL_ID MmeasAllocMarker(SystemId, MarkerType, ControlFlag, MarkerIdPtr)
记录分享,MIL5.1版本的Mmeas测量分析,测量分析主要分析物体的边,可以运用在定位边,或量测边上。MIl5.1提供了两种量测方式,边,条纹。
Synopsis
Allocate a measurement marker.
Format
MIL_ID MmeasAllocMarker(SystemId, MarkerType, ControlFlag, MarkerIdPtr)
Synopsis
Allocate a measurement context.
Format
MIL_ID MmeasAllocContext(SystemId, ControlFlag, ContextIdPtr)
一般mil测量步骤如下;
1.使用MmeasAllocMarker函数,先分配测量的MIL_ID。
2.使用MmeasSetMarker函数,设置 边(Edge)或条纹(stripe)参数, 如极性,强度,宽度,测量范围,角度等
3.使用MmeasFindMarker函数,寻找 边(Edge)或条纹(stripe)位置
4.使用MmeasGetResult函数,获取结果,分数,角度,位置等
5.使用MmeasFree函数, 释放分配测量的MIL_ID