Commit aab51ccb 刘韬

1

1 个父辈 5807cca1
...@@ -70,6 +70,8 @@ namespace AOI ...@@ -70,6 +70,8 @@ namespace AOI
//模板匹配 //模板匹配
EyemTargetMatch[] tpResults = new EyemTargetMatch[iNumMatches]; EyemTargetMatch[] tpResults = new EyemTargetMatch[iNumMatches];
IntPtr ResultHandle = Marshal.AllocHGlobal(Marshal.SizeOf(typeof(EyemTargetMatch)) * tpResults.Length); IntPtr ResultHandle = Marshal.AllocHGlobal(Marshal.SizeOf(typeof(EyemTargetMatch)) * tpResults.Length);
if (RoiPath==null)
return (0d, 0d);
var rect = RoiPath.GetBounds(); var rect = RoiPath.GetBounds();
if (rect== RectangleF.Empty) if (rect== RectangleF.Empty)
return (0d, 0d); return (0d, 0d);
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!